![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsSignalizationDemux.h>


Public Member Functions | |
| SignalizationDemux (DuckContext &duck) | |
| SignalizationDemux (DuckContext &duck, SignalizationHandlerInterface *handler, std::initializer_list< TID > tids=std::initializer_list< TID >()) | |
| void | addFilteredService (const UString &name) |
| void | addFilteredServiceId (uint16_t sid) |
| bool | addFilteredTableId (TID tid) |
| void | addFilteredTableIds (std::initializer_list< TID > tids) |
| void | addFullFilters () |
| bool | atIntraFrame (PID pid) const |
| CodecType | codecType (PID pid, CodecType deftype=CodecType::UNDEFINED) const |
| void | feedPacket (const TSPacket &pkt) |
| void | getPIDs (PIDSet &pids) const |
| const Service & | getService (uint16_t id) const |
| void | getServiceIds (PID pid, std::set< uint16_t > &services) const |
| void | getServiceIds (std::set< uint16_t > &services) const |
| void | getServices (ServiceList &services) const |
| bool | hasNIT () const |
| bool | hasPAT () const |
| bool | inAnyService (PID pid, std::set< uint16_t > service_ids) const |
| bool | inService (PID pid, uint16_t service_id) const |
| PacketCounter | intraFrameCount (PID pid) const |
| uint8_t | intraFrameFirstCC (PID pid) const |
| uint64_t | intraFrameFirstDTS (PID pid) const |
| PacketCounter | intraFrameFirstIndex (PID pid) const |
| uint64_t | intraFrameFirstPCR (PID pid) const |
| uint64_t | intraFrameFirstPTS (PID pid) const |
| uint8_t | intraFrameLastCC (PID pid) const |
| uint64_t | intraFrameLastDTS (PID pid) const |
| PacketCounter | intraFrameLastIndex (PID pid) const |
| uint64_t | intraFrameLastPCR (PID pid) const |
| uint64_t | intraFrameLastPTS (PID pid) const |
| bool | isFilteredServiceId (uint16_t sid) const |
| bool | isFilteredServiceName (const UString &name) const |
| bool | isFilteredTableId (TID tid) const |
| bool | isScrambled (PID pid) const |
| const NIT & | lastNIT () const |
| const PAT & | lastPAT () const |
| Time | lastUTC () const |
| uint16_t | networkId () const |
| PID | nitPID () const |
| uint16_t | originalNetworkId () const |
| PacketCounter | packetCount (PID pid) const |
| PIDClass | pidClass (PID pid, PIDClass defclass=PIDClass::UNDEFINED) const |
| PacketCounter | pusiCount (PID pid) const |
| uint8_t | pusiFirstCC (PID pid) const |
| uint64_t | pusiFirstDTS (PID pid) const |
| PacketCounter | pusiFirstIndex (PID pid) const |
| uint64_t | pusiFirstPCR (PID pid) const |
| uint64_t | pusiFirstPTS (PID pid) const |
| uint8_t | pusiLastCC (PID pid) const |
| uint64_t | pusiLastDTS (PID pid) const |
| PacketCounter | pusiLastIndex (PID pid) const |
| uint64_t | pusiLastPCR (PID pid) const |
| uint64_t | pusiLastPTS (PID pid) const |
| PID | referencePMTPID (PID pid) const |
| void | removeAllFilteredServices () |
| void | removeFilteredService (const UString &name) |
| void | removeFilteredServiceId (uint16_t sid) |
| bool | removeFilteredTableId (TID tid) |
| void | removeFilteredTableIds (std::initializer_list< TID > tids) |
| void | reset () |
| uint16_t | serviceId (PID pid) const |
| void | setHandler (SignalizationHandlerInterface *handler) |
| uint8_t | streamType (PID pid, uint8_t deftype=ST_NULL) const |
| uint16_t | transportStreamId () const |
General-purpose signalization demux.
|
explicit |
Constructor for full services and PID's analysis.
All signalization is demuxed. A full map of services and PID's is internally built. This is the typical constructor to use the application only needs to query the structure of services and PID's. It is still possible to add a handler for signalization tables later.
When the demux is reset, the full filtered are restored.
| [in,out] | duck | TSDuck execution context. The reference is kept inside the demux. Contextual information (such as standards) are accumulated in the context from demuxed sections. |
|
explicit |
Constructor with handler and selected signalization.
This is the typical constructor to use when the application wants to be notified of some signalization tables only. The internal map of services and PID's may be incomplete, depending on the selected signalization.
| [in,out] | duck | TSDuck execution context. The reference is kept inside the demux. Contextual information (such as standards) are accumulated in the context from demuxed sections. |
| [in] | handler | The object to invoke when a new complete signalization table is extracted. |
| [in] | tids | The set of TID's to demux. Unsupported table ids are ignored. If TID_PMT is specified, all PMT's are filtered. To filter PMT's for selected services, use addServiceId(). |
| void ts::SignalizationDemux::feedPacket | ( | const TSPacket & | pkt | ) |
This method feeds the demux with a TS packet.
| [in] | pkt | A TS packet. |
|
inline |
Replace the signalization handler.
| [in] | handler | The new handler. |
| void ts::SignalizationDemux::reset | ( | ) |
Reset the demux, remove all signalization filters.
If this object was built using the first constructor (one parameter), full filtering is reset to its default state.
| void ts::SignalizationDemux::addFullFilters | ( | ) |
| bool ts::SignalizationDemux::addFilteredTableId | ( | TID | tid | ) |
Add a signalization table id to filter.
| [in] | tid | The table id to add. Unsupported table ids are ignored. If TID_PMT is specified, all PMT's are filtered. To filter PMT's for selected services, use addServiceId(). |
| void ts::SignalizationDemux::addFilteredTableIds | ( | std::initializer_list< TID > | tids | ) |
Add signalization table ids to filter.
| [in] | tids | The table ids to add. |
| bool ts::SignalizationDemux::removeFilteredTableId | ( | TID | tid | ) |
Remove a signalization table id to filter.
| [in] | tid | The table id to remove. Unsupported table ids are ignored. |
| void ts::SignalizationDemux::removeFilteredTableIds | ( | std::initializer_list< TID > | tids | ) |
Remove signalization table ids to filter.
| [in] | tids | The table ids to remove. |
|
inline |
Check if a signalization table id is filtered.
| [in] | tid | The table id to check. |
| void ts::SignalizationDemux::addFilteredServiceId | ( | uint16_t | sid | ) |
Add a service id to filter.
| [in] | sid | The service id to add. |
| void ts::SignalizationDemux::removeFilteredServiceId | ( | uint16_t | sid | ) |
Remove a service id to filter.
| [in] | sid | The service id to remove. |
|
inline |
Check if a service id is filtered.
| [in] | sid | The service id to check. |
| void ts::SignalizationDemux::removeAllFilteredServices | ( | ) |
Remove all services to filter.
| void ts::SignalizationDemux::addFilteredService | ( | const UString & | name | ) |
Add a service to filter, by name or by id.
| [in] | name | The service name or id to add. |
| void ts::SignalizationDemux::removeFilteredService | ( | const UString & | name | ) |
Remove a service to filter, by name or by id.
| [in] | name | The service name or id to remove. |
| bool ts::SignalizationDemux::isFilteredServiceName | ( | const UString & | name | ) | const |
Check if a service name is filtered.
| [in] | name | The service name or id to check. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the transport stream id.
|
inline |
Get the original network id (from the SDT).
|
inline |
Get the actual network id (from the NIT).
| PID ts::SignalizationDemux::nitPID | ( | ) | const |
|
inline |
Get the last UTC time from a TOT/TDT (DVB, ISDB) or STT (ATSC).
| void ts::SignalizationDemux::getServiceIds | ( | std::set< uint16_t > & | services | ) | const |
Get the list of all service ids in the TS.
| [out] | services | The set of all services ids in the TS, as found so far. |
| void ts::SignalizationDemux::getServices | ( | ServiceList & | services | ) | const |
Get the list of all services in the TS.
| [out] | services | The list of all services in the TS, as found so far. |
| const Service & ts::SignalizationDemux::getService | ( | uint16_t | id | ) | const |
| void ts::SignalizationDemux::getPIDs | ( | PIDSet & | pids | ) | const |
| PIDClass ts::SignalizationDemux::pidClass | ( | PID | pid, |
| PIDClass | defclass = PIDClass::UNDEFINED ) const |
| CodecType ts::SignalizationDemux::codecType | ( | PID | pid, |
| CodecType | deftype = CodecType::UNDEFINED ) const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool ts::SignalizationDemux::atIntraFrame | ( | PID | pid | ) | const |
| bool ts::SignalizationDemux::inService | ( | PID | pid, |
| uint16_t | service_id ) const |
| bool ts::SignalizationDemux::inAnyService | ( | PID | pid, |
| std::set< uint16_t > | service_ids ) const |
| uint16_t ts::SignalizationDemux::serviceId | ( | PID | pid | ) | const |
| void ts::SignalizationDemux::getServiceIds | ( | PID | pid, |
| std::set< uint16_t > & | services ) const |