Lines Matching defs:channels
36 * - independent quantizer for channels
37 * - >2 channels support
57 int channels, samplerate, block_align, frame_size;
501 int *out, int out_entries, int channels, int *tap_quant)
510 int step = (i+1)*channels, k, j;
597 if (avctx->channels > MAX_CHANNELS)
603 if (avctx->channels == 2)
633 s->channels = avctx->channels;
637 s->frame_size = s->channels*s->block_align*s->downsampling;
639 s->tail_size = s->num_taps*s->channels;
648 for (i = 0; i < s->channels; i++)
674 put_bits(&pb, 2, s->channels);
701 for (i = 0; i < s->channels; i++)
741 for (i = 0; i < s->frame_size; i += s->channels)
748 for (i = 0; i < s->frame_size; i += s->channels)
752 for (i = 0; i < s->frame_size; i += s->channels)
773 s->predictor_k, s->num_taps, s->channels, s->tap_quant);
777 for (ch = 0; ch < s->channels; ch++)
783 for (j = 0; j < s->downsampling; j++, x += s->channels)
793 for (ch = 0; ch < s->channels; ch++)
803 energy2 = sqrt(energy2/(s->channels*s->block_align));
804 energy1 = M_SQRT2*energy1/(s->channels*s->block_align);
823 for (ch = 0; ch < s->channels; ch++)
852 s->channels = avctx->channels;
876 s->channels = get_bits(&gb, 2);
879 s->channels, s->samplerate);
882 if (s->channels > MAX_CHANNELS)
892 if (s->decorrelation != 3 && s->channels != 2) {
908 s->frame_size = s->channels*s->block_align*s->downsampling;
921 for (i = 0; i < s->channels; i++)
928 for (i = 0; i < s->channels; i++)
949 for (i = 0; i < s->channels; i++)
973 frame->nb_samples = s->frame_size / avctx->channels;
997 for (ch = 0; ch < s->channels; ch++)
1010 x += s->channels;
1014 x += s->channels;
1018 s->predictor_state[ch][i] = s->int_samples[s->frame_size - s->channels + ch - i*s->channels];
1024 for (i = 0; i < s->frame_size; i += s->channels)
1031 for (i = 0; i < s->frame_size; i += s->channels)
1035 for (i = 0; i < s->frame_size; i += s->channels)