vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cPipReceiver Class Reference

cPipReceiver - receiver class for pip More...

#include <pipreceiver.h>

Public Member Functions

 cPipReceiver (const cChannel *, cSoftHdDevice *)
 pip receiver class constructor
 
virtual ~cPipReceiver (void)
 pip receiver class destructor
 

Protected Member Functions

virtual void Activate (bool)
 called before the receiver gets attached or after it got detached
 
virtual void Receive (const uchar *, int)
 receive data from the receiver
 

Private Member Functions

int ParseTs (const uchar *, int)
 Parse the ts stream and send it to the pes player.
 
int PlayTs (const uchar *, int)
 Get the pes payload and send it to the player.
 

Private Attributes

cSoftHdDevicem_pDevice
 
cTsToPes m_pTsToPesVideo
 
uint64_t m_lastErrorReport = 0
 
int m_numLostPackets = 0
 

Detailed Description

cPipReceiver - receiver class for pip

Definition at line 32 of file pipreceiver.h.

Constructor & Destructor Documentation

◆ cPipReceiver()

cPipReceiver::cPipReceiver ( const cChannel *  channel,
cSoftHdDevice device 
)

pip receiver class constructor

Definition at line 35 of file pipreceiver.cpp.

References LOGDEBUG.

◆ ~cPipReceiver()

cPipReceiver::~cPipReceiver ( void  )
virtual

pip receiver class destructor

Definition at line 46 of file pipreceiver.cpp.

References LOGDEBUG.

Member Function Documentation

◆ Activate()

void cPipReceiver::Activate ( bool  on)
protectedvirtual

called before the receiver gets attached or after it got detached

Definition at line 55 of file pipreceiver.cpp.

References LOGDEBUG, and m_pTsToPesVideo.

◆ ParseTs()

int cPipReceiver::ParseTs ( const uchar *  data,
int  size 
)
private

Parse the ts stream and send it to the pes player.

This code is taken from VDRs cDevice::PlayTs()

Definition at line 89 of file pipreceiver.cpp.

References LOGWARNING, m_pTsToPesVideo, and PlayTs().

◆ PlayTs()

int cPipReceiver::PlayTs ( const uchar *  data,
int  size 
)
private

Get the pes payload and send it to the player.

This code is taken from VDRs cDevice::PlayTsVideo()

Definition at line 134 of file pipreceiver.cpp.

References m_pDevice, m_pTsToPesVideo, and cSoftHdDevice::PlayPipVideo().

Referenced by ParseTs().

◆ Receive()

void cPipReceiver::Receive ( const uchar *  data,
int  size 
)
protectedvirtual

receive data from the receiver

This code is taken from VDRs cTransfer::Receive()

Definition at line 69 of file pipreceiver.cpp.

References ERRORDELTASEC, LOGWARNING, MAXRETRIES, and RETRYWAITMS.

Member Data Documentation

◆ m_lastErrorReport

uint64_t cPipReceiver::m_lastErrorReport = 0
private

Definition at line 45 of file pipreceiver.h.

◆ m_numLostPackets

int cPipReceiver::m_numLostPackets = 0
private

Definition at line 46 of file pipreceiver.h.

◆ m_pDevice

cSoftHdDevice* cPipReceiver::m_pDevice
private

Definition at line 43 of file pipreceiver.h.

Referenced by PlayTs().

◆ m_pTsToPesVideo

cTsToPes cPipReceiver::m_pTsToPesVideo
private

Definition at line 44 of file pipreceiver.h.

Referenced by Activate(), ParseTs(), and PlayTs().


The documentation for this class was generated from the following files: