FFMPEG based AudioDecoder.
More...
#include <AudioDecoderFfmpeg.h>
FFMPEG based AudioDecoder.
gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg |
( |
const AudioInfo & |
info | ) |
|
gnash::media::ffmpeg::AudioDecoderFfmpeg::AudioDecoderFfmpeg |
( |
SoundInfo & |
info | ) |
|
gnash::media::ffmpeg::AudioDecoderFfmpeg::~AudioDecoderFfmpeg |
( |
| ) |
|
std::uint8_t * gnash::media::ffmpeg::AudioDecoderFfmpeg::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
-
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. |
- 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_debug(), gnash::log_error(), and MAX_AUDIO_FRAME_SIZE.
std::uint8_t * gnash::media::ffmpeg::AudioDecoderFfmpeg::decode |
( |
const EncodedAudioFrame & |
input, |
|
|
std::uint32_t & |
outputSize |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: