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

The MPEG-defined Program Association Table (PAT). More...

Inheritance diagram for QtsProgramAssociationTable:
QtsAbstractLongTable QtsAbstractTable

Classes

struct  ServiceEntry
 Describes a service entry in the PAT. More...
 

Public Types

typedef QList< ServiceEntryServiceList
 Describe the list of services in the PAT. More...
 

Public Member Functions

 QtsProgramAssociationTable (quint8 version=0, bool isCurrent=true, quint16 tsId=0, QtsPid nit=QTS_PID_NIT)
 Default constructor. More...
 
 QtsProgramAssociationTable (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

QtsPid nitPid
 PID of the Network Information Table. More...
 
ServiceList serviceList
 List of services in the transport stream. More...
 
quint16 transportStreamId
 Transport stream id. 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 Association Table (PAT).

Member Typedef Documentation

◆ ServiceList

Describe the list of services in the PAT.

Constructor & Destructor Documentation

◆ QtsProgramAssociationTable() [1/2]

QtsProgramAssociationTable::QtsProgramAssociationTable ( quint8  version = 0,
bool  isCurrent = true,
quint16  tsId = 0,
QtsPid  nit = QTS_PID_NIT 
)

Default constructor.

Parameters
[in]versionTable version.
[in]isCurrentTrue if the table is "current", false if it is "next".
[in]tsIdTransport stream id.
[in]nitPID of the Network Information Table.

◆ QtsProgramAssociationTable() [2/2]

QtsProgramAssociationTable::QtsProgramAssociationTable ( const QtsTable table)

Constructor from a binary table.

Parameters
[in]tableThe table to deserialize.

Member Function Documentation

◆ serialize()

bool QtsProgramAssociationTable::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 QtsProgramAssociationTable::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

◆ transportStreamId

quint16 QtsProgramAssociationTable::transportStreamId

Transport stream id.

◆ nitPid

QtsPid QtsProgramAssociationTable::nitPid

PID of the Network Information Table.

◆ serviceList

ServiceList QtsProgramAssociationTable::serviceList

List of services in the transport stream.


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