![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsSectionContext.h>
Public Member Functions | |
| SectionContext (PID pid=PID_NULL, Standards standards=Standards::NONE, CASID casid=CASID_NULL) | |
| virtual CASID | getCAS () const |
| virtual PID | getPID () const |
| virtual Standards | getStandards () const |
A base class to lookup the context of MPEG PSI/SI sections.
The interface of the base class is used to understand the context of a section. When getting a binary section, for instance, it is not always easy to determine the true nature of the section, because the 8-bit table_id can be used by different types of sections. The SectionContext provides the PID, the standards, or CAS id which disambiguate the resolution.
This class can be derived to provide dynamic ways of locating the context.
|
inline |
Constructor.
| [in] | pid | Optional PID. This value is returned by the default implementation of getPID(). |
| [in] | standards | Optional set of standards. This value is returned by the default implementation of getStandards(). |
| [in] | casid | Optional Conditional Access System id. This value is returned by the default implementation of getCAS(). |
|
virtual |
|
virtual |
Get the standards where the section is located. The default implementation returns the standards parameter which was given to the constructor.
|
virtual |
Get the Conditional Access System id in the context where the section is located. The default implementation returns the CASID parameter which was given to the constructor.