QtlMovie 1.12 (A specialized FFmpeg front-end)
QtsProgramMapTable Class Reference

The MPEG-defined Program Map Table (PMT). More...

Inheritance diagram for QtsProgramMapTable:
QtsAbstractLongTable QtsAbstractTable

Classes

struct  StreamEntry
 Describes a stream entry in the PMT. More...
 

Public Types

typedef QList< StreamEntryStreamList
 Describes the list of stream in the PMT. More...
 

Public Member Functions

 QtsProgramMapTable (quint8 version=0, bool isCurrent=true, quint16 sid=0, QtsPid pcr=QTS_PID_NULL)
 Default constructor. More...
 
 QtsProgramMapTable (const QtsTable &table)
 Constructor from a binary table. More...
 
virtual bool deserialize (const QtsTable &table) Q_DECL_OVERRIDE
 This abstract method deserializes a binary table. More...
 
virtual bool serialize (QtsTable &table) const Q_DECL_OVERRIDE
 This abstract method serializes a table. More...
 
- Public Member Functions inherited from QtsAbstractLongTable
bool isCurrent () const
 Check if the section is "current" (vs. More...
 
void setIsCurrent (bool isCurrent)
 Modify the "current" flag. More...
 
void setVersion (quint8 version)
 Modify the table version. More...
 
quint8 version () const
 Get the table version. More...
 
- Public Member Functions inherited from QtsAbstractTable
virtual ~QtsAbstractTable ()
 Virtual destructor. More...
 
void invalidate ()
 Invalidate the table. More...
 
bool isValid () const
 Check if the table is valid. More...
 
QtsTableId tableId () const
 Get the table id. More...
 

Public Attributes

QtsDescriptorList descs
 Program-level descriptor list. More...
 
QtsPid pcrPid
 PID for PCR data. More...
 
quint16 serviceId
 Service id aka "program_number". More...
 
StreamList streams
 List of elementary streams in the service. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QtsAbstractLongTable
 QtsAbstractLongTable (QtsTableId tid, quint8 version=0, bool isCurrent=true)
 Protected constructor for subclasses. More...
 
bool addSection (QtsTable &table, bool isPrivateSection, quint16 tidExt, const void *payload, int payloadSize) const
 Serialization helper: add a section in the binary table. More...
 
bool addSection (QtsTable &table, bool isPrivateSection, quint16 tidExt, const QtlByteBlock &payload) const
 Serialization helper: add a section in the binary table. More...
 
- Protected Member Functions inherited from QtsAbstractTable
 QtsAbstractTable (QtsTableId tid)
 Protected constructor for subclasses. More...
 
bool deserializeInit (const QtsTable &table)
 Deserialization helper: Start the deserialization. More...
 
bool serializeInit (QtsTable &table) const
 Serialization helper: Start a new binary table. More...
 
- Protected Attributes inherited from QtsAbstractTable
bool _isValid
 Validity flag. More...
 
QtsTableId _tableId
 Table id, can be modified by subclasses. More...
 

Detailed Description

The MPEG-defined Program Map Table (PMT).

Member Typedef Documentation

◆ StreamList

Describes the list of stream in the PMT.

Constructor & Destructor Documentation

◆ QtsProgramMapTable() [1/2]

QtsProgramMapTable::QtsProgramMapTable ( quint8  version = 0,
bool  isCurrent = true,
quint16  sid = 0,
QtsPid  pcr = QTS_PID_NULL 
)

Default constructor.

Parameters
[in]versionTable version.
[in]isCurrentTrue if the table is "current", false if it is "next".
[in]sidService id.
[in]pcrPID for PCR data.

◆ QtsProgramMapTable() [2/2]

QtsProgramMapTable::QtsProgramMapTable ( const QtsTable table)

Constructor from a binary table.

Parameters
[in]tableThe table to deserialize.

Member Function Documentation

◆ serialize()

bool QtsProgramMapTable::serialize ( QtsTable table) const
virtual

This abstract method serializes a table.

Implementation required by QtsAbstractTable.

Parameters
[out]tableReplaced with a binary representation of this object.
Returns
True on success, false on error (invalid table, data too large, etc.)

Implements QtsAbstractTable.

◆ deserialize()

bool QtsProgramMapTable::deserialize ( const QtsTable table)
virtual

This abstract method deserializes a binary table.

Implementation required by QtsAbstractTable.

Parameters
[out]tableBinary table to deserialize.
Returns
True on success, false on error (invalid data, etc.)

Implements QtsAbstractTable.

Member Data Documentation

◆ serviceId

quint16 QtsProgramMapTable::serviceId

Service id aka "program_number".

◆ pcrPid

QtsPid QtsProgramMapTable::pcrPid

PID for PCR data.

◆ descs

QtsDescriptorList QtsProgramMapTable::descs

Program-level descriptor list.

◆ streams

StreamList QtsProgramMapTable::streams

List of elementary streams in the service.


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