Lines Matching refs:channels
51 int format, channels, bps;
107 s->decode_buffer = av_mallocz_array(sizeof(int32_t)*s->frame_length, s->channels);
112 s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx));
151 avctx->channels = s->channels = get_bits(&gb, 16);
152 if (s->channels > 1 && s->channels < 9)
153 avctx->channel_layout = tta_channel_layouts[s->channels-2];
160 if (s->channels == 0) {
161 av_log(avctx, AV_LOG_ERROR, "Invalid number of channels\n");
194 s->format, avctx->channels, avctx->bits_per_coded_sample, avctx->sample_rate,
199 if(s->frame_length >= UINT_MAX / (s->channels * sizeof(int32_t))){
245 for (i = 0; i < s->channels; i++) {
258 for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++) {
324 // flip channels
325 if (cur_chan < (s->channels-1))
328 // decorrelate in case of multiple channels
329 if (s->channels > 1) {
331 for (*p += *r / 2; r > p - s->channels; r--)
355 for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
361 for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
368 for (i = 0; i < framelen * s->channels; i++)