Lines Matching defs:channels
80 static void init_sample_buffers(AlacEncodeContext *s, int channels,
88 for (ch = 0; ch < channels; ch++) { \
365 int i, j, channels;
369 channels = element == TYPE_CPE ? 2 : 1;
379 for (j = 0; j < channels; j++)
386 for (j = 0; j < channels; j++)
392 channels - 1;
394 init_sample_buffers(s, channels, samples);
397 if (channels == 2)
404 for (i = 0; i < channels; i++) {
421 for (j = 0; j < channels; j++) {
429 for (i = 0; i < channels; i++) {
447 const enum AlacRawDataBlockType *ch_elements = ff_alac_channel_elements[s->avctx->channels - 1];
448 const uint8_t *ch_map = ff_alac_channel_layout_offsets[s->avctx->channels - 1];
454 while (ch < s->avctx->channels) {
519 avctx->channels,
534 AV_WB8 (alac_extradata+21, avctx->channels);
537 avctx->sample_rate * avctx->channels * avctx->bits_per_raw_sample); // average bitrate
604 max_frame_size = get_max_frame_size(s->frame_size, avctx->channels,