Definition at line 18 of file audio_header.h.
◆ GetAudioSpecificConfig()
virtual void shaka::media::mp2t::AudioHeader::GetAudioSpecificConfig |
( |
std::vector< uint8_t > * |
buffer | ) |
const |
|
pure virtual |
◆ GetFrameSize()
virtual size_t shaka::media::mp2t::AudioHeader::GetFrameSize |
( |
| ) |
const |
|
pure virtual |
◆ GetFrameSizeWithoutParsing()
virtual size_t shaka::media::mp2t::AudioHeader::GetFrameSizeWithoutParsing |
( |
const uint8_t * |
data, |
|
|
size_t |
num_bytes |
|
) |
| const |
|
pure virtual |
◆ GetHeaderSize()
virtual size_t shaka::media::mp2t::AudioHeader::GetHeaderSize |
( |
| ) |
const |
|
pure virtual |
◆ GetMinFrameSize()
virtual size_t shaka::media::mp2t::AudioHeader::GetMinFrameSize |
( |
| ) |
const |
|
pure virtual |
◆ GetNumChannels()
virtual uint8_t shaka::media::mp2t::AudioHeader::GetNumChannels |
( |
| ) |
const |
|
pure virtual |
◆ GetObjectType()
virtual uint8_t shaka::media::mp2t::AudioHeader::GetObjectType |
( |
| ) |
const |
|
pure virtual |
◆ GetSamplesPerFrame()
virtual size_t shaka::media::mp2t::AudioHeader::GetSamplesPerFrame |
( |
| ) |
const |
|
pure virtual |
◆ GetSamplingFrequency()
virtual uint32_t shaka::media::mp2t::AudioHeader::GetSamplingFrequency |
( |
| ) |
const |
|
pure virtual |
◆ IsSyncWord()
virtual bool shaka::media::mp2t::AudioHeader::IsSyncWord |
( |
const uint8_t * |
buf | ) |
const |
|
pure virtual |
◆ Parse()
virtual bool shaka::media::mp2t::AudioHeader::Parse |
( |
const uint8_t * |
audio_frame, |
|
|
size_t |
audio_frame_size |
|
) |
| |
|
pure virtual |
Parse a partial audio frame, extracting the fields within. Only audio frame header / metadata is parsed. The audio_frame_size must contain the full header / metadata.
- Parameters
-
audio_frame | is an input parameter pointing to an audio frame. |
audio_frame_size | is the size, in bytes of the input data. It can be smaller than the actual frame size, but it should not be smaller than the header size. |
- Returns
- true if successful, false otherwise.
Implemented in shaka::media::mp2t::Mpeg1Header, shaka::media::mp2t::AdtsHeader, and shaka::media::mp2t::Ac3Header.
The documentation for this class was generated from the following file: