34 #if FF_API_OLD_SAMPLE_FMT
35 const char *avcodec_get_sample_fmt_name(
int sample_fmt)
45 void avcodec_sample_fmt_string (
char *buf,
int buf_size,
int sample_fmt)
65 #if FF_API_OLD_AUDIOCONVERT
66 int64_t avcodec_get_channel_layout(
const char *
name)
71 void avcodec_get_channel_layout_string(
char *buf,
int buf_size,
int nb_channels, int64_t channel_layout)
76 int avcodec_channel_layout_num_channels(int64_t channel_layout)
89 const float *matrix,
int flags)
92 if (in_channels!=out_channels)
109 void *
const out[6],
const int out_stride[6],
110 const void *
const in[6],
const int in_stride[6],
int len)
117 const int is= in_stride[ch];
118 const int os= out_stride[ch];
119 const uint8_t *pi= in[ch];
120 uint8_t *po= out[ch];
121 uint8_t *end= po + os*
len;
125 #define CONV(ofmt, otype, ifmt, expr)\
126 if(ctx->fmt_pair == ofmt + AV_SAMPLE_FMT_NB*ifmt){\
128 *(otype*)po = expr; pi += is; po += os;\