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

A QtsSectionDemux which extracts MPEG tables without external handler. More...

Inheritance diagram for QtsStandaloneTableDemux:
QtsSectionDemux QtsTableHandlerInterface QtsDemux

Public Member Functions

 QtsStandaloneTableDemux (const QtsPidSet &pidFilter=QtsNoPid)
 Constructor. More...
 
virtual void reset () Q_DECL_OVERRIDE
 Reset the analysis context (partially built sections and tables). More...
 
virtual void resetPid (QtsPid pid) Q_DECL_OVERRIDE
 Reset the analysis context for one single PID. More...
 
const QtsTablePtr tableAt (int index) const
 Get a pointer to a demuxed table. More...
 
int tableCount () const
 Get the number of demuxed tables. More...
 
- Public Member Functions inherited from QtsSectionDemux
 QtsSectionDemux (QtsTableHandlerInterface *tableHandler=0, QtsSectionHandlerInterface *sectionHandler=0, const QtsPidSet &pidFilter=QtsNoPid)
 Constructor. More...
 
void getStatus (Status &status) const
 Get the current status of the demux. More...
 
bool hasErrors () const
 Check if the demux has errors. More...
 
void setSectionHandler (QtsSectionHandlerInterface *handler)
 Set the section handler. More...
 
void setTableHandler (QtsTableHandlerInterface *handler)
 Set the table handler. More...
 
- Public Member Functions inherited from QtsDemux
 QtsDemux (const QtsPidSet &pidFilter=QtsAllPids)
 Constructor. More...
 
virtual ~QtsDemux ()
 Virtual destructor. More...
 
virtual void addPid (QtsPid pid)
 Add a PID to filter. More...
 
void feedPacket (const QtsTsPacket &packet)
 Feed the demux with a TS packet. More...
 
int filteredPidCount () const
 Get the number of PID's which are filtered by the demux. More...
 
qint64 lastPcr () const
 Get the last PCR found in the stream. More...
 
QtsPacketCounter packetCount () const
 Get the number of process TS packets. More...
 
virtual void removePid (QtsPid pid)
 Remove a PID to filter. More...
 
void resetPacketCount ()
 Reset the number of process TS packets. More...
 
virtual void setPidFilter (const QtsPidSet &pidFilter)
 Set the list of PID's to filter. More...
 

Private Member Functions

virtual void handleTable (QtsSectionDemux &demux, const QtsTable &table) Q_DECL_OVERRIDE
 This hook is invoked when a complete table is available. More...
 
void setSectionHandler (QtsSectionHandlerInterface *handler)
 
void setTableHandler (QtsTableHandlerInterface *handler)
 
- Private Member Functions inherited from QtsTableHandlerInterface
virtual ~QtsTableHandlerInterface ()
 Virtual destructor. More...
 

Private Attributes

QtsTablePtrVector _tables
 Demuxed tables. More...
 

Detailed Description

A QtsSectionDemux which extracts MPEG tables without external handler.

Constructor & Destructor Documentation

◆ QtsStandaloneTableDemux()

QtsStandaloneTableDemux::QtsStandaloneTableDemux ( const QtsPidSet pidFilter = QtsNoPid)

Constructor.

Parameters
[in]pidFilterSet of PID's to filter. Default: none.

Member Function Documentation

◆ tableCount()

int QtsStandaloneTableDemux::tableCount ( ) const
inline

Get the number of demuxed tables.

Returns
The number of demuxed tables.

◆ tableAt()

const QtsTablePtr QtsStandaloneTableDemux::tableAt ( int  index) const
inline

Get a pointer to a demuxed table.

Parameters
[in]indexIndex of demuxed table, in the range 0 to tableCount().
Returns
A pointer to the demuxed table at index.

◆ reset()

void QtsStandaloneTableDemux::reset ( )
virtual

Reset the analysis context (partially built sections and tables).

Useful when the transport stream changes. The PID filter and the handlers are not modified. Inherited from QtsSectionDemux

Reimplemented from QtsSectionDemux.

◆ resetPid()

void QtsStandaloneTableDemux::resetPid ( QtsPid  pid)
virtual

Reset the analysis context for one single PID.

Inherited from QtsSectionDemux

Parameters
[in]pidPID to reset.

Reimplemented from QtsSectionDemux.

◆ handleTable()

void QtsStandaloneTableDemux::handleTable ( QtsSectionDemux demux,
const QtsTable table 
)
privatevirtual

This hook is invoked when a complete table is available.

Tables with long sections are reported only when a new version is available.

Parameters
[in,out]demuxThe section demux.
[in]tableThe table.

Implements QtsTableHandlerInterface.

◆ setTableHandler()

void QtsStandaloneTableDemux::setTableHandler ( QtsTableHandlerInterface handler)
private

◆ setSectionHandler()

void QtsStandaloneTableDemux::setSectionHandler ( QtsSectionHandlerInterface handler)
private

Member Data Documentation

◆ _tables

QtsTablePtrVector QtsStandaloneTableDemux::_tables
private

Demuxed tables.


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