Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::media::gst::AudioDecoderGst Class Reference

GST based AudioDecoder. More...

#include <AudioDecoderGst.h>

Inheritance diagram for gnash::media::gst::AudioDecoderGst:
gnash::media::AudioDecoder

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...
 
- Public Member Functions inherited from gnash::media::AudioDecoder
 AudioDecoder ()
 
virtual ~AudioDecoder ()
 

Detailed Description

GST based AudioDecoder.

Constructor & Destructor Documentation

§ AudioDecoderGst() [1/2]

gnash::media::gst::AudioDecoderGst::AudioDecoderGst ( const AudioInfo info)

§ AudioDecoderGst() [2/2]

gnash::media::gst::AudioDecoderGst::AudioDecoderGst ( SoundInfo info)

§ ~AudioDecoderGst()

gnash::media::gst::AudioDecoderGst::~AudioDecoderGst ( )

Member Function Documentation

§ decode() [1/2]

std::uint8_t * gnash::media::gst::AudioDecoderGst::decode ( const std::uint8_t *  input,
std::uint32_t  inputSize,
std::uint32_t &  outputSize,
std::uint32_t &  decodedData 
)
virtual

Decodes a frame and returns a pointer to the data.

Parameters
inputThe audio data
inputSizeThe size of the video data
outputSizeThe output size of the video data, is passed by reference.
decodedDataThe amount of bytes that has been decoded when decoding is done, is passed by reference.
Returns
a pointer to the decoded data, or NULL if decoding fails. The caller owns the decoded data, which was allocated with new [].
Todo:
return a SimpleBuffer by unique_ptr

Reimplemented from gnash::media::AudioDecoder.

References _, gnash::log_error(), and swfdec_gst_decoder_push().

§ decode() [2/2]

std::uint8_t * gnash::media::gst::AudioDecoderGst::decode ( const EncodedAudioFrame input,
std::uint32_t &  outputSize 
)
virtual

Decodes an EncodedAudioFrame and returns a pointer to the decoded data.

Parameters
inputThe audio data
outputSizeThe output size of the video data, is passed by reference.
Returns
a pointer to the decoded data, or NULL if decoding fails. The caller owns the decoded data, which was allocated with new [].
Todo:
return a SimpleBuffer by unique_ptr

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().


The documentation for this class was generated from the following files: