Gnash
0.8.11dev
|
FFMPEG based AudioDecoder. More...
#include <AudioDecoderFfmpeg.h>
Public Member Functions | |
AudioDecoderFfmpeg (const AudioInfo &info) | |
AudioDecoderFfmpeg (SoundInfo &info) | |
~AudioDecoderFfmpeg () | |
std::uint8_t * | decode (const std::uint8_t *input, std::uint32_t inputSize, std::uint32_t &outputSize, std::uint32_t &decodedBytes) |
Decodes a frame and returns a pointer to the data. More... | |
std::uint8_t * | decode (const EncodedAudioFrame &af, std::uint32_t &outputSize) |
Decodes an EncodedAudioFrame and returns a pointer to the decoded data. More... | |
![]() | |
AudioDecoder () | |
virtual | ~AudioDecoder () |
FFMPEG based AudioDecoder.
gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg | ( | const AudioInfo & | info | ) |
info | AudioInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error. |
References _, gnash::media::AudioInfo::codec, gnash::media::CODEC_TYPE_CUSTOM, gnash::log_debug(), and gnash::media::AudioInfo::type.
gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg | ( | SoundInfo & | info | ) |
info | SoundInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error. |
References _, and gnash::log_debug().
gnash::media::ffmpeg::AudioDecoderFfmpeg::~AudioDecoderFfmpeg | ( | ) |
References _, gnash::media::AUDIO_CODEC_AAC, gnash::media::AUDIO_CODEC_ADPCM, gnash::media::AUDIO_CODEC_MP3, gnash::media::AUDIO_CODEC_NELLYMOSER, gnash::media::AUDIO_CODEC_RAW, gnash::media::AUDIO_CODEC_UNCOMPRESSED, gnash::media::AudioInfo::codec, gnash::media::CODEC_TYPE_CUSTOM, gnash::media::CODEC_TYPE_FLASH, CODECID, gnash::media::ffmpeg::ExtraAudioInfoFfmpeg::data, gnash::media::ExtraAudioInfoFlv::data, gnash::media::ffmpeg::ExtraAudioInfoFfmpeg::dataSize, gnash::media::AudioInfo::extra, gnash::media::SoundInfo::getFormat(), gnash::media::SoundInfo::getSampleRate(), gnash::media::SoundInfo::isStereo(), gnash::log_debug(), gnash::media::AudioInfo::sampleRate, gnash::media::AudioInfo::sampleSize, gnash::media::ExtraAudioInfoFlv::size, gnash::media::AudioInfo::stereo, and gnash::media::AudioInfo::type.
|
virtual |
Decodes a frame and returns a pointer to the data.
input | The audio data |
inputSize | The size of the video data |
outputSize | The output size of the video data, is passed by reference. |
decodedData | The amount of bytes that has been decoded when decoding is done, is passed by reference. |
Reimplemented from gnash::media::AudioDecoder.
References _, gnash::log_debug(), gnash::log_error(), and MAX_AUDIO_FRAME_SIZE.
|
virtual |
Decodes an EncodedAudioFrame and returns a pointer to the decoded data.
input | The audio data |
outputSize | The output size of the video data, is passed by reference. |
Reimplemented from gnash::media::AudioDecoder.
References _, gnash::media::EncodedAudioFrame::data, gnash::media::EncodedAudioFrame::dataSize, FRAMEALLOC, gnash::media::ffmpeg::AudioResamplerFfmpeg::init(), gnash::log_debug(), gnash::log_error(), MAX_AUDIO_FRAME_SIZE, and gnash::media::ffmpeg::AudioResamplerFfmpeg::resample().