AC-3 (DD) and Enhanced-AC-3 (DD+) audio attributes. More...
Public Member Functions | |
AC3Attributes () | |
Default constructor. | |
UString | audioCodingDescription () const |
String representation of audio coding mode. More... | |
int | audioCodingMode () const |
Audio coding mode ("acmod"). More... | |
int | bitstreamId () const |
Bitstream identification ("bsid"). More... | |
int | bitstreamMode () const |
Bitstream mode ("bsmod", metadata info). More... | |
UString | bitstreamModeDescription () const |
String representation of bitstream mode. More... | |
uint8_t | componentType () const |
Rebuild a component_type for AC-3 descriptors. More... | |
bool | dolbySurround () const |
Check if this is Dolby Surround. More... | |
void | invalidate () |
Invalidate the content of this instance. More... | |
bool | isEnhancedAC3 () const |
Check if this is Enhanced-AC-3. More... | |
bool | isValid () const |
Check if the values in the object are valid. More... | |
virtual bool | moreBinaryData (const uint8_t *, size_t) override |
Provides an audio/video binary data to be analyzed by this instance. More... | |
int | samplingFrequency () const |
Sampling frequency in Hz. More... | |
virtual UString | toString () const override |
Convert to a string object. More... | |
Protected Attributes | |
bool | _is_valid |
A flag which indicates if the content of this object is valid. More... | |
AC-3 (DD) and Enhanced-AC-3 (DD+) audio attributes.
See ETSI TS 102 366 for the specification and encoding of AC-3 and Enhanced-AC-3.
An AC3Attributes object is built by transmitting audio frames from PES payloads. Initially, an AC3Attributes object 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 |
Check if this is Enhanced-AC-3.
|
inline |
Bitstream identification ("bsid").
|
inline |
Bitstream mode ("bsmod", metadata info).
UString ts::AC3Attributes::bitstreamModeDescription | ( | ) | const |
String representation of bitstream mode.
|
inline |
Audio coding mode ("acmod").
UString ts::AC3Attributes::audioCodingDescription | ( | ) | const |
String representation of audio coding mode.
|
inline |
Sampling frequency in Hz.
|
inline |
Check if this is Dolby Surround.
uint8_t ts::AC3Attributes::componentType | ( | ) | const |
Rebuild a component_type for AC-3 descriptors.
|
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.