|
Gnash
0.8.11dev
|
FFMPEG based AudioResampler. More...
#include <AudioResamplerFfmpeg.h>
Public Member Functions | |
| DSOEXPORT | AudioResamplerFfmpeg () |
| DSOEXPORT | ~AudioResamplerFfmpeg () |
| DSOEXPORT bool | init (AVCodecContext *ctx) |
| Initializes the resampler. More... | |
| DSOEXPORT int | resample (std::uint8_t **input, int plane_size, int samples, std::uint8_t **output) |
| Resamples audio. More... | |
FFMPEG based AudioResampler.
This class is used to provide an easy interface to libavcodecs audio resampler.
| gnash::media::ffmpeg::AudioResamplerFfmpeg::AudioResamplerFfmpeg | ( | ) |
| gnash::media::ffmpeg::AudioResamplerFfmpeg::~AudioResamplerFfmpeg | ( | ) |
| bool gnash::media::ffmpeg::AudioResamplerFfmpeg::init | ( | AVCodecContext * | ctx | ) |
Initializes the resampler.
| ctx | The audio format container. |
Referenced by gnash::media::ffmpeg::AudioDecoderFfmpeg::decode().
| int gnash::media::ffmpeg::AudioResamplerFfmpeg::resample | ( | std::uint8_t ** | input, |
| int | plane_size, | ||
| int | samples, | ||
| std::uint8_t ** | output | ||
| ) |
Resamples audio.
| input | A pointer to the audio data that needs resampling |
| plane_size | Input plane/line size |
| samples | Number of samples in the audio |
| output | A pointer to where the resampled output should be placed |
References MAX_AUDIO_FRAME_SIZE, and UNUSED.
Referenced by gnash::media::ffmpeg::AudioDecoderFfmpeg::decode().
1.8.12