![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Description of an elementary stream. More...
#include <tsPMT.h>


Public Member Functions | |
| Stream (const AbstractTable *table, uint8_t type=0) | |
| Constructor. | |
| PIDClass | getClass (const DuckContext &duck) const |
| Get the PID class of the elementary stream. | |
| CodecType | getCodec (const DuckContext &duck) const |
| Try to determine the codec which is used in the elementary stream. | |
| bool | getComponentTag (uint8_t &tag) const |
| Look for a component tag in a stream_identifier_descriptor. | |
| bool | isAudio (const DuckContext &duck) const |
| Check if the elementary stream carries audio. | |
| bool | isSubtitles (const DuckContext &duck) const |
| Check if the elementary stream carries subtitles. | |
| bool | isVideo (const DuckContext &duck) const |
| Check if the elementary stream carries video. | |
| UString | language (DuckContext &duck) const |
| Get the first language code in the elementary stream. | |
| bool | matchLanguage (DuckContext &duck, const UString &language) const |
| Check if the elementary stream matches a specified language code. | |
Public Attributes | |
| DescriptorList | descs |
| List of descriptors for this entry, publicly accessible. | |
| size_t | order_hint |
| Preferred insertion index when serializing the table or NPOS if unspecified. | |
| uint8_t | stream_type = 0 |
| Stream type, one of ST_* (eg ts::ST_MPEG2_VIDEO). | |
Description of an elementary stream.
Note: by inheriting from EntryWithDescriptors, there is a public field "DescriptorList descs".
|
explicit |
| bool ts::PMT::Stream::isAudio | ( | const DuckContext & | duck | ) | const |
Check if the elementary stream carries audio.
Does not just look at the stream type. Also analyzes the descriptor list for additional information.
| [in] | duck | TSDuck execution context. |
| bool ts::PMT::Stream::isVideo | ( | const DuckContext & | duck | ) | const |
Check if the elementary stream carries video.
Does not just look at the stream type. Also analyzes the descriptor list for additional information.
| [in] | duck | TSDuck execution context. |
| bool ts::PMT::Stream::isSubtitles | ( | const DuckContext & | duck | ) | const |
Check if the elementary stream carries subtitles.
Does not just look at the stream type. Also analyzes the descriptor list for additional information.
| [in] | duck | TSDuck execution context. |
| UString ts::PMT::Stream::language | ( | DuckContext & | duck | ) | const |
Get the first language code in the elementary stream.
| [in,out] | duck | TSDuck execution context. |
|
inline |
Check if the elementary stream matches a specified language code.
| [in,out] | duck | TSDuck execution context. |
| [in] | language | Language code to search (case insensitive, spaces are ignored). |
| PIDClass ts::PMT::Stream::getClass | ( | const DuckContext & | duck | ) | const |
Get the PID class of the elementary stream.
Look at the stream type and the descriptor list.
| [in] | duck | TSDuck execution context. |
| CodecType ts::PMT::Stream::getCodec | ( | const DuckContext & | duck | ) | const |
Try to determine the codec which is used in the elementary stream.
Look at the stream type and the descriptor list.
| [in] | duck | TSDuck execution context. |
| bool ts::PMT::Stream::getComponentTag | ( | uint8_t & | tag | ) | const |
Look for a component tag in a stream_identifier_descriptor.
| [out] | tag | First component tag found, unmodified if none found. |
|
inherited |
Preferred insertion index when serializing the table or NPOS if unspecified.
This is an informational hint which can be used or ignored.