23 #ifndef AVCODEC_AUDIOCONVERT_H
24 #define AVCODEC_AUDIOCONVERT_H
36 #if FF_API_OLD_SAMPLE_FMT
41 void avcodec_sample_fmt_string(
char *buf,
int buf_size,
int sample_fmt);
47 const char *avcodec_get_sample_fmt_name(
int sample_fmt);
56 #if FF_API_OLD_AUDIOCONVERT
61 int64_t avcodec_get_channel_layout(
const char *
name);
67 void avcodec_get_channel_layout_string(
char *buf,
int buf_size,
int nb_channels, int64_t channel_layout);
73 int avcodec_channel_layout_num_channels(int64_t channel_layout);
100 const float *matrix,
int flags);
116 void *
const out[6],
const int out_stride[6],
117 const void *
const in[6],
const int in_stride[6],
int len);
audio conversion routines
#define attribute_deprecated
AVSampleFormat
all in native-endian format
void av_audio_convert_free(AVAudioConvert *ctx)
Free audio sample format converter context.
CodecID
Identify the syntax and semantics of the bitstream.
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.
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.
uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name)
Guess the channel layout.