TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
Video attributes for MPEG-1 and MPEG-2. More...
#include <tsMPEG2VideoAttributes.h>
Public Member Functions | |
MPEG2VideoAttributes ()=default | |
Default constructor. | |
uint8_t | aspectRatioCode () const |
Get display aspect ratio. | |
UString | aspectRatioName () const |
Get display aspect ratio name. | |
uint8_t | chromaFormat () const |
Get chroma format. | |
UString | chromaFormatName () const |
Get chroma format name. | |
size_t | frameRate () const |
Get frame rate: approximate value per second. | |
size_t | frameRate100 () const |
Get frame rate per 100 seconds. | |
size_t | frameRateDivider () const |
Get frame rate divider. | |
UString | frameRateName () const |
Get frame rate name. | |
size_t | frameRateNumerator () const |
Get frame rate numerator. | |
size_t | horizontalSize () const |
Get video horizontal size in pixels. | |
bool | interlaced () const |
Check if refresh mode is interlaced. | |
void | invalidate () |
Invalidate the content of this instance. | |
bool | isValid () const |
Check if the values in the object are valid. | |
uint32_t | maximumBitRate () const |
Maximum bitrate. | |
virtual bool | moreBinaryData (const uint8_t *, size_t) override |
Provides an audio/video binary data to be analyzed by this instance. | |
bool | progressive () const |
Check if refresh mode is progressive. | |
UString | refreshModeName () const |
Get the refresh mode name. | |
virtual UString | toString () const override |
Convert to a string object. | |
size_t | vbvSize () const |
Video Buffering Verifier size in bits. | |
size_t | verticalSize () const |
Get video vertical size in pixels. | |
Protected Attributes | |
bool | _is_valid = false |
A flag which indicates if the content of this object is valid. | |
Video attributes for MPEG-1 and MPEG-2.
A VideoAttributes object is built by transmitting video units (starting with a 00 00 01 xx start code). The state of the object may change after adding a "sequence header" unit and its following unit. When the later is a "sequence extension" unit, this is MPEG-2 video. Initially, a VideoAttributes is invalid.
|
overridevirtual |
Provides an audio/video binary data to be analyzed by this instance.
The type of data (complete PES payload or some type of "frame" or "access unit") depends on the type of audio/video.
[in] | addr | Address of data to be analyzed. |
[in] | size | Size of data to be analyzed. |
Implements ts::AbstractAudioVideoAttributes.
|
overridevirtual |
Convert to a string object.
Implements ts::StringifyInterface.
|
inline |
Get video horizontal size in pixels.
|
inline |
Get video vertical size in pixels.
|
inline |
Get display aspect ratio.
UString ts::MPEG2VideoAttributes::aspectRatioName | ( | ) | const |
Get display aspect ratio name.
|
inline |
Check if refresh mode is progressive.
|
inline |
Check if refresh mode is interlaced.
UString ts::MPEG2VideoAttributes::refreshModeName | ( | ) | const |
Get the refresh mode name.
|
inline |
Get chroma format.
UString ts::MPEG2VideoAttributes::chromaFormatName | ( | ) | const |
Get chroma format name.
|
inline |
Get frame rate: approximate value per second.
|
inline |
Get frame rate per 100 seconds.
|
inline |
Get frame rate numerator.
|
inline |
Get frame rate divider.
UString ts::MPEG2VideoAttributes::frameRateName | ( | ) | const |
Get frame rate name.
|
inline |
Maximum bitrate.
|
inline |
Video Buffering Verifier size in bits.
|
inlineinherited |
Check if the values in the object are valid.
|
inlineinherited |
Invalidate the content of this instance.
It must be rebuilt using audio/video binary data.
|
protectedinherited |
A flag which indicates if the content of this object is valid.
It is the responsibility of the subclasses to set it.