#include "swresample_internal.h"
#include "libavutil/cpu.h"
#include "libavutil/audioconvert.h"
Go to the source code of this file.
Typedefs | |
| typedef struct AudioConvert | AudioConvert |
Functions | |
| AudioConvert * | swri_audio_convert_alloc (enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, const int *ch_map, int flags) |
| Create an audio sample format converter context. | |
| void | swri_audio_convert_free (AudioConvert **ctx) |
| Free audio sample format converter context. | |
| int | swri_audio_convert (AudioConvert *ctx, AudioData *out, AudioData *in, int len) |
| Convert between audio sample formats. | |
Definition in file audioconvert.h.
| typedef struct AudioConvert AudioConvert |
Definition at line 37 of file audioconvert.h.
| int swri_audio_convert | ( | AudioConvert * | ctx, | |
| AudioData * | out, | |||
| AudioData * | in, | |||
| int | len | |||
| ) |
Convert between audio sample formats.
| [in] | out | array of output buffers for each channel. set to NULL to ignore processing of the given channel. |
| [in] | in | array of input buffers for each channel |
| len | length of audio frame size (measured in samples) |
Referenced by swr_convert().
| AudioConvert* swri_audio_convert_alloc | ( | enum AVSampleFormat | out_fmt, | |
| enum AVSampleFormat | in_fmt, | |||
| int | channels, | |||
| const int * | ch_map, | |||
| int | flags | |||
| ) |
Create an audio sample format converter context.
| out_fmt | Output sample format | |
| in_fmt | Input sample format | |
| channels | Number of channels | |
| flags | See AV_CPU_FLAG_xx | |
| ch_map | list of the channels id to pick from the source stream, NULL if all channels must be selected |
Referenced by swr_init().
| void swri_audio_convert_free | ( | AudioConvert ** | ctx | ) |
Free audio sample format converter context.
and set the pointer to NULL
Referenced by swr_free(), and swr_init().
1.5.8