Public Member Functions

gnash::media::gst::AudioDecoderGst Class Reference

GST based AudioDecoder. More...

#include <AudioDecoderGst.h>

Inheritance diagram for gnash::media::gst::AudioDecoderGst:
Inheritance graph
[legend]
Collaboration diagram for gnash::media::gst::AudioDecoderGst:
Collaboration graph
[legend]

List of all members.

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, bool)
 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.

Detailed Description

GST based AudioDecoder.


Constructor & Destructor Documentation

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

Referenced by AudioDecoderGst().

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

Member Function Documentation

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,
bool  parse 
) [virtual]

Decodes a frame and returns a pointer to the data.

Parameters:
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.
parse Should we parse the audio? Needed for embedded MP3 sounds.
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 auto_ptr

Reimplemented from gnash::media::AudioDecoder.

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.

Parameters:
input The audio data
outputSize The 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 auto_ptr

Reimplemented from gnash::media::AudioDecoder.


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