cTsToPes Class Reference

#include <remux.h>

List of all members.

Public Member Functions

 cTsToPes (void)
 ~cTsToPes ()
void PutTs (const uchar *Data, int Length)
const ucharGetPes (int &Length)
void Reset (void)

Private Attributes

uchardata
int size
int length
int offset
bool synced


Detailed Description

Definition at line 218 of file remux.h.


Constructor & Destructor Documentation

cTsToPes::cTsToPes ( void   ) 

Definition at line 507 of file remux.c.

References data, length, offset, size, and synced.

cTsToPes::~cTsToPes (  ) 

Definition at line 514 of file remux.c.

References data.


Member Function Documentation

void cTsToPes::PutTs ( const uchar Data,
int  Length 
)

Puts the payload data of the single TS packet at Data into the converter. Length is always 188. If the given TS packet starts a new PES payload packet, the converter will be automatically reset. Any packets before the first one that starts a new PES payload packet will be ignored.

Definition at line 519 of file remux.c.

References data, KILOBYTE, length, max(), Reset(), size, TsGetPayload(), and TsPayloadStart().

Referenced by cDevice::PlayTsAudio(), cDevice::PlayTsSubtitle(), cDevice::PlayTsVideo(), and cDevice::StillPicture().

Here is the call graph for this function:

const uchar * cTsToPes::GetPes ( int &  Length  ) 

Gets a pointer to the complete PES packet, or NULL if the packet is not complete yet. If the packet is complete, Length will contain the total packet length. The returned pointer is only valid until the next call to PutTs() or Reset(), or until this object is destroyed.

Definition at line 536 of file remux.c.

References data, length, MAXPESLENGTH, min(), offset, PesHasLength(), PesLength(), and PesLongEnough().

Referenced by cDevice::PlayTsAudio(), cDevice::PlayTsSubtitle(), cDevice::PlayTsVideo(), and cDevice::StillPicture().

Here is the call graph for this function:

void cTsToPes::Reset ( void   ) 

Resets the converter. This needs to be called after a PES packet has been fetched by a call to GetPes(), and before the next call to PutTs().

Definition at line 569 of file remux.c.

References length, and offset.

Referenced by cDevice::PlayTs(), cDevice::PlayTsAudio(), cDevice::PlayTsSubtitle(), cDevice::PlayTsVideo(), PutTs(), and cDevice::StillPicture().


Member Data Documentation

uchar* cTsToPes::data [private]

Definition at line 220 of file remux.h.

Referenced by cTsToPes(), GetPes(), PutTs(), and ~cTsToPes().

int cTsToPes::size [private]

Definition at line 221 of file remux.h.

Referenced by cTsToPes(), and PutTs().

int cTsToPes::length [private]

Definition at line 222 of file remux.h.

Referenced by cTsToPes(), GetPes(), PutTs(), and Reset().

int cTsToPes::offset [private]

Definition at line 223 of file remux.h.

Referenced by cTsToPes(), GetPes(), and Reset().

bool cTsToPes::synced [private]

Definition at line 224 of file remux.h.

Referenced by cTsToPes().


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

Generated on Tue Jan 13 14:33:19 2009 for VDR by  doxygen 1.5.6