156 m_pEventReceiver(device)
233 device->SwitchChannel(
channel,
false);
325 if (!
channel && Setup.ChannelsWrap)
virtual void OnEventReceived(const Event &)=0
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.
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 HandleEvent(enum PipState)
Handle a pip event.
void Disable(void)
Stop picture-in-picture.
void ChannelSwap(bool)
Swap the pip channel with main live channel.
IEventReceiver * m_pEventReceiver
pointer to event receiver
bool m_active
true, if pip is active
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 handling only video pid.
int m_numLostPackets
tracks lost packets
Output Device Implementation.
void SetRenderPipSize(void)
Wrapper functions for cVideoRender and cPipHandler.
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)
State Machine and Event 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.
Output Device Header File.