Lines Matching defs:channels
41 * 8bit channels
65 int channels;
250 int extra_bits, int channels, int nb_samples)
254 for (ch = 0; ch < channels; ch++)
260 int channels)
274 bps = alac->sample_size - alac->extra_bits + channels - 1;
305 for (ch = 0; ch < channels; ch++)
319 for (ch = 0; ch < channels; ch++) {
337 for (ch = 0; ch < channels; ch++)
341 for (ch = 0; ch < channels; ch++) {
373 for (ch = 0; ch < channels; ch++) {
383 if (channels == 2 && decorr_left_weight) {
390 alac->extra_bits, channels, alac->nb_samples);
396 for (ch = 0; ch < channels; ch++) {
403 for (ch = 0; ch < channels; ch++) {
414 for (ch = 0; ch < channels; ch++)
416 outbuffer += alac->channels - channels;
423 for (ch = 0; ch < channels; ch++)
425 outbuffer += alac->channels - channels;
432 for (ch = 0; ch < channels; ch++)
434 outbuffer += alac->channels - channels;
450 int channels;
470 channels = (element == TYPE_CPE) ? 2 : 1;
471 if (ch + channels > alac->channels ||
472 ff_alac_channel_layout_offsets[alac->channels - 1][ch] + channels > alac->channels) {
478 ff_alac_channel_layout_offsets[alac->channels - 1][ch],
479 channels);
483 ch += channels;
495 if (alac->channels == ch)
498 av_log(avctx, AV_LOG_WARNING, "Failed to decode all channels\n");
508 for (ch = 0; ch < FFMIN(alac->channels, 2); ch++) {
523 for (ch = 0; ch < FFMIN(alac->channels, 2); ch++) {
564 alac->channels = bytestream2_get_byteu(&gb);
602 if (alac->channels < 1) {
604 alac->channels = avctx->channels;
606 if (alac->channels > ALAC_MAX_CHANNELS)
607 alac->channels = avctx->channels;
609 avctx->channels = alac->channels;
611 if (avctx->channels > ALAC_MAX_CHANNELS || avctx->channels <= 0 ) {
613 avctx->channels);
616 avctx->channel_layout = ff_alac_channel_layouts[alac->channels - 1];