TSDuck v3.40-4025
MPEG Transport Stream Toolkit
|
This class maps PID's with CA system ids. More...
#include <tsCASMapper.h>
Public Member Functions | |
CASMapper (DuckContext &duck) | |
Constructor. | |
CASID | casId (PID pid) const |
Get the CAS id of a CA PID (ECM or EMM). | |
void | feedPacket (const TSPacket &pkt) |
This method feeds the CAS mapper with a TS packet. | |
bool | getCADescriptor (PID pid, CADescriptorPtr &desc) const |
Get the CA_descriptor which describes a CA PID (ECM or EMM). | |
bool | isECM (PID pid) const |
Check if a PID carries ECM's. | |
bool | isEMM (PID pid) const |
Check if a PID carries EMM's. | |
bool | knownPID (PID pid) const |
Check if a PID is a known CA PID. | |
void | reset () |
Reset the CAS mapper. | |
void | setCurrentNext (bool current, bool next) |
Filter PSI tables based on current/next indicator. | |
void | trackInvalidSectionVersions (bool on) |
Track / untrack invalid section version numbers. | |
This class maps PID's with CA system ids.
All packets are passed through this object. It tracks the location of all EMM and ECM PID's and records the corresponding CAS attributes.
ts::CASMapper::CASMapper | ( | DuckContext & | duck | ) |
Constructor.
[in,out] | duck | TSDuck execution context. The reference is kept inside this object. |
|
inline |
This method feeds the CAS mapper with a TS packet.
[in] | pkt | A new transport stream packet. |
|
inline |
Filter PSI tables based on current/next indicator.
[in] | current | Use "current" tables. This is true by default. |
[in] | next | Use "next" tables. This is false by default. |
|
inline |
Track / untrack invalid section version numbers.
By default, if a section version does not change, the section is ignored. When this tracking is enabled, the content of the sections are tracked and a table is demuxed when a section version does not change but the content changes. This is considered as an error according to MPEG rules.
[in] | on | Track invalid section versions. This is false by default. |
|
inline |
Check if a PID is a known CA PID.
[in] | pid | A PID to check. |
Get the CAS id of a CA PID (ECM or EMM).
[in] | pid | A PID to check. |
bool ts::CASMapper::isECM | ( | PID | pid | ) | const |
Check if a PID carries ECM's.
[in] | pid | A PID to check. |
bool ts::CASMapper::isEMM | ( | PID | pid | ) | const |
Check if a PID carries EMM's.
[in] | pid | A PID to check. |
bool ts::CASMapper::getCADescriptor | ( | PID | pid, |
CADescriptorPtr & | desc | ||
) | const |
Get the CA_descriptor which describes a CA PID (ECM or EMM).
[in] | pid | A PID to check. |
[out] | desc | A safe pointer to the associated CA_descriptor. |