TSDuck v3.40-3965
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 stream. | |
CodecType | getCodec (const DuckContext &duck) const |
Try to determine the codec which is used in the 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 an elementary stream carries audio. | |
bool | isSubtitles (const DuckContext &duck) const |
Check if an elementary stream carries subtitles. | |
bool | isVideo (const DuckContext &duck) const |
Check if an elementary stream carries video. | |
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 an 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 an 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 an 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. |
PIDClass ts::PMT::Stream::getClass | ( | const DuckContext & | duck | ) | const |
Get the PID class of the 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 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.