195 device->SwitchChannel(
channel,
false);
279 if (!
channel && Setup.ChannelsWrap)
Output Device Implementation.
void SetRenderPipActive(bool)
int PlayPipVideo(const uchar *, int)
Play a video packet of the pip videostream.
void ToggleRenderPipPosition(void)
void SetRenderPipSize(void)
void ResetPipStream(void)
Resets pip stream and render pipeline.
void ChannelChange(int)
Change the pip channel.
void SwapPosition(void)
Swap pip between normal and alternative position.
cOutputDevice * m_pDevice
pointer to device
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.
cPipHandler(cOutputDevice *)
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.
void Enable(void)
Start picture-in-picture.
void SetSize(void)
Set size and position for the pip window.
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.
cPipReceiver(const cChannel *, cOutputDevice *)
Create a new receiver for the pip stream.
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.
cOutputDevice * m_pDevice
pointer to device
int m_numLostPackets
tracks lost packets
Output Device Header File.
#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.