Lines Matching refs:input_channels
52 int input_channels, output_channels, filter_channels;
150 ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
159 if (input_channels > MAX_CHANNELS) {
165 if (output_channels != input_channels &&
166 (input_channels > 2 ||
168 !(output_channels == 6 && input_channels == 2))) {
182 s->input_channels = input_channels;
185 s->filter_channels = s->input_channels;
237 if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) {
239 memcpy(output, input, nb_samples * s->input_channels * sizeof(short));
248 unsigned input_size = nb_samples * s->input_channels * 2;
263 ibuf, istride, nb_samples * s->input_channels) < 0) {
298 if (s->input_channels == 2 && s->output_channels == 1) {
301 } else if (s->output_channels >= 2 && s->input_channels == 1) {
304 } else if (s->output_channels >= s->input_channels && s->input_channels >= 2) {
305 for (i = 0; i < s->input_channels; i++) {
308 deinterleave(buftmp2, input, s->input_channels, nb_samples);
329 if (s->output_channels == 2 && s->input_channels == 1) {
331 } else if (s->output_channels == 6 && s->input_channels == 2) {
333 } else if (s->output_channels == s->input_channels && s->input_channels >= 2) {