MythTV  0.26-pre
Public Member Functions | Static Public Member Functions | Static Private Member Functions
ProgramAssociationTable Class Reference

The Program Association Table lists all the programs in a stream, and is always found on PID 0. More...

#include <mpegtables.h>

Inheritance diagram for ProgramAssociationTable:
PSIPTable PESPacket

List of all members.

Public Member Functions

 ProgramAssociationTable (const ProgramAssociationTable &table)
 ProgramAssociationTable (const PSIPTable &table)
uint TransportStreamID (void) const
uint ProgramCount (void) const
uint ProgramNumber (uint i) const
uint ProgramPID (uint i) const
void SetTranportStreamID (uint gtsid)
uint FindPID (uint progNum) const
uint FindAnyPID (void) const
uint FindProgram (uint pid) const
virtual QString toString (void) const
virtual QString toStringXML (uint indent_level) const

Static Public Member Functions

static ProgramAssociationTableCreate (uint tsid, uint version, const vector< uint > &pnum, const vector< uint > &pid)

Static Private Member Functions

static ProgramAssociationTableCreateBlank (bool smallPacket=true)

Detailed Description

The Program Association Table lists all the programs in a stream, and is always found on PID 0.

Based on info in this table and the ProgramMapTable for the program we are interested in we should be able determine which PID to write to the ringbuffer when given the program stream to record.

NOTE: Broadcasters are encouraged to keep the subprogram:PID mapping constant. If we store this data in the channel database, we can branch-predict which PIDs we are looking for, and can thus "tune" the subprogram more quickly.

See also:
ProgramMapTable

Definition at line 490 of file mpegtables.h.


Constructor & Destructor Documentation

Definition at line 493 of file mpegtables.h.

Referenced by CreateBlank().

Definition at line 499 of file mpegtables.h.


Member Function Documentation

ProgramAssociationTable * ProgramAssociationTable::Create ( uint  tsid,
uint  version,
const vector< uint > &  pnum,
const vector< uint > &  pid 
) [static]

Definition at line 527 of file mpegtables.h.

uint ProgramAssociationTable::FindPID ( uint  progNum) const [inline]

Definition at line 537 of file mpegtables.h.

Referenced by MPEGStreamData::CreatePATSingleProgram().

Definition at line 544 of file mpegtables.h.

QString ProgramAssociationTable::toString ( void  ) const [virtual]
QString ProgramAssociationTable::toStringXML ( uint  indent_level) const [virtual]

Reimplemented from PSIPTable.

Definition at line 813 of file mpegtables.cpp.

Definition at line 306 of file mpegtables.cpp.

Referenced by Create().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends