00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef AVCODEC_AUDIOCONVERT_H
00024 #define AVCODEC_AUDIOCONVERT_H
00025
00032 #include "libavutil/cpu.h"
00033 #include "avcodec.h"
00034
00035 #if FF_API_OLD_SAMPLE_FMT
00036
00039 attribute_deprecated
00040 void avcodec_sample_fmt_string(char *buf, int buf_size, int sample_fmt);
00041
00045 attribute_deprecated
00046 const char *avcodec_get_sample_fmt_name(int sample_fmt);
00047
00051 attribute_deprecated
00052 enum AVSampleFormat avcodec_get_sample_fmt(const char* name);
00053 #endif
00054
00055 #if FF_API_OLD_AUDIOCONVERT
00056
00059 attribute_deprecated
00060 int64_t avcodec_get_channel_layout(const char *name);
00061
00065 attribute_deprecated
00066 void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);
00067
00071 attribute_deprecated
00072 int avcodec_channel_layout_num_channels(int64_t channel_layout);
00073 #endif
00074
00082 int64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
00083
00084 struct AVAudioConvert;
00085 typedef struct AVAudioConvert AVAudioConvert;
00086
00097 AVAudioConvert *av_audio_convert_alloc(enum AVSampleFormat out_fmt, int out_channels,
00098 enum AVSampleFormat in_fmt, int in_channels,
00099 const float *matrix, int flags);
00100
00104 void av_audio_convert_free(AVAudioConvert *ctx);
00105
00114 int av_audio_convert(AVAudioConvert *ctx,
00115 void * const out[6], const int out_stride[6],
00116 const void * const in[6], const int in_stride[6], int len);
00117
00118 #endif