Lines Matching refs:input_channels
57 int input_channels, output_channels, filter_channels;
203 ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
212 if (input_channels > MAX_CHANNELS) {
218 if (!(supported_resampling[input_channels-1] & (1<<(output_channels-1)))) {
221 "output channels for %d input channel%s", input_channels,
222 input_channels > 1 ? "s:" : ":");
224 if (supported_resampling[input_channels-1] & (1<<i))
238 s->input_channels = input_channels;
241 s->filter_channels = s->input_channels;
293 if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) {
295 memcpy(output, input, nb_samples * s->input_channels * sizeof(short));
304 unsigned input_size = nb_samples * s->input_channels * 2;
319 ibuf, istride, nb_samples * s->input_channels) < 0) {
356 if (s->input_channels == 2 && s->output_channels == 1) {
359 } else if (s->output_channels >= 2 && s->input_channels == 1) {
362 } else if (s->input_channels == 6 && s->output_channels ==2) {
365 surround_to_stereo(buftmp2, input, s->input_channels, nb_samples);
366 } else if (s->output_channels >= s->input_channels && s->input_channels >= 2) {
367 for (i = 0; i < s->input_channels; i++) {
370 deinterleave(buftmp2, input, s->input_channels, nb_samples);
391 if (s->output_channels == 2 && s->input_channels == 1) {
393 } else if (s->output_channels == 6 && s->input_channels == 2) {
395 } else if ((s->output_channels == s->input_channels && s->input_channels >= 2) ||
396 (s->output_channels == 2 && s->input_channels == 6)) {