vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
cPipReceiver Class Reference

cPipReceiver - receiver class for pip More...

#include <pipreceiver.h>

Collaboration diagram for cPipReceiver:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

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

Private Attributes

cSoftHdDevicem_pDevice
 
cTsToPes m_pTsToPesVideo
 
uint64_t m_lastErrorReport
 
int m_numLostPackets
 

Detailed Description

cPipReceiver - receiver class for pip

Definition at line 30 of file pipreceiver.h.

Constructor & Destructor Documentation

◆ cPipReceiver()

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

pip receiver class constructor

Definition at line 33 of file pipreceiver.cpp.

References LOGDEBUG, m_lastErrorReport, m_numLostPackets, and m_pDevice.

◆ ~cPipReceiver()

cPipReceiver::~cPipReceiver ( void  )
virtual

pip receiver class destructor

Definition at line 45 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 54 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 88 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 133 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 68 of file pipreceiver.cpp.

References ERRORDELTASEC, LOGWARNING, MAXRETRIES, and RETRYWAITMS.

Member Data Documentation

◆ m_lastErrorReport

uint64_t cPipReceiver::m_lastErrorReport
private

Definition at line 43 of file pipreceiver.h.

Referenced by cPipReceiver().

◆ m_numLostPackets

int cPipReceiver::m_numLostPackets
private

Definition at line 44 of file pipreceiver.h.

Referenced by cPipReceiver().

◆ m_pDevice

cSoftHdDevice* cPipReceiver::m_pDevice
private

Definition at line 41 of file pipreceiver.h.

Referenced by cPipReceiver(), and PlayTs().

◆ m_pTsToPesVideo

cTsToPes cPipReceiver::m_pTsToPesVideo
private

Definition at line 42 of file pipreceiver.h.

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


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