cPatPmtGenerator Class Reference

#include <remux.h>

List of all members.

Public Member Functions

 cPatPmtGenerator (void)
void GeneratePat (void)
void GeneratePmt (tChannelID ChannelID)
ucharGetPat (void)
ucharGetPmt (int &Index)

Protected Member Functions

int MakeStream (uchar *Target, uchar Type, int Pid)
int MakeAC3Descriptor (uchar *Target)
int MakeSubtitlingDescriptor (uchar *Target, const char *Language)
int MakeLanguageDescriptor (uchar *Target, const char *Language)
int MakeCRC (uchar *Target, const uchar *Data, int Length)

Private Member Functions

void IncCounter (int &Counter, uchar *TsPacket)
void IncVersion (int &Version)
void IncEsInfoLength (int Length)

Private Attributes

uchar pat [TS_SIZE]
uchar pmt [MAX_PMT_TS][TS_SIZE]
int numPmtPackets
int patCounter
int pmtCounter
int patVersion
int pmtVersion
ucharesInfoLength


Detailed Description

Definition at line 147 of file remux.h.


Constructor & Destructor Documentation

cPatPmtGenerator::cPatPmtGenerator ( void   ) 

Definition at line 114 of file remux.c.

References esInfoLength, GeneratePat(), numPmtPackets, patCounter, patVersion, pmtCounter, and pmtVersion.

Here is the call graph for this function:


Member Function Documentation

void cPatPmtGenerator::IncCounter ( int &  Counter,
uchar TsPacket 
) [private]

Definition at line 123 of file remux.c.

Referenced by GetPat(), and GetPmt().

void cPatPmtGenerator::IncVersion ( int &  Version  )  [private]

Definition at line 130 of file remux.c.

Referenced by GeneratePat(), and GeneratePmt().

void cPatPmtGenerator::IncEsInfoLength ( int  Length  )  [private]

Definition at line 136 of file remux.c.

References esInfoLength.

Referenced by MakeAC3Descriptor(), MakeLanguageDescriptor(), and MakeSubtitlingDescriptor().

int cPatPmtGenerator::MakeStream ( uchar Target,
uchar  Type,
int  Pid 
) [protected]

Definition at line 145 of file remux.c.

References esInfoLength.

Referenced by GeneratePmt().

int cPatPmtGenerator::MakeAC3Descriptor ( uchar Target  )  [protected]

Definition at line 157 of file remux.c.

References SI::AC3DescriptorTag, and IncEsInfoLength().

Referenced by GeneratePmt().

Here is the call graph for this function:

int cPatPmtGenerator::MakeSubtitlingDescriptor ( uchar Target,
const char *  Language 
) [protected]

Definition at line 167 of file remux.c.

References IncEsInfoLength(), and SI::SubtitlingDescriptorTag.

Referenced by GeneratePmt().

Here is the call graph for this function:

int cPatPmtGenerator::MakeLanguageDescriptor ( uchar Target,
const char *  Language 
) [protected]

Definition at line 184 of file remux.c.

References IncEsInfoLength(), and SI::ISO639LanguageDescriptorTag.

Referenced by GeneratePmt().

Here is the call graph for this function:

int cPatPmtGenerator::MakeCRC ( uchar Target,
const uchar Data,
int  Length 
) [protected]

Definition at line 197 of file remux.c.

References SI::CRC32::crc32().

Referenced by GeneratePat(), and GeneratePmt().

Here is the call graph for this function:

void cPatPmtGenerator::GeneratePat ( void   ) 

Generates a PAT section for later use with GetPat(). This function is called by default from the constructor.

Definition at line 212 of file remux.c.

References IncVersion(), MakeCRC(), P_PMT_PID, P_PNR, P_TSID, pat, and patVersion.

Referenced by cPatPmtGenerator().

Here is the call graph for this function:

void cPatPmtGenerator::GeneratePmt ( tChannelID  ChannelID  ) 

uchar * cPatPmtGenerator::GetPat ( void   ) 

Returns a pointer to the PAT section, which consist of exactly one TS packet.

Definition at line 314 of file remux.c.

References IncCounter(), pat, and patCounter.

Referenced by cRecorder::Action(), and cTransfer::Activate().

Here is the call graph for this function:

uchar * cPatPmtGenerator::GetPmt ( int &  Index  ) 

Returns a pointer to the Index'th TS packet of the PMT section. Index must be initialized to 0 and will be incremented by each call to GetPmt(). Returns NULL is all packets of the PMT section have been fetched..

Definition at line 320 of file remux.c.

References IncCounter(), numPmtPackets, patCounter, and pmt.

Referenced by cRecorder::Action(), and cTransfer::Activate().

Here is the call graph for this function:


Member Data Documentation

uchar cPatPmtGenerator::pat[TS_SIZE] [private]

Definition at line 149 of file remux.h.

Referenced by GeneratePat(), and GetPat().

uchar cPatPmtGenerator::pmt[MAX_PMT_TS][TS_SIZE] [private]

Definition at line 150 of file remux.h.

Referenced by GeneratePmt(), and GetPmt().

Definition at line 151 of file remux.h.

Referenced by cPatPmtGenerator(), GeneratePmt(), and GetPmt().

Definition at line 152 of file remux.h.

Referenced by cPatPmtGenerator(), GetPat(), and GetPmt().

Definition at line 153 of file remux.h.

Referenced by cPatPmtGenerator().

Definition at line 154 of file remux.h.

Referenced by cPatPmtGenerator(), and GeneratePat().

Definition at line 155 of file remux.h.

Referenced by cPatPmtGenerator(), and GeneratePmt().

Definition at line 156 of file remux.h.

Referenced by cPatPmtGenerator(), IncEsInfoLength(), and MakeStream().


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

Generated on Tue Jan 13 14:30:50 2009 for VDR by  doxygen 1.5.6