FFmpeg
|
Audio format conversion routines. More...
Include dependency graph for libavcodec/audioconvert.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedefs | |
typedef struct AVAudioConvert | AVAudioConvert |
Functions | |
AVAudioConvert * | av_audio_convert_alloc (enum AVSampleFormat out_fmt, int out_channels, enum AVSampleFormat in_fmt, int in_channels, const float *matrix, int flags) |
Create an audio sample format converter context. More... | |
void | av_audio_convert_free (AVAudioConvert *ctx) |
Free audio sample format converter context. More... | |
int | av_audio_convert (AVAudioConvert *ctx, void *const out[6], const int out_stride[6], const void *const in[6], const int in_stride[6], int len) |
Convert between audio sample formats. More... | |
Detailed Description
Audio format conversion routines.
Definition in file libavcodec/audioconvert.h.
Typedef Documentation
typedef struct AVAudioConvert AVAudioConvert |
Definition at line 37 of file libavcodec/audioconvert.h.
Function Documentation
int av_audio_convert | ( | AVAudioConvert * | ctx, |
void *const | out[6], | ||
const int | out_stride[6], | ||
const void *const | in[6], | ||
const int | in_stride[6], | ||
int | len | ||
) |
Convert between audio sample formats.
- Parameters
-
[in] out array of output buffers for each channel. set to NULL to ignore processing of the given channel. [in] out_stride distance between consecutive output samples (measured in bytes) [in] in array of input buffers for each channel [in] in_stride distance between consecutive input samples (measured in bytes) len length of audio frame size (measured in samples)
Definition at line 61 of file libavcodec/audioconvert.c.
AVAudioConvert* av_audio_convert_alloc | ( | enum AVSampleFormat | out_fmt, |
int | out_channels, | ||
enum AVSampleFormat | in_fmt, | ||
int | in_channels, | ||
const float * | matrix, | ||
int | flags | ||
) |
Create an audio sample format converter context.
- Parameters
-
out_fmt Output sample format out_channels Number of output channels in_fmt Input sample format in_channels Number of input channels [in] matrix Channel mixing matrix (of dimension in_channel*out_channels). Set to NULL to ignore. flags See AV_CPU_FLAG_xx
- Returns
- NULL on error
Definition at line 40 of file libavcodec/audioconvert.c.
void av_audio_convert_free | ( | AVAudioConvert * | ctx | ) |
Free audio sample format converter context.
Definition at line 56 of file libavcodec/audioconvert.c.
Generated on Mon Nov 18 2024 06:52:04 for FFmpeg by 1.8.11