#include "libavutil/cpu.h"
#include "avcodec.h"
#include "libavutil/audioconvert.h"
Go to the source code of this file.
Typedefs | |
typedef struct AVAudioConvert | AVAudioConvert |
Functions | |
attribute_deprecated void | avcodec_sample_fmt_string (char *buf, int buf_size, int sample_fmt) |
attribute_deprecated const char * | avcodec_get_sample_fmt_name (int sample_fmt) |
attribute_deprecated enum AVSampleFormat | avcodec_get_sample_fmt (const char *name) |
attribute_deprecated int64_t | avcodec_get_channel_layout (const char *name) |
attribute_deprecated void | avcodec_get_channel_layout_string (char *buf, int buf_size, int nb_channels, int64_t channel_layout) |
attribute_deprecated int | avcodec_channel_layout_num_channels (int64_t channel_layout) |
int64_t | avcodec_guess_channel_layout (int nb_channels, enum CodecID codec_id, const char *fmt_name) |
Guess the channel layout. | |
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. | |
void | av_audio_convert_free (AVAudioConvert *ctx) |
Free audio sample format converter context. | |
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. |
Definition in file audioconvert.h.
typedef struct AVAudioConvert AVAudioConvert |
Definition at line 86 of file audioconvert.h.
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.
[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 108 of file audioconvert.c.
Referenced by audio_decode_frame(), audio_resample(), and do_audio_out().
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.
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 |
Definition at line 87 of file audioconvert.c.
Referenced by audio_decode_frame(), av_audio_resample_init(), and do_audio_out().
void av_audio_convert_free | ( | AVAudioConvert * | ctx | ) |
Free audio sample format converter context.
Definition at line 103 of file audioconvert.c.
Referenced by audio_decode_frame(), audio_resample_close(), av_audio_resample_init(), do_audio_out(), and stream_component_close().
attribute_deprecated int avcodec_channel_layout_num_channels | ( | int64_t | channel_layout | ) |
Definition at line 76 of file audioconvert.c.
attribute_deprecated int64_t avcodec_get_channel_layout | ( | const char * | name | ) |
attribute_deprecated void avcodec_get_channel_layout_string | ( | char * | buf, | |
int | buf_size, | |||
int | nb_channels, | |||
int64_t | channel_layout | |||
) |
Definition at line 71 of file audioconvert.c.
attribute_deprecated enum AVSampleFormat avcodec_get_sample_fmt | ( | const char * | name | ) |
attribute_deprecated const char* avcodec_get_sample_fmt_name | ( | int | sample_fmt | ) |
int64_t avcodec_guess_channel_layout | ( | int | nb_channels, | |
enum CodecID | codec_id, | |||
const char * | fmt_name | |||
) |
Guess the channel layout.
nb_channels | ||
codec_id | Codec identifier, or CODEC_ID_NONE if unknown | |
fmt_name | Format name, or NULL if unknown |
Definition at line 51 of file audioconvert.c.
Referenced by set_channel_info().
attribute_deprecated void avcodec_sample_fmt_string | ( | char * | buf, | |
int | buf_size, | |||
int | sample_fmt | |||
) |