Gnash  0.8.10
Public Member Functions
gnash::media::ffmpeg::AudioDecoderFfmpeg Class Reference

FFMPEG based AudioDecoder. More...

#include <AudioDecoderFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::AudioDecoderFfmpeg:
gnash::media::AudioDecoder

List of all members.

Public Member Functions

 AudioDecoderFfmpeg (const AudioInfo &info)
 AudioDecoderFfmpeg (SoundInfo &info)
 ~AudioDecoderFfmpeg ()
boost::uint8_t * decode (const boost::uint8_t *input, boost::uint32_t inputSize, boost::uint32_t &outputSize, boost::uint32_t &decodedBytes)
 Decodes a frame and returns a pointer to the data.
boost::uint8_t * decode (const EncodedAudioFrame &af, boost::uint32_t &outputSize)
 Decodes an EncodedAudioFrame and returns a pointer to the decoded data.

Detailed Description

FFMPEG based AudioDecoder.


Constructor & Destructor Documentation

gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg ( const AudioInfo info)
Parameters:
infoAudioInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error.

References gnash::media::AudioInfo::type, gnash::media::CODEC_TYPE_CUSTOM, _, and gnash::media::AudioInfo::codec.

gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg ( SoundInfo info)
Parameters:
infoSoundInfo class with all the info needed to decode the sound correctly. Throws a MediaException on fatal error.

References _.

gnash::media::ffmpeg::AudioDecoderFfmpeg::~AudioDecoderFfmpeg ( )

Member Function Documentation

boost::uint8_t * gnash::media::ffmpeg::AudioDecoderFfmpeg::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.

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 auto_ptr

Reimplemented from gnash::media::AudioDecoder.

References _, and assert.

boost::uint8_t * gnash::media::ffmpeg::AudioDecoderFfmpeg::decode ( const EncodedAudioFrame input,
boost::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 auto_ptr

Reimplemented from gnash::media::AudioDecoder.

References gnash::media::EncodedAudioFrame::data, and gnash::media::EncodedAudioFrame::dataSize.


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