DASH Media Packaging SDK
|
#include <aac_audio_specific_config.h>
Public Member Functions | |
virtual bool | Parse (const std::vector< uint8_t > &data) |
virtual bool | ConvertToADTS (std::vector< uint8_t > *buffer) const |
AudioObjectType | GetAudioObjectType () const |
uint32_t | GetSamplesPerSecond () const |
uint8_t | GetNumChannels () const |
bool | sbr_present () const |
void | set_sbr_present (bool sbr_present) |
Indicate whether SBR is present in the stream. | |
Static Public Attributes | |
static const size_t | kADTSHeaderSize = 7 |
Size in bytes of the ADTS header added by ConvertEsdsToADTS(). | |
This class parses the AAC information from decoder specific information embedded in the esds box in an ISO BMFF file. Please refer to ISO 14496 Part 3 Table 1.13 - Syntax of AudioSpecificConfig for more details.
Definition at line 23 of file aac_audio_specific_config.h.
|
virtual |
Convert a raw AAC frame into an AAC frame with an ADTS header.
[in,out] | buffer | contains the raw AAC frame on input, and the converted frame on output if successful; it is untouched on failure. |
Definition at line 124 of file aac_audio_specific_config.cc.
AACAudioSpecificConfig::AudioObjectType shaka::media::AACAudioSpecificConfig::GetAudioObjectType | ( | ) | const |
Definition at line 150 of file aac_audio_specific_config.cc.
uint8_t shaka::media::AACAudioSpecificConfig::GetNumChannels | ( | ) | const |
Definition at line 172 of file aac_audio_specific_config.cc.
uint32_t shaka::media::AACAudioSpecificConfig::GetSamplesPerSecond | ( | ) | const |
Definition at line 158 of file aac_audio_specific_config.cc.
|
virtual |
Parse the AAC config from decoder specific information embedded in an esds box. The function will parse the data and get the ElementaryStreamDescriptor, then it will parse the ElementaryStreamDescriptor to get audio stream configurations.
data | contains decoder specific information from an esds box. |
Definition at line 32 of file aac_audio_specific_config.cc.
|
inline |
Definition at line 109 of file aac_audio_specific_config.h.