195 device->SwitchChannel(
channel,
false);
279 if (!
channel && Setup.ChannelsWrap)
void ChannelChange(int)
Change the pip channel.
void SwapPosition(void)
Swap pip between normal and alternative position.
void HandleEnable(bool)
Enable/ disable picture-in-picture.
cPipReceiver * m_pPipReceiver
pointer to pip receiver
void Toggle(void)
Toggle picture-in-picture.
std::atomic< bool > m_active
true, if pip is active
void HandleChannelChange(int)
Change the pip channel.
const cChannel * m_pPipChannel
current pip channel
virtual ~cPipHandler(void)
int Start(int)
Create a new pip receiver and render the pip stream.
void Disable(void)
Stop picture-in-picture.
void ChannelSwap(bool)
Swap the pip channel with main live channel.
int m_pipChannelNum
current pip channel number
void Stop(void)
Delete the pip receiver, clear decoder and display buffers and disable rendering the pip window.
cPipHandler(cSoftHdDevice *)
void Enable(void)
Start picture-in-picture.
void SetSize(void)
Set size and position for the pip window.
cSoftHdDevice * m_pDevice
pointer to device
cTsToPes m_pTsToPesVideo
TS to PES converter.
virtual ~cPipReceiver(void)
Detach the pip receiver.
int PlayTs(const uchar *, int)
Get the pes payload and send it to the player.
uint64_t m_lastErrorReport
tracks time since last error report
virtual void Activate(bool)
Called before the receiver gets attached or after it got detached.
int ParseTs(const uchar *, int)
Parse the ts stream and send it to the pes player.
virtual void Receive(const uchar *, int)
Receive data from the receiver.
cSoftHdDevice * m_pDevice
pointer to device
cPipReceiver(const cChannel *, cSoftHdDevice *)
Create a new receiver for the pip stream.
int m_numLostPackets
tracks lost packets
Output Device Implementation.
void SetRenderPipSize(void)
void SetRenderPipActive(bool)
void ResetPipStream(void)
Resets pip stream and render pipeline.
int PlayPipVideo(const uchar *, int)
Play a video packet of the pip videostream.
void ToggleRenderPipPosition(void)
#define LOGDEBUG
log to LOG_DEBUG
#define LOGERROR
log to LOG_ERR
#define LOGWARNING
log to LOG_WARN
PiP (Picture-in-Picture) Interface Header File.
Output Device Header File.