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