cPatPmtParser Class Reference

#include <remux.h>

List of all members.

Public Member Functions

 cPatPmtParser (void)
void ParsePat (const uchar *Data, int Length)
void ParsePmt (const uchar *Data, int Length)
int PmtPid (void)
int Vpid (void)
 Returns the video pid as defined by the current PMT.
int Vtype (void)

Protected Member Functions

int SectionLength (const uchar *Data, int Length)

Private Attributes

uchar pmt [MAX_SECTION_SIZE]
int pmtSize
int pmtPid
int vpid
int vtype


Detailed Description

Definition at line 186 of file remux.h.


Constructor & Destructor Documentation

cPatPmtParser::cPatPmtParser ( void   ) 

Definition at line 331 of file remux.c.

References pmtPid, pmtSize, vpid, and vtype.


Member Function Documentation

int cPatPmtParser::SectionLength ( const uchar Data,
int  Length 
) [inline, protected]

Definition at line 194 of file remux.h.

Referenced by ParsePmt().

void cPatPmtParser::ParsePat ( const uchar Data,
int  Length 
)

Parses the given PAT Data, which is the payload of a single TS packet from the PAT stream. The PAT may consist only of a single TS packet.

Definition at line 338 of file remux.c.

References SI::PAT::associationLoop, SI::CRCSection::CheckCRCAndParse(), dbgpatpmt, esyslog, SI::NumberedSection::getCurrentNextIndicator(), SI::NumberedSection::getLastSectionNumber(), SI::NumberedSection::getSectionNumber(), SI::PAT::getTransportStreamId(), SI::NumberedSection::getVersionNumber(), and pmtPid.

Referenced by cDevice::PlayTs(), and cDevice::StillPicture().

Here is the call graph for this function:

void cPatPmtParser::ParsePmt ( const uchar Data,
int  Length 
)

Parses the given PMT Data, which is the payload of a single TS packet from the PMT stream. The PMT may consist of several TS packets, which are delivered to the parser through several subsequent calls to ParsePmt(). The whole PMT data will be processed once the last packet has been received.

Definition at line 358 of file remux.c.

References SI::AC3DescriptorTag, SI::CRCSection::CheckCRCAndParse(), cDevice::ClrAvailableTracks(), dbgpatpmt, cDevice::EnsureAudioTrack(), cDevice::EnsureSubtitleTrack(), esyslog, SI::NumberedSection::getCurrentNextIndicator(), SI::Descriptor::getDescriptorTag(), SI::NumberedSection::getLastSectionNumber(), SI::PMT::getPCRPid(), SI::PMT::Stream::getPid(), SI::NumberedSection::getSectionNumber(), SI::PMT::getServiceId(), SI::PMT::Stream::getStreamType(), SI::NumberedSection::getVersionNumber(), I18nNormalizeLanguageCode(), SI::ISO639LanguageDescriptorTag, SI::SubtitlingDescriptor::Subtitling::languageCode, SI::ISO639LanguageDescriptor::Language::languageCode, SI::ISO639LanguageDescriptor::languageCode, SI::ISO639LanguageDescriptor::languageLoop, MAXAPIDS, MAXDPIDS, MAXLANGCODE1, MAXLANGCODE2, MAXSPIDS, pmt, pmtSize, cDevice::PrimaryDevice(), SectionLength(), cDevice::SetAvailableTrack(), SI::PMT::Stream::streamDescriptors, SI::PMT::streamLoop, strn0cpy(), SI::SubtitlingDescriptorTag, SI::SubtitlingDescriptor::subtitlingLoop, ttAudio, ttDolby, ttSubtitle, vpid, and vtype.

Referenced by cDevice::PlayTs(), and cDevice::StillPicture().

Here is the call graph for this function:

int cPatPmtParser::PmtPid ( void   )  [inline]

Returns the PMT pid as defined by the current PAT. If no PAT has been received yet, -1 will be returned.

Definition at line 206 of file remux.h.

References pmtPid.

Referenced by cDevice::PlayTs(), and cDevice::StillPicture().

int cPatPmtParser::Vpid ( void   )  [inline]

Returns the video pid as defined by the current PMT.

Definition at line 209 of file remux.h.

References vpid.

Referenced by cDevice::PlayTs(), and cDevice::StillPicture().

int cPatPmtParser::Vtype ( void   )  [inline]

Definition at line 211 of file remux.h.

References vtype.


Member Data Documentation

uchar cPatPmtParser::pmt[MAX_SECTION_SIZE] [private]

Definition at line 188 of file remux.h.

Referenced by ParsePmt().

int cPatPmtParser::pmtSize [private]

Definition at line 189 of file remux.h.

Referenced by cPatPmtParser(), and ParsePmt().

int cPatPmtParser::pmtPid [private]

Definition at line 190 of file remux.h.

Referenced by cPatPmtParser(), ParsePat(), and PmtPid().

int cPatPmtParser::vpid [private]

Definition at line 191 of file remux.h.

Referenced by cPatPmtParser(), ParsePmt(), and Vpid().

int cPatPmtParser::vtype [private]

Definition at line 192 of file remux.h.

Referenced by cPatPmtParser(), ParsePmt(), and Vtype().


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

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