Shaka Packager SDK
|
#include <aac_audio_specific_config.h>
Public Member Functions | |
virtual bool | Parse (const std::vector< uint8_t > &data) |
virtual bool | ConvertToADTS (const uint8_t *data, size_t data_size, std::vector< uint8_t > *audio_frame) 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 22 of file aac_audio_specific_config.h.
|
virtual |
Convert a raw AAC frame into an AAC frame with an ADTS header.
data | points to the raw AAC frame to be converted. | |
data_size | the size of a raw AAC frame. | |
[out] | audio_frame | contains the converted frame if successful; it is untouched on failure. |
Definition at line 143 of file aac_audio_specific_config.cc.
AACAudioSpecificConfig::AudioObjectType shaka::media::AACAudioSpecificConfig::GetAudioObjectType | ( | ) | const |
Definition at line 175 of file aac_audio_specific_config.cc.
uint8_t shaka::media::AACAudioSpecificConfig::GetNumChannels | ( | ) | const |
Definition at line 197 of file aac_audio_specific_config.cc.
uint32_t shaka::media::AACAudioSpecificConfig::GetSamplesPerSecond | ( | ) | const |
Definition at line 183 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 50 of file aac_audio_specific_config.cc.
|
inline |
Definition at line 111 of file aac_audio_specific_config.h.