Lines Matching defs:channels
64 int format, channels, bps;
239 avctx->channels = s->channels = get_bits(&s->gb, 16);
246 if (s->channels == 0) {
247 av_log(s->avctx, AV_LOG_ERROR, "Invalid number of channels\n");
280 s->format, avctx->channels, avctx->bits_per_coded_sample, avctx->sample_rate,
296 if(s->frame_length >= UINT_MAX / (s->channels * sizeof(int32_t))){
302 s->decode_buffer = av_mallocz(sizeof(int32_t)*s->frame_length*s->channels);
306 s->ch_ctx = av_malloc(avctx->channels * sizeof(*s->ch_ctx));
356 for (i = 0; i < s->channels; i++) {
362 for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++) {
424 // flip channels
425 if (cur_chan < (s->channels-1))
429 if (s->channels > 1) {
431 for (*p += *r / 2; r > p - s->channels; r--)
445 for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
450 for (i = 0; i < framelen * s->channels; i++)