67#define ERRORDELTASEC 60
73void cPipReceiver::Receive(const uchar *data, int size)
76 if (ParseTs(data, size) > 0)
82 LOGWARNING(
"pipreceiver: %d TS packet(s) not accepted in pip stream", m_numLostPackets);
84 m_lastErrorReport = cTimeMs::Now();
162 m_pEventReceiver(device)
239 device->SwitchChannel(
channel,
false);
331 if (!
channel && Setup.ChannelsWrap)
virtual void OnEventReceived(const Event &)=0
cPipReceiver * m_pPipReceiver
pointer to pip receiver
const cChannel * m_pPipChannel
current pip channel
IEventReceiver * m_pEventReceiver
pointer to event receiver
bool m_active
true, if pip is active
int m_pipChannelNum
current pip channel number
cSoftHdDevice * m_pDevice
pointer to device
cTsToPes m_pTsToPesVideo
TS to PES converter.
cSoftHdDevice * m_pDevice
pointer to device
Output Device Implementation.
void ToggleRenderPipPosition(void)
State Machine and Event Header File.
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.
#define LOGDEBUG
log to LOG_DEBUG
#define LOGERROR
log to LOG_ERR
#define LOGWARNING
log to LOG_WARN
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.
void Toggle(void)
Toggle picture-in-picture.
virtual ~cPipReceiver(void)
Detach the pip receiver.
int PlayTs(const uchar *, int)
Get the pes payload and send it to the player.
void HandleChannelChange(int)
Change the 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.
virtual void Activate(bool)
Called before the receiver gets attached or after it got detached.
void Disable(void)
Stop picture-in-picture.
void ChannelSwap(bool)
Swap the pip channel with main live channel.
int ParseTs(const uchar *, int)
Parse the ts stream and send it to the pes player.
cPipReceiver(const cChannel *, cSoftHdDevice *)
Create a new receiver for the pip stream handling only video pid.
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.
PiP (Picture-in-Picture) Interface Header File.
Output Device Header File.