Gnash
0.8.11dev
|
GST based AudioDecoder. More...
#include <AudioDecoderGst.h>
Public Member Functions | |
AudioDecoderGst (const AudioInfo &info) | |
AudioDecoderGst (SoundInfo &info) | |
~AudioDecoderGst () | |
std::uint8_t * | decode (const std::uint8_t *input, std::uint32_t inputSize, std::uint32_t &outputSize, std::uint32_t &decodedData) |
Decodes a frame and returns a pointer to the data. More... | |
std::uint8_t * | decode (const EncodedAudioFrame &ef, std::uint32_t &outputSize) |
Decodes an EncodedAudioFrame and returns a pointer to the decoded data. More... | |
![]() | |
AudioDecoder () | |
virtual | ~AudioDecoder () |
GST based AudioDecoder.
gnash::media::gst::AudioDecoderGst::AudioDecoderGst | ( | const AudioInfo & | info | ) |
References _, gnash::media::AUDIO_CODEC_AAC, gnash::media::AUDIO_CODEC_ADPCM, gnash::media::AUDIO_CODEC_MP3, gnash::media::AUDIO_CODEC_NELLYMOSER, gnash::media::gst::ExtraInfoGst::caps, gnash::media::AudioInfo::codec, gnash::media::CODEC_TYPE_FLASH, gnash::media::ExtraAudioInfoFlv::data, gnash::media::AudioInfo::extra, gnash::log_error(), gnash::media::AudioInfo::sampleRate, gnash::media::ExtraAudioInfoFlv::size, gnash::media::AudioInfo::stereo, and gnash::media::AudioInfo::type.
gnash::media::gst::AudioDecoderGst::AudioDecoderGst | ( | SoundInfo & | info | ) |
gnash::media::gst::AudioDecoderGst::~AudioDecoderGst | ( | ) |
|
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_error(), and swfdec_gst_decoder_push().
|
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::gst::EncodedExtraGstData::buffer, gnash::media::EncodedAudioFrame::data, gnash::media::EncodedAudioFrame::dataSize, gnash::media::EncodedAudioFrame::extradata, gnash::log_error(), and swfdec_gst_decoder_push().