#include <aac_audio_specific_config.h>
|
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.
uint8_t shaka::media::AACAudioSpecificConfig::audio_object_type |
( |
| ) |
const |
|
inline |
bool shaka::media::AACAudioSpecificConfig::ConvertToADTS |
( |
std::vector< uint8_t > * |
buffer | ) |
const |
|
virtual |
Convert a raw AAC frame into an AAC frame with an ADTS header.
- Parameters
-
[in,out] | buffer | contains the raw AAC frame on input, and the converted frame on output if successful; it is untouched on failure. |
- Returns
- true on success, false otherwise.
Definition at line 128 of file aac_audio_specific_config.cc.
uint32_t shaka::media::AACAudioSpecificConfig::frequency |
( |
| ) |
const |
|
inline |
uint8_t shaka::media::AACAudioSpecificConfig::GetNumChannels |
( |
bool |
sbr_in_mimetype | ) |
const |
- Parameters
-
sbr_in_mimetype | indicates whether SBR mode is specified in the mimetype, i.e. codecs parameter contains mp4a.40.5. |
- Returns
- Number of channels for the AAC stream.
Definition at line 168 of file aac_audio_specific_config.cc.
uint32_t shaka::media::AACAudioSpecificConfig::GetOutputSamplesPerSecond |
( |
bool |
sbr_in_mimetype | ) |
const |
- Parameters
-
sbr_in_mimetype | indicates whether SBR mode is specified in the mimetype, i.e. codecs parameter contains mp4a.40.5. |
- Returns
- Output sample rate for the AAC stream.
Definition at line 153 of file aac_audio_specific_config.cc.
uint8_t shaka::media::AACAudioSpecificConfig::num_channels |
( |
| ) |
const |
|
inline |
bool shaka::media::AACAudioSpecificConfig::Parse |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
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.
- Parameters
-
data | contains decoder specific information from an esds box. |
- Returns
- true if successful, false otherwise.
Definition at line 39 of file aac_audio_specific_config.cc.
The documentation for this class was generated from the following files: