ProgramAssociationTable Class Reference

#include <mpegtables.h>

Inheritance diagram for ProgramAssociationTable:

PSIPTable PESPacket

List of all members.


Detailed Description

The Program Association Table lists all the programs in a stream, and is alwyas 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 447 of file mpegtables.h.


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
const QString toString (void) 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)

Constructor & Destructor Documentation

ProgramAssociationTable::ProgramAssociationTable ( const ProgramAssociationTable table  )  [inline]

Definition at line 450 of file mpegtables.h.

Referenced by CreateBlank().

ProgramAssociationTable::ProgramAssociationTable ( const PSIPTable table  )  [inline]

Definition at line 456 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 274 of file mpegtables.cpp.

Referenced by MPEGStreamData::CreatePATSingleProgram().

uint ProgramAssociationTable::TransportStreamID ( void   )  const [inline]

uint ProgramAssociationTable::ProgramCount ( void   )  const [inline]

uint ProgramAssociationTable::ProgramNumber ( uint  i  )  const [inline]

uint ProgramAssociationTable::ProgramPID ( uint  i  )  const [inline]

void ProgramAssociationTable::SetTranportStreamID ( uint  gtsid  )  [inline]

Definition at line 484 of file mpegtables.h.

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

uint ProgramAssociationTable::FindAnyPID ( void   )  const [inline]

Definition at line 494 of file mpegtables.h.

Referenced by MPEGStreamData::CreatePATSingleProgram().

uint ProgramAssociationTable::FindProgram ( uint  pid  )  const [inline]

Definition at line 501 of file mpegtables.h.

const QString ProgramAssociationTable::toString ( void   )  const

ProgramAssociationTable * ProgramAssociationTable::CreateBlank ( bool  smallPacket = true  )  [static, private]

Definition at line 258 of file mpegtables.cpp.

Referenced by Create().


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

Generated on Sat Dec 18 05:16:09 2010 for MythTV by  doxygen 1.5.5