channels          100 doc/examples/decode_audio.c             for (ch = 0; ch < dec_ctx->channels; ch++)
channels          218 doc/examples/decode_audio.c     n_channels = c->channels;
channels          346 doc/examples/demuxing_decoding.c         int n_channels = audio_dec_ctx->channels;
channels          168 doc/examples/encode_audio.c     c->channels       = av_get_channel_layout_nb_channels(c->channel_layout);
channels          221 doc/examples/encode_audio.c             for (k = 1; k < c->channels; k++)
channels          218 doc/examples/filter_audio.c     int channels   = av_get_channel_layout_nb_channels(frame->channel_layout);
channels          219 doc/examples/filter_audio.c     int planes     = planar ? channels : 1;
channels          221 doc/examples/filter_audio.c     int plane_size = bps * frame->nb_samples * (planar ? 1 : channels);
channels          109 doc/examples/filtering_audio.c         dec_ctx->channel_layout = av_get_default_channel_layout(dec_ctx->channels);
channels          164 doc/examples/muxing.c         c->channels        = av_get_channel_layout_nb_channels(c->channel_layout);
channels          173 doc/examples/muxing.c         c->channels        = av_get_channel_layout_nb_channels(c->channel_layout);
channels          294 doc/examples/muxing.c         av_opt_set_int       (ost->swr_ctx, "in_channel_count",   c->channels,       0);
channels          297 doc/examples/muxing.c         av_opt_set_int       (ost->swr_ctx, "out_channel_count",  c->channels,       0);
channels          323 doc/examples/muxing.c         for (i = 0; i < ost->enc->channels; i++)
channels          202 doc/examples/transcode_aac.c     avctx->channels       = OUTPUT_CHANNELS;
channels          295 doc/examples/transcode_aac.c                                               av_get_default_channel_layout(output_codec_context->channels),
channels          298 doc/examples/transcode_aac.c                                               av_get_default_channel_layout(input_codec_context->channels),
channels          332 doc/examples/transcode_aac.c                                       output_codec_context->channels, 1))) {
channels          447 doc/examples/transcode_aac.c     if (!(*converted_input_samples = calloc(output_codec_context->channels,
channels          456 doc/examples/transcode_aac.c                                   output_codec_context->channels,
channels          169 doc/examples/transcoding.c                 enc_ctx->channels = av_get_channel_layout_nb_channels(enc_ctx->channel_layout);
channels          292 doc/examples/transcoding.c                 av_get_default_channel_layout(dec_ctx->channels);
channels         1498 fftools/ffmpeg.c                     enc->channels != filtered_frame->channels) {
channels         1839 fftools/ffmpeg.c     ifilter->channels               = par->channels;
channels         2063 fftools/ffmpeg.c         if (dec->channels > ist->guess_layout_max)
channels         2065 fftools/ffmpeg.c         dec->channel_layout = av_get_default_channel_layout(dec->channels);
channels         2069 fftools/ffmpeg.c                                      dec->channels, dec->channel_layout);
channels         2117 fftools/ffmpeg.c                        ifilter->channels       != frame->channels ||
channels         3334 fftools/ffmpeg.c         enc_ctx->channels       = av_buffersink_get_channels(ost->filter->filter);
channels          250 fftools/ffmpeg.h     int channels;
channels          602 fftools/ffmpeg_filter.c     if (codec->channels && !codec->channel_layout)
channels          603 fftools/ffmpeg_filter.c         codec->channel_layout = av_get_default_channel_layout(codec->channels);
channels          901 fftools/ffmpeg_filter.c         av_bprintf(&args, ":channels=%d", ifilter->channels);
channels         1194 fftools/ffmpeg_filter.c     ifilter->channels            = frame->channels;
channels          512 fftools/ffmpeg_opt.c     if (m->channel_idx < 0 || m->channel_idx >= st->codecpar->channels ||
channels         1885 fftools/ffmpeg_opt.c         MATCH_PER_STREAM_OPT(audio_channels, i, audio_enc->channels, oc, st);
channels         2237 fftools/ffmpeg_opt.c                 score = ist->st->codecpar->channels + 100000000*!!ist->st->codec_info_nb_frames
channels         2534 fftools/ffmpeg_opt.c                 if (ost->enc_ctx->channels) {
channels         2535 fftools/ffmpeg_opt.c                     f->channel_layout = av_get_default_channel_layout(ost->enc_ctx->channels);
channels         3121 fftools/ffmpeg_opt.c     int ret, channels, ac_str_size;
channels         3135 fftools/ffmpeg_opt.c     channels = av_get_channel_layout_nb_channels(layout);
channels         3136 fftools/ffmpeg_opt.c     snprintf(layout_str, sizeof(layout_str), "%d", channels);
channels          137 fftools/ffplay.c     int channels;
channels          420 fftools/ffplay.c int64_t get_valid_channel_layout(int64_t channel_layout, int channels)
channels          422 fftools/ffplay.c     if (channel_layout && av_get_channel_layout_nb_channels(channel_layout) == channels)
channels         1069 fftools/ffplay.c     int ch, channels, h, h2;
channels         1078 fftools/ffplay.c     channels = s->audio_tgt.channels;
channels         1079 fftools/ffplay.c     nb_display_channels = channels;
channels         1082 fftools/ffplay.c         n = 2 * channels;
channels         1097 fftools/ffplay.c         i_start= x = compute_mod(s->sample_array_index - delay * channels, SAMPLE_ARRAY_SIZE);
channels         1100 fftools/ffplay.c             for (i = 0; i < 1000; i += channels) {
channels         1103 fftools/ffplay.c                 int b = s->sample_array[(idx + 4 * channels) % SAMPLE_ARRAY_SIZE];
channels         1104 fftools/ffplay.c                 int c = s->sample_array[(idx + 5 * channels) % SAMPLE_ARRAY_SIZE];
channels         1105 fftools/ffplay.c                 int d = s->sample_array[(idx + 9 * channels) % SAMPLE_ARRAY_SIZE];
channels         1138 fftools/ffplay.c                 i += channels;
channels         1176 fftools/ffplay.c                     i += channels;
channels         1964 fftools/ffplay.c     int channels[2] = { 0, -1 };
channels         1985 fftools/ffplay.c                    is->audio_filter_src.channels,
channels         2011 fftools/ffplay.c         channels       [0] = is->audio_tgt.channels;
channels         2017 fftools/ffplay.c         if ((ret = av_opt_set_int_list(filt_asink, "channel_counts" , channels       ,  -1, AV_OPT_SEARCH_CHILDREN)) < 0)
channels         2062 fftools/ffplay.c                 dec_channel_layout = get_valid_channel_layout(frame->channel_layout, frame->channels);
channels         2065 fftools/ffplay.c                     cmp_audio_fmts(is->audio_filter_src.fmt, is->audio_filter_src.channels,
channels         2066 fftools/ffplay.c                                    frame->format, frame->channels)    ||
channels         2077 fftools/ffplay.c                            is->audio_filter_src.freq, is->audio_filter_src.channels, av_get_sample_fmt_name(is->audio_filter_src.fmt), buf1, last_serial,
channels         2078 fftools/ffplay.c                            frame->sample_rate, frame->channels, av_get_sample_fmt_name(frame->format), buf2, is->auddec.pkt_serial);
channels         2081 fftools/ffplay.c                     is->audio_filter_src.channels       = frame->channels;
channels         2369 fftools/ffplay.c     data_size = av_samples_get_buffer_size(NULL, af->frame->channels,
channels         2374 fftools/ffplay.c         (af->frame->channel_layout && af->frame->channels == av_get_channel_layout_nb_channels(af->frame->channel_layout)) ?
channels         2375 fftools/ffplay.c         af->frame->channel_layout : av_get_default_channel_layout(af->frame->channels);
channels         2390 fftools/ffplay.c                     af->frame->sample_rate, av_get_sample_fmt_name(af->frame->format), af->frame->channels,
channels         2391 fftools/ffplay.c                     is->audio_tgt.freq, av_get_sample_fmt_name(is->audio_tgt.fmt), is->audio_tgt.channels);
channels         2396 fftools/ffplay.c         is->audio_src.channels       = af->frame->channels;
channels         2405 fftools/ffplay.c         int out_size  = av_samples_get_buffer_size(NULL, is->audio_tgt.channels, out_count, is->audio_tgt.fmt, 0);
channels         2432 fftools/ffplay.c         resampled_data_size = len2 * is->audio_tgt.channels * av_get_bytes_per_sample(is->audio_tgt.fmt);
channels         2519 fftools/ffplay.c     wanted_spec.channels = wanted_nb_channels;
channels         2521 fftools/ffplay.c     if (wanted_spec.freq <= 0 || wanted_spec.channels <= 0) {
channels         2534 fftools/ffplay.c                wanted_spec.channels, wanted_spec.freq, SDL_GetError());
channels         2535 fftools/ffplay.c         wanted_spec.channels = next_nb_channels[FFMIN(7, wanted_spec.channels)];
channels         2536 fftools/ffplay.c         if (!wanted_spec.channels) {
channels         2538 fftools/ffplay.c             wanted_spec.channels = wanted_nb_channels;
channels         2545 fftools/ffplay.c         wanted_channel_layout = av_get_default_channel_layout(wanted_spec.channels);
channels         2552 fftools/ffplay.c     if (spec.channels != wanted_spec.channels) {
channels         2553 fftools/ffplay.c         wanted_channel_layout = av_get_default_channel_layout(spec.channels);
channels         2556 fftools/ffplay.c                    "SDL advised channel count %d is not supported!\n", spec.channels);
channels         2564 fftools/ffplay.c     audio_hw_params->channels =  spec.channels;
channels         2565 fftools/ffplay.c     audio_hw_params->frame_size = av_samples_get_buffer_size(NULL, audio_hw_params->channels, 1, audio_hw_params->fmt, 1);
channels         2566 fftools/ffplay.c     audio_hw_params->bytes_per_sec = av_samples_get_buffer_size(NULL, audio_hw_params->channels, audio_hw_params->freq, audio_hw_params->fmt, 1);
channels         2654 fftools/ffplay.c             is->audio_filter_src.channels       = avctx->channels;
channels         2655 fftools/ffplay.c             is->audio_filter_src.channel_layout = get_valid_channel_layout(avctx->channel_layout, avctx->channels);
channels         2666 fftools/ffplay.c         nb_channels    = avctx->channels;
channels         3189 fftools/ffplay.c                     st->codecpar->channels != 0)
channels         2192 fftools/ffprobe.c         print_int("channels", frame->channels);
channels         2195 fftools/ffprobe.c             av_bprint_channel_layout(&pbuf, frame->channels,
channels         2608 fftools/ffprobe.c         print_int("channels",        par->channels);
channels         2612 fftools/ffprobe.c             av_bprint_channel_layout(&pbuf, par->channels, par->channel_layout);
channels           97 libavcodec/8svx.c         int chan_size = avpkt->size / avctx->channels - hdr_size;
channels           99 libavcodec/8svx.c         if (avpkt->size % avctx->channels) {
channels          102 libavcodec/8svx.c         if (avpkt->size < (hdr_size + 1) * avctx->channels) {
channels          108 libavcodec/8svx.c         if (avctx->channels == 2)
channels          115 libavcodec/8svx.c         if (avctx->channels == 2) {
channels          122 libavcodec/8svx.c         if (avctx->channels == 2)
channels          142 libavcodec/8svx.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          151 libavcodec/8svx.c     return ((avctx->frame_number == 0)*hdr_size + buf_size)*avctx->channels;
channels          158 libavcodec/8svx.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          127 libavcodec/aac.h     int channels;
channels           93 libavcodec/aac_ac3_parser.c                 avctx->channels = s->channels;
channels           47 libavcodec/aac_ac3_parser.h     int channels;
channels           50 libavcodec/aac_parser.c     hdr_info->channels    = ff_mpeg4audio_channels[hdr.chan_config];
channels          400 libavcodec/aaccoder.c     int destbits = avctx->bit_rate * 1024.0 / avctx->sample_rate / avctx->channels * (lambda / 120.f);
channels          560 libavcodec/aaccoder.c         / ((avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : avctx->channels)
channels          568 libavcodec/aaccoder.c         : (avctx->bit_rate / avctx->channels);
channels          697 libavcodec/aaccoder.c         / ((avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : avctx->channels)
channels          704 libavcodec/aaccoder.c         : (avctx->bit_rate / avctx->channels);
channels           74 libavcodec/aaccoder_twoloop.h         / ((avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : avctx->channels)
channels          189 libavcodec/aaccoder_twoloop.h             : (avctx->bit_rate / avctx->channels);
channels          129 libavcodec/aacdec_template.c                                  int type, int id, int *channels)
channels          131 libavcodec/aacdec_template.c     if (*channels >= MAX_CHANNELS)
channels          140 libavcodec/aacdec_template.c             if (*channels >= MAX_CHANNELS - (type == TYPE_CPE || (type == TYPE_SCE && ac->oc[1].m4ac.ps == 1))) {
channels          144 libavcodec/aacdec_template.c             ac->output_element[(*channels)++] = &ac->che[type][id]->ch[0];
channels          147 libavcodec/aacdec_template.c                 ac->output_element[(*channels)++] = &ac->che[type][id]->ch[1];
channels          176 libavcodec/aacdec_template.c     if (!avctx->channels)
channels          184 libavcodec/aacdec_template.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          427 libavcodec/aacdec_template.c         ac->avctx->channels = ac->oc[1].channels;
channels          445 libavcodec/aacdec_template.c     int i, channels = 0, ret;
channels          474 libavcodec/aacdec_template.c         ret = che_configure(ac, position, type, iid, &channels);
channels          479 libavcodec/aacdec_template.c     if (ac->oc[1].m4ac.ps == 1 && channels == 2) {
channels          489 libavcodec/aacdec_template.c     avctx->channels       = ac->oc[1].channels       = channels;
channels         1190 libavcodec/aacdec_template.c         ac->oc[1].m4ac.channels = avctx->channels;
channels         1195 libavcodec/aacdec_template.c             if (ff_mpeg4audio_channels[i] == avctx->channels)
channels         1213 libavcodec/aacdec_template.c     if (avctx->channels > MAX_CHANNELS) {
channels         2455 libavcodec/aacdec_template.c         } else if (ac->oc[1].m4ac.ps == -1 && ac->oc[1].status < OC_LOCKED && ac->avctx->channels == 1) {
channels         3162 libavcodec/aacdec_template.c         if (!avctx->channels && elem_type != TYPE_PCE) {
channels         3283 libavcodec/aacdec_template.c     if (!avctx->channels) {
channels           99 libavcodec/aacenc.c     int channels = (!s->needs_pce)*(s->channels - (s->channels == 8 ? 1 : 0));
channels          109 libavcodec/aacenc.c     put_bits(&pb, 4, channels);
channels          542 libavcodec/aacenc.c     for (ch = 0; ch < s->channels; ch++) {
channels          582 libavcodec/aacenc.c         ff_psy_preprocess(s->psypp, s->planar_samples, s->channels);
channels          682 libavcodec/aacenc.c     if ((ret = ff_alloc_packet2(avctx, avpkt, 8192 * s->channels, 0)) < 0)
channels          717 libavcodec/aacenc.c             s->psy.bitres.bits = s->last_frame_pb_count / s->channels;
channels          831 libavcodec/aacenc.c         rate_bits = FFMIN(rate_bits, 6144 * s->channels - 3);
channels          833 libavcodec/aacenc.c         too_many_bits = FFMIN(too_many_bits, 6144 * s->channels - 3);
channels          842 libavcodec/aacenc.c             || frame_bits >= 6144 * s->channels - 3  )
channels          944 libavcodec/aacenc.c     FF_ALLOCZ_ARRAY_OR_GOTO(avctx, s->buffer.samples, s->channels, 3 * 1024 * sizeof(s->buffer.samples[0]), alloc_fail);
channels          947 libavcodec/aacenc.c     for(ch = 0; ch < s->channels; ch++)
channels          975 libavcodec/aacenc.c     s->channels = avctx->channels;
channels          997 libavcodec/aacenc.c         s->reorder_map = aac_chan_maps[s->channels - 1];
channels          998 libavcodec/aacenc.c         s->chan_map = aac_chan_configs[s->channels - 1];
channels         1020 libavcodec/aacenc.c     WARN_IF(1024.0 * avctx->bit_rate / avctx->sample_rate > 6144 * s->channels,
channels         1023 libavcodec/aacenc.c              6144 * s->channels);
channels         1024 libavcodec/aacenc.c     avctx->bit_rate = (int64_t)FFMIN(6144 * s->channels / 1024.0 * avctx->sample_rate,
channels         1077 libavcodec/aacenc.c     if (s->channels > 3)
channels          390 libavcodec/aacenc.h     int channels;                                ///< channel count
channels          266 libavcodec/aacpsy.c     for (i = 0; i < avctx->channels; i++) {
channels          272 libavcodec/aacpsy.c             pch->attack_threshold = lame_calc_attack_threshold(avctx->bit_rate / avctx->channels / 1000);
channels          306 libavcodec/aacpsy.c     int chan_bitrate = ctx->avctx->bit_rate / ((ctx->avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : ctx->avctx->channels);
channels          370 libavcodec/aacpsy.c     pctx->ch = av_mallocz_array(ctx->avctx->channels, sizeof(AacPsyChannel));
channels          203 libavcodec/ac3.h     uint8_t channels;
channels          107 libavcodec/ac3_parser.c         hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
channels          142 libavcodec/ac3_parser.c         hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
channels          218 libavcodec/ac3_parser.c     hdr_info->channels = hdr.channels;
channels          222 libavcodec/ac3_parser.c     if (hdr.bitstream_mode == 0x7 && hdr.channels > 1)
channels          213 libavcodec/ac3dec.c     if (avctx->channels > 1 &&
channels          215 libavcodec/ac3dec.c         avctx->channels = 1;
channels          216 libavcodec/ac3dec.c     else if (avctx->channels > 2 &&
channels          218 libavcodec/ac3dec.c         avctx->channels = 2;
channels          316 libavcodec/ac3dec.c     s->channels                     = hdr.channels;
channels          317 libavcodec/ac3dec.c     s->fbw_channels                 = s->channels - s->lfe_on;
channels          635 libavcodec/ac3dec.c     for (ch = 1; ch <= s->channels; ch++) {
channels          687 libavcodec/ac3dec.c static inline void do_imdct(AC3DecodeContext *s, int channels, int offset)
channels          691 libavcodec/ac3dec.c     for (ch = 1; ch <= channels; ch++) {
channels         1172 libavcodec/ac3dec.c     for (ch = !cpl_in_use; ch <= s->channels; ch++) {
channels         1209 libavcodec/ac3dec.c     for (ch = !cpl_in_use; ch <= s->channels; ch++) {
channels         1230 libavcodec/ac3dec.c             for (ch = !cpl_in_use; ch <= s->channels; ch++)
channels         1245 libavcodec/ac3dec.c             for (i = ch = !cpl_in_use; ch <= s->channels; ch++) {
channels         1272 libavcodec/ac3dec.c         for (ch = !cpl_in_use; ch <= s->channels; ch++) {
channels         1280 libavcodec/ac3dec.c         for (ch = !cpl_in_use; ch <= s->channels; ch++)
channels         1335 libavcodec/ac3dec.c         for (ch = 0; ch <= s->channels; ch++) {
channels         1341 libavcodec/ac3dec.c     for (ch = !cpl_in_use; ch <= s->channels; ch++) {
channels         1390 libavcodec/ac3dec.c     for (ch = 1; ch <= s->channels; ch++) {
channels         1419 libavcodec/ac3dec.c     downmix_output = s->channels != s->out_channels &&
channels         1430 libavcodec/ac3dec.c         do_imdct(s, s->channels, offset);
channels         1581 libavcodec/ac3dec.c     if (!err || (s->channels && s->out_channels != s->channels)) {
channels         1582 libavcodec/ac3dec.c         s->out_channels = s->channels;
channels         1586 libavcodec/ac3dec.c         if (s->channels > 1 &&
channels         1590 libavcodec/ac3dec.c         } else if (s->channels > 2 &&
channels         1601 libavcodec/ac3dec.c         if (s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
channels         1608 libavcodec/ac3dec.c     } else if (!s->channels) {
channels         1612 libavcodec/ac3dec.c     avctx->channels = s->out_channels;
channels         1619 libavcodec/ac3dec.c     if (s->bitstream_mode == 0x7 && s->channels > 1)
channels         1629 libavcodec/ac3dec.c     for (ch = 0; ch < s->channels; ch++) {
channels         1718 libavcodec/ac3dec.c         avctx->channels = av_get_channel_layout_nb_channels(channel_layout);
channels         1756 libavcodec/ac3dec.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          163 libavcodec/ac3dec.h     int channels;                               ///< number of total channels
channels          331 libavcodec/ac3enc.c     int chan_size = AC3_MAX_COEFS * s->num_blocks * (s->channels - ch + 1);
channels          503 libavcodec/ac3enc.c     for (ch = !s->cpl_on; ch <= s->channels; ch++) {
channels          555 libavcodec/ac3enc.c         for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels          589 libavcodec/ac3enc.c         for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels          769 libavcodec/ac3enc.c     for (ch = 0; ch <= s->channels; ch++)
channels          921 libavcodec/ac3enc.c                 frame_bits += 6 + (s->channels + block->cpl_in_use) * (4 + 3);
channels          947 libavcodec/ac3enc.c         for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels          980 libavcodec/ac3enc.c     for (ch = 0; ch <= s->channels; ch++) {
channels         1046 libavcodec/ac3enc.c     for (ch = !s->cpl_enabled; ch <= s->channels; ch++)
channels         1074 libavcodec/ac3enc.c         for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels         1133 libavcodec/ac3enc.c     for (ch = !s->cpl_on; ch <= s->channels; ch++)
channels         1309 libavcodec/ac3enc.c         for (ch = 1; ch <= s->channels; ch++) {
channels         1482 libavcodec/ac3enc.c     for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels         1520 libavcodec/ac3enc.c             for (ch = !block->cpl_in_use; ch <= s->channels; ch++) {
channels         1546 libavcodec/ac3enc.c     for (ch = 1; ch <= s->channels; ch++) {
channels         1693 libavcodec/ac3enc.c     av_get_channel_layout_string(strbuf, 32, s->channels, avctx->channel_layout);
channels         1937 libavcodec/ac3enc.c          avctx->channels == 1) ||
channels         1941 libavcodec/ac3enc.c          && avctx->channels > 1)) {
channels         2023 libavcodec/ac3enc.c     for (ch = 0; ch < s->channels; ch++)
channels         2063 libavcodec/ac3enc.c static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
channels         2068 libavcodec/ac3enc.c     if (channels < 1 || channels > AC3_MAX_CHANNELS)
channels         2074 libavcodec/ac3enc.c         ch_layout = av_get_default_channel_layout(channels);
channels         2077 libavcodec/ac3enc.c     s->channels     = channels;
channels         2078 libavcodec/ac3enc.c     s->fbw_channels = channels - s->lfe_on;
channels         2119 libavcodec/ac3enc.c     ret = set_channel_info(s, avctx->channels, &avctx->channel_layout);
channels         2327 libavcodec/ac3enc.c     int channels = s->channels + 1; /* includes coupling channel */
channels         2328 libavcodec/ac3enc.c     int channel_blocks = channels * s->num_blocks;
channels         2360 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->mdct_coef, channels, sizeof(*block->mdct_coef),
channels         2362 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->exp, channels, sizeof(*block->exp),
channels         2364 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->grouped_exp, channels, sizeof(*block->grouped_exp),
channels         2366 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->psd, channels, sizeof(*block->psd),
channels         2368 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->band_psd, channels, sizeof(*block->band_psd),
channels         2370 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->mask, channels, sizeof(*block->mask),
channels         2372 libavcodec/ac3enc.c         FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->qmant, channels, sizeof(*block->qmant),
channels         2375 libavcodec/ac3enc.c             FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->cpl_coord_exp, channels, sizeof(*block->cpl_coord_exp),
channels         2377 libavcodec/ac3enc.c             FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->cpl_coord_mant, channels, sizeof(*block->cpl_coord_mant),
channels         2381 libavcodec/ac3enc.c         for (ch = 0; ch < channels; ch++) {
channels         2383 libavcodec/ac3enc.c             block->grouped_exp[ch] = &s->grouped_exp_buffer[128           * (blk * channels + ch)];
channels         2384 libavcodec/ac3enc.c             block->psd[ch]         = &s->psd_buffer        [AC3_MAX_COEFS * (blk * channels + ch)];
channels         2385 libavcodec/ac3enc.c             block->band_psd[ch]    = &s->band_psd_buffer   [64            * (blk * channels + ch)];
channels         2386 libavcodec/ac3enc.c             block->mask[ch]        = &s->mask_buffer       [64            * (blk * channels + ch)];
channels         2387 libavcodec/ac3enc.c             block->qmant[ch]       = &s->qmant_buffer      [AC3_MAX_COEFS * (blk * channels + ch)];
channels         2389 libavcodec/ac3enc.c                 block->cpl_coord_exp[ch]  = &s->cpl_coord_exp_buffer [16  * (blk * channels + ch)];
channels         2390 libavcodec/ac3enc.c                 block->cpl_coord_mant[ch] = &s->cpl_coord_mant_buffer[16  * (blk * channels + ch)];
channels         2404 libavcodec/ac3enc.c             FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->fixed_coef, channels,
channels         2406 libavcodec/ac3enc.c             for (ch = 0; ch < channels; ch++)
channels         2412 libavcodec/ac3enc.c             FF_ALLOCZ_ARRAY_OR_GOTO(avctx, block->fixed_coef, channels,
channels         2414 libavcodec/ac3enc.c             for (ch = 0; ch < channels; ch++)
channels          194 libavcodec/ac3enc.h     int channels;                           ///< total number of channels               (nchans)
channels           70 libavcodec/ac3enc_fixed.c         for (ch = 1; ch <= s->channels; ch++) {
channels           56 libavcodec/ac3enc_float.c                                chan_size * (s->channels + cpl));
channels           46 libavcodec/ac3enc_template.c     FF_ALLOC_ARRAY_OR_GOTO(s->avctx, s->planar_samples, s->channels, sizeof(*s->planar_samples),
channels           48 libavcodec/ac3enc_template.c     for (ch = 0; ch < s->channels; ch++) {
channels           69 libavcodec/ac3enc_template.c     for (ch = 0; ch < s->channels; ch++) {
channels           91 libavcodec/ac3enc_template.c     for (ch = 0; ch < s->channels; ch++) {
channels          400 libavcodec/ac3enc_template.c                       AC3_MAX_COEFS * s->num_blocks * s->channels);
channels          131 libavcodec/adpcm.c         if (avctx->channels & 1) {
channels          132 libavcodec/adpcm.c             avpriv_request_sample(avctx, "channel count %d\n", avctx->channels);
channels          145 libavcodec/adpcm.c     if (avctx->channels < min_channels || avctx->channels > max_channels) {
channels          213 libavcodec/adpcm.c         avctx->sample_fmt = avctx->channels > 2 ? AV_SAMPLE_FMT_S16P :
channels          542 libavcodec/adpcm.c                      ADPCMChannelStatus *right, int channels, int sample_offset)
channels          550 libavcodec/adpcm.c     if (channels == 1)
channels          582 libavcodec/adpcm.c         if (channels == 2) {
channels          613 libavcodec/adpcm.c         if (channels == 2) {
channels          621 libavcodec/adpcm.c         out0 += 28 * (3 - channels);
channels          622 libavcodec/adpcm.c         out1 += 28 * (3 - channels);
channels          645 libavcodec/adpcm.c     while (get_bits_count(&gb) <= size - 22*avctx->channels) {
channels          646 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++) {
channels          651 libavcodec/adpcm.c         for (count = 0; get_bits_count(&gb) <= size - nb_bits*avctx->channels && count < 4095; count++) {
channels          654 libavcodec/adpcm.c             for (i = 0; i < avctx->channels; i++) {
channels          718 libavcodec/adpcm.c     int ch                = avctx->channels;
channels          966 libavcodec/adpcm.c     st = avctx->channels == 2 ? 1 : 0;
channels          972 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1011 libavcodec/adpcm.c         for(i=0; i<avctx->channels; i++){
channels         1030 libavcodec/adpcm.c                 for (i = 0; i < avctx->channels; i++) {
channels         1036 libavcodec/adpcm.c                         temp[j] = buf[4 * avctx->channels + block_size * n * avctx->channels +
channels         1037 libavcodec/adpcm.c                                         (j % 4) + (j / 4) * (avctx->channels * 4) + i * 4];
channels         1048 libavcodec/adpcm.c             bytestream2_skip(&gb, avctx->block_align - avctx->channels * 4);
channels         1051 libavcodec/adpcm.c             for (i = 0; i < avctx->channels; i++) {
channels         1064 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++)
channels         1067 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++) {
channels         1076 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++) {
channels         1087 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++)
channels         1089 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++)
channels         1102 libavcodec/adpcm.c         if (avctx->channels > 2) {
channels         1103 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         1166 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel+=2) {
channels         1187 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1209 libavcodec/adpcm.c         const int16_t *samples_end = samples + avctx->channels * nb_samples;
channels         1268 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1295 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1322 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         1327 libavcodec/adpcm.c             samples += avctx->channels;
channels         1332 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         1337 libavcodec/adpcm.c             samples += avctx->channels;
channels         1355 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1371 libavcodec/adpcm.c             for(channel = 0; channel < avctx->channels; channel++) {
channels         1374 libavcodec/adpcm.c             for(channel = 0; channel < avctx->channels; channel++) {
channels         1381 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         1392 libavcodec/adpcm.c                 for (channel = 0; channel < avctx->channels; channel++) {
channels         1397 libavcodec/adpcm.c                 samples += avctx->channels;
channels         1406 libavcodec/adpcm.c         int samples_per_block = 28 * (3 - avctx->channels) * 4;
channels         1412 libavcodec/adpcm.c                                  avctx->channels, sample_offset)) < 0)
channels         1464 libavcodec/adpcm.c         if(avctx->channels != 2)
channels         1512 libavcodec/adpcm.c         for(channel = 0; channel < avctx->channels; channel++) {
channels         1524 libavcodec/adpcm.c                 for(channel = 0; channel < avctx->channels; channel++) {
channels         1554 libavcodec/adpcm.c         for (channel=0; channel<avctx->channels; channel++)
channels         1557 libavcodec/adpcm.c                                (avctx->channels + 1) * 4;
channels         1559 libavcodec/adpcm.c         for (channel=0; channel<avctx->channels; channel++) {
channels         1620 libavcodec/adpcm.c         for (channel=0; channel<avctx->channels; channel++) {
channels         1669 libavcodec/adpcm.c         for (i = 0; i < avctx->channels; i++) {
channels         1750 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++)
channels         1754 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1777 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1830 libavcodec/adpcm.c             if (avctx->extradata_size < 32 * avctx->channels) {
channels         1836 libavcodec/adpcm.c             for (i = 0; i < avctx->channels; i++)
channels         1840 libavcodec/adpcm.c             for (i = 0; i < avctx->channels; i++)
channels         1846 libavcodec/adpcm.c                 for (i = 0; i < avctx->channels; i++) {
channels         1852 libavcodec/adpcm.c                 bytestream2_skip(&gb, avctx->channels * 4);
channels         1856 libavcodec/adpcm.c         for (ch = 0; ch < avctx->channels; ch++) {
channels         1889 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1937 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         1991 libavcodec/adpcm.c         for (channel = 0; channel < avctx->channels; channel++) {
channels         2010 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         2016 libavcodec/adpcm.c         for (n = 0; n < nb_samples * avctx->channels; n++) {
channels         2018 libavcodec/adpcm.c             *samples++ = adpcm_zork_expand_nibble(&c->status[n % avctx->channels], v);
channels         2023 libavcodec/adpcm.c             for (channel = 0; channel < avctx->channels; channel++) {
channels         2028 libavcodec/adpcm.c             samples += avctx->channels;
channels           70 libavcodec/adpcmenc.c     if (avctx->channels > 2) {
channels          108 libavcodec/adpcmenc.c         avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 /
channels          109 libavcodec/adpcmenc.c                             (4 * avctx->channels) + 1;
channels          117 libavcodec/adpcmenc.c         avctx->block_align = 34 * avctx->channels;
channels          122 libavcodec/adpcmenc.c         avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 / avctx->channels + 2;
channels          137 libavcodec/adpcmenc.c         avctx->frame_size  = BLKSIZE * 2 / avctx->channels;
channels          152 libavcodec/adpcmenc.c         avctx->frame_size = BLKSIZE * 2 / avctx->channels;
channels          495 libavcodec/adpcmenc.c     st = avctx->channels == 2;
channels          498 libavcodec/adpcmenc.c         pkt_size = (2 + avctx->channels * (22 + 4 * (frame->nb_samples - 1)) + 7) / 8;
channels          500 libavcodec/adpcmenc.c         pkt_size = (frame->nb_samples * avctx->channels) / 2;
channels          514 libavcodec/adpcmenc.c         for (ch = 0; ch < avctx->channels; ch++) {
channels          526 libavcodec/adpcmenc.c             FF_ALLOC_ARRAY_OR_GOTO(avctx, buf, avctx->channels, blocks * 8, error);
channels          527 libavcodec/adpcmenc.c             for (ch = 0; ch < avctx->channels; ch++) {
channels          533 libavcodec/adpcmenc.c                 for (ch = 0; ch < avctx->channels; ch++) {
channels          542 libavcodec/adpcmenc.c                 for (ch = 0; ch < avctx->channels; ch++) {
channels          560 libavcodec/adpcmenc.c         for (ch = 0; ch < avctx->channels; ch++) {
channels          593 libavcodec/adpcmenc.c             for (ch = 0; ch < avctx->channels; ch++) {
channels          612 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++) {
channels          622 libavcodec/adpcmenc.c             adpcm_compress_trellis(avctx, samples + avctx->channels, buf,
channels          623 libavcodec/adpcmenc.c                                    &c->status[0], n, avctx->channels);
channels          624 libavcodec/adpcmenc.c             if (avctx->channels == 2)
channels          625 libavcodec/adpcmenc.c                 adpcm_compress_trellis(avctx, samples + avctx->channels + 1,
channels          627 libavcodec/adpcmenc.c                                        avctx->channels);
channels          630 libavcodec/adpcmenc.c                 if (avctx->channels == 2)
channels          637 libavcodec/adpcmenc.c                          samples[avctx->channels * i]));
channels          638 libavcodec/adpcmenc.c                 if (avctx->channels == 2)
channels          647 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++) {
channels          653 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++) {
channels          658 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++)
channels          660 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++) {
channels          664 libavcodec/adpcmenc.c         for (i = 0; i < avctx->channels; i++)
channels          668 libavcodec/adpcmenc.c             n = avctx->block_align - 7 * avctx->channels;
channels          670 libavcodec/adpcmenc.c             if (avctx->channels == 1) {
channels          672 libavcodec/adpcmenc.c                                        avctx->channels);
channels          677 libavcodec/adpcmenc.c                                        &c->status[0], n, avctx->channels);
channels          679 libavcodec/adpcmenc.c                                        &c->status[1], n, avctx->channels);
channels          685 libavcodec/adpcmenc.c             for (i = 7 * avctx->channels; i < avctx->block_align; i++) {
channels          698 libavcodec/adpcmenc.c             if (avctx->channels == 1) {
channels          700 libavcodec/adpcmenc.c                                        avctx->channels);
channels          705 libavcodec/adpcmenc.c                                        &c->status[0], n, avctx->channels);
channels          707 libavcodec/adpcmenc.c                                        &c->status[1], n, avctx->channels);
channels          713 libavcodec/adpcmenc.c             for (n *= avctx->channels; n > 0; n--) {
channels           61 libavcodec/adx.c     avctx->channels = buf[7];
channels           62 libavcodec/adx.c     if (avctx->channels <= 0 || avctx->channels > 2)
channels           68 libavcodec/adx.c         avctx->sample_rate > INT_MAX / (avctx->channels * BLOCK_SIZE * 8))
channels           72 libavcodec/adx.c     avctx->bit_rate = avctx->sample_rate * avctx->channels * BLOCK_SIZE * 8 / BLOCK_SAMPLES;
channels           43 libavcodec/adx.h     int channels;
channels           55 libavcodec/adx_parser.c                 int channels    = state & 0xFF;
channels           57 libavcodec/adx_parser.c                 if (channels > 0 && header_size >= 8) {
channels           59 libavcodec/adx_parser.c                     s->block_size  = BLOCK_SIZE * channels;
channels           49 libavcodec/adxdec.c         c->channels      = avctx->channels;
channels          119 libavcodec/adxdec.c         c->channels      = avctx->channels;
channels          130 libavcodec/adxdec.c     num_blocks = buf_size / (BLOCK_SIZE * c->channels);
channels          134 libavcodec/adxdec.c     if (!num_blocks || buf_size % (BLOCK_SIZE * avctx->channels)) {
channels          151 libavcodec/adxdec.c         for (ch = 0; ch < c->channels; ch++) {
channels           38 libavcodec/adxenc.c                        ADXChannelState *prev, int channels)
channels           49 libavcodec/adxenc.c     for (i = 0, j = 0; j < 32; i += channels, j++) {
channels           81 libavcodec/adxenc.c     for (i = 0, j = 0; j < 32; i += channels, j++) {
channels          109 libavcodec/adxenc.c     bytestream_put_byte(&buf, avctx->channels);     /* channels */
channels          127 libavcodec/adxenc.c     if (avctx->channels > 2) {
channels          164 libavcodec/adxenc.c     out_size = BLOCK_SIZE * avctx->channels + !c->header_parsed * HEADER_SIZE;
channels          179 libavcodec/adxenc.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          180 libavcodec/adxenc.c         adx_encode(c, dst, samples + ch, &c->prev[ch], avctx->channels);
channels           68 libavcodec/alac.c     int channels;
channels          238 libavcodec/alac.c                           int channels)
channels          252 libavcodec/alac.c     bps = alac->sample_size - alac->extra_bits + channels - 1;
channels          285 libavcodec/alac.c         for (ch = 0; ch < channels; ch++)
channels          305 libavcodec/alac.c         for (ch = 0; ch < channels; ch++) {
channels          323 libavcodec/alac.c                 for (ch = 0; ch < channels; ch++)
channels          327 libavcodec/alac.c         for (ch = 0; ch < channels; ch++) {
channels          359 libavcodec/alac.c             for (ch = 0; ch < channels; ch++) {
channels          369 libavcodec/alac.c     if (channels == 2) {
channels          372 libavcodec/alac.c                                            alac->extra_bits, channels, alac->nb_samples);
channels          382 libavcodec/alac.c                                            alac->extra_bits, channels, alac->nb_samples);
channels          386 libavcodec/alac.c                                        alac->extra_bits, channels, alac->nb_samples);
channels          391 libavcodec/alac.c         for (ch = 0; ch < channels; ch++) {
channels          398 libavcodec/alac.c         for (ch = 0; ch < channels; ch++) {
channels          404 libavcodec/alac.c         for (ch = 0; ch < channels; ch++) {
channels          420 libavcodec/alac.c     int channels;
channels          440 libavcodec/alac.c         channels = (element == TYPE_CPE) ? 2 : 1;
channels          441 libavcodec/alac.c         if (ch + channels > alac->channels ||
channels          442 libavcodec/alac.c             ff_alac_channel_layout_offsets[alac->channels - 1][ch] + channels > alac->channels) {
channels          448 libavcodec/alac.c                              ff_alac_channel_layout_offsets[alac->channels - 1][ch],
channels          449 libavcodec/alac.c                              channels);
channels          453 libavcodec/alac.c         ch += channels;
channels          465 libavcodec/alac.c     if (alac->channels == ch && alac->nb_samples)
channels          478 libavcodec/alac.c     for (ch = 0; ch < FFMIN(alac->channels, 2); ch++) {
channels          499 libavcodec/alac.c     for (ch = 0; ch < FFMIN(alac->channels, 2); ch++) {
channels          540 libavcodec/alac.c     alac->channels             = bytestream2_get_byteu(&gb);
channels          578 libavcodec/alac.c     if (alac->channels < 1) {
channels          580 libavcodec/alac.c         alac->channels = avctx->channels;
channels          582 libavcodec/alac.c         if (alac->channels > ALAC_MAX_CHANNELS)
channels          583 libavcodec/alac.c             alac->channels = avctx->channels;
channels          585 libavcodec/alac.c             avctx->channels = alac->channels;
channels          587 libavcodec/alac.c     if (avctx->channels > ALAC_MAX_CHANNELS || avctx->channels <= 0 ) {
channels          589 libavcodec/alac.c                                       avctx->channels);
channels          592 libavcodec/alac.c     avctx->channel_layout = ff_alac_channel_layouts[alac->channels - 1];
channels           46 libavcodec/alacdsp.c                               int extra_bits, int channels, int nb_samples)
channels           50 libavcodec/alacdsp.c     for (ch = 0; ch < channels; ch++)
channels           28 libavcodec/alacdsp.h                                  int extra_bits, int channels, int nb_samples);
channels           84 libavcodec/alacenc.c static void init_sample_buffers(AlacEncodeContext *s, int channels,
channels           92 libavcodec/alacenc.c         for (ch = 0; ch < channels; ch++) {                 \
channels          370 libavcodec/alacenc.c     int i, j, channels;
channels          374 libavcodec/alacenc.c     channels = element == TYPE_CPE ? 2 : 1;
channels          384 libavcodec/alacenc.c                 for (j = 0; j < channels; j++)
channels          391 libavcodec/alacenc.c                 for (j = 0; j < channels; j++)
channels          397 libavcodec/alacenc.c                                channels - 1;
channels          399 libavcodec/alacenc.c         init_sample_buffers(s, channels, samples);
channels          405 libavcodec/alacenc.c             for (j = 0; j < channels; j++) {
channels          415 libavcodec/alacenc.c         if (channels == 2)
channels          422 libavcodec/alacenc.c         for (i = 0; i < channels; i++) {
channels          438 libavcodec/alacenc.c                 for (j = 0; j < channels; j++) {
channels          445 libavcodec/alacenc.c         for (i = 0; i < channels; i++) {
channels          464 libavcodec/alacenc.c     const enum AlacRawDataBlockType *ch_elements = ff_alac_channel_elements[s->avctx->channels - 1];
channels          465 libavcodec/alacenc.c     const uint8_t *ch_map = ff_alac_channel_layout_offsets[s->avctx->channels - 1];
channels          471 libavcodec/alacenc.c     while (ch < s->avctx->channels) {
channels          536 libavcodec/alacenc.c                                                  avctx->channels,
channels          551 libavcodec/alacenc.c     AV_WB8 (alac_extradata+21, avctx->channels);
channels          554 libavcodec/alacenc.c             avctx->sample_rate * avctx->channels * avctx->bits_per_raw_sample); // average bitrate
channels          623 libavcodec/alacenc.c         max_frame_size = get_max_frame_size(s->frame_size, avctx->channels,
channels          322 libavcodec/alsdec.c     avctx->channels             = m4ac.channels;
channels          352 libavcodec/alsdec.c     if (avctx->channels > FF_SANE_NB_CHANNELS) {
channels          366 libavcodec/alsdec.c     if (sconf->chan_sort && avctx->channels > 1) {
channels          367 libavcodec/alsdec.c         int chan_pos_bits = av_ceil_log2(avctx->channels);
channels          368 libavcodec/alsdec.c         int bits_needed  = avctx->channels * chan_pos_bits + 7;
channels          372 libavcodec/alsdec.c         if (!(sconf->chan_pos = av_malloc_array(avctx->channels, sizeof(*sconf->chan_pos))))
channels          377 libavcodec/alsdec.c         for (i = 0; i < avctx->channels; i++) {
channels          381 libavcodec/alsdec.c         for (i = 0; i < avctx->channels; i++) {
channels          385 libavcodec/alsdec.c             if (idx >= avctx->channels || sconf->chan_pos[idx] != -1) {
channels         1227 libavcodec/alsdec.c     unsigned int channels   = ctx->avctx->channels;
channels         1230 libavcodec/alsdec.c     while (entries < channels && !(current->stop_flag = get_bits1(gb))) {
channels         1231 libavcodec/alsdec.c         current->master_channel = get_bits_long(gb, av_ceil_log2(channels));
channels         1233 libavcodec/alsdec.c         if (current->master_channel >= channels) {
channels         1258 libavcodec/alsdec.c     if (entries == channels) {
channels         1276 libavcodec/alsdec.c     unsigned int channels = ctx->avctx->channels;
channels         1284 libavcodec/alsdec.c     while (dep < channels && !ch[dep].stop_flag) {
channels         1291 libavcodec/alsdec.c     if (dep == channels) {
channels         1336 libavcodec/alsdec.c                 FFMAX(end   + 1,   end + 1 + t) > ctx->raw_buffer + channels * channel_size - master) {
channels         1340 libavcodec/alsdec.c                        ctx->raw_buffer, ctx->raw_buffer + channels * channel_size);
channels         1358 libavcodec/alsdec.c                 end   + 1 > ctx->raw_buffer + channels * channel_size - master) {
channels         1362 libavcodec/alsdec.c                        ctx->raw_buffer, ctx->raw_buffer + channels * channel_size);
channels         1474 libavcodec/alsdec.c         memset(last_acf_mantissa, 0, avctx->channels * sizeof(*last_acf_mantissa));
channels         1475 libavcodec/alsdec.c         memset(last_shift_value,  0, avctx->channels * sizeof(*last_shift_value) );
channels         1479 libavcodec/alsdec.c     if (avctx->channels * 8 > get_bits_left(gb))
channels         1482 libavcodec/alsdec.c     for (c = 0; c < avctx->channels; ++c) {
channels         1648 libavcodec/alsdec.c         for (c = 0; c < avctx->channels; c++) {
channels         1661 libavcodec/alsdec.c             if (c == avctx->channels - 1 || (c & 1))
channels         1690 libavcodec/alsdec.c         for (c = 0; c < avctx->channels; c++)
channels         1696 libavcodec/alsdec.c         memset(reverted_channels, 0, sizeof(*reverted_channels) * avctx->channels);
channels         1712 libavcodec/alsdec.c             for (c = 0; c < avctx->channels; c++) {
channels         1731 libavcodec/alsdec.c             for (c = 0; c < avctx->channels; c++) {
channels         1737 libavcodec/alsdec.c             for (c = 0; c < avctx->channels; c++) {
channels         1755 libavcodec/alsdec.c             memset(reverted_channels, 0, avctx->channels * sizeof(*reverted_channels));
channels         1761 libavcodec/alsdec.c         for (c = 0; c < avctx->channels; c++)
channels         1829 libavcodec/alsdec.c         int channels = avctx->channels;                                              \
channels         1831 libavcodec/alsdec.c         int raw_step = channels > 1 ? ctx->raw_samples[1] - raw_samples : 1;         \
channels         1835 libavcodec/alsdec.c                 for (c = 0; c < channels; c++)                                       \
channels         1839 libavcodec/alsdec.c                 for (c = 0; c < channels; c++)                                       \
channels         1858 libavcodec/alsdec.c                  sample < ctx->cur_frame_length * avctx->channels;
channels         1879 libavcodec/alsdec.c                          sample < ctx->cur_frame_length * avctx->channels;
channels         1885 libavcodec/alsdec.c                                         ctx->cur_frame_length * avctx->channels);
channels         1893 libavcodec/alsdec.c                               ctx->cur_frame_length * avctx->channels *
channels         1956 libavcodec/alsdec.c         for (i = 0; i < avctx->channels; i++) {
channels         2023 libavcodec/alsdec.c     num_buffers = sconf->mc_coding ? avctx->channels : 1;
channels         2098 libavcodec/alsdec.c     ctx->raw_buffer       = av_mallocz_array(avctx->channels * channel_size, sizeof(*ctx->raw_buffer));
channels         2099 libavcodec/alsdec.c     ctx->raw_samples      = av_malloc_array(avctx->channels, sizeof(*ctx->raw_samples));
channels         2102 libavcodec/alsdec.c         ctx->acf               = av_malloc_array(avctx->channels, sizeof(*ctx->acf));
channels         2103 libavcodec/alsdec.c         ctx->shift_value       = av_malloc_array(avctx->channels, sizeof(*ctx->shift_value));
channels         2104 libavcodec/alsdec.c         ctx->last_shift_value  = av_malloc_array(avctx->channels, sizeof(*ctx->last_shift_value));
channels         2105 libavcodec/alsdec.c         ctx->last_acf_mantissa = av_malloc_array(avctx->channels, sizeof(*ctx->last_acf_mantissa));
channels         2106 libavcodec/alsdec.c         ctx->raw_mantissa      = av_mallocz_array(avctx->channels, sizeof(*ctx->raw_mantissa));
channels         2122 libavcodec/alsdec.c         for (c = 0; c < avctx->channels; ++c) {
channels         2136 libavcodec/alsdec.c     for (c = 1; c < avctx->channels; c++)
channels         2143 libavcodec/alsdec.c                                           avctx->channels *
channels          165 libavcodec/amrnbdec.c     if (avctx->channels > 1) {
channels          170 libavcodec/amrnbdec.c     avctx->channels       = 1;
channels          101 libavcodec/amrwbdec.c     if (avctx->channels > 1) {
channels          106 libavcodec/amrwbdec.c     avctx->channels       = 1;
channels          142 libavcodec/apedec.c     int channels;
channels          226 libavcodec/apedec.c     if (avctx->channels > 2) {
channels          247 libavcodec/apedec.c     s->channels          = avctx->channels;
channels          300 libavcodec/apedec.c     avctx->channel_layout = (avctx->channels==2) ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
channels         1398 libavcodec/apedec.c     if (ctx->channels == 2) {
channels         1545 libavcodec/apedec.c     if ((s->channels == 1) || (s->frameflags & APE_FRAMECODE_PSEUDO_STEREO))
channels         1559 libavcodec/apedec.c         for (ch = 0; ch < s->channels; ch++) {
channels         1566 libavcodec/apedec.c         for (ch = 0; ch < s->channels; ch++) {
channels         1573 libavcodec/apedec.c         for (ch = 0; ch < s->channels; ch++) {
channels         1588 libavcodec/apedec.c             for (ch = 0; ch < s->channels; ch++) {
channels          512 libavcodec/aptx.c     if (avctx->channels != 2)
channels          528 libavcodec/aptx.c         Channel *channel = &s->channels[chan];
channels           98 libavcodec/aptx.h     Channel channels[NB_CHANNELS];
channels          204 libavcodec/aptx.h static inline int aptx_check_parity(Channel channels[NB_CHANNELS], int32_t *idx)
channels          206 libavcodec/aptx.h     int32_t parity = aptx_quantized_parity(&channels[LEFT])
channels          207 libavcodec/aptx.h                    ^ aptx_quantized_parity(&channels[RIGHT]);
channels          116 libavcodec/aptxdec.c         ff_aptx_generate_dither(&ctx->channels[channel]);
channels          119 libavcodec/aptxdec.c             aptxhd_unpack_codeword(&ctx->channels[channel],
channels          122 libavcodec/aptxdec.c             aptx_unpack_codeword(&ctx->channels[channel],
channels          124 libavcodec/aptxdec.c         ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd);
channels          127 libavcodec/aptxdec.c     ret = aptx_check_parity(ctx->channels, &ctx->sync_idx);
channels          130 libavcodec/aptxdec.c         aptx_decode_channel(&ctx->channels[channel], samples[channel]);
channels          148 libavcodec/aptxdec.c     frame->channels = NB_CHANNELS;
channels          150 libavcodec/aptxenc.c static void aptx_insert_sync(Channel channels[NB_CHANNELS], int32_t *idx)
channels          152 libavcodec/aptxenc.c     if (aptx_check_parity(channels, idx)) {
channels          156 libavcodec/aptxenc.c         Quantize *min = &channels[NB_CHANNELS-1].quantize[map[0]];
channels          157 libavcodec/aptxenc.c         for (c = &channels[NB_CHANNELS-1]; c >= channels; c--)
channels          192 libavcodec/aptxenc.c         aptx_encode_channel(&ctx->channels[channel], samples[channel], ctx->hd);
channels          194 libavcodec/aptxenc.c     aptx_insert_sync(ctx->channels, &ctx->sync_idx);
channels          197 libavcodec/aptxenc.c         ff_aptx_invert_quantize_and_prediction(&ctx->channels[channel], ctx->hd);
channels          200 libavcodec/aptxenc.c                     aptxhd_pack_codeword(&ctx->channels[channel]));
channels          203 libavcodec/aptxenc.c                     aptx_pack_codeword(&ctx->channels[channel]));
channels           27 libavcodec/arm/flacdsp_init_arm.c av_cold void ff_flacdsp_init_arm(FLACDSPContext *c, enum AVSampleFormat fmt, int channels,
channels           44 libavcodec/arm/mlpdsp_init_arm.c #define DECLARE_PACK(order,channels,shift) \
channels           45 libavcodec/arm/mlpdsp_init_arm.c     int32_t ff_mlp_pack_output_##order##order_##channels##ch_##shift##shift_armv6(int32_t, uint16_t, int32_t (*)[], void *, uint8_t*, int8_t *, uint8_t, int);
channels           46 libavcodec/arm/mlpdsp_init_arm.c #define ENUMERATE_PACK(order,channels,shift) \
channels           47 libavcodec/arm/mlpdsp_init_arm.c     ff_mlp_pack_output_##order##order_##channels##ch_##shift##shift_armv6,
channels           48 libavcodec/arm/mlpdsp_init_arm.c #define PACK_CHANNELS(macro,order,channels) \
channels           49 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,0) \
channels           50 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,1) \
channels           51 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,2) \
channels           52 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,3) \
channels           53 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,4) \
channels           54 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,5) \
channels           55 libavcodec/arm/mlpdsp_init_arm.c         macro(order,channels,mixed)
channels           43 libavcodec/arm/sbcdsp_init_arm.c                                    int blocks, int channels, int subbands);
channels          283 libavcodec/atrac1.c     if (buf_size < 212 * avctx->channels) {
channels          293 libavcodec/atrac1.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          340 libavcodec/atrac1.c     if (avctx->channels < 1 || avctx->channels > AT1_MAX_CHANNELS) {
channels          342 libavcodec/atrac1.c                avctx->channels);
channels          658 libavcodec/atrac3.c         js_block_align = (avctx->block_align / avctx->channels) * 2; /* block pair */
channels          660 libavcodec/atrac3.c         for (ch = 0; ch < avctx->channels; ch = ch + 2) {
channels          729 libavcodec/atrac3.c         for (i = 0; i < avctx->channels; i++) {
channels          732 libavcodec/atrac3.c                           databuf + i * avctx->block_align / avctx->channels,
channels          733 libavcodec/atrac3.c                           avctx->block_align * 8 / avctx->channels);
channels          743 libavcodec/atrac3.c     for (i = 0; i < avctx->channels; i++) {
channels          766 libavcodec/atrac3.c     for (i = 0; i < avctx->channels; i++) {
channels          771 libavcodec/atrac3.c         while (i < avctx->channels && get_bits_left(&q->gb) > 6 && show_bits(&q->gb, 6) != 0x28) {
channels          777 libavcodec/atrac3.c     for (i = 0; i < avctx->channels; i++) {
channels          878 libavcodec/atrac3.c     if (avctx->channels < MIN_CHANNELS || avctx->channels > MAX_CHANNELS) {
channels          890 libavcodec/atrac3.c         samples_per_frame = SAMPLES_PER_FRAME * avctx->channels;
channels          906 libavcodec/atrac3.c         samples_per_frame    = SAMPLES_PER_FRAME * avctx->channels;
channels          912 libavcodec/atrac3.c         if (avctx->block_align !=  96 * avctx->channels * frame_factor &&
channels          913 libavcodec/atrac3.c             avctx->block_align != 152 * avctx->channels * frame_factor &&
channels          914 libavcodec/atrac3.c             avctx->block_align != 192 * avctx->channels * frame_factor) {
channels          917 libavcodec/atrac3.c                    avctx->channels, frame_factor);
channels          941 libavcodec/atrac3.c     if (samples_per_frame != SAMPLES_PER_FRAME * avctx->channels) {
channels          956 libavcodec/atrac3.c         if (avctx->channels % 2 == 1) { /* Joint stereo channels must be even */
channels         1003 libavcodec/atrac3.c     q->units = av_mallocz_array(avctx->channels, sizeof(*q->units));
channels          341 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels          342 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels          488 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels          489 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels          623 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_wordlen, 0,
channels          624 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_wordlen));
channels          633 libavcodec/atrac3plus.c         if (ctx->channels[0].qu_wordlen[i] ||
channels          634 libavcodec/atrac3plus.c             (num_channels == 2 && ctx->channels[1].qu_wordlen[i]))
channels          659 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_sf_idx, 0,
channels          660 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_sf_idx));
channels          736 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels          737 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels          794 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].qu_tab_idx, 0,
channels          795 libavcodec/atrac3plus.c                sizeof(ctx->channels[ch_num].qu_tab_idx));
channels          863 libavcodec/atrac3plus.c         chan = &ctx->channels[ch_num];
channels          890 libavcodec/atrac3plus.c             } else if (ch_num && ctx->channels[0].qu_wordlen[qu] && !codetab) {
channels          893 libavcodec/atrac3plus.c                        &ctx->channels[0].spectrum[ff_atrac3p_qu_to_spec_pos[qu]],
channels          896 libavcodec/atrac3plus.c                 chan->qu_wordlen[qu] = ctx->channels[0].qu_wordlen[qu];
channels          956 libavcodec/atrac3plus.c         get_subband_flags(gb, ctx->channels[ch_num].wnd_shape,
channels          973 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels          974 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels         1079 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels         1080 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels         1219 libavcodec/atrac3plus.c     Atrac3pChanParams *chan     = &ctx->channels[ch_num];
channels         1220 libavcodec/atrac3plus.c     Atrac3pChanParams *ref_chan = &ctx->channels[0];
channels         1372 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].gain_data, 0,
channels         1373 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].gain_data) * ATRAC3P_SUBBANDS);
channels         1378 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = get_bits(gb, 4) + 1;
channels         1380 libavcodec/atrac3plus.c                 ctx->channels[ch_num].num_gain_subbands = coded_subbands;
channels         1388 libavcodec/atrac3plus.c                 for (sb = coded_subbands; sb < ctx->channels[ch_num].num_gain_subbands; sb++)
channels         1389 libavcodec/atrac3plus.c                     ctx->channels[ch_num].gain_data[sb] =
channels         1390 libavcodec/atrac3plus.c                         ctx->channels[ch_num].gain_data[sb - 1];
channels         1393 libavcodec/atrac3plus.c             ctx->channels[ch_num].num_gain_subbands = 0;
channels         1413 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
channels         1414 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
channels         1455 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
channels         1456 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
channels         1519 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
channels         1520 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
channels         1580 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
channels         1581 libavcodec/atrac3plus.c     Atrac3pWavesData *ref = ctx->channels[0].tones_info;
channels         1679 libavcodec/atrac3plus.c     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
channels         1706 libavcodec/atrac3plus.c         memset(ctx->channels[ch_num].tones_info, 0,
channels         1707 libavcodec/atrac3plus.c                sizeof(*ctx->channels[ch_num].tones_info) * ATRAC3P_SUBBANDS);
channels         1750 libavcodec/atrac3plus.c                 ctx->channels[1].tones_info[i] = ctx->channels[0].tones_info[i];
channels         1753 libavcodec/atrac3plus.c                 FFSWAP(Atrac3pWavesData, ctx->channels[0].tones_info[i],
channels         1754 libavcodec/atrac3plus.c                        ctx->channels[1].tones_info[i]);
channels          145 libavcodec/atrac3plus.h     Atrac3pChanParams channels[2];
channels           86 libavcodec/atrac3plusdec.c     switch (avctx->channels) {
channels          140 libavcodec/atrac3plusdec.c                "Unsupported channel count: %d!\n", avctx->channels);
channels          182 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].ch_num          = ch;
channels          183 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape       = &ctx->ch_units[i].channels[ch].wnd_shape_hist[0][0];
channels          184 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].wnd_shape_prev  = &ctx->ch_units[i].channels[ch].wnd_shape_hist[1][0];
channels          185 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data       = &ctx->ch_units[i].channels[ch].gain_data_hist[0][0];
channels          186 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].gain_data_prev  = &ctx->ch_units[i].channels[ch].gain_data_hist[1][0];
channels          187 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info      = &ctx->ch_units[i].channels[ch].tones_info_hist[0][0];
channels          188 libavcodec/atrac3plusdec.c             ctx->ch_units[i].channels[ch].tones_info_prev = &ctx->ch_units[i].channels[ch].tones_info_hist[1][0];
channels          218 libavcodec/atrac3plusdec.c         RNG_index += ch_unit->channels[0].qu_sf_idx[qu] +
channels          219 libavcodec/atrac3plusdec.c                      ch_unit->channels[1].qu_sf_idx[qu];
channels          230 libavcodec/atrac3plusdec.c             src        = &ch_unit->channels[ch].spectrum[ff_atrac3p_qu_to_spec_pos[qu]];
channels          235 libavcodec/atrac3plusdec.c             if (ch_unit->channels[ch].qu_wordlen[qu] > 0) {
channels          236 libavcodec/atrac3plusdec.c                 q = ff_atrac3p_sf_tab[ch_unit->channels[ch].qu_sf_idx[qu]] *
channels          237 libavcodec/atrac3plusdec.c                     ff_atrac3p_mant_tab[ch_unit->channels[ch].qu_wordlen[qu]];
channels          275 libavcodec/atrac3plusdec.c                              (ch_unit->channels[ch].wnd_shape_prev[sb] << 1) +
channels          276 libavcodec/atrac3plusdec.c                              ch_unit->channels[ch].wnd_shape[sb], sb);
channels          282 libavcodec/atrac3plusdec.c                                        &ch_unit->channels[ch].gain_data_prev[sb],
channels          283 libavcodec/atrac3plusdec.c                                        &ch_unit->channels[ch].gain_data[sb],
channels          304 libavcodec/atrac3plusdec.c                 if (ch_unit->channels[ch].tones_info[sb].num_wavs ||
channels          305 libavcodec/atrac3plusdec.c                     ch_unit->channels[ch].tones_info_prev[sb].num_wavs) {
channels          318 libavcodec/atrac3plusdec.c         FFSWAP(uint8_t *, ch_unit->channels[ch].wnd_shape,
channels          319 libavcodec/atrac3plusdec.c                ch_unit->channels[ch].wnd_shape_prev);
channels          320 libavcodec/atrac3plusdec.c         FFSWAP(AtracGainInfo *, ch_unit->channels[ch].gain_data,
channels          321 libavcodec/atrac3plusdec.c                ch_unit->channels[ch].gain_data_prev);
channels          322 libavcodec/atrac3plusdec.c         FFSWAP(Atrac3pWavesData *, ch_unit->channels[ch].tones_info,
channels          323 libavcodec/atrac3plusdec.c                ch_unit->channels[ch].tones_info_prev);
channels          190 libavcodec/atrac3plusdsp.c     Atrac3pWavesData *tones_now  = &ch_unit->channels[ch_num].tones_info_prev[sb];
channels          191 libavcodec/atrac3plusdsp.c     Atrac3pWavesData *tones_next = &ch_unit->channels[ch_num].tones_info[sb];
channels          427 libavcodec/atrac3plusdsp.c     if (ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]] == ATRAC3P_POWER_COMP_OFF)
channels          435 libavcodec/atrac3plusdsp.c     g1 = &ctx->channels[ch_index ^ swap_ch].gain_data[sb];
channels          436 libavcodec/atrac3plusdsp.c     g2 = &ctx->channels[ch_index ^ swap_ch].gain_data_prev[sb];
channels          446 libavcodec/atrac3plusdsp.c     grp_lev = pwc_levs[ctx->channels[ch_index ^ swap_ch].power_levs[subband_to_powgrp[sb]]] / (1 << gcv);
channels          450 libavcodec/atrac3plusdsp.c         if (ctx->channels[ch_index].qu_wordlen[qu] <= 0)
channels          453 libavcodec/atrac3plusdsp.c         qu_lev = ff_atrac3p_sf_tab[ctx->channels[ch_index].qu_sf_idx[qu]] *
channels          454 libavcodec/atrac3plusdsp.c                  ff_atrac3p_mant_tab[ctx->channels[ch_index].qu_wordlen[qu]] /
channels          455 libavcodec/atrac3plusdsp.c                  (1 << ctx->channels[ch_index].qu_wordlen[qu]) * grp_lev;
channels          886 libavcodec/atrac9dec.c     avctx->channels       = av_get_channel_layout_nb_channels(avctx->channel_layout);
channels          168 libavcodec/audiotoolboxdec.c         avctx->channels = format.mChannelsPerFrame;
channels          169 libavcodec/audiotoolboxdec.c         avctx->channel_layout = av_get_default_channel_layout(avctx->channels);
channels          177 libavcodec/audiotoolboxdec.c         format.mChannelsPerFrame = avctx->channels;
channels          359 libavcodec/audiotoolboxdec.c         in_format.mChannelsPerFrame = hdr.channels;
channels          365 libavcodec/audiotoolboxdec.c         in_format.mChannelsPerFrame = avctx->channels ? avctx->channels : 1;
channels          369 libavcodec/audiotoolboxdec.c     avctx->channels = out_format.mChannelsPerFrame = in_format.mChannelsPerFrame;
channels          390 libavcodec/audiotoolboxdec.c                                       * avctx->frame_size * avctx->channels)))
channels          409 libavcodec/audiotoolboxdec.c     if ((avctx->channels && avctx->sample_rate) || ffat_usable_extradata(avctx))
channels          456 libavcodec/audiotoolboxdec.c     type *end_ptr = in_ptr + frame->nb_samples * avctx->channels; \
channels          458 libavcodec/audiotoolboxdec.c     for (; in_ptr < end_ptr; in_ptr += avctx->channels, out_ptr += avctx->channels) { \
channels          460 libavcodec/audiotoolboxdec.c         for (c = 0; c < avctx->channels; c++) \
channels          510 libavcodec/audiotoolboxdec.c                 .mNumberChannels = avctx->channels,
channels          512 libavcodec/audiotoolboxdec.c                                  * avctx->channels,
channels          247 libavcodec/audiotoolboxenc.c         .mBytesPerPacket = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->channels,
channels          249 libavcodec/audiotoolboxenc.c         .mBytesPerFrame = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->channels,
channels          250 libavcodec/audiotoolboxenc.c         .mChannelsPerFrame = avctx->channels,
channels          259 libavcodec/audiotoolboxenc.c                          sizeof(AudioChannelDescription) * avctx->channels;
channels          280 libavcodec/audiotoolboxenc.c         avctx->channel_layout = av_get_default_channel_layout(avctx->channels);
channels          282 libavcodec/audiotoolboxenc.c     if ((status = remap_layout(channel_layout, avctx->channel_layout, avctx->channels)) < 0) {
channels          477 libavcodec/audiotoolboxenc.c     data->mBuffers[0].mNumberChannels = avctx->channels;
channels          480 libavcodec/audiotoolboxenc.c                                         avctx->channels;
channels          507 libavcodec/audiotoolboxenc.c                 .mNumberChannels = avctx->channels,
channels         1187 libavcodec/avcodec.h     int channels;    ///< number of audio channels
channels           52 libavcodec/binkaudio.c     int channels;
channels           86 libavcodec/binkaudio.c     if (avctx->channels < 1 || avctx->channels > MAX_CHANNELS) {
channels           87 libavcodec/binkaudio.c         av_log(avctx, AV_LOG_ERROR, "invalid number of channels: %d\n", avctx->channels);
channels           90 libavcodec/binkaudio.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO :
channels           98 libavcodec/binkaudio.c         if (sample_rate > INT_MAX / avctx->channels)
channels          100 libavcodec/binkaudio.c         sample_rate  *= avctx->channels;
channels          101 libavcodec/binkaudio.c         s->channels = 1;
channels          103 libavcodec/binkaudio.c             frame_len_bits += av_log2(avctx->channels);
channels          105 libavcodec/binkaudio.c         s->channels = avctx->channels;
channels          111 libavcodec/binkaudio.c     s->block_size    = (s->frame_len - s->overlap_len) * s->channels;
channels          181 libavcodec/binkaudio.c     for (ch = 0; ch < s->channels; ch++) {
channels          257 libavcodec/binkaudio.c     for (ch = 0; ch < s->channels; ch++) {
channels          259 libavcodec/binkaudio.c         int count = s->overlap_len * s->channels;
channels          262 libavcodec/binkaudio.c             for (i = 0; i < s->overlap_len; i++, j += s->channels)
channels          336 libavcodec/binkaudio.c     frame->nb_samples = s->block_size / avctx->channels;
channels           34 libavcodec/bmvaudio.c     avctx->channels       = 2;
channels           59 libavcodec/cngdec.c     avctx->channels    = 1;
channels           50 libavcodec/cngenc.c     if (avctx->channels != 1) {
channels          166 libavcodec/codec_par.h     int      channels;
channels         1037 libavcodec/cook.c     PRINT("nb_channels", q->avctx->channels);
channels         1073 libavcodec/cook.c     if (!avctx->channels) {
channels         1101 libavcodec/cook.c         q->subpacket[s].samples_per_channel = samples_per_frame / avctx->channels;
channels         1116 libavcodec/cook.c             if (avctx->channels != 1) {
channels         1123 libavcodec/cook.c             if (avctx->channels != 1) {
channels         1130 libavcodec/cook.c             if (avctx->channels != 2) {
channels         1211 libavcodec/cook.c         if (q->num_subpackets + q->subpacket[s].num_channels > q->avctx->channels) {
channels         1212 libavcodec/cook.c             av_log(avctx, AV_LOG_ERROR, "Too many subpackets %d for channels %d\n", q->num_subpackets, q->avctx->channels);
channels         1267 libavcodec/cook.c         avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
channels           44 libavcodec/cook_parser.c                 avctx->extradata && avctx->extradata_size >= 8 && avctx->channels)
channels           45 libavcodec/cook_parser.c         s->duration = AV_RB16(avctx->extradata + 4) / avctx->channels;
channels         2150 libavcodec/dca_core.c     for (i = 0; i < avctx->channels; i++) {
channels         2182 libavcodec/dca_core.c     for (i = 0; i < avctx->channels; i++)
channels         2186 libavcodec/dca_core.c     nchannels = av_popcount(s->ch_mask) - avctx->channels;
channels         1741 libavcodec/dca_lbr.c     avctx->channels = nchannels = channel_counts[ch_conf];
channels         1750 libavcodec/dca_lbr.c         avctx->channels++;
channels         1444 libavcodec/dca_xll.c     for (i = 0; i < avctx->channels; i++) {
channels           75 libavcodec/dcadec.c     avctx->channels = nchannels;
channels           70 libavcodec/dcaenc.c     int channels;
channels          172 libavcodec/dcaenc.c     c->fullband_channels = c->channels = avctx->channels;
channels          173 libavcodec/dcaenc.c     c->lfe_channel = (avctx->channels == 3 || avctx->channels == 6);
channels          187 libavcodec/dcaenc.c         layout = av_get_default_channel_layout(avctx->channels);
channels          361 libavcodec/dcaenc.c                 hist[i + hist_start] = input[(subs * 32 + i) * c->channels + chi];
channels          377 libavcodec/dcaenc.c     memcpy(hist, &c->history[c->channels - 1][0], 512 * sizeof(int32_t));
channels          392 libavcodec/dcaenc.c             hist[i + hist_start] = input[(lfes * 64 + i) * c->channels + lfech];
channels          526 libavcodec/dcaenc.c                 data[i] = input[k * c->channels + chi];
channels          892 libavcodec/dcaenc.c         for (ch = 0; ch < c->channels; ch++) {
channels          895 libavcodec/dcaenc.c             c->history[ch][k] = input[k * c->channels + chi];
channels          907 libavcodec/dcaenc.c      for (ch = 0; ch < c->channels; ch++) {
channels           63 libavcodec/decode.c     int channels;
channels          100 libavcodec/decode.c         avctx->channels = val;
channels          176 libavcodec/decode.c         int planes = avci->to_free->channels;
channels          199 libavcodec/decode.c     frame->channels       = avci->to_free->channels;
channels          384 libavcodec/decode.c             if (!frame->channels)
channels          385 libavcodec/decode.c                 frame->channels = avctx->channels;
channels          415 libavcodec/decode.c                                 frame->nb_samples - avci->skip_samples, avctx->channels, frame->format);
channels          689 libavcodec/decode.c                 avci->initial_channels       = frame->channels;
channels          706 libavcodec/decode.c                            avci->initial_channels       != frame->channels ||
channels         1454 libavcodec/decode.c         ch     = frame->channels;
channels         1463 libavcodec/decode.c             pool->channels == ch && frame->nb_samples == pool->samples)
channels         1541 libavcodec/decode.c         pool->channels   = ch;
channels         1773 libavcodec/decode.c                      avctx->channels) {
channels         1781 libavcodec/decode.c                 if (avctx->channels > FF_SANE_NB_CHANNELS) {
channels         1783 libavcodec/decode.c                            avctx->channels);
channels         1788 libavcodec/decode.c         frame->channels = avctx->channels;
channels         1879 libavcodec/decode.c         if (frame->nb_samples * (int64_t)avctx->channels > avctx->max_samples) {
channels          416 libavcodec/dolby_e.c     DBEChannel *c = &s->channels[seg_id][ch];
channels          473 libavcodec/dolby_e.c             s->channels[seg_id][ch].nb_groups = 0;
channels          481 libavcodec/dolby_e.c             s->channels[seg_id][ch].nb_groups = 0;
channels          585 libavcodec/dolby_e.c         transform(s, &s->channels[0][ch], s->history[ch], output);
channels          586 libavcodec/dolby_e.c         transform(s, &s->channels[1][ch], s->history[ch], output + FRAME_SAMPLES / 2);
channels          640 libavcodec/dolby_e.c     avctx->channels    = s->nb_channels;
channels          105 libavcodec/dolby_e.h     DBEChannel  channels[MAX_SEGMENTS][MAX_CHANNELS];
channels          135 libavcodec/dpcm.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          218 libavcodec/dpcm.c     int stereo = avctx->channels - 1;
channels          232 libavcodec/dpcm.c         out = buf_size - 6 - avctx->channels;
channels          235 libavcodec/dpcm.c         out = buf_size - 2 * avctx->channels;
channels          253 libavcodec/dpcm.c     if (out % avctx->channels) {
channels          258 libavcodec/dpcm.c     frame->nb_samples = (out + avctx->channels - 1) / avctx->channels;
channels          290 libavcodec/dpcm.c         for (ch = 0; ch < avctx->channels; ch++) {
channels          310 libavcodec/dpcm.c         for (ch = 0; ch < avctx->channels; ch++)
channels           47 libavcodec/dsddec.c     if (!avctx->channels)
channels           52 libavcodec/dsddec.c     s = av_malloc_array(sizeof(DSDContext), avctx->channels);
channels           57 libavcodec/dsddec.c     for (i = 0; i < avctx->channels; i++) {
channels           87 libavcodec/dsddec.c         src_stride = avctx->channels;
channels          104 libavcodec/dsddec.c     frame->nb_samples = avpkt->size / avctx->channels;
channels          111 libavcodec/dsddec.c     avctx->execute2(avctx, dsd_channel, &td, NULL, avctx->channels);
channels          114 libavcodec/dsddec.c     return frame->nb_samples * avctx->channels;
channels           83 libavcodec/dsicinaudio.c     avctx->channels           = 1;
channels          295 libavcodec/dss_sp.c     avctx->channels       = 1;
channels           83 libavcodec/dstdec.c     if (avctx->channels > DST_MAX_CHANNELS) {
channels           84 libavcodec/dstdec.c         avpriv_request_sample(avctx, "Channel count %d", avctx->channels);
channels          100 libavcodec/dstdec.c     for (i = 0; i < avctx->channels; i++)
channels          108 libavcodec/dstdec.c static int read_map(GetBitContext *gb, Table *t, unsigned int map[DST_MAX_CHANNELS], int channels)
channels          114 libavcodec/dstdec.c         for (ch = 1; ch < channels; ch++) {
channels          246 libavcodec/dstdec.c     const int channels = avctx->channels;
channels          271 libavcodec/dstdec.c         memcpy(frame->data[0], avpkt->data + 1, FFMIN(avpkt->size - 1, frame->nb_samples * channels));
channels          296 libavcodec/dstdec.c     if ((ret = read_map(gb, &s->fsets, map_ch_to_felem, channels)) < 0)
channels          304 libavcodec/dstdec.c         if ((ret = read_map(gb, &s->probs, map_ch_to_pelem, channels)) < 0)
channels          310 libavcodec/dstdec.c     for (ch = 0; ch < channels; ch++)
channels          334 libavcodec/dstdec.c     memset(dsd, 0, frame->nb_samples * 4 * channels);
channels          339 libavcodec/dstdec.c         for (ch = 0; ch < channels; ch++) {
channels          362 libavcodec/dstdec.c             dsd[((i >> 3) * channels + ch) << 2] |= v << (7 - (i & 0x7 ));
channels          370 libavcodec/dstdec.c     for (i = 0; i < channels; i++) {
channels          373 libavcodec/dstdec.c                              channels * 4, pcm + i, channels);
channels           38 libavcodec/dvaudiodec.c     if (avctx->channels != 2) {
channels          563 libavcodec/eac3dec.c         for (ch = (num_cpl_blocks != 6); ch <= s->channels; ch++) {
channels          582 libavcodec/eac3dec.c         for (ch = 0; ch <= s->channels; ch++)
channels           86 libavcodec/encode.c     frame->channels       = src->channels;
channels           97 libavcodec/encode.c                                src->nb_samples, s->channels, s->sample_fmt)) < 0)
channels          101 libavcodec/encode.c                                       s->channels, s->sample_fmt)) < 0)
channels          139 libavcodec/encode.c             avctx->channels > AV_NUM_DATA_POINTERS) {
channels          237 libavcodec/evrcdec.c     avctx->channels       = 1;
channels          152 libavcodec/exr.c     EXRChannel *channels;
channels          735 libavcodec/exr.c         channel = &s->channels[i];
channels          754 libavcodec/exr.c             channel = &s->channels[j];
channels          785 libavcodec/exr.c         if (s->channels[i].pixel_type == EXR_FLOAT) {
channels          787 libavcodec/exr.c         } else if (s->channels[i].pixel_type == EXR_HALF) {
channels          805 libavcodec/exr.c             EXRChannel *channel = &s->channels[c];
channels          930 libavcodec/exr.c         if (s->channels[c].pixel_type == EXR_HALF) {/* B44 only compress half float data */
channels         1456 libavcodec/exr.c                 s->channels = av_realloc(s->channels,
channels         1458 libavcodec/exr.c                 if (!s->channels) {
channels         1462 libavcodec/exr.c                 channel             = &s->channels[s->nb_channels - 1];
channels         1885 libavcodec/exr.c     av_freep(&s->channels);
channels           87 libavcodec/ffwavesynth.c     uint32_t channels;
channels          262 libavcodec/ffwavesynth.c         in->channels = AV_RL32(edata + 20);
channels          317 libavcodec/ffwavesynth.c     if (avc->channels > WS_MAX_CHANNELS) {
channels          351 libavcodec/ffwavesynth.c                                    int32_t *channels)
channels          386 libavcodec/ffwavesynth.c         all_ch |= in->channels;
channels          387 libavcodec/ffwavesynth.c         for (c = in->channels, cv = channels; c; c >>= 1, cv++)
channels          392 libavcodec/ffwavesynth.c     for (c = all_ch, cv = channels; c; c >>= 1, cv++)
channels          431 libavcodec/ffwavesynth.c     int32_t channels[WS_MAX_CHANNELS];
channels          448 libavcodec/ffwavesynth.c         memset(channels, 0, avc->channels * sizeof(*channels));
channels          451 libavcodec/ffwavesynth.c         wavesynth_synth_sample(ws, ts, channels);
channels          452 libavcodec/ffwavesynth.c         for (c = 0; c < avc->channels; c++)
channels          453 libavcodec/ffwavesynth.c             *(pcm++) = channels[c] >> 16;
channels           71 libavcodec/flac.c         fi->channels = fi->ch_mode + 1;
channels           74 libavcodec/flac.c         fi->channels = 2;
channels          198 libavcodec/flac.c     if (avctx->channels <= FF_ARRAY_ELEMS(flac_channel_layouts))
channels          199 libavcodec/flac.c         avctx->channel_layout = flac_channel_layouts[avctx->channels - 1];
channels          223 libavcodec/flac.c     s->channels = get_bits(&gb, 3) + 1;
channels          232 libavcodec/flac.c     avctx->channels = s->channels;
channels          237 libavcodec/flac.c         av_get_channel_layout_nb_channels(avctx->channel_layout) != avctx->channels)
channels           65 libavcodec/flac.h     int channels;           /**< number of channels                      */\
channels          297 libavcodec/flac_parser.c     if (child_fi->channels != header_fi->channels) {
channels          484 libavcodec/flac_parser.c     if (header->fi.channels != fpc->avctx->channels ||
channels          486 libavcodec/flac_parser.c         fpc->avctx->channels = header->fi.channels;
channels          120 libavcodec/flacdec.c                     s->flac_stream_info.channels, s->flac_stream_info.bps);
channels          131 libavcodec/flacdec.c     av_log(avctx, AV_LOG_DEBUG, "  Channels: %d\n", s->channels);
channels          142 libavcodec/flacdec.c     buf_size = av_samples_get_buffer_size(NULL, s->flac_stream_info.channels,
channels          154 libavcodec/flacdec.c                                  s->flac_stream_info.channels,
channels          188 libavcodec/flacdec.c                     s->flac_stream_info.channels, s->flac_stream_info.bps);
channels          483 libavcodec/flacdec.c     if (   s->flac_stream_info.channels
channels          484 libavcodec/flacdec.c         && fi.channels != s->flac_stream_info.channels
channels          486 libavcodec/flacdec.c         s->flac_stream_info.channels = s->avctx->channels = fi.channels;
channels          492 libavcodec/flacdec.c     s->flac_stream_info.channels = s->avctx->channels = fi.channels;
channels          540 libavcodec/flacdec.c                     s->flac_stream_info.channels, s->flac_stream_info.bps);
channels          545 libavcodec/flacdec.c     for (i = 0; i < s->flac_stream_info.channels; i++) {
channels          625 libavcodec/flacdec.c                                    s->flac_stream_info.channels,
channels           88 libavcodec/flacdsp.c av_cold void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, int channels,
channels          127 libavcodec/flacdsp.c         ff_flacdsp_init_arm(c, fmt, channels, bps);
channels          129 libavcodec/flacdsp.c         ff_flacdsp_init_x86(c, fmt, channels, bps);
channels           27 libavcodec/flacdsp.h     void (*decorrelate[4])(uint8_t **out, int32_t **in, int channels,
channels           39 libavcodec/flacdsp.h void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, int channels, int bps);
channels           40 libavcodec/flacdsp.h void ff_flacdsp_init_arm(FLACDSPContext *c, enum AVSampleFormat fmt, int channels, int bps);
channels           41 libavcodec/flacdsp.h void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int channels, int bps);
channels           52 libavcodec/flacdsp_template.c                                            int channels, int len, int shift)
channels           58 libavcodec/flacdsp_template.c         for (i = 0; i < channels; i++)
channels           63 libavcodec/flacdsp_template.c                                         int channels, int len, int shift)
channels           77 libavcodec/flacdsp_template.c                                         int channels, int len, int shift)
channels           91 libavcodec/flacdsp_template.c                                         int channels, int len, int shift)
channels          106 libavcodec/flacenc.c     int channels;
channels          148 libavcodec/flacenc.c     put_bits(&pb, 3, s->channels-1);
channels          242 libavcodec/flacenc.c     int channels = avctx->channels;
channels          262 libavcodec/flacenc.c     if (channels < 1 || channels > FLAC_MAX_CHANNELS) {
channels          264 libavcodec/flacenc.c                channels, FLAC_MAX_CHANNELS);
channels          267 libavcodec/flacenc.c     s->channels = channels;
channels          416 libavcodec/flacenc.c                                                   s->channels,
channels          435 libavcodec/flacenc.c     if (channels == 3 &&
channels          437 libavcodec/flacenc.c         channels == 4 &&
channels          440 libavcodec/flacenc.c         channels == 5 &&
channels          443 libavcodec/flacenc.c         channels == 6 &&
channels          453 libavcodec/flacenc.c                                                "%d channels.\n", channels);
channels          461 libavcodec/flacenc.c     ff_flacdsp_init(&s->flac_dsp, avctx->sample_fmt, channels,
channels          496 libavcodec/flacenc.c     for (ch = 0; ch < s->channels; ch++) {
channels          526 libavcodec/flacenc.c         for (ch = 0; ch < s->channels; ch++, j++)                   \
channels         1064 libavcodec/flacenc.c     for (ch = 0; ch < s->channels; ch++)
channels         1081 libavcodec/flacenc.c     for (ch = 0; ch < s->channels; ch++) {
channels         1164 libavcodec/flacenc.c     if (s->channels != 2) {
channels         1217 libavcodec/flacenc.c         put_bits(&s->pb, 4, s->channels-1);
channels         1246 libavcodec/flacenc.c     for (ch = 0; ch < s->channels; ch++) {
channels         1326 libavcodec/flacenc.c     int buf_size = s->frame.blocksize * s->channels *
channels         1347 libavcodec/flacenc.c         for (i = 0; i < s->frame.blocksize * s->channels; i++) {
channels         1398 libavcodec/flacenc.c                                                       s->channels,
channels           62 libavcodec/g722dec.c     avctx->channels       = 1;
channels           40 libavcodec/g723_1_parser.c         next = frame_size[buf[0] & 3] * FFMAX(1, avctx->channels);
channels           48 libavcodec/g723_1dec.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels           49 libavcodec/g723_1dec.c         av_log(avctx, AV_LOG_ERROR, "Only mono and stereo are supported (requested channels: %d).\n", avctx->channels);
channels           52 libavcodec/g723_1dec.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
channels           53 libavcodec/g723_1dec.c     for (int ch = 0; ch < avctx->channels; ch++) {
channels          871 libavcodec/g723_1dec.c     if (buf_size < frame_size[dec_mode] * avctx->channels) {
channels          884 libavcodec/g723_1dec.c     for (int ch = 0; ch < avctx->channels; ch++) {
channels          888 libavcodec/g723_1dec.c         if (unpack_bitstream(p, buf + ch * (buf_size / avctx->channels),
channels          889 libavcodec/g723_1dec.c                              buf_size / avctx->channels) < 0) {
channels         1021 libavcodec/g723_1dec.c     return frame_size[dec_mode] * avctx->channels;
channels           53 libavcodec/g723_1enc.c     if (avctx->channels != 1) {
channels          326 libavcodec/g726.c     if(avctx->channels != 1){
channels          444 libavcodec/g726.c     if(avctx->channels > 1){
channels          448 libavcodec/g726.c     avctx->channels       = 1;
channels           52 libavcodec/g729_parser.c         s->block_size *= avctx->channels;
channels          355 libavcodec/g729dec.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          356 libavcodec/g729dec.c         av_log(avctx, AV_LOG_ERROR, "Only mono and stereo are supported (requested channels: %d).\n", avctx->channels);
channels          365 libavcodec/g729dec.c     s->channel_context = av_mallocz(sizeof(G729ChannelContext) * avctx->channels);
channels          369 libavcodec/g729dec.c     for (c = 0; c < avctx->channels; c++) {
channels          433 libavcodec/g729dec.c     if (buf_size && buf_size % ((G729_8K_BLOCK_SIZE + (avctx->codec_id == AV_CODEC_ID_ACELP_KELVIN)) * avctx->channels) == 0) {
channels          440 libavcodec/g729dec.c     } else if (buf_size == G729D_6K4_BLOCK_SIZE * avctx->channels && avctx->codec_id != AV_CODEC_ID_ACELP_KELVIN) {
channels          449 libavcodec/g729dec.c     for (c = 0; c < avctx->channels; c++) {
channels          455 libavcodec/g729dec.c             if (*buf != ((avctx->channels - 1 - c) * 0x80 | 2))
channels          742 libavcodec/g729dec.c     return (format->block_size + (avctx->codec_id == AV_CODEC_ID_ACELP_KELVIN)) * avctx->channels;
channels           37 libavcodec/gsmdec.c     avctx->channels       = 1;
channels          116 libavcodec/hcadec.c     if (avctx->channels <= 0 || avctx->channels > 16)
channels          196 libavcodec/hcadec.c     b = avctx->channels / c->track_count;
channels          241 libavcodec/hcadec.c     for (int i = 0; i < avctx->channels; i++) {
channels          414 libavcodec/hcadec.c     for (ch = 0; ch < avctx->channels; ch++)
channels          418 libavcodec/hcadec.c         for (ch = 0; ch < avctx->channels; ch++)
channels          420 libavcodec/hcadec.c         for (ch = 0; ch < avctx->channels; ch++)
channels          423 libavcodec/hcadec.c         for (ch = 0; ch < avctx->channels - 1; ch++)
channels          427 libavcodec/hcadec.c         for (ch = 0; ch < avctx->channels; ch++)
channels           47 libavcodec/hcom.c     if (avctx->channels != 1) {
channels         1458 libavcodec/ilbcdec.c     avctx->channels       = 1;
channels          193 libavcodec/imc.c         avctx->channels = 1;
channels          195 libavcodec/imc.c     if (avctx->channels > 2) {
channels          200 libavcodec/imc.c     for (j = 0; j < avctx->channels; j++) {
channels          268 libavcodec/imc.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO
channels          721 libavcodec/imc.c static void imc_imdct256(IMCContext *q, IMCChannel *chctx, int channels)
channels         1010 libavcodec/imc.c     imc_imdct256(q, chctx, avctx->channels);
channels         1029 libavcodec/imc.c     if (buf_size < IMC_BLOCK_SIZE * avctx->channels) {
channels         1039 libavcodec/imc.c     for (i = 0; i < avctx->channels; i++) {
channels         1052 libavcodec/imc.c     if (avctx->channels == 2) {
channels         1059 libavcodec/imc.c     return IMC_BLOCK_SIZE * avctx->channels;
channels           65 libavcodec/interplayacm.c     if (avctx->channels <= 0) {
channels           66 libavcodec/interplayacm.c         av_log(avctx, AV_LOG_ERROR, "Invalid number of channels: %d\n", avctx->channels);
channels          578 libavcodec/interplayacm.c     frame->nb_samples = s->block_len / avctx->channels;
channels          588 libavcodec/interplayacm.c     for (n = 0; n < frame->nb_samples * avctx->channels; n++) {
channels           64 libavcodec/libcelt_dec.c     if (!c->channels || !c->frame_size ||
channels           65 libavcodec/libcelt_dec.c         c->frame_size > INT_MAX / sizeof(int16_t) / c->channels)
channels           70 libavcodec/libcelt_dec.c     celt->dec = celt_decoder_create_custom(celt->mode, c->channels, &err);
channels          122 libavcodec/libcelt_dec.c         memmove(pcm, pcm + celt->discard * c->channels,
channels          123 libavcodec/libcelt_dec.c                 frame->nb_samples * c->channels * sizeof(int16_t));
channels           92 libavcodec/libcodec2.c     avctx->channels         = 1;
channels          111 libavcodec/libcodec2.c         avctx->channels != 1 ||
channels          210 libavcodec/libfdk-aacdec.c     avctx->channels = info->numChannels;
channels          388 libavcodec/libfdk-aacdec.c            avctx->channels * avctx->frame_size *
channels          131 libavcodec/libfdk-aacenc.c     if ((err = aacEncOpen(&s->handle, 0, avctx->channels)) != AACENC_OK) {
channels          162 libavcodec/libfdk-aacenc.c     switch (avctx->channels) {
channels          206 libavcodec/libfdk-aacenc.c                "Unsupported number of channels %d\n", avctx->channels);
channels          378 libavcodec/libfdk-aacenc.c         in_buffer_size       = 2 * avctx->channels * frame->nb_samples;
channels          380 libavcodec/libfdk-aacenc.c         in_args.numInSamples = avctx->channels * frame->nb_samples;
channels          395 libavcodec/libfdk-aacenc.c     if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels), 0)) < 0)
channels           51 libavcodec/libgsmdec.c     avctx->channels       = 1;
channels           50 libavcodec/libgsmenc.c     if (avctx->channels > 1) {
channels           52 libavcodec/libgsmenc.c                avctx->channels);
channels           72 libavcodec/libilbc.c     avctx->channels       = 1;
channels          146 libavcodec/libilbc.c     if (avctx->channels != 1) {
channels          103 libavcodec/libmp3lame.c     lame_set_num_channels(s->gfp, avctx->channels);
channels          104 libavcodec/libmp3lame.c     lame_set_mode(s->gfp, avctx->channels > 1 ? s->joint_stereo ? JOINT_STEREO : STEREO : MONO);
channels          153 libavcodec/libmp3lame.c         for (ch = 0; ch < avctx->channels; ch++) {
channels          210 libavcodec/libmp3lame.c             for (ch = 0; ch < avctx->channels; ch++) {
channels           40 libavcodec/libopencore-amr.c     if (avctx->channels > 1) {
channels           45 libavcodec/libopencore-amr.c     avctx->channels       = 1;
channels          203 libavcodec/libopencore-amr.c     if (avctx->channels != 1) {
channels           56 libavcodec/libopusdec.c     avc->channels = avc->extradata_size >= 10 ? avc->extradata[9] : (avc->channels == 1) ? 1 : 2;
channels           57 libavcodec/libopusdec.c     if (avc->channels <= 0) {
channels           59 libavcodec/libopusdec.c                "Invalid number of channels %d, defaulting to stereo\n", avc->channels);
channels           60 libavcodec/libopusdec.c         avc->channels = 2;
channels           66 libavcodec/libopusdec.c     avc->channel_layout = avc->channels > 8 ? 0 :
channels           67 libavcodec/libopusdec.c                           ff_vorbis_channel_layouts[avc->channels - 1];
channels           74 libavcodec/libopusdec.c     if (avc->extradata_size >= OPUS_HEAD_SIZE + 2 + avc->channels) {
channels           77 libavcodec/libopusdec.c         if (nb_streams + nb_coupled != avc->channels)
channels           81 libavcodec/libopusdec.c         if (avc->channels > 2 || channel_map) {
channels           83 libavcodec/libopusdec.c                    "No channel mapping for %d channels.\n", avc->channels);
channels           87 libavcodec/libopusdec.c         nb_coupled = avc->channels > 1;
channels           91 libavcodec/libopusdec.c     if (avc->channels > 2 && avc->channels <= 8) {
channels           92 libavcodec/libopusdec.c         const uint8_t *vorbis_offset = ff_vorbis_channel_layout_offsets[avc->channels - 1];
channels           96 libavcodec/libopusdec.c         for (ch = 0; ch < avc->channels; ch++)
channels          101 libavcodec/libopusdec.c     opus->dec = opus_multistream_decoder_create(avc->sample_rate, avc->channels,
channels          181 libavcodec/libopusdec.c         int i = avc->channels * nb_samples;
channels           91 libavcodec/libopusenc.c     int channels = avctx->channels;
channels           95 libavcodec/libopusenc.c     bytestream_put_byte(&p, channels);
channels          105 libavcodec/libopusenc.c         bytestream_put_buffer(&p, channel_mapping, channels);
channels          173 libavcodec/libopusenc.c     if (avctx->channels > max_channels) {
channels          175 libavcodec/libopusenc.c                avctx->channels);
channels          183 libavcodec/libopusenc.c     av_assert2(avctx->channels < FF_ARRAY_ELEMS(ff_vorbis_channel_layouts));
channels          188 libavcodec/libopusenc.c                "channel layout for %d channels.\n", avctx->channels);
channels          189 libavcodec/libopusenc.c     } else if (avctx->channel_layout != ff_vorbis_channel_layouts[avctx->channels - 1]) {
channels          191 libavcodec/libopusenc.c         av_get_channel_layout_string(name, sizeof(name), avctx->channels,
channels          231 libavcodec/libopusenc.c             channel_map = ff_vorbis_channel_layout_offsets[avctx->channels - 1];
channels          341 libavcodec/libopusenc.c         mapping_family = avctx->channels > 2 ? 1 : 0;
channels          342 libavcodec/libopusenc.c         coupled_stream_count = opus_coupled_streams[avctx->channels - 1];
channels          343 libavcodec/libopusenc.c         opus->stream_count   = avctx->channels - coupled_stream_count;
channels          345 libavcodec/libopusenc.c                opus_vorbis_channel_map[avctx->channels - 1],
channels          346 libavcodec/libopusenc.c                avctx->channels * sizeof(*libopus_channel_mapping));
channels          349 libavcodec/libopusenc.c             avctx->sample_rate, avctx->channels, opus->stream_count,
channels          351 libavcodec/libopusenc.c             libavcodec_libopus_channel_map[avctx->channels - 1],
channels          359 libavcodec/libopusenc.c             avctx->sample_rate, avctx->channels, mapping_family,
channels          378 libavcodec/libopusenc.c     if (avctx->bit_rate < 500 || avctx->bit_rate > 256000 * avctx->channels) {
channels          381 libavcodec/libopusenc.c                256000 * avctx->channels);
channels          393 libavcodec/libopusenc.c     header_size = 19 + (mapping_family == 0 ? 0 : 2 + avctx->channels);
channels          402 libavcodec/libopusenc.c     opus->samples = av_mallocz_array(frame_size, avctx->channels *
channels          450 libavcodec/libopusenc.c     const int sample_size      = avctx->channels * bytes_per_sample;
channels          463 libavcodec/libopusenc.c                 avctx->channels, frame->nb_samples, bytes_per_sample);
channels           45 libavcodec/libshine.c     if (avctx->channels <= 0 || avctx->channels > 2){
channels           53 libavcodec/libshine.c     s->config.mpeg.mode = avctx->channels == 2 ? STEREO : MONO;
channels           55 libavcodec/libshine.c     s->config.wave.channels   = avctx->channels == 2 ? PCM_STEREO : PCM_MONO;
channels           71 libavcodec/libspeexdec.c         avctx->channels    = header->nb_channels;
channels           97 libavcodec/libspeexdec.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          100 libavcodec/libspeexdec.c                                     "Decoding as stereo.\n", avctx->channels);
channels          101 libavcodec/libspeexdec.c         avctx->channels = 2;
channels          103 libavcodec/libspeexdec.c     avctx->channel_layout = avctx->channels == 2 ? AV_CH_LAYOUT_STEREO :
channels          113 libavcodec/libspeexdec.c     if (avctx->channels == 2) {
channels          166 libavcodec/libspeexdec.c     if (avctx->channels == 2)
channels          116 libavcodec/libspeexenc.c     av_log(avctx, AV_LOG_DEBUG, "channels: %d\n", avctx->channels);
channels          154 libavcodec/libspeexenc.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          156 libavcodec/libspeexenc.c                "mono are supported\n", avctx->channels);
channels          177 libavcodec/libspeexenc.c     speex_init_header(&s->header, avctx->sample_rate, avctx->channels, mode);
channels          212 libavcodec/libspeexenc.c         avctx->bit_rate = s->header.bitrate + (avctx->channels == 2 ? 800 : 0);
channels          277 libavcodec/libspeexenc.c         if (avctx->channels == 2)
channels           77 libavcodec/libtwolame.c     twolame_set_num_channels(s->glopts, avctx->channels);
channels           82 libavcodec/libtwolame.c         if ((s->mode == TWOLAME_AUTO_MODE && avctx->channels == 1) || s->mode == TWOLAME_MONO)
channels           90 libavcodec/libvo-amrwbenc.c     if (avctx->channels != 1) {
channels          115 libavcodec/libvorbisdec.c     avccontext->channels = context->vi.channels;
channels          131 libavcodec/libvorbisdec.c static inline int conv(int samples, float **pcm, char *buf, int channels) {
channels          136 libavcodec/libvorbisdec.c     for(i = 0 ; i < channels ; i++){
channels          142 libavcodec/libvorbisdec.c             ptr += channels;
channels          187 libavcodec/libvorbisdec.c         conv(samples, pcm, (char*)output + total_bytes, context->vi.channels) ;
channels          188 libavcodec/libvorbisdec.c         total_bytes += samples * 2 * context->vi.channels ;
channels           98 libavcodec/libvorbisenc.c         if ((ret = vorbis_encode_setup_vbr(vi, avctx->channels,
channels          107 libavcodec/libvorbisenc.c         if ((ret = vorbis_encode_setup_managed(vi, avctx->channels,
channels          131 libavcodec/libvorbisenc.c     if (avctx->channels == 3 &&
channels          133 libavcodec/libvorbisenc.c         avctx->channels == 4 &&
channels          136 libavcodec/libvorbisenc.c         avctx->channels == 5 &&
channels          139 libavcodec/libvorbisenc.c         avctx->channels == 6 &&
channels          142 libavcodec/libvorbisenc.c         avctx->channels == 7 &&
channels          144 libavcodec/libvorbisenc.c         avctx->channels == 8 &&
channels          148 libavcodec/libvorbisenc.c             av_get_channel_layout_string(name, sizeof(name), avctx->channels,
channels          156 libavcodec/libvorbisenc.c                                                "%d channels.\n", avctx->channels);
channels          285 libavcodec/libvorbisenc.c         int c, channels = s->vi.channels;
channels          288 libavcodec/libvorbisenc.c         for (c = 0; c < channels; c++) {
channels          289 libavcodec/libvorbisenc.c             int co = (channels > 8) ? c :
channels          290 libavcodec/libvorbisenc.c                      ff_vorbis_encoding_channel_layout_offsets[channels - 1][c];
channels          130 libavcodec/libwavpackenc.c     config.num_channels     = avctx->channels;
channels          229 libavcodec/mace.c     if (avctx->channels > 2 || avctx->channels < 1)
channels          247 libavcodec/mace.c     if (buf_size % (avctx->channels << is_mace3)) {
channels          249 libavcodec/mace.c         buf_size -= buf_size % (avctx->channels << is_mace3);
channels          255 libavcodec/mace.c     frame->nb_samples = 3 * (buf_size << (1 - is_mace3)) / avctx->channels;
channels          260 libavcodec/mace.c     for(i = 0; i < avctx->channels; i++) {
channels          263 libavcodec/mace.c         for (j=0; j < buf_size / (avctx->channels << is_mace3); j++)
channels          266 libavcodec/mace.c                                   (j*avctx->channels << is_mace3) + k];
channels           69 libavcodec/metasound.c     int ibps         = tctx->avctx->bit_rate / (1000 * tctx->avctx->channels);
channels           78 libavcodec/metasound.c     if (tctx->avctx->channels == 1) {
channels           88 libavcodec/metasound.c     if (tctx->avctx->channels == 1)
channels          106 libavcodec/metasound.c     pgain_base = tctx->avctx->channels == 2 ? 25000.0 : 20000.0;
channels          127 libavcodec/metasound.c     if (tctx->avctx->channels == 1)
channels          135 libavcodec/metasound.c             if (tctx->avctx->channels == 1)
channels          170 libavcodec/metasound.c     int channels              = tctx->avctx->channels;
channels          198 libavcodec/metasound.c         for (i = 0; i < channels; i++)
channels          204 libavcodec/metasound.c         for (i = 0; i < channels; i++)
channels          209 libavcodec/metasound.c             for (i = 0; i < channels; i++)
channels          212 libavcodec/metasound.c             for (i = 0; i < channels; i++) {
channels          220 libavcodec/metasound.c         for (i = 0; i < channels; i++) {
channels          230 libavcodec/metasound.c             for (i = 0; i < channels; i++) {
channels          247 libavcodec/metasound.c     int      channels;
channels          294 libavcodec/metasound.c             avctx->channels    = props->channels;
channels          302 libavcodec/metasound.c     if (avctx->channels <= 0 || avctx->channels > TWINVQ_CHANNELS_MAX) {
channels          304 libavcodec/metasound.c                avctx->channels);
channels          307 libavcodec/metasound.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO
channels          310 libavcodec/metasound.c     ibps = avctx->bit_rate / (1000 * avctx->channels);
channels          312 libavcodec/metasound.c     switch ((avctx->channels << 16) + (isampf << 8) + ibps) {
channels          291 libavcodec/mfenc.c     bps = av_get_bytes_per_sample(avctx->sample_fmt) * avctx->channels;
channels          532 libavcodec/mfenc.c     if (!FAILED(hr) && t == avctx->channels)
channels          587 libavcodec/mfenc.c     if (!FAILED(hr) && t == avctx->channels)
channels          611 libavcodec/mfenc.c     if (FAILED(hr) || t != avctx->channels) {
channels           90 libavcodec/mlp_parse.h     int channels = 0, i;
channels           93 libavcodec/mlp_parse.h         channels += thd_chancount[i] * ((chanmap >> i) & 1);
channels           95 libavcodec/mlp_parse.h     return channels;
channels          178 libavcodec/mlp_parser.c         if(!avctx->channels || !avctx->channel_layout) {
channels          181 libavcodec/mlp_parser.c             avctx->channels       = mh.channels_mlp;
channels          186 libavcodec/mlp_parser.c                 avctx->channels       = mh.channels_thd_stream1;
channels          189 libavcodec/mlp_parser.c                 avctx->channels       = mh.channels_thd_stream2;
channels          416 libavcodec/mlpdec.c         if (m->avctx->channels<=2 && m->substream[substr].mask == AV_CH_LAYOUT_MONO && m->max_decoded_substream == 1) {
channels          419 libavcodec/mlpdec.c             if (m->avctx->channels==2)
channels          617 libavcodec/mlpdec.c         m->avctx->channels       = s->max_matrix_channel + 1;
channels         1072 libavcodec/mlpdec.c     if (m->avctx->channels != s->max_matrix_channel + 1) {
channels          391 libavcodec/mlpenc.c         for (channel = 0; channel < ctx->avctx->channels; channel++) {
channels          392 libavcodec/mlpenc.c             ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel;
channels          426 libavcodec/mlpenc.c     for (channel = 0; channel < ctx->avctx->channels; channel++) {
channels          542 libavcodec/mlpenc.c     if (avctx->channels > 2) {
channels          548 libavcodec/mlpenc.c     if (avctx->channels <= 2) {
channels          573 libavcodec/mlpenc.c     ctx->num_channels = avctx->channels + 2; /* +2 noise channels */
channels          700 libavcodec/mlpenc.c          * ctx->restart_intervals * ctx->sequence_size * ctx->avctx->channels;
channels          724 libavcodec/mlpenc.c         rh->max_channel        = avctx->channels - 1;
channels         1295 libavcodec/mlpenc.c             for (channel = 0; channel < ctx->avctx->channels; channel++)
channels         2069 libavcodec/mlpenc.c             ChannelParams *cp = ctx->seq_channel_params + index*(ctx->avctx->channels) + channel;
channels         2095 libavcodec/mlpenc.c                                  (ctx->restart_intervals - 1)*(ctx->sequence_size)*(ctx->avctx->channels) +
channels         2096 libavcodec/mlpenc.c                                  (ctx->seq_offset[ctx->restart_intervals - 1])*(ctx->avctx->channels);
channels         2099 libavcodec/mlpenc.c                                 (ctx->restart_intervals - 1)*(ctx->sequence_size)*(ctx->avctx->channels) +
channels         2100 libavcodec/mlpenc.c                                 (ctx->seq_offset[ctx->restart_intervals - 1])*(ctx->avctx->channels);
channels         2104 libavcodec/mlpenc.c             for (channel = 0; channel < ctx->avctx->channels; channel++) {
channels         2105 libavcodec/mlpenc.c                 uint8_t huff_lsbs = (seq_cp + index*(ctx->avctx->channels) + channel)->huff_lsbs;
channels         2109 libavcodec/mlpenc.c                        (seq_cp + index*(ctx->avctx->channels) + channel),
channels         2156 libavcodec/mlpenc.c         ctx->cur_channel_params = seq_cp + 1*(ctx->avctx->channels);
channels         2183 libavcodec/mlpenc.c                 ctx->cur_channel_params = seq_cp + index*(ctx->avctx->channels);
channels         2226 libavcodec/mlpenc.c     if ((ret = ff_alloc_packet2(avctx, avpkt, 87500 * avctx->channels, 0)) < 0)
channels         2321 libavcodec/mlpenc.c                                       (ctx->frame_index / ctx->min_restart_interval)*(ctx->sequence_size)*(ctx->avctx->channels) +
channels         2322 libavcodec/mlpenc.c                                       (ctx->seq_offset[seq_index])*(ctx->avctx->channels);
channels         2334 libavcodec/mlpenc.c                 clear_channel_params(ctx, ctx->seq_channel_params + index*(ctx->avctx->channels));
channels          100 libavcodec/mp3_header_decompress_bsf.c     if(ctx->par_in->channels==2){
channels           45 libavcodec/mpc.c static void mpc_synth(MPCContext *c, int16_t **out, int channels)
channels           50 libavcodec/mpc.c     for(ch = 0;  ch < channels; ch++){
channels           62 libavcodec/mpc.c                                  int channels)
channels           98 libavcodec/mpc.c     mpc_synth(c, out, channels);
channels           74 libavcodec/mpc.h void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, int16_t **out, int channels);
channels           62 libavcodec/mpc7.c     if (avctx->channels != 2) {
channels           63 libavcodec/mpc7.c         avpriv_request_sample(avctx, "%d channels", avctx->channels);
channels          102 libavcodec/mpc8.c     int channels;
channels          133 libavcodec/mpc8.c     channels = get_bits(&gb, 4) + 1;
channels          134 libavcodec/mpc8.c     if (channels > 2) {
channels          142 libavcodec/mpc8.c     avctx->channel_layout = (channels==2) ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
channels          143 libavcodec/mpc8.c     avctx->channels = channels;
channels          420 libavcodec/mpc8.c                                 avctx->channels);
channels           55 libavcodec/mpeg4audio.c     c->channels    = get_bits(gb, 16) + 1;
channels           95 libavcodec/mpeg4audio.c         c->channels = ff_mpeg4audio_channels[c->chan_config];
channels          153 libavcodec/mpeg4audio.c     if ((c->ps == -1 && c->object_type != AOT_AAC_LC) || c->channels & ~0x01)
channels           43 libavcodec/mpeg4audio.h     int channels;
channels           68 libavcodec/mpegaudio_parser.c                 int ret, sr, channels, bit_rate, frame_size;
channels           73 libavcodec/mpegaudio_parser.c                 ret = ff_mpa_decode_header(state, &sr, &channels, &frame_size, &bit_rate, &codec_id);
channels           87 libavcodec/mpegaudio_parser.c                         avctx->channels   = channels;
channels         1696 libavcodec/mpegaudiodec_template.c     avctx->channels       = s->nb_channels;
channels         1778 libavcodec/mpegaudiodec_template.c     avctx->channels    = s->nb_channels;
channels         1876 libavcodec/mpegaudiodec_template.c     avctx->channels       = ff_mpeg4audio_channels[cfg.chan_config];
channels         1975 libavcodec/mpegaudiodec_template.c         if (ch + m->nb_channels > avctx->channels ||
channels         1976 libavcodec/mpegaudiodec_template.c             s->coff[fr] + m->nb_channels > avctx->channels) {
channels         2001 libavcodec/mpegaudiodec_template.c     if (ch != avctx->channels) {
channels         2009 libavcodec/mpegaudiodec_template.c     frame->nb_samples = out_size / (avctx->channels * sizeof(OUT_INT));
channels          122 libavcodec/mpegaudiodecheader.c int ff_mpa_decode_header(uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bit_rate, enum AVCodecID *codec_id)
channels          151 libavcodec/mpegaudiodecheader.c     *channels = s->nb_channels;
channels           58 libavcodec/mpegaudiodecheader.h                          int *channels, int *frame_size, int *bitrate, enum AVCodecID *codec_id);
channels           81 libavcodec/mpegaudioenc_template.c     int channels = avctx->channels;
channels           85 libavcodec/mpegaudioenc_template.c     if (channels <= 0 || channels > 2){
channels           86 libavcodec/mpegaudioenc_template.c         av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed in mp2\n", channels);
channels           90 libavcodec/mpegaudioenc_template.c     s->nb_channels = channels;
channels          135 libavcodec/nellymoserdec.c     avctx->channels       = 1;
channels          155 libavcodec/nellymoserenc.c     if (avctx->channels != 1) {
channels          692 libavcodec/on2avc.c     for (ch = 0; ch < c->avctx->channels; ch++) {
channels          824 libavcodec/on2avc.c     for (i = 0; i < c->avctx->channels; i++)
channels          827 libavcodec/on2avc.c     if (c->avctx->channels == 2 && c->ms_present)
channels          830 libavcodec/on2avc.c         for (i = 0; i < c->avctx->channels; i++)
channels          911 libavcodec/on2avc.c     if (avctx->channels > 2U) {
channels          918 libavcodec/on2avc.c     avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
channels          923 libavcodec/on2avc.c     if (avctx->channels == 2)
channels          935 libavcodec/on2avc.c     if (avctx->sample_rate < 32000 || avctx->channels == 1)
channels           89 libavcodec/options_table.h {"ac", "set number of audio channels", OFFSET(channels), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, A|D|E},
channels          301 libavcodec/opus.c     int version, channels, map_type, streams, stereo_streams, i, j;
channels          305 libavcodec/opus.c         if (avctx->channels > 2) {
channels          333 libavcodec/opus.c     channels = avctx->extradata ? extradata[9] : (avctx->channels == 1) ? 1 : 2;
channels          334 libavcodec/opus.c     if (!channels) {
channels          345 libavcodec/opus.c         if (channels > 2) {
channels          350 libavcodec/opus.c         layout         = (channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
channels          352 libavcodec/opus.c         stereo_streams = channels - 1;
channels          355 libavcodec/opus.c         if (extradata_size < 21 + channels) {
channels          371 libavcodec/opus.c             if (channels > 8) {
channels          376 libavcodec/opus.c             layout = ff_vorbis_channel_layouts[channels - 1];
channels          379 libavcodec/opus.c             int ambisonic_order = ff_sqrt(channels) - 1;
channels          380 libavcodec/opus.c             if (channels != ((ambisonic_order + 1) * (ambisonic_order + 1)) &&
channels          381 libavcodec/opus.c                 channels != ((ambisonic_order + 1) * (ambisonic_order + 1) + 2)) {
channels          388 libavcodec/opus.c             if (channels > 227) {
channels          402 libavcodec/opus.c     s->channel_maps = av_mallocz_array(channels, sizeof(*s->channel_maps));
channels          406 libavcodec/opus.c     for (i = 0; i < channels; i++) {
channels          408 libavcodec/opus.c         uint8_t     idx = channel_map[channel_reorder(channels, i)];
channels          423 libavcodec/opus.c             if (channel_map[channel_reorder(channels, j)] == idx) {
channels          438 libavcodec/opus.c     avctx->channels       = channels;
channels          464 libavcodec/opus.c         float *Y = (f->channels == 2) ? f->block[1].coeffs + band_offset : NULL;
channels          491 libavcodec/opus.c             if (f->channels == 2)
channels          512 libavcodec/opus.c                 cm[1] |= f->block[f->channels - 1].collapse_masks[j];
channels          545 libavcodec/opus.c         f->block[f->channels - 1].collapse_masks[i] = (uint8_t)cm[1];
channels          553 libavcodec/opus.c #define NORMC(bits) ((bits) << (f->channels - 1) << f->size >> 2)
channels          583 libavcodec/opus.c         f->caps[i] = NORMC((ff_celt_static_caps[f->size][f->channels - 1][i] + 64) * ff_celt_freq_range[i]);
channels          588 libavcodec/opus.c         int quanta = ff_celt_freq_range[i] << (f->channels - 1) << f->size;
channels          637 libavcodec/opus.c     if (f->channels == 2) {
channels          655 libavcodec/opus.c         int scale    = duration + f->channels - 1;
channels          660 libavcodec/opus.c                              f->channels << 3);
channels          665 libavcodec/opus.c             trim_offset[i] -= f->channels << 3;
channels          685 libavcodec/opus.c             } else if (bandbits >= f->channels << 3) {
channels          686 libavcodec/opus.c                 total += f->channels << 3;
channels          730 libavcodec/opus.c             } else if (bandbits >= f->channels << 3)
channels          731 libavcodec/opus.c                 total += f->channels << 3;
channels          747 libavcodec/opus.c             bandbits = (bandbits >= f->channels << 3) ?
channels          748 libavcodec/opus.c             f->channels << 3 : 0;
channels          775 libavcodec/opus.c         if (allocation >= FFMAX(threshold[j], (f->channels + 1) << 3)) {
channels          799 libavcodec/opus.c         total += f->pulses[j] = (allocation >= f->channels << 3) ? f->channels << 3 : 0;
channels          852 libavcodec/opus.c             dof = N * f->channels + (f->channels == 2 && N > 2 && !f->dual_stereo && i < f->intensity_stereo);
channels          865 libavcodec/opus.c             max_bits  = FFMIN((f->pulses[i] >> 3) >> (f->channels - 1), CELT_MAX_FINE_BITS);
channels          874 libavcodec/opus.c             f->pulses[i] -= f->fine_bits[i] << (f->channels - 1) << 3;
channels          877 libavcodec/opus.c             extrabits = FFMAX(f->pulses[i] - (f->channels << 3), 0);
channels          885 libavcodec/opus.c             int fineextra = FFMIN(extrabits >> (f->channels + 2),
channels          889 libavcodec/opus.c             fineextra <<= f->channels + 2;
channels          898 libavcodec/opus.c         f->fine_bits[i]     = f->pulses[i] >> (f->channels - 1) >> 3;
channels           50 libavcodec/opus_celt.c         for (j = 0; j < f->channels; j++) {
channels           86 libavcodec/opus_celt.c         for (j = 0; j < f->channels; j++) {
channels          103 libavcodec/opus_celt.c         for (i = f->start_band; i < f->end_band && bits_left >= f->channels; i++) {
channels          107 libavcodec/opus_celt.c             for (j = 0; j < f->channels; j++) {
channels          289 libavcodec/opus_celt.c         if (f->channels == 1) {
channels          321 libavcodec/opus_celt.c                          float **output, int channels, int frame_size,
channels          328 libavcodec/opus_celt.c     if (channels != 1 && channels != 2) {
channels          330 libavcodec/opus_celt.c                channels);
channels          343 libavcodec/opus_celt.c     f->channels       = channels;
channels          357 libavcodec/opus_celt.c         f->output_channels = channels;
channels          359 libavcodec/opus_celt.c     for (i = 0; i < f->channels; i++) {
channels          390 libavcodec/opus_celt.c     if (channels == 1) {
channels          408 libavcodec/opus_celt.c     for (i = 0; i < f->channels; i++) {
channels          418 libavcodec/opus_celt.c     if (f->output_channels < f->channels) {
channels          421 libavcodec/opus_celt.c     } else if (f->output_channels > f->channels)
channels          461 libavcodec/opus_celt.c     if (channels == 1)
channels          100 libavcodec/opus_celt.h     int channels;
channels          462 libavcodec/opusdec.c     for (i = 0; i < avctx->channels; i++) {
channels          543 libavcodec/opusdec.c     for (i = 0; i < avctx->channels; i++) {
channels           49 libavcodec/opusenc.c     int channels;
channels           66 libavcodec/opusenc.c     bytestream_put_byte  (&bs, avctx->channels);
channels          101 libavcodec/opusenc.c     tmp |= (s->channels > 1) << 2;                                /* Stereo or mono */
channels          124 libavcodec/opusenc.c     for (int ch = 0; ch < f->channels; ch++) {
channels          139 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          162 libavcodec/opusenc.c     for (int ch = 0; ch < f->channels; ch++) {
channels          175 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          195 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          211 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          230 libavcodec/opusenc.c     for (int ch = 0; ch < f->channels; ch++) {
channels          340 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          387 libavcodec/opusenc.c         for (int ch = 0; ch < f->channels; ch++) {
channels          402 libavcodec/opusenc.c         for (int i = f->start_band; i < f->end_band && (f->framebits - opus_rc_tell(rc)) >= f->channels; i++) {
channels          405 libavcodec/opusenc.c             for (int ch = 0; ch < f->channels; ch++) {
channels          429 libavcodec/opusenc.c         for (int ch = 0; ch < s->channels; ch++)
channels          475 libavcodec/opusenc.c     for (int ch = 0; ch < f->channels; ch++) {
channels          527 libavcodec/opusenc.c     for (int i = 0; i < s->channels; i++) {
channels          627 libavcodec/opusenc.c     s->channels = avctx->channels;
channels          639 libavcodec/opusenc.c         int coupled = ff_opus_default_coupled_streams[s->channels - 1];
channels          640 libavcodec/opusenc.c         avctx->bit_rate = coupled*(96000) + (s->channels - coupled*2)*(48000);
channels          641 libavcodec/opusenc.c     } else if (avctx->bit_rate < 6000 || avctx->bit_rate > 255000 * s->channels) {
channels          642 libavcodec/opusenc.c         int64_t clipped_rate = av_clip(avctx->bit_rate, 6000, 255000 * s->channels);
channels          669 libavcodec/opusenc.c     for (int ch = 0; ch < s->channels; ch++)
channels           38 libavcodec/opusenc_psy.c     float *Y = (f->channels == 2) ? &buf[176] : NULL;
channels           86 libavcodec/opusenc_psy.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          108 libavcodec/opusenc_psy.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          131 libavcodec/opusenc_psy.c     if (s->avctx->channels > 1) {
channels          143 libavcodec/opusenc_psy.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          262 libavcodec/opusenc_psy.c     f->channels   = s->avctx->channels;
channels          330 libavcodec/opusenc_psy.c             for (ch = 0; ch < s->avctx->channels; ch++) {
channels          387 libavcodec/opusenc_psy.c     if (s->avctx->channels < 2)
channels          405 libavcodec/opusenc_psy.c     if (s->avctx->channels < 2)
channels          439 libavcodec/opusenc_psy.c                 for (k = 0; k < s->avctx->channels; k++) {
channels          543 libavcodec/opusenc_psy.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels           31 libavcodec/pafaudio.c     if (avctx->channels != 2) {
channels           63 libavcodec/pcm-bluray.c     static const uint8_t channels[16] = {
channels          108 libavcodec/pcm-bluray.c     avctx->channels        =        channels[channel_layout];
channels          109 libavcodec/pcm-bluray.c     if (!avctx->channels) {
channels          115 libavcodec/pcm-bluray.c     avctx->bit_rate = FFALIGN(avctx->channels, 2) * avctx->sample_rate *
channels          121 libavcodec/pcm-bluray.c                 avctx->channels, avctx->bits_per_coded_sample,
channels          151 libavcodec/pcm-bluray.c     num_source_channels = FFALIGN(avctx->channels, 2);
channels          192 libavcodec/pcm-bluray.c                     bytestream2_get_buffer(&gb, dst16, avctx->channels * 2);
channels          193 libavcodec/pcm-bluray.c                     dst16 += avctx->channels;
channels          195 libavcodec/pcm-bluray.c                     channel = avctx->channels;
channels          204 libavcodec/pcm-bluray.c                     channel = avctx->channels;
channels          103 libavcodec/pcm-dvd.c     avctx->channels = 1 + (header[1] & 7);
channels          105 libavcodec/pcm-dvd.c     avctx->bit_rate = avctx->channels *
channels          114 libavcodec/pcm-dvd.c         s->block_size        = avctx->channels * 2;
channels          116 libavcodec/pcm-dvd.c         switch (avctx->channels) {
channels          122 libavcodec/pcm-dvd.c             s->samples_per_block = 4 / avctx->channels;
channels          133 libavcodec/pcm-dvd.c             s->block_size        = 4 * avctx->channels *
channels          136 libavcodec/pcm-dvd.c             s->groups_per_block  = avctx->channels;
channels          144 libavcodec/pcm-dvd.c                 avctx->channels, avctx->bits_per_coded_sample,
channels          169 libavcodec/pcm-dvd.c         int samples = blocks * avctx->channels;
channels          177 libavcodec/pcm-dvd.c         if (avctx->channels == 1) {
channels          205 libavcodec/pcm-dvd.c         if (avctx->channels == 1) {
channels           61 libavcodec/pcm-dvdenc.c     avctx->block_align           = avctx->channels * avctx->bits_per_coded_sample / 8;
channels           70 libavcodec/pcm-dvdenc.c         s->block_size        = avctx->channels * 2;
channels           73 libavcodec/pcm-dvdenc.c         switch (avctx->channels) {
channels           79 libavcodec/pcm-dvdenc.c             s->samples_per_block = 4 / avctx->channels;
channels           90 libavcodec/pcm-dvdenc.c             s->block_size        = 4 * avctx->channels *
channels           93 libavcodec/pcm-dvdenc.c             s->groups_per_block  = avctx->channels;
channels          101 libavcodec/pcm-dvdenc.c     s->header[1] = (quant << 6) | (freq << 4) | (avctx->channels - 1);
channels          114 libavcodec/pcm-dvdenc.c     int samples = frame->nb_samples * avctx->channels;
channels          139 libavcodec/pcm-dvdenc.c         if (avctx->channels == 1) {
channels           53 libavcodec/pcm.c     avctx->block_align           = avctx->channels * avctx->bits_per_coded_sample / 8;
channels           77 libavcodec/pcm.c     n /= avctx->channels;                                               \
channels           78 libavcodec/pcm.c     for (c = 0; c < avctx->channels; c++) {                             \
channels          101 libavcodec/pcm.c     n           = frame->nb_samples * avctx->channels;
channels          204 libavcodec/pcm.c         n /= avctx->channels;
channels          205 libavcodec/pcm.c         for (c = 0; c < avctx->channels; c++) {
channels          247 libavcodec/pcm.c     if (avctx->channels <= 0) {
channels          314 libavcodec/pcm.c     n /= avctx->channels;                                                      \
channels          315 libavcodec/pcm.c     for (c = 0; c < avctx->channels; c++) {                                    \
channels          351 libavcodec/pcm.c     if (avctx->channels == 0) {
channels          361 libavcodec/pcm.c     n = avctx->channels * sample_size;
channels          376 libavcodec/pcm.c     frame->nb_samples = n * samples_per_block / avctx->channels;
channels          423 libavcodec/pcm.c         n /= avctx->channels;
channels          424 libavcodec/pcm.c         for (c = 0; c < avctx->channels; c++) {
channels          488 libavcodec/pcm.c         n /= avctx->channels;
channels          489 libavcodec/pcm.c         for (c = 0; c < avctx->channels; c++) {
channels          505 libavcodec/pcm.c         n /= avctx->channels;
channels          506 libavcodec/pcm.c         for (c = 0; c < avctx->channels; c++) {
channels          534 libavcodec/pcm.c                                     s->scale, FFALIGN(frame->nb_samples * avctx->channels, 4));
channels           45 libavcodec/pcm_rechunk_bsf.c     if (ctx->par_in->channels <= 0 || ctx->par_in->sample_rate <= 0)
channels           49 libavcodec/pcm_rechunk_bsf.c     s->sample_size = ctx->par_in->channels * av_get_bits_per_sample(ctx->par_in->codec_id) / 8;
channels           51 libavcodec/png.c     int channels;
channels           52 libavcodec/png.c     channels = 1;
channels           55 libavcodec/png.c         channels = 3;
channels           57 libavcodec/png.c         channels++;
channels           58 libavcodec/png.c     return channels;
channels           75 libavcodec/pngdec.c     int channels;
channels          645 libavcodec/pngdec.c         s->channels       = ff_png_get_nb_channels(s->color_type);
channels          646 libavcodec/pngdec.c         s->bits_per_pixel = s->bit_depth * s->channels;
channels           38 libavcodec/psymodel.c     ctx->ch        = av_mallocz_array(sizeof(ctx->ch[0]), avctx->channels * 2);
channels          123 libavcodec/psymodel.c             ctx->fstate = av_mallocz_array(sizeof(ctx->fstate[0]), avctx->channels);
channels          129 libavcodec/psymodel.c             for (i = 0; i < avctx->channels; i++)
channels          139 libavcodec/psymodel.c void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels)
channels          146 libavcodec/psymodel.c         for (ch = 0; ch < channels; ch++)
channels          157 libavcodec/psymodel.c         for (i = 0; i < ctx->avctx->channels; i++)
channels           35 libavcodec/psymodel.h #define AAC_CUTOFF_FROM_BITRATE(bit_rate,channels,sample_rate) (bit_rate ? FFMIN3(FFMIN3( \
channels           36 libavcodec/psymodel.h     FFMAX(bit_rate/channels/5, bit_rate/channels*15/32 - 5500), \
channels           37 libavcodec/psymodel.h     3000 + bit_rate/channels/4, \
channels           38 libavcodec/psymodel.h     12000 + bit_rate/channels/16), \
channels           44 libavcodec/psymodel.h     : AAC_CUTOFF_FROM_BITRATE(s->bit_rate, s->channels, s->sample_rate) \
channels          197 libavcodec/psymodel.h void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, float **audio, int channels);
channels          281 libavcodec/pthread_frame.c         dst->channels       = src->channels;
channels           90 libavcodec/qcelpdec.c     avctx->channels       = 1;
channels          131 libavcodec/qdm2.c     int channels;            ///< number of channels
channels          370 libavcodec/qdm2.c static int fix_coding_method_array(int sb, int channels,
channels          377 libavcodec/qdm2.c     for (ch = 0; ch < channels; ch++) {
channels          660 libavcodec/qdm2.c     int sb, j, k, n, ch, run, channels;
channels          677 libavcodec/qdm2.c         channels = q->nb_channels;
channels          701 libavcodec/qdm2.c             channels = 1;
channels          704 libavcodec/qdm2.c         for (ch = 0; ch < channels; ch++) {
channels         1476 libavcodec/qdm2.c     for (ch = 0; ch < q->channels; ch++) {
channels         1490 libavcodec/qdm2.c             ch = (q->channels == 1) ? 0 : q->fft_coefs[i].channel;
channels         1519 libavcodec/qdm2.c                 ch = (q->channels == 1) ? 0 : q->fft_coefs[j].channel;
channels         1544 libavcodec/qdm2.c     const float gain = (q->channels == 1 && q->nb_channels == 2) ? 0.5f : 1.0f;
channels         1553 libavcodec/qdm2.c         out[q->channels] += q->fft.complex[channel][i].im * gain;
channels         1554 libavcodec/qdm2.c         out              += 2 * q->channels;
channels         1569 libavcodec/qdm2.c     for (ch = 0; ch < q->channels; ch++)
channels         1590 libavcodec/qdm2.c     for (ch = 0; ch < q->channels; ch++)
channels         1592 libavcodec/qdm2.c             q->output_buffer[q->channels * i + ch] += (1 << 23) * q->samples[q->nb_channels * sub_sampling * i + ch];
channels         1697 libavcodec/qdm2.c     avctx->channels = s->nb_channels = s->channels = bytestream2_get_be32(&gb);
channels         1698 libavcodec/qdm2.c     if (s->channels <= 0 || s->channels > MPA_MAX_CHANNELS) {
channels         1702 libavcodec/qdm2.c     avctx->channel_layout = avctx->channels == 2 ? AV_CH_LAYOUT_STEREO :
channels         1738 libavcodec/qdm2.c     switch ((s->sub_sampling * 2 + s->channels - 1)) {
channels         1786 libavcodec/qdm2.c     const int frame_size = (q->frame_size * q->channels);
channels         1815 libavcodec/qdm2.c     for (ch = 0; ch < q->channels; ch++) {
channels         1869 libavcodec/qdm2.c         out += s->channels * s->frame_size;
channels          295 libavcodec/qdmc.c     avctx->channels = s->nb_channels = bytestream2_get_be32u(&b);
channels          300 libavcodec/qdmc.c     avctx->channel_layout = avctx->channels == 2 ? AV_CH_LAYOUT_STEREO :
channels          327 libavcodec/qdmc.c     if (avctx->channels == 2)
channels           42 libavcodec/ra144dec.c     avctx->channels       = 1;
channels           52 libavcodec/ra144enc.c     if (avctx->channels != 1) {
channels           54 libavcodec/ra144enc.c                avctx->channels);
channels           76 libavcodec/ra288.c     avctx->channels       = 1;
channels          144 libavcodec/ralf.c     avctx->channels    = AV_RB16(avctx->extradata + 8);
channels          146 libavcodec/ralf.c     if (avctx->channels < 1 || avctx->channels > 2
channels          149 libavcodec/ralf.c                avctx->sample_rate, avctx->channels);
channels          153 libavcodec/ralf.c     avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
channels          361 libavcodec/ralf.c     if (avctx->channels > 1)
channels          371 libavcodec/ralf.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          487 libavcodec/ralf.c         ctx->block_size[ctx->num_blocks] = get_bits(&gb, 13 + avctx->channels);
channels           58 libavcodec/roqaudioenc.c     if (avctx->channels > 2) {
channels           68 libavcodec/roqaudioenc.c     avctx->bit_rate   = (ROQ_HEADER_SIZE + ROQ_FRAME_SIZE * avctx->channels) *
channels           71 libavcodec/roqaudioenc.c     context->frame_buffer = av_malloc(8 * ROQ_FRAME_SIZE * avctx->channels *
channels          134 libavcodec/roqaudioenc.c     stereo = (avctx->channels == 2);
channels          140 libavcodec/roqaudioenc.c         memcpy(&context->frame_buffer[context->buffered_samples * avctx->channels],
channels          141 libavcodec/roqaudioenc.c                in, avctx->frame_size * avctx->channels * sizeof(*in));
channels          159 libavcodec/roqaudioenc.c         data_size = avctx->channels * context->buffered_samples;
channels          161 libavcodec/roqaudioenc.c         data_size = avctx->channels * avctx->frame_size;
channels          182 libavcodec/roqaudioenc.c     avpkt->duration = data_size / avctx->channels;
channels           41 libavcodec/s302m.c     int frame_size, channels, bits;
channels           59 libavcodec/s302m.c     channels   = ((h >> 14) & 0x0003) * 2 +  2;
channels           74 libavcodec/s302m.c     avctx->channels    = channels;
channels           75 libavcodec/s302m.c     switch(channels) {
channels          112 libavcodec/s302m.c     frame->nb_samples = 2 * (buf_size / block_size) / avctx->channels;
channels          116 libavcodec/s302m.c     avctx->bit_rate = 48000 * avctx->channels * (avctx->bits_per_raw_sample + 4) +
channels          118 libavcodec/s302m.c     buf_size = (frame->nb_samples * avctx->channels / 2) * block_size;
channels          133 libavcodec/s302m.c         if (avctx->channels == 2)
channels          154 libavcodec/s302m.c         if (avctx->channels == 2)
channels          174 libavcodec/s302m.c         if (avctx->channels == 2)
channels           38 libavcodec/s302menc.c     if (avctx->channels & 1 || avctx->channels > 8) {
channels           41 libavcodec/s302menc.c                avctx->channels);
channels           62 libavcodec/s302menc.c     avctx->bit_rate   = 48000 * avctx->channels *
channels           75 libavcodec/s302menc.c                          avctx->channels *
channels           77 libavcodec/s302menc.c     int ret, c, channels;
channels           92 libavcodec/s302menc.c     put_bits(&pb, 2, (avctx->channels - 2) >> 1);   // number of channels
channels          105 libavcodec/s302menc.c             for (channels = 0; channels < avctx->channels; channels += 2) {
channels          127 libavcodec/s302menc.c             for (channels = 0; channels < avctx->channels; channels += 2) {
channels          148 libavcodec/s302menc.c             for (channels = 0; channels < avctx->channels; channels += 2) {
channels           88 libavcodec/sbc.c         for (ch = 0; ch < frame->channels; ch++) {
channels           91 libavcodec/sbc.h     uint8_t channels;
channels           37 libavcodec/sbc_parser.c     int sr, blocks, mode, subbands, bitpool, channels, joint;
channels           44 libavcodec/sbc_parser.c         avctx->channels = 1;
channels           61 libavcodec/sbc_parser.c     channels = mode == SBC_MODE_MONO ? 1 : 2;
channels           64 libavcodec/sbc_parser.c     length = 4 + (subbands * channels) / 2
channels           68 libavcodec/sbc_parser.c     avctx->channels = channels;
channels           90 libavcodec/sbcdec.c         frame->channels = 1;
channels           97 libavcodec/sbcdec.c         frame->channels = frame->mode == MONO ? 1 : 2;
channels          133 libavcodec/sbcdec.c     if (len * 8 < consumed + (4 * frame->subbands * frame->channels))
channels          136 libavcodec/sbcdec.c     for (ch = 0; ch < frame->channels; ch++) {
channels          154 libavcodec/sbcdec.c     for (ch = 0; ch < frame->channels; ch++) {
channels          160 libavcodec/sbcdec.c         for (ch = 0; ch < frame->channels; ch++) {
channels          308 libavcodec/sbcdec.c         for (ch = 0; ch < frame->channels; ch++)
channels          314 libavcodec/sbcdec.c         for (ch = 0; ch < frame->channels; ch++)
channels          352 libavcodec/sbcdec.c     avctx->channels = sbc->frame.channels;
channels          272 libavcodec/sbcdsp.c                                   int blocks, int channels, int subbands)
channels          275 libavcodec/sbcdsp.c     for (ch = 0; ch < channels; ch++) {
channels           69 libavcodec/sbcdsp.h                                   int blocks, int channels, int subbands);
channels           56 libavcodec/sbcenc.c         for (ch = 0; ch < frame->channels; ch++) {
channels           72 libavcodec/sbcenc.c         for (ch = 0; ch < frame->channels; ch++) {
channels          145 libavcodec/sbcenc.c     for (ch = 0; ch < frame->channels; ch++) {
channels          162 libavcodec/sbcenc.c     for (ch = 0; ch < frame->channels; ch++) {
channels          174 libavcodec/sbcenc.c         for (ch = 0; ch < frame->channels; ch++) {
channels          203 libavcodec/sbcenc.c         if (avctx->channels != 1) {
channels          228 libavcodec/sbcenc.c         if (avctx->channels == 1) {
channels          252 libavcodec/sbcenc.c                           - 4 * frame->subbands * avctx->channels
channels          264 libavcodec/sbcenc.c     frame->channels = avctx->channels;
channels          265 libavcodec/sbcenc.c     frame->codesize = frame->subbands * frame->blocks * avctx->channels * 2;
channels          285 libavcodec/sbcenc.c     int frame_length = 4 + (4 * frame->subbands * frame->channels) / 8
channels          290 libavcodec/sbcenc.c     if (av_frame->nb_samples * frame->channels * 2 < frame->codesize)
channels          300 libavcodec/sbcenc.c                 frame->subbands * frame->blocks, frame->channels);
channels          304 libavcodec/sbcenc.c                 frame->subbands * frame->blocks, frame->channels);
channels          317 libavcodec/sbcenc.c                                        frame->channels,
channels           90 libavcodec/shorten.c     unsigned channels;
channels          131 libavcodec/shorten.c     for (chan = 0; chan < s->channels; chan++) {
channels          204 libavcodec/shorten.c     for (chan = 0; chan < s->channels; chan++)
channels          421 libavcodec/shorten.c     s->channels = get_uint(s, CHANSIZE);
channels          422 libavcodec/shorten.c     if (!s->channels) {
channels          426 libavcodec/shorten.c     if (s->channels > MAX_CHANNELS) {
channels          427 libavcodec/shorten.c         av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", s->channels);
channels          428 libavcodec/shorten.c         s->channels = 0;
channels          431 libavcodec/shorten.c     s->avctx->channels = s->channels;
channels          583 libavcodec/shorten.c             max_framesize = FFMAX(s->max_framesize, s->blocksize * s->channels * 8);
channels          604 libavcodec/shorten.c     while (s->cur_chan < s->channels) {
channels          731 libavcodec/shorten.c             if (s->cur_chan == s->channels) {
channels          741 libavcodec/shorten.c                 for (chan = 0; chan < s->channels; chan++) {
channels          766 libavcodec/shorten.c     if (s->cur_chan < s->channels)
channels          791 libavcodec/shorten.c     for (i = 0; i < s->channels; i++) {
channels          515 libavcodec/sipr.c     avctx->channels       = 1;
channels          397 libavcodec/siren.c     avctx->channels       = 1;
channels          619 libavcodec/smacker.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels          623 libavcodec/smacker.c     avctx->channel_layout = (avctx->channels==2) ? AV_CH_LAYOUT_STEREO : AV_CH_LAYOUT_MONO;
channels          671 libavcodec/smacker.c     if (stereo ^ (avctx->channels != 1)) {
channels          681 libavcodec/smacker.c     frame->nb_samples = unp_size / (avctx->channels * (bits + 1));
channels          682 libavcodec/smacker.c     if (unp_size % (avctx->channels * (bits + 1))) {
channels           57 libavcodec/sonic.c     int channels, samplerate, block_align, frame_size;
channels          504 libavcodec/sonic.c         int *out, int out_entries, int channels, int *tap_quant)
channels          516 libavcodec/sonic.c         int step = (i+1)*channels, k, j;
channels          604 libavcodec/sonic.c     if (avctx->channels > MAX_CHANNELS)
channels          610 libavcodec/sonic.c     if (avctx->channels == 2)
channels          643 libavcodec/sonic.c     s->channels = avctx->channels;
channels          647 libavcodec/sonic.c     s->frame_size = s->channels*s->block_align*s->downsampling;
channels          649 libavcodec/sonic.c     s->tail_size = s->num_taps*s->channels;
channels          658 libavcodec/sonic.c     for (i = 0; i < s->channels; i++)
channels          684 libavcodec/sonic.c         put_bits(&pb, 2, s->channels);
channels          711 libavcodec/sonic.c     for (i = 0; i < s->channels; i++)
channels          751 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels          758 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels          762 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels          783 libavcodec/sonic.c                 s->predictor_k, s->num_taps, s->channels, s->tap_quant);
channels          790 libavcodec/sonic.c     for (ch = 0; ch < s->channels; ch++)
channels          796 libavcodec/sonic.c             for (j = 0; j < s->downsampling; j++, x += s->channels)
channels          806 libavcodec/sonic.c         for (ch = 0; ch < s->channels; ch++)
channels          816 libavcodec/sonic.c         energy2 = sqrt(energy2/(s->channels*s->block_align));
channels          817 libavcodec/sonic.c         energy1 = M_SQRT2*energy1/(s->channels*s->block_align);
channels          836 libavcodec/sonic.c     for (ch = 0; ch < s->channels; ch++)
channels          866 libavcodec/sonic.c     s->channels = avctx->channels;
channels          893 libavcodec/sonic.c         s->channels = get_bits(&gb, 2);
channels          901 libavcodec/sonic.c             s->channels, s->samplerate);
channels          904 libavcodec/sonic.c     if (s->channels > MAX_CHANNELS || s->channels < 1)
channels          909 libavcodec/sonic.c     avctx->channels = s->channels;
channels          915 libavcodec/sonic.c     if (s->decorrelation != 3 && s->channels != 2) {
channels          931 libavcodec/sonic.c     s->frame_size = s->channels*s->block_align*s->downsampling;
channels          934 libavcodec/sonic.c     if (s->num_taps * s->channels > s->frame_size) {
channels          937 libavcodec/sonic.c                s->num_taps, s->channels, s->frame_size);
channels          954 libavcodec/sonic.c     for (i = 0; i < s->channels; i++)
channels          961 libavcodec/sonic.c     for (i = 0; i < s->channels; i++)
channels          984 libavcodec/sonic.c     for (i = 0; i < s->channels; i++)
channels         1008 libavcodec/sonic.c     frame->nb_samples = s->frame_size / avctx->channels;
channels         1032 libavcodec/sonic.c     for (ch = 0; ch < s->channels; ch++)
channels         1045 libavcodec/sonic.c                 x += s->channels;
channels         1049 libavcodec/sonic.c             x += s->channels;
channels         1053 libavcodec/sonic.c             s->predictor_state[ch][i] = s->int_samples[s->frame_size - s->channels + ch - i*s->channels];
channels         1059 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels         1066 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels         1070 libavcodec/sonic.c             for (i = 0; i < s->frame_size; i += s->channels)
channels          109 libavcodec/tak.c     s->channels    = get_bits(gb, TAK_FORMAT_CHANNEL_BITS) +
channels          115 libavcodec/tak.c             for (i = 0; i < s->channels; i++) {
channels          133 libavcodec/tak.h     int               channels;
channels          713 libavcodec/takdec.c     if (s->ti.codec == TAK_CODEC_MONO_STEREO && s->ti.channels > 2) {
channels          715 libavcodec/takdec.c                "invalid number of channels: %d\n", s->ti.channels);
channels          718 libavcodec/takdec.c     if (s->ti.channels > 6) {
channels          720 libavcodec/takdec.c                "unsupported number of channels: %d\n", s->ti.channels);
channels          738 libavcodec/takdec.c     avctx->channels = s->ti.channels;
channels          749 libavcodec/takdec.c         int buf_size = av_samples_get_buffer_size(NULL, avctx->channels,
channels          758 libavcodec/takdec.c                                      s->decode_buffer, avctx->channels,
channels          763 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++)
channels          768 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++) {
channels          775 libavcodec/takdec.c             for (chan = 0; chan < avctx->channels; chan++)
channels          779 libavcodec/takdec.c             if (avctx->channels == 2) {
channels          794 libavcodec/takdec.c                 if (chan > avctx->channels)
channels          800 libavcodec/takdec.c                     if (nbit >= avctx->channels)
channels          810 libavcodec/takdec.c                         if (s->mcdparams[i].chan2 >= avctx->channels) {
channels          813 libavcodec/takdec.c                                    s->mcdparams[i].chan2, avctx->channels);
channels          831 libavcodec/takdec.c                 chan = avctx->channels;
channels          857 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++) {
channels          888 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++) {
channels          896 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++) {
channels          904 libavcodec/takdec.c         for (chan = 0; chan < avctx->channels; chan++) {
channels           65 libavcodec/truespeech.c     if (avctx->channels != 1) {
channels           66 libavcodec/truespeech.c         avpriv_request_sample(avctx, "Channel count %d", avctx->channels);
channels           53 libavcodec/tta.c     int format, channels, bps;
channels          109 libavcodec/tta.c         s->decode_buffer = av_mallocz_array(sizeof(int32_t)*s->frame_length, s->channels);
channels          114 libavcodec/tta.c     s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx));
channels          157 libavcodec/tta.c         avctx->channels = s->channels = get_bits(&gb, 16);
channels          158 libavcodec/tta.c         if (s->channels > 1 && s->channels < 9)
channels          159 libavcodec/tta.c             avctx->channel_layout = tta_channel_layouts[s->channels-2];
channels          166 libavcodec/tta.c         if (s->channels == 0 || s->channels > 16) {
channels          200 libavcodec/tta.c             s->format, avctx->channels, avctx->bits_per_coded_sample, avctx->sample_rate,
channels          205 libavcodec/tta.c         if(s->frame_length >= UINT_MAX / (s->channels * sizeof(int32_t))){
channels          251 libavcodec/tta.c     for (i = 0; i < s->channels; i++) {
channels          264 libavcodec/tta.c     for (p = s->decode_buffer; (int32_t*)p < s->decode_buffer + (framelen * s->channels); p++) {
channels          331 libavcodec/tta.c         if (cur_chan < (s->channels-1))
channels          335 libavcodec/tta.c             if (s->channels > 1) {
channels          337 libavcodec/tta.c                 for (*p += *r / 2; r > (int32_t*)p - s->channels; r--)
channels          361 libavcodec/tta.c         for (p = s->decode_buffer; (int32_t*)p < s->decode_buffer + (framelen * s->channels); p++)
channels          367 libavcodec/tta.c         for (p = s->decode_buffer; (int32_t*)p < s->decode_buffer + (framelen * s->channels); p++)
channels          374 libavcodec/tta.c         for (i = 0; i < framelen * s->channels; i++)
channels           58 libavcodec/ttaenc.c     s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx));
channels           91 libavcodec/ttaenc.c     int64_t pkt_size =  frame->nb_samples * 2LL * avctx->channels * s->bps;
channels          100 libavcodec/ttaenc.c     for (i = 0; i < avctx->channels; i++) {
channels          106 libavcodec/ttaenc.c     for (i = 0; i < frame->nb_samples * avctx->channels; i++) {
channels          115 libavcodec/ttaenc.c         if (avctx->channels > 1) {
channels          116 libavcodec/ttaenc.c             if (cur_chan < avctx->channels - 1)
channels          178 libavcodec/ttaenc.c         if (cur_chan < avctx->channels - 1)
channels          225 libavcodec/twinvq.c         for (i = 0; i < tctx->avctx->channels; i++)
channels          230 libavcodec/twinvq.c         for (i = 0; i < tctx->avctx->channels; i++) {
channels          386 libavcodec/twinvq.c     for (i = 0; i < tctx->avctx->channels; i++)
channels          402 libavcodec/twinvq.c     if (tctx->avctx->channels == 2) {
channels          417 libavcodec/twinvq.c     int channels              = tctx->avctx->channels;
channels          432 libavcodec/twinvq.c         int cb_len_p = (tctx->n_div[3] + mtab->ppc_shape_len * channels - 1) /
channels          440 libavcodec/twinvq.c     for (i = 0; i < channels; i++) {
channels          539 libavcodec/twinvq.c     int channels = tctx->avctx->channels;
channels          540 libavcodec/twinvq.c     float norm = channels == 1 ? 2.0 : 1.0;
channels          553 libavcodec/twinvq.c                      2 * mtab->size, channels * sizeof(*tctx->spectrum),
channels          556 libavcodec/twinvq.c                      2 * mtab->size, channels * sizeof(*tctx->curr_frame),
channels          559 libavcodec/twinvq.c                      2 * mtab->size, channels * sizeof(*tctx->prev_frame),
channels          658 libavcodec/twinvq.c         size       = tctx->avctx->channels;
channels          661 libavcodec/twinvq.c         size       = tctx->avctx->channels * mtab->fmode[ftype].sub;
channels          679 libavcodec/twinvq.c     int n_ch                  = tctx->avctx->channels;
channels          183 libavcodec/twinvqdec.c     int ibps   = tctx->avctx->bit_rate    / (1000 * tctx->avctx->channels);
channels          256 libavcodec/twinvqdec.c     int channels              = tctx->avctx->channels;
channels          278 libavcodec/twinvqdec.c     for (i = 0; i < channels; i++)
channels          284 libavcodec/twinvqdec.c     for (i = 0; i < channels; i++)
channels          289 libavcodec/twinvqdec.c         for (i = 0; i < channels; i++)
channels          292 libavcodec/twinvqdec.c         for (i = 0; i < channels; i++) {
channels          300 libavcodec/twinvqdec.c     for (i = 0; i < channels; i++) {
channels          310 libavcodec/twinvqdec.c         for (i = 0; i < channels; i++) {
channels          328 libavcodec/twinvqdec.c     avctx->channels = AV_RB32(avctx->extradata)     + 1;
channels          351 libavcodec/twinvqdec.c     if (avctx->channels <= 0 || avctx->channels > TWINVQ_CHANNELS_MAX) {
channels          353 libavcodec/twinvqdec.c                avctx->channels);
channels          356 libavcodec/twinvqdec.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO
channels          359 libavcodec/twinvqdec.c     ibps = avctx->bit_rate / (1000 * avctx->channels);
channels          514 libavcodec/utils.c         bit_rate = bits_per_sample ? ctx->sample_rate * (int64_t)ctx->channels * bits_per_sample : ctx->bit_rate;
channels          660 libavcodec/utils.c     if (avctx->channels > FF_SANE_NB_CHANNELS || avctx->channels < 0) {
channels          661 libavcodec/utils.c         av_log(avctx, AV_LOG_ERROR, "Too many or invalid channels: %d\n", avctx->channels);
channels          768 libavcodec/utils.c                 if (avctx->channels == 1 &&
channels          838 libavcodec/utils.c         if (avctx->channel_layout && avctx->channels) {
channels          839 libavcodec/utils.c             int channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
channels          840 libavcodec/utils.c             if (channels != avctx->channels) {
channels          845 libavcodec/utils.c                        buf, channels, avctx->channels);
channels          850 libavcodec/utils.c             avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
channels          852 libavcodec/utils.c         if (avctx->channels < 0) {
channels          854 libavcodec/utils.c                     avctx->channels);
channels          941 libavcodec/utils.c             int channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
channels          942 libavcodec/utils.c             if (!avctx->channels)
channels          943 libavcodec/utils.c                 avctx->channels = channels;
channels          944 libavcodec/utils.c             else if (channels != avctx->channels) {
channels          950 libavcodec/utils.c                        buf, channels, avctx->channels);
channels          954 libavcodec/utils.c         if (avctx->channels && avctx->channels < 0 ||
channels          955 libavcodec/utils.c             avctx->channels > FF_SANE_NB_CHANNELS) {
channels         1366 libavcodec/utils.c         av_get_channel_layout_string(buf + strlen(buf), buf_size - strlen(buf), enc->channels, enc->channel_layout);
channels         1759 libavcodec/utils.c                                     avctx->channels, avctx->block_align,
channels         1768 libavcodec/utils.c                                     par->channels, par->block_align,
channels         2114 libavcodec/utils.c         par->channels         = codec->channels;
channels         2169 libavcodec/utils.c         codec->channels         = par->channels;
channels          127 libavcodec/vima.c     int channels = 1;
channels          147 libavcodec/vima.c         channels = 2;
channels          149 libavcodec/vima.c     avctx->channels = channels;
channels          150 libavcodec/vima.c     avctx->channel_layout = (channels == 2) ? AV_CH_LAYOUT_STEREO
channels          153 libavcodec/vima.c     if (channels > 1) {
channels          162 libavcodec/vima.c     for (chan = 0; chan < channels; chan++) {
channels          199 libavcodec/vima.c             dest += channels;
channels           75 libavcodec/vmdaudio.c     if (avctx->channels < 1 || avctx->channels > 2) {
channels           79 libavcodec/vmdaudio.c     if (avctx->block_align < 1 || avctx->block_align % avctx->channels ||
channels           80 libavcodec/vmdaudio.c         avctx->block_align > INT_MAX - avctx->channels
channels           86 libavcodec/vmdaudio.c     avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO :
channels           95 libavcodec/vmdaudio.c     s->chunk_size = avctx->block_align + avctx->channels * (s->out_bps == 2);
channels           99 libavcodec/vmdaudio.c            avctx->channels, avctx->bits_per_coded_sample, avctx->block_align,
channels          106 libavcodec/vmdaudio.c                              int channels)
channels          111 libavcodec/vmdaudio.c     int st = channels - 1;
channels          114 libavcodec/vmdaudio.c     for (ch = 0; ch < channels; ch++) {
channels          189 libavcodec/vmdaudio.c                         avctx->channels;
channels          198 libavcodec/vmdaudio.c         av_assert0(avctx->block_align * silent_chunks <= frame->nb_samples * avctx->channels);
channels          212 libavcodec/vmdaudio.c         av_assert0((buf_size & (avctx->channels > 1)) == 0);
channels          216 libavcodec/vmdaudio.c                                  avctx->channels);
channels         1085 libavcodec/vorbisdec.c     avctx->channels    = vc->audio_channels;
channels         1796 libavcodec/vorbisdec.c         avctx->channels    = vc->audio_channels;
channels          105 libavcodec/vorbisenc.c     int channels;
channels          277 libavcodec/vorbisenc.c     venc->channels    = avctx->channels;
channels          419 libavcodec/vorbisenc.c     mc->mux     = av_malloc(sizeof(int) * venc->channels);
channels          422 libavcodec/vorbisenc.c     for (i = 0; i < venc->channels; i++)
channels          432 libavcodec/vorbisenc.c     mc->coupling_steps = venc->channels == 2 ? 1 : 0;
channels          455 libavcodec/vorbisenc.c     venc->saved      = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2);
channels          456 libavcodec/vorbisenc.c     venc->samples    = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]));
channels          457 libavcodec/vorbisenc.c     venc->floor      = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2);
channels          458 libavcodec/vorbisenc.c     venc->coeffs     = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]) / 2);
channels          459 libavcodec/vorbisenc.c     venc->scratch    = av_malloc_array(sizeof(float) * venc->channels, (1 << venc->log2_blocksize[1]));
channels          630 libavcodec/vorbisenc.c     put_bits(&pb,  8, venc->channels);
channels          698 libavcodec/vorbisenc.c                 put_bits(&pb, ilog(venc->channels - 1), mc->magnitude[j]);
channels          699 libavcodec/vorbisenc.c                 put_bits(&pb, ilog(venc->channels - 1), mc->angle[j]);
channels          706 libavcodec/vorbisenc.c             for (j = 0; j < venc->channels; j++)
channels          912 libavcodec/vorbisenc.c     int channels   = (rc->type == 2) ? 1 : real_ch;
channels          936 libavcodec/vorbisenc.c                 for (j = 0; j < channels; j++) {
channels          947 libavcodec/vorbisenc.c                 for (j = 0; j < channels; j++) {
channels         1008 libavcodec/vorbisenc.c     for (channel = 0; channel < venc->channels; channel++) {
channels         1026 libavcodec/vorbisenc.c static AVFrame *spawn_empty_frame(AVCodecContext *avctx, int channels)
channels         1043 libavcodec/vorbisenc.c     for (ch = 0; ch < channels; ch++) {
channels         1060 libavcodec/vorbisenc.c         for (ch = 0; ch < venc->channels; ch++)
channels         1064 libavcodec/vorbisenc.c         for (ch = 0; ch < venc->channels; ch++)
channels         1070 libavcodec/vorbisenc.c         for (ch = 0; ch < venc->channels; ch++) {
channels         1082 libavcodec/vorbisenc.c     memcpy(venc->scratch, venc->samples, 2 * venc->channels * frame_size);
channels         1119 libavcodec/vorbisenc.c                AVFrame *empty = spawn_empty_frame(avctx, venc->channels);
channels         1154 libavcodec/vorbisenc.c     for (i = 0; i < venc->channels; i++) {
channels         1164 libavcodec/vorbisenc.c     for (i = 0; i < venc->channels * frame_size; i++)
channels         1182 libavcodec/vorbisenc.c                        &pb, venc->coeffs, frame_size, venc->channels)) {
channels         1272 libavcodec/vorbisenc.c     if (avctx->channels != 2) {
channels          985 libavcodec/wavpack.c static int wv_dsd_reset(WavpackContext *s, int channels)
channels          993 libavcodec/wavpack.c     if (!channels)
channels          996 libavcodec/wavpack.c     if (channels > INT_MAX / sizeof(*s->dsdctx))
channels          999 libavcodec/wavpack.c     s->dsd_ref = av_buffer_allocz(channels * sizeof(*s->dsdctx));
channels         1003 libavcodec/wavpack.c     s->dsd_channels = channels;
channels         1005 libavcodec/wavpack.c     for (i = 0; i < channels; i++)
channels         1416 libavcodec/wavpack.c                 if (avctx->channels != chan)
channels         1418 libavcodec/wavpack.c                            " instead of %i.\n", chan, avctx->channels);
channels         1425 libavcodec/wavpack.c                 if (avctx->channels != chan)
channels         1427 libavcodec/wavpack.c                            " instead of %i.\n", chan, avctx->channels);
channels         1433 libavcodec/wavpack.c                 chan   = avctx->channels;
channels         1498 libavcodec/wavpack.c         int      new_channels = avctx->channels;
channels         1544 libavcodec/wavpack.c         avctx->channels            = new_channels;
channels         1562 libavcodec/wavpack.c     if (wc->ch_offset + s->stereo >= avctx->channels) {
channels         1672 libavcodec/wavpack.c     if (s->ch_offset != avctx->channels) {
channels         1682 libavcodec/wavpack.c         avctx->execute2(avctx, dsd_channel, s->frame, NULL, avctx->channels);
channels          131 libavcodec/wavpackenc.c     if (avctx->channels > 255) {
channels          132 libavcodec/wavpackenc.c         av_log(avctx, AV_LOG_ERROR, "Invalid channel count: %d\n", avctx->channels);
channels          143 libavcodec/wavpackenc.c         while (block_samples * avctx->channels > WV_MAX_SAMPLES)
channels          146 libavcodec/wavpackenc.c         while (block_samples * avctx->channels < 40000)
channels         2573 libavcodec/wavpackenc.c     if (s->ch_offset == s->avctx->channels)
channels         2591 libavcodec/wavpackenc.c         bytestream2_put_byte(&pb, s->avctx->channels);
channels         2863 libavcodec/wavpackenc.c     if (avctx->channels > 1) {
channels         2870 libavcodec/wavpackenc.c     buf_size = s->block_samples * avctx->channels * 8
channels         2871 libavcodec/wavpackenc.c              + 200 * avctx->channels /* for headers */;
channels         2876 libavcodec/wavpackenc.c     for (s->ch_offset = 0; s->ch_offset < avctx->channels;) {
channels         2886 libavcodec/wavpackenc.c         if (avctx->channels - s->ch_offset == 1) {
channels           91 libavcodec/wma.c         avctx->channels    <= 0 || avctx->channels    > 2     ||
channels          112 libavcodec/wma.c         if ((avctx->bit_rate / avctx->channels) >= 32000)
channels          141 libavcodec/wma.c                           (float) (avctx->channels * avctx->sample_rate);
channels          151 libavcodec/wma.c     if (avctx->channels == 2)
channels          189 libavcodec/wma.c             s->version, avctx->channels, avctx->sample_rate, avctx->bit_rate,
channels          498 libavcodec/wmadec.c     if (s->avctx->channels == 2)
channels          501 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          532 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++)
channels          537 libavcodec/wmadec.c         for (ch = 0; ch < s->avctx->channels; ch++) {
channels          550 libavcodec/wmadec.c         for (ch = 0; ch < s->avctx->channels; ch++) {
channels          579 libavcodec/wmadec.c         for (ch = 0; ch < s->avctx->channels; ch++) {
channels          593 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          599 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          613 libavcodec/wmadec.c         if (s->version == 1 && s->avctx->channels >= 2)
channels          626 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          727 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          751 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          796 libavcodec/wmadec.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels           40 libavcodec/wmaenc.c     if (avctx->channels > MAX_CHANNELS) {
channels           43 libavcodec/wmaenc.c                avctx->channels, MAX_CHANNELS);
channels           84 libavcodec/wmaenc.c     if (avctx->channels == 2)
channels          115 libavcodec/wmaenc.c     for (ch = 0; ch < avctx->channels; ch++) {
channels          212 libavcodec/wmaenc.c     for (ch = 0; ch < s->avctx->channels; ch++)
channels          221 libavcodec/wmaenc.c     if (s->avctx->channels == 2)
channels          224 libavcodec/wmaenc.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          231 libavcodec/wmaenc.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          259 libavcodec/wmaenc.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          275 libavcodec/wmaenc.c         for (ch = 0; ch < s->avctx->channels; ch++) {
channels          293 libavcodec/wmaenc.c         for (ch = 0; ch < s->avctx->channels; ch++) {
channels          306 libavcodec/wmaenc.c     for (ch = 0; ch < s->avctx->channels; ch++) {
channels          345 libavcodec/wmaenc.c         if (s->version == 1 && s->avctx->channels >= 2)
channels          192 libavcodec/wmalosslessdec.c     av_assert0(avctx->channels >= 0);
channels          193 libavcodec/wmalosslessdec.c     if (avctx->channels > WMALL_MAX_CHANNELS) {
channels          199 libavcodec/wmalosslessdec.c     s->max_frame_size = MAX_FRAMESIZE * avctx->channels;
channels          246 libavcodec/wmalosslessdec.c     for (i = 0; i < avctx->channels; i++)
channels          265 libavcodec/wmalosslessdec.c     s->num_channels = avctx->channels;
channels          347 libavcodec/wmaprodec.c         if ((num_stream+1) * XMA_MAX_CHANNELS_STREAM > avctx->channels) /* stream config is 2ch + 2ch + ... + 1/2ch */
channels          365 libavcodec/wmaprodec.c         s->nb_channels     = avctx->channels;
channels          440 libavcodec/wmaprodec.c     } else if (s->nb_channels > WMAPRO_MAX_CHANNELS || s->nb_channels > avctx->channels) {
channels         1893 libavcodec/wmaprodec.c     if (avctx->channels <= 0 || avctx->extradata_size == 0)
channels         1898 libavcodec/wmaprodec.c         s->num_streams = (avctx->channels + 1) / 2;
channels         1919 libavcodec/wmaprodec.c     if (avctx->channels > XMA_MAX_CHANNELS || s->num_streams > XMA_MAX_STREAMS ||
channels         1939 libavcodec/wmaprodec.c     if (start_channels != avctx->channels)
channels          477 libavcodec/wmavoice.c     ctx->channels               = 1;
channels           46 libavcodec/ws-snd1.c     avctx->channels       = 1;
channels           27 libavcodec/x86/alacdsp_init.c                                            int extra_bits, int channels, int nb_samples);
channels           29 libavcodec/x86/alacdsp_init.c                                          int extra_bits, int channels, int nb_samples);
channels           33 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_ls_##fmt##_##opt(uint8_t **out, int32_t **in, int channels,     \
channels           35 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_rs_##fmt##_##opt(uint8_t **out, int32_t **in, int channels,     \
channels           37 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_ms_##fmt##_##opt(uint8_t **out, int32_t **in, int channels,     \
channels           39 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_indep2_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
channels           41 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_indep4_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
channels           43 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_indep6_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
channels           45 libavcodec/x86/flacdsp_init.c void ff_flac_decorrelate_indep8_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \
channels           53 libavcodec/x86/flacdsp_init.c av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int channels,
channels           62 libavcodec/x86/flacdsp_init.c             if (channels == 2)
channels           64 libavcodec/x86/flacdsp_init.c             else if (channels == 4)
channels           66 libavcodec/x86/flacdsp_init.c             else if (channels == 6)
channels           68 libavcodec/x86/flacdsp_init.c             else if (ARCH_X86_64 && channels == 8)
channels           74 libavcodec/x86/flacdsp_init.c             if (channels == 2)
channels           76 libavcodec/x86/flacdsp_init.c             else if (channels == 4)
channels           78 libavcodec/x86/flacdsp_init.c             else if (channels == 6)
channels           80 libavcodec/x86/flacdsp_init.c             else if (ARCH_X86_64 && channels == 8)
channels           92 libavcodec/x86/flacdsp_init.c             if (ARCH_X86_64 && channels == 8)
channels           95 libavcodec/x86/flacdsp_init.c             if (channels == 4)
channels           97 libavcodec/x86/flacdsp_init.c             else if (channels == 6)
channels           99 libavcodec/x86/flacdsp_init.c             else if (ARCH_X86_64 && channels == 8)
channels           40 libavcodec/x86/sbcdsp_init.c                                   int blocks, int channels, int subbands);
channels          169 libavdevice/alsa.c                          int channels, enum AVCodecID *codec_id)
channels          190 libavdevice/alsa.c     s->frame_size = av_get_bits_per_sample(*codec_id) / 8 * channels;
channels          237 libavdevice/alsa.c     res = snd_pcm_hw_params_set_channels(h, hw_params, channels);
channels          240 libavdevice/alsa.c                channels, snd_strerror(res));
channels          274 libavdevice/alsa.c     if (channels > 2 && layout) {
channels          277 libavdevice/alsa.c             av_get_channel_layout_string(name, sizeof(name), channels, layout);
channels           54 libavdevice/alsa.h     int channels;    ///< number of channels set by user
channels           80 libavdevice/alsa.h                  int channels, enum AVCodecID *codec_id);
channels           75 libavdevice/alsa_dec.c     ret = ff_alsa_open(s1, SND_PCM_STREAM_CAPTURE, &s->sample_rate, s->channels,
channels           85 libavdevice/alsa_dec.c     st->codecpar->channels    = s->channels;
channels          146 libavdevice/alsa_dec.c     { "channels",    "", offsetof(AlsaData, channels),    AV_OPT_TYPE_INT, {.i64 = 2},     1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
channels           67 libavdevice/alsa_enc.c         st->codecpar->channels, &codec_id);
channels           43 libavdevice/avdevice.c     { "channels", "channels", OFFSET(channels), AV_OPT_TYPE_INT,
channels          407 libavdevice/avdevice.h     int channels;
channels          149 libavdevice/decklink_common.h     int channels;
channels          904 libavdevice/decklink_dec.cpp         pkt.size = audioFrame->GetSampleFrameCount() * ctx->audio_st->codecpar->channels * (ctx->audio_depth / 8);
channels         1132 libavdevice/decklink_dec.cpp     st->codecpar->channels    = cctx->audio_channels;
channels         1220 libavdevice/decklink_dec.cpp     av_log(avctx, AV_LOG_VERBOSE, "Using %d input audio channels\n", ctx->audio_st->codecpar->channels);
channels         1221 libavdevice/decklink_dec.cpp     result = ctx->dli->EnableAudioInput(bmdAudioSampleRate48kHz, cctx->audio_depth == 32 ? bmdAudioSampleType32bitInteger : bmdAudioSampleType16bitInteger, ctx->audio_st->codecpar->channels);
channels          250 libavdevice/decklink_enc.cpp     if (c->channels != 2 && c->channels != 8 && c->channels != 16) {
channels          257 libavdevice/decklink_enc.cpp                                     c->channels,
channels          269 libavdevice/decklink_enc.cpp     ctx->channels = c->channels;
channels          527 libavdevice/decklink_enc.cpp     int sample_count = pkt->size / (ctx->channels << 1);
channels          442 libavdevice/dshow.c             if (ctx->channels) {
channels          443 libavdevice/dshow.c                 if (ctx->channels > acaps->MaximumChannels ||
channels          444 libavdevice/dshow.c                     ctx->channels < acaps->MinimumChannels)
channels          446 libavdevice/dshow.c                 fx->nChannels = ctx->channels;
channels          580 libavdevice/dshow.c                   || (devtype == AudioDevice && (ctx->channels || ctx->sample_rate));
channels         1029 libavdevice/dshow.c         par->channels    = fx->nChannels;
channels         1300 libavdevice/dshow.c     { "channels", "set number of audio channels, such as 1 or 2", OFFSET(channels), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
channels          343 libavdevice/dshow_capture.h     int channels;
channels          258 libavdevice/jack.c     stream->codecpar->channels     = self->nports;
channels          334 libavdevice/lavfi.c             st->codecpar->channels    = av_buffersink_get_channels(sink);
channels          444 libavdevice/lavfi.c     } else if (frame->channels /* FIXME test audio */) {
channels          446 libavdevice/lavfi.c                                    frame->channels;
channels           94 libavdevice/libcdio.c     st->codecpar->channels        = 2;
channels          100 libavdevice/libcdio.c     avpriv_set_pts_info(st, 64, CDIO_CD_FRAMESIZE_RAW, 2 * st->codecpar->channels * st->codecpar->sample_rate);
channels           37 libavdevice/openal-dec.c     int channels;
channels           53 libavdevice/openal-dec.c     int channels;
channels          138 libavdevice/openal-dec.c     ad->sample_format = sample_formats[ad->sample_size/8-1][ad->channels-1];
channels          162 libavdevice/openal-dec.c     par->channels = get_al_format_info(ad->sample_format)->channels;
channels          167 libavdevice/openal-dec.c                        get_al_format_info(ad->sample_format)->channels) / 8;
channels          234 libavdevice/openal-dec.c     {"channels", "set number of channels",     OFFSET(channels),     AV_OPT_TYPE_INT, {.i64=2},     1, 2,      AV_OPT_FLAG_DECODING_PARAM },
channels          118 libavdevice/oss.c     tmp = (s->channels == 2);
channels           32 libavdevice/oss.h     int channels;
channels           64 libavdevice/oss_dec.c     st->codecpar->channels = s->channels;
channels           96 libavdevice/oss_dec.c     cur_time -= (bdelay * 1000000LL) / (s->sample_rate * s->channels);
channels          101 libavdevice/oss_dec.c     if (s->flip_left && s->channels == 2) {
channels          123 libavdevice/oss_dec.c     { "channels",    "", offsetof(OSSAudioData, channels),    AV_OPT_TYPE_INT, {.i64 = 2},     1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
channels           48 libavdevice/oss_enc.c     s->channels = st->codecpar->channels;
channels           44 libavdevice/pulse_audio_dec.c     int  channels;
channels          148 libavdevice/pulse_audio_dec.c                                 pd->channels };
channels          153 libavdevice/pulse_audio_dec.c     pa_channel_map_init_extend(&cmap, pd->channels, PA_CHANNEL_MAP_WAVEEX);
channels          251 libavdevice/pulse_audio_dec.c     st->codecpar->channels    = pd->channels;
channels          313 libavdevice/pulse_audio_dec.c         int frame_size = ((av_get_bits_per_sample(codec_id) >> 3) * pd->channels);
channels          354 libavdevice/pulse_audio_dec.c     { "channels",      "set number of audio channels",                      OFFSET(channels),      AV_OPT_TYPE_INT,    {.i64 = 2},        1, INT_MAX, D },
channels          338 libavdevice/pulse_audio_enc.c     pa_cvolume_set(&cvol, ss->channels, PA_VOLUME_NORM);
channels          357 libavdevice/pulse_audio_enc.c     channel_map->channels = 0;
channels          359 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT;
channels          361 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT;
channels          363 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_CENTER;
channels          365 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_LFE;
channels          367 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_LEFT;
channels          369 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_RIGHT;
channels          371 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER;
channels          373 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER;
channels          375 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_REAR_CENTER;
channels          377 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_SIDE_LEFT;
channels          379 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_SIDE_RIGHT;
channels          381 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_CENTER;
channels          383 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_LEFT;
channels          385 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_CENTER;
channels          387 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_FRONT_RIGHT;
channels          389 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_LEFT;
channels          391 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_CENTER;
channels          393 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_TOP_REAR_RIGHT;
channels          395 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_LEFT;
channels          397 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_FRONT_RIGHT;
channels          399 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX0;
channels          401 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX1;
channels          403 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX2;
channels          405 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_AUX3;
channels          407 libavdevice/pulse_audio_enc.c         channel_map->map[channel_map->channels++] = PA_CHANNEL_POSITION_LFE;
channels          471 libavdevice/pulse_audio_enc.c         bytes *= st->codecpar->channels * st->codecpar->sample_rate *
channels          488 libavdevice/pulse_audio_enc.c     sample_spec.channels = st->codecpar->channels;
channels          494 libavdevice/pulse_audio_enc.c     if (sample_spec.channels == 1) {
channels          495 libavdevice/pulse_audio_enc.c         channel_map.channels = 1;
channels          498 libavdevice/pulse_audio_enc.c         if (av_get_channel_layout_nb_channels(st->codecpar->channel_layout) != st->codecpar->channels)
channels          502 libavdevice/pulse_audio_enc.c         if (channel_map.channels != sample_spec.channels) {
channels          504 libavdevice/pulse_audio_enc.c             channel_map.channels = 0;
channels          507 libavdevice/pulse_audio_enc.c         channel_map.channels = 0;
channels          509 libavdevice/pulse_audio_enc.c     if (!channel_map.channels)
channels          559 libavdevice/pulse_audio_enc.c                               channel_map.channels ? &channel_map : NULL);
channels          641 libavdevice/pulse_audio_enc.c         int64_t samples = pkt->size / (av_get_bytes_per_sample(st->codecpar->format) * st->codecpar->channels);
channels          684 libavdevice/pulse_audio_enc.c     pkt.size     = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->channels;
channels           33 libavdevice/sndio.c     s->hwpos += delta * s->channels * s->bps;
channels           56 libavdevice/sndio.c         par.pchan = s->channels;
channels           58 libavdevice/sndio.c         par.rchan = s->channels;
channels           63 libavdevice/sndio.c                "channels: %d sample rate: %d\n", s->channels, s->sample_rate);
channels           68 libavdevice/sndio.c         (is_output  && (par.pchan != s->channels)) ||
channels           69 libavdevice/sndio.c         (!is_output && (par.rchan != s->channels)) ||
channels           72 libavdevice/sndio.c                "channels: %d sample rate: %d\n", s->channels, s->sample_rate);
channels           88 libavdevice/sndio.c     s->channels    = is_output ? par.pchan : par.rchan;
channels           41 libavdevice/sndio.h     int channels;
channels           52 libavdevice/sndio_dec.c     st->codecpar->channels    = s->channels;
channels           84 libavdevice/sndio_dec.c         (s->bps * s->channels * s->sample_rate));
channels          100 libavdevice/sndio_dec.c     { "channels",    "", offsetof(SndioData, channels),    AV_OPT_TYPE_INT, {.i64 = 2},     1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
channels           39 libavdevice/sndio_enc.c     s->channels    = st->codecpar->channels;
channels          233 libavfilter/aeval.c     eval->var_values[VAR_NB_OUT_CHANNELS] = outlink->channels;
channels          401 libavfilter/aeval.c         if ((ret = parse_channel_expressions(ctx, inlink->channels)) < 0)
channels          406 libavfilter/aeval.c     eval->nb_in_channels = eval->var_values[VAR_NB_IN_CHANNELS] = inlink->channels;
channels          407 libavfilter/aeval.c     eval->var_values[VAR_NB_OUT_CHANNELS] = outlink->channels;
channels          412 libavfilter/aeval.c                                         inlink->channels, sizeof(*eval->channel_values));
channels          444 libavfilter/aeval.c         for (j = 0; j < inlink->channels; j++)
channels          447 libavfilter/aeval.c         for (j = 0; j < outlink->channels; j++) {
channels           32 libavfilter/af_acontrast.c                    int nb_samples, int channels, float contrast);
channels           76 libavfilter/af_acontrast.c                        int nb_samples, int channels,
channels           84 libavfilter/af_acontrast.c         for (c = 0; c < channels; c++) {
channels           96 libavfilter/af_acontrast.c                        int nb_samples, int channels,
channels          104 libavfilter/af_acontrast.c         for (c = 0; c < channels; c++) {
channels          116 libavfilter/af_acontrast.c                         int nb_samples, int channels,
channels          121 libavfilter/af_acontrast.c     for (c = 0; c < channels; c++) {
channels          134 libavfilter/af_acontrast.c                         int nb_samples, int channels,
channels          139 libavfilter/af_acontrast.c     for (c = 0; c < channels; c++) {
channels          185 libavfilter/af_acontrast.c               in->nb_samples, in->channels, s->contrast / 750);
channels          177 libavfilter/af_acrossover.c     s->xover = av_calloc(inlink->channels, sizeof(*s->xover));
channels          196 libavfilter/af_acrossover.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          265 libavfilter/af_acrossover.c     const int start = (in->channels * jobnr) / nb_jobs;
channels          266 libavfilter/af_acrossover.c     const int end = (in->channels * (jobnr+1)) / nb_jobs;
channels          323 libavfilter/af_acrossover.c     ctx->internal->execute(ctx, filter_channels, NULL, NULL, FFMIN(inlink->channels,
channels          247 libavfilter/af_acrusher.c         for (c = 0; c < inlink->channels; c++) {
channels          328 libavfilter/af_acrusher.c     s->sr = av_calloc(inlink->channels, sizeof(*s->sr));
channels          175 libavfilter/af_adeclick.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->window_size);
channels          184 libavfilter/af_adeclick.c     s->nb_channels = inlink->channels;
channels          185 libavfilter/af_adeclick.c     s->chan = av_calloc(inlink->channels, sizeof(*s->chan));
channels          189 libavfilter/af_adeclick.c     for (i = 0; i < inlink->channels; i++) {
channels          581 libavfilter/af_adeclick.c     ret = ctx->internal->execute(ctx, filter_channel, &td, NULL, inlink->channels);
channels          585 libavfilter/af_adeclick.c     for (ch = 0; ch < s->in->channels; ch++) {
channels          604 libavfilter/af_adeclick.c     s->nb_samples += out->nb_samples * inlink->channels;
channels          137 libavfilter/af_adelay.c     s->chandelay = av_calloc(inlink->channels, sizeof(*s->chandelay));
channels          140 libavfilter/af_adelay.c     s->nb_delays = inlink->channels;
channels          270 libavfilter/af_adelay.c                                outlink->channels,
channels          302 libavfilter/af_adelay.c                                outlink->channels,
channels           27 libavfilter/af_aderivative.c                    int nb_samples, int channels);
channels           67 libavfilter/af_aderivative.c                                     int nb_samples, int channels)       \
channels           71 libavfilter/af_aderivative.c     for (c = 0; c < channels; c++) {                                    \
channels           92 libavfilter/af_aderivative.c                                   int nb_samples, int channels)       \
channels           96 libavfilter/af_aderivative.c     for (c = 0; c < channels; c++) {                                  \
channels          158 libavfilter/af_aderivative.c               in->nb_samples, in->channels);
channels           45 libavfilter/af_aecho.c                          int nb_samples, int channels);
channels          192 libavfilter/af_aecho.c                                      int nb_samples, int channels)          \
channels          200 libavfilter/af_aecho.c     av_assert1(channels > 0); /* would corrupt delay_index */               \
channels          202 libavfilter/af_aecho.c     for (chan = 0; chan < channels; chan++) {                               \
channels          270 libavfilter/af_aecho.c                                               outlink->channels,
channels          293 libavfilter/af_aecho.c                     frame->nb_samples, inlink->channels);
channels          316 libavfilter/af_aecho.c                            outlink->channels,
channels          320 libavfilter/af_aecho.c                     frame->nb_samples, outlink->channels);
channels          109 libavfilter/af_aemphasis.c         for (c = 0; c < inlink->channels; c++)
channels          111 libavfilter/af_aemphasis.c         dst += inlink->channels;
channels          112 libavfilter/af_aemphasis.c         src += inlink->channels;
channels          210 libavfilter/af_aemphasis.c     s->rc = av_calloc(inlink->channels, sizeof(*s->rc));
channels          329 libavfilter/af_aemphasis.c     for (ch = 1; ch < inlink->channels; ch++) {
channels           46 libavfilter/af_afade.c                          int nb_samples, int channels, int direction,
channels           50 libavfilter/af_afade.c                               int nb_samples, int channels,
channels          166 libavfilter/af_afade.c                                      int nb_samples, int channels, int dir, \
channels          173 libavfilter/af_afade.c         for (c = 0; c < channels; c++) {                                    \
channels          184 libavfilter/af_afade.c                                   int nb_samples, int channels, int dir,    \
channels          193 libavfilter/af_afade.c         for (c = 0; c < channels; c++, k++)                                 \
channels          306 libavfilter/af_afade.c                                out_buf->channels, out_buf->format);
channels          316 libavfilter/af_afade.c                         nb_samples, buf->channels,
channels          398 libavfilter/af_afade.c                                           int nb_samples, int channels,        \
channels          406 libavfilter/af_afade.c         for (c = 0; c < channels; c++) {                                       \
channels          419 libavfilter/af_afade.c                                        int nb_samples, int channels,        \
channels          430 libavfilter/af_afade.c         for (c = 0; c < channels; c++, k++)                                 \
channels          508 libavfilter/af_afade.c                                  s->nb_samples, out->channels,
channels          529 libavfilter/af_afade.c                             outlink->channels, -1, s->nb_samples - 1, s->nb_samples, s->curve);
channels          549 libavfilter/af_afade.c                             outlink->channels, 1, 0, s->nb_samples, s->curve2);
channels          591 libavfilter/af_afade.c     outlink->channels = ctx->inputs[0]->channels;
channels          103 libavfilter/af_afftdn.c     int     channels;
channels          603 libavfilter/af_afftdn.c     for (int ch = 0; ch < s->channels; ch++) {
channels          617 libavfilter/af_afftdn.c     s->dnch = av_calloc(inlink->channels, sizeof(*s->dnch));
channels          622 libavfilter/af_afftdn.c     s->channels = inlink->channels;
channels          681 libavfilter/af_afftdn.c     for (int ch = 0; ch < inlink->channels; ch++) {
channels          755 libavfilter/af_afftdn.c     for (int ch = 0; ch < inlink->channels; ch++) {
channels          851 libavfilter/af_afftdn.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->fft_length);
channels         1091 libavfilter/af_afftdn.c     const int start = (in->channels * jobnr) / nb_jobs;
channels         1092 libavfilter/af_afftdn.c     const int end = (in->channels * (jobnr+1)) / nb_jobs;
channels         1176 libavfilter/af_afftdn.c         for (int ch = 0; ch < inlink->channels; ch++) {
channels         1189 libavfilter/af_afftdn.c         for (int ch = 0; ch < inlink->channels; ch++) {
channels         1199 libavfilter/af_afftdn.c         for (int ch = 0; ch < inlink->channels; ch++) {
channels         1207 libavfilter/af_afftdn.c         for (int ch = 0; ch < inlink->channels; ch++) {
channels         1222 libavfilter/af_afftdn.c                            FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx)));
channels         1230 libavfilter/af_afftdn.c     for (int ch = 0; ch < inlink->channels; ch++) {
channels         1318 libavfilter/af_afftdn.c         for (int ch = 0; ch < s->channels; ch++) {
channels           43 libavfilter/af_afftfilt.c     int channels;
channels          133 libavfilter/af_afftfilt.c     s->channels = inlink->channels;
channels          143 libavfilter/af_afftfilt.c     s->fft_data = av_calloc(inlink->channels, sizeof(*s->fft_data));
channels          147 libavfilter/af_afftfilt.c     s->fft_temp = av_calloc(inlink->channels, sizeof(*s->fft_temp));
channels          151 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          157 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          163 libavfilter/af_afftfilt.c     s->real = av_calloc(inlink->channels, sizeof(*s->real));
channels          167 libavfilter/af_afftfilt.c     s->imag = av_calloc(inlink->channels, sizeof(*s->imag));
channels          175 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          195 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          208 libavfilter/af_afftfilt.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->window_size);
channels          255 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          273 libavfilter/af_afftfilt.c     values[VAR_CHANNELS]    = inlink->channels;
channels          275 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          282 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          325 libavfilter/af_afftfilt.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          440 libavfilter/af_afftfilt.c     for (i = 0; i < s->channels; i++) {
channels          199 libavfilter/af_afir.c     const int start = (out->channels * jobnr) / nb_jobs;
channels          200 libavfilter/af_afir.c     const int end = (out->channels * (jobnr+1)) / nb_jobs;
channels          223 libavfilter/af_afir.c     ctx->internal->execute(ctx, fir_channels, out, NULL, FFMIN(outlink->channels,
channels          302 libavfilter/af_afir.c     channel = av_clip(s->ir_channel, 0, s->ir[s->selir]->channels - 1);
channels          379 libavfilter/af_afir.c     seg->rdft  = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->rdft));
channels          380 libavfilter/af_afir.c     seg->irdft = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->irdft));
channels          392 libavfilter/af_afir.c     seg->part_index    = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->part_index));
channels          393 libavfilter/af_afir.c     seg->output_offset = av_calloc(ctx->inputs[0]->channels, sizeof(*seg->output_offset));
channels          397 libavfilter/af_afir.c     for (int ch = 0; ch < ctx->inputs[0]->channels && part_size >= 8; ch++) {
channels          504 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
channels          510 libavfilter/af_afir.c         s->gain = ctx->inputs[1 + s->selir]->channels / power;
channels          513 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
channels          519 libavfilter/af_afir.c         s->gain = ctx->inputs[1 + s->selir]->channels / power;
channels          522 libavfilter/af_afir.c         for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
channels          536 libavfilter/af_afir.c     for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
channels          545 libavfilter/af_afir.c     for (ch = 0; ch < ctx->inputs[1 + s->selir]->channels; ch++) {
channels          772 libavfilter/af_afir.c     s->one2many = ctx->inputs[1 + s->selir]->channels == 1;
channels          776 libavfilter/af_afir.c     outlink->channels = ctx->inputs[0]->channels;
channels          778 libavfilter/af_afir.c     s->nb_channels = outlink->channels;
channels          779 libavfilter/af_afir.c     s->nb_coef_channels = ctx->inputs[1 + s->selir]->channels;
channels          151 libavfilter/af_agate.c     for (n = 0; n < nb_samples; n++, src += inlink->channels, dst += inlink->channels, scsrc += sclink->channels) {
channels          156 libavfilter/af_agate.c             for (c = 1; c < sclink->channels; c++)
channels          159 libavfilter/af_agate.c             for (c = 1; c < sclink->channels; c++)
channels          162 libavfilter/af_agate.c             abs_sample /= sclink->channels;
channels          180 libavfilter/af_agate.c         for (c = 0; c < inlink->channels; c++)
channels          397 libavfilter/af_agate.c     outlink->channels = ctx->inputs[0]->channels;
channels          399 libavfilter/af_agate.c     s->fifo[0] = av_audio_fifo_alloc(ctx->inputs[0]->format, ctx->inputs[0]->channels, 1024);
channels          400 libavfilter/af_agate.c     s->fifo[1] = av_audio_fifo_alloc(ctx->inputs[1]->format, ctx->inputs[1]->channels, 1024);
channels           73 libavfilter/af_aiir.c     int channels;
channels          341 libavfilter/af_aiir.c static int read_channels(AVFilterContext *ctx, int channels, uint8_t *item_str, int ab)
channels          350 libavfilter/af_aiir.c     for (i = 0; i < channels; i++) {
channels          449 libavfilter/af_aiir.c static int convert_zp2tf(AVFilterContext *ctx, int channels)
channels          454 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          497 libavfilter/af_aiir.c static int decompose_zp2biquads(AVFilterContext *ctx, int channels)
channels          502 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          659 libavfilter/af_aiir.c static void convert_pr2zp(AVFilterContext *ctx, int channels)
channels          664 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          686 libavfilter/af_aiir.c static void convert_sp2zp(AVFilterContext *ctx, int channels)
channels          691 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          719 libavfilter/af_aiir.c static void convert_pd2zp(AVFilterContext *ctx, int channels)
channels          724 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          746 libavfilter/af_aiir.c static void check_stability(AVFilterContext *ctx, int channels)
channels          751 libavfilter/af_aiir.c     for (ch = 0; ch < channels; ch++) {
channels          884 libavfilter/af_aiir.c     ch = av_clip(s->ir_channel, 0, s->channels - 1);
channels          990 libavfilter/af_aiir.c     s->channels = inlink->channels;
channels          991 libavfilter/af_aiir.c     s->iir = av_calloc(s->channels, sizeof(*s->iir));
channels          995 libavfilter/af_aiir.c     ret = read_gains(ctx, s->g_str, inlink->channels);
channels          999 libavfilter/af_aiir.c     ret = read_channels(ctx, inlink->channels, s->a_str, 0);
channels         1003 libavfilter/af_aiir.c     ret = read_channels(ctx, inlink->channels, s->b_str, 1);
channels         1008 libavfilter/af_aiir.c         convert_pr2zp(ctx, inlink->channels);
channels         1010 libavfilter/af_aiir.c         convert_pd2zp(ctx, inlink->channels);
channels         1012 libavfilter/af_aiir.c         convert_sp2zp(ctx, inlink->channels);
channels         1015 libavfilter/af_aiir.c         check_stability(ctx, inlink->channels);
channels         1033 libavfilter/af_aiir.c         ret = convert_zp2tf(ctx, inlink->channels);
channels         1043 libavfilter/af_aiir.c         ret = decompose_zp2biquads(ctx, inlink->channels);
channels         1048 libavfilter/af_aiir.c     for (ch = 0; s->format == 0 && ch < inlink->channels; ch++) {
channels         1095 libavfilter/af_aiir.c     ctx->internal->execute(ctx, s->iir_channel, &td, NULL, outlink->channels);
channels         1097 libavfilter/af_aiir.c     for (ch = 0; ch < outlink->channels; ch++) {
channels         1197 libavfilter/af_aiir.c         for (ch = 0; ch < s->channels; ch++) {
channels          121 libavfilter/af_alimiter.c     const int channels = inlink->channels;
channels          150 libavfilter/af_alimiter.c         for (c = 0; c < channels; c++) {
channels          166 libavfilter/af_alimiter.c             double delta = (limit / peak - s->att) / buffer_size * channels;
channels          183 libavfilter/af_alimiter.c                     pdelta = (limit / peak - limit / ppeak) / (((buffer_size - nextpos[j] + s->pos) % buffer_size) / channels);
channels          200 libavfilter/af_alimiter.c         buf = &s->buffer[(s->pos + channels) % buffer_size];
channels          202 libavfilter/af_alimiter.c         for (c = 0; c < channels; c++) {
channels          218 libavfilter/af_alimiter.c         for (c = 0; c < channels; c++)
channels          221 libavfilter/af_alimiter.c         if ((s->pos + channels) % buffer_size == nextpos[s->nextiter]) {
channels          232 libavfilter/af_alimiter.c                                     ((s->pos + channels) % buffer_size)) %
channels          233 libavfilter/af_alimiter.c                                     buffer_size) / channels);
channels          266 libavfilter/af_alimiter.c         for (c = 0; c < channels; c++)
channels          269 libavfilter/af_alimiter.c         s->pos = (s->pos + channels) % buffer_size;
channels          270 libavfilter/af_alimiter.c         src += channels;
channels          271 libavfilter/af_alimiter.c         dst += channels;
channels          316 libavfilter/af_alimiter.c     obuffer_size = inlink->sample_rate * inlink->channels * 100 / 1000. + inlink->channels;
channels          317 libavfilter/af_alimiter.c     if (obuffer_size < inlink->channels)
channels          327 libavfilter/af_alimiter.c     s->buffer_size = inlink->sample_rate * s->attack * inlink->channels;
channels          328 libavfilter/af_alimiter.c     s->buffer_size -= s->buffer_size % inlink->channels;
channels          250 libavfilter/af_amerge.c     outbuf->channels       = outlink->channels;
channels          257 libavfilter/af_amix.c     s->nb_channels = outlink->channels;
channels           38 libavfilter/af_amultiply.c     int channels;
channels          104 libavfilter/af_amultiply.c             plane_samples = FFALIGN(s->frames[0]->nb_samples * s->channels, s->samples_align);
channels          163 libavfilter/af_amultiply.c     s->channels = inlink->channels;
channels          164 libavfilter/af_amultiply.c     s->planes = av_sample_fmt_is_planar(inlink->format) ? inlink->channels : 1;
channels          106 libavfilter/af_anequalizer.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          596 libavfilter/af_anequalizer.c     s->nb_allocated = 32 * inlink->channels;
channels          597 libavfilter/af_anequalizer.c     s->filters = av_calloc(inlink->channels, 32 * sizeof(*s->filters));
channels          629 libavfilter/af_anequalizer.c             s->filters[s->nb_filters].channel >= inlink->channels)
channels          176 libavfilter/af_anlmdn.c     s->fifo = av_audio_fifo_alloc(outlink->format, outlink->channels, s->N);
channels          286 libavfilter/af_anlmdn.c         ctx->internal->execute(ctx, filter_channel, out, NULL, inlink->channels);
channels          169 libavfilter/af_anlms.c     const int start = (out->channels * jobnr) / nb_jobs;
channels          170 libavfilter/af_anlms.c     const int end = (out->channels * (jobnr+1)) / nb_jobs;
channels          220 libavfilter/af_anlms.c         ctx->internal->execute(ctx, process_channels, out, NULL, FFMIN(ctx->outputs[0]->channels,
channels          124 libavfilter/af_apad.c                                outsamplesref->channels,
channels           52 libavfilter/af_aphaser.c                    int nb_samples, int channels);
channels          124 libavfilter/af_aphaser.c                                int nb_samples, int channels)           \
channels          128 libavfilter/af_aphaser.c     av_assert0(channels > 0);                                          \
channels          129 libavfilter/af_aphaser.c     for (c = 0; c < channels; c++) {                                   \
channels          160 libavfilter/af_aphaser.c                             int nb_samples, int channels)               \
channels          172 libavfilter/af_aphaser.c                       s->delay_buffer_length) * channels;               \
channels          176 libavfilter/af_aphaser.c         npos = delay_pos * channels;                                    \
channels          177 libavfilter/af_aphaser.c         for (c = 0; c < channels; c++, src++, dst++) {                  \
channels          213 libavfilter/af_aphaser.c     s->delay_buffer = av_calloc(s->delay_buffer_length, sizeof(*s->delay_buffer) * inlink->channels);
channels          259 libavfilter/af_aphaser.c               outbuf->nb_samples, outbuf->channels);
channels          154 libavfilter/af_aresample.c         av_opt_set_int(aresample->swr, "ich", inlink->channels, 0);
channels          156 libavfilter/af_aresample.c         av_opt_set_int(aresample->swr, "och", outlink->channels, 0);
channels          173 libavfilter/af_aresample.c     av_get_channel_layout_string(inchl_buf,  sizeof(inchl_buf),  inlink ->channels, inlink ->channel_layout);
channels          174 libavfilter/af_aresample.c     av_get_channel_layout_string(outchl_buf, sizeof(outchl_buf), outlink->channels, outlink->channel_layout);
channels          177 libavfilter/af_aresample.c            inlink ->channels, inchl_buf,  av_get_sample_fmt_name(inlink->format),  inlink->sample_rate,
channels          178 libavfilter/af_aresample.c            outlink->channels, outchl_buf, av_get_sample_fmt_name(outlink->format), outlink->sample_rate);
channels          205 libavfilter/af_aresample.c     outsamplesref->channels              = outlink->channels;
channels          140 libavfilter/af_arnndn.c     int channels;
channels          348 libavfilter/af_arnndn.c     s->channels = inlink->channels;
channels          350 libavfilter/af_arnndn.c     s->st = av_calloc(s->channels, sizeof(DenoiseState));
channels          354 libavfilter/af_arnndn.c     for (int i = 0; i < s->channels; i++) {
channels         1397 libavfilter/af_arnndn.c     const int start = (out->channels * jobnr) / nb_jobs;
channels         1398 libavfilter/af_arnndn.c     const int end = (out->channels * (jobnr+1)) / nb_jobs;
channels         1424 libavfilter/af_arnndn.c     ctx->internal->execute(ctx, rnnoise_channels, &td, NULL, FFMIN(outlink->channels,
channels         1498 libavfilter/af_arnndn.c         for (int ch = 0; ch < s->channels; ch++) {
channels           91 libavfilter/af_asetnsamples.c                         0, 0, frame->nb_samples, frame->channels, frame->format);
channels           93 libavfilter/af_asetnsamples.c                                s->nb_out_samples - frame->nb_samples, frame->channels,
channels          182 libavfilter/af_ashowinfo.c     int channels    = inlink->channels;
channels          184 libavfilter/af_ashowinfo.c     int block_align = av_get_bytes_per_sample(buf->format) * (planar ? 1 : channels);
channels          186 libavfilter/af_ashowinfo.c     int planes      = planar ? channels : 1;
channels          188 libavfilter/af_ashowinfo.c     void *tmp_ptr = av_realloc_array(s->plane_checksums, channels, sizeof(*s->plane_checksums));
channels          202 libavfilter/af_ashowinfo.c     av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), buf->channels,
channels          212 libavfilter/af_ashowinfo.c            av_get_sample_fmt_name(buf->format), buf->channels, chlayout_str,
channels           45 libavfilter/af_asoftclip.c                    int nb_samples, int channels, int start, int end);
channels          100 libavfilter/af_asoftclip.c                        int nb_samples, int channels,
channels          157 libavfilter/af_asoftclip.c                        int nb_samples, int channels,
channels          230 libavfilter/af_asoftclip.c     int channels;
channels          239 libavfilter/af_asoftclip.c     const int channels = td->channels;
channels          241 libavfilter/af_asoftclip.c     const int start = (channels * jobnr) / nb_jobs;
channels          242 libavfilter/af_asoftclip.c     const int end = (channels * (jobnr+1)) / nb_jobs;
channels          245 libavfilter/af_asoftclip.c               nb_samples, channels, start, end);
channels          254 libavfilter/af_asoftclip.c     int nb_samples, channels;
channels          271 libavfilter/af_asoftclip.c         channels = in->channels;
channels          273 libavfilter/af_asoftclip.c         nb_samples = in->channels * in->nb_samples;
channels          274 libavfilter/af_asoftclip.c         channels = 1;
channels          280 libavfilter/af_asoftclip.c     td.channels = channels;
channels          281 libavfilter/af_asoftclip.c     ctx->internal->execute(ctx, filter_channels, &td, NULL, FFMIN(channels,
channels          225 libavfilter/af_astats.c     s->chstats = av_calloc(sizeof(*s->chstats), outlink->channels);
channels          230 libavfilter/af_astats.c     s->nb_channels = outlink->channels;
channels          572 libavfilter/af_astats.c         const type * const srcend = src + samples * channels;                   \
channels          573 libavfilter/af_astats.c         for (src += c; src < srcend; src += channels) {                         \
channels          593 libavfilter/af_astats.c     const int channels = s->nb_channels;
channels          595 libavfilter/af_astats.c     const int start = (buf->channels * jobnr) / nb_jobs;
channels          596 libavfilter/af_astats.c     const int end = (buf->channels * (jobnr+1)) / nb_jobs;
channels          648 libavfilter/af_astats.c     ctx->internal->execute(ctx, filter_channel, buf, NULL, FFMIN(inlink->channels, ff_filter_get_nb_threads(ctx)));
channels          135 libavfilter/af_asubboost.c     for (int ch = 0; ch < in->channels; ch++) {
channels          113 libavfilter/af_atempo.c     int channels;
channels          264 libavfilter/af_atempo.c                      int channels)
channels          272 libavfilter/af_atempo.c     atempo->channels = channels;
channels          273 libavfilter/af_atempo.c     atempo->stride   = sample_size * channels;
channels          349 libavfilter/af_atempo.c             frag->nsamples * atempo->channels * sizeof(scalar_type);    \
channels          354 libavfilter/af_atempo.c         if (atempo->channels == 1) {                                    \
channels          373 libavfilter/af_atempo.c                 for (i = 1; i < atempo->channels; i++) {                \
channels          742 libavfilter/af_atempo.c             for (j = 0; j < atempo->channels;                           \
channels         1048 libavfilter/af_atempo.c     return yae_reset(atempo, format, sample_rate, inlink->channels);
channels          126 libavfilter/af_axcorrelate.c     for (int ch = 0; ch < out->channels; ch++) {
channels          159 libavfilter/af_axcorrelate.c     for (int ch = 0; ch < out->channels; ch++) {
channels          296 libavfilter/af_axcorrelate.c     outlink->channels = inlink->channels;
channels          297 libavfilter/af_axcorrelate.c     s->fifo[0] = av_audio_fifo_alloc(outlink->format, outlink->channels, s->size);
channels          298 libavfilter/af_axcorrelate.c     s->fifo[1] = av_audio_fifo_alloc(outlink->format, outlink->channels, s->size);
channels          114 libavfilter/af_biquads.c     uint64_t channels;
channels          434 libavfilter/af_biquads.c     s->cache = av_realloc_f(s->cache, sizeof(ChanCache), inlink->channels);
channels          438 libavfilter/af_biquads.c         memset(s->cache, 0, sizeof(ChanCache) * inlink->channels);
channels          469 libavfilter/af_biquads.c     const int start = (buf->channels * jobnr) / nb_jobs;
channels          470 libavfilter/af_biquads.c     const int end = (buf->channels * (jobnr+1)) / nb_jobs;
channels          474 libavfilter/af_biquads.c         if (!((av_channel_layout_extract_channel(inlink->channel_layout, ch) & s->channels))) {
channels          511 libavfilter/af_biquads.c     ctx->internal->execute(ctx, filter_channel, &td, NULL, FFMIN(outlink->channels, ff_filter_get_nb_threads(ctx)));
channels          513 libavfilter/af_biquads.c     for (ch = 0; ch < outlink->channels; ch++) {
channels          609 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          610 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          635 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          636 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          661 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          662 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          686 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          687 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          710 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          711 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          736 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          737 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          762 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          763 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          786 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          787 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          814 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          815 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          840 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          841 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          859 libavfilter/af_biquads.c     {"channels", "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          860 libavfilter/af_biquads.c     {"c",        "set channels to filter", OFFSET(channels), AV_OPT_TYPE_CHANNEL_LAYOUT, {.i64=-1}, INT64_MIN, INT64_MAX, FLAGS},
channels          312 libavfilter/af_channelmap.c     const int nch_in = inlink->channels;
channels          350 libavfilter/af_channelmap.c     buf->channels       = outlink->channels;
channels          359 libavfilter/af_channelmap.c     int nb_channels = inlink->channels;
channels          152 libavfilter/af_channelsplit.c         buf_out->channels = 1;
channels           57 libavfilter/af_chorus.c     int channels;
channels          193 libavfilter/af_chorus.c     s->channels = outlink->channels;
channels          216 libavfilter/af_chorus.c     s->counter = av_calloc(outlink->channels, sizeof(*s->counter));
channels          220 libavfilter/af_chorus.c     s->phase = av_calloc(outlink->channels, sizeof(*s->phase));
channels          224 libavfilter/af_chorus.c     for (n = 0; n < outlink->channels; n++) {
channels          233 libavfilter/af_chorus.c                                               outlink->channels,
channels          258 libavfilter/af_chorus.c     for (c = 0; c < inlink->channels; c++) {
channels          312 libavfilter/af_chorus.c                                outlink->channels,
channels          340 libavfilter/af_chorus.c         for (n = 0; n < s->channels; n++)
channels           55 libavfilter/af_compand.c     ChanParam *channels;
channels           98 libavfilter/af_compand.c     av_freep(&s->channels);
channels          179 libavfilter/af_compand.c     const int channels   = inlink->channels;
channels          201 libavfilter/af_compand.c     for (chan = 0; chan < channels; chan++) {
channels          204 libavfilter/af_compand.c         ChanParam *cp = &s->channels[chan];
channels          225 libavfilter/af_compand.c     const int channels = inlink->channels;
channels          235 libavfilter/af_compand.c     av_assert1(channels > 0); /* would corrupt delay_count and delay_index */
channels          237 libavfilter/af_compand.c     for (chan = 0; chan < channels; chan++) {
channels          241 libavfilter/af_compand.c         ChanParam *cp        = &s->channels[chan];
channels          297 libavfilter/af_compand.c     const int channels   = outlink->channels;
channels          309 libavfilter/af_compand.c     av_assert0(channels > 0);
channels          310 libavfilter/af_compand.c     for (chan = 0; chan < channels; chan++) {
channels          314 libavfilter/af_compand.c         ChanParam *cp = &s->channels[chan];
channels          335 libavfilter/af_compand.c     const int channels    = outlink->channels;
channels          346 libavfilter/af_compand.c     if (channels <= 0) {
channels          347 libavfilter/af_compand.c         av_log(ctx, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
channels          351 libavfilter/af_compand.c     if (nb_attacks > channels || nb_decays > channels) {
channels          354 libavfilter/af_compand.c         nb_attacks = FFMIN(nb_attacks, channels);
channels          355 libavfilter/af_compand.c         nb_decays  = FFMIN(nb_decays, channels);
channels          360 libavfilter/af_compand.c     s->channels = av_mallocz_array(channels, sizeof(*s->channels));
channels          364 libavfilter/af_compand.c     if (!s->channels || !s->segments) {
channels          377 libavfilter/af_compand.c         new_nb_items += sscanf(tstr, "%lf", &s->channels[i].attack) == 1;
channels          378 libavfilter/af_compand.c         if (s->channels[i].attack < 0) {
channels          393 libavfilter/af_compand.c         new_nb_items += sscanf(tstr, "%lf", &s->channels[i].decay) == 1;
channels          394 libavfilter/af_compand.c         if (s->channels[i].decay < 0) {
channels          409 libavfilter/af_compand.c     for (i = nb_decays; i < channels; i++) {
channels          410 libavfilter/af_compand.c         s->channels[i].attack = s->channels[nb_decays - 1].attack;
channels          411 libavfilter/af_compand.c         s->channels[i].decay = s->channels[nb_decays - 1].decay;
channels          508 libavfilter/af_compand.c     for (i = 0; i < channels; i++) {
channels          509 libavfilter/af_compand.c         ChanParam *cp = &s->channels[i];
channels          141 libavfilter/af_compensationdelay.c     for (ch = 0; ch < inlink->channels; ch++) {
channels           81 libavfilter/af_crystalizer.c     int channels;
channels           93 libavfilter/af_crystalizer.c     const int channels = td->channels;
channels           96 libavfilter/af_crystalizer.c     const int start = (channels * jobnr) / nb_jobs;
channels           97 libavfilter/af_crystalizer.c     const int end = (channels * (jobnr+1)) / nb_jobs;
channels          113 libavfilter/af_crystalizer.c             dst += channels;
channels          114 libavfilter/af_crystalizer.c             src += channels;
channels          128 libavfilter/af_crystalizer.c     const int channels = td->channels;
channels          131 libavfilter/af_crystalizer.c     const int start = (channels * jobnr) / nb_jobs;
channels          132 libavfilter/af_crystalizer.c     const int end = (channels * (jobnr+1)) / nb_jobs;
channels          149 libavfilter/af_crystalizer.c             dst += channels;
channels          150 libavfilter/af_crystalizer.c             src += channels;
channels          164 libavfilter/af_crystalizer.c     const int channels = td->channels;
channels          167 libavfilter/af_crystalizer.c     const int start = (channels * jobnr) / nb_jobs;
channels          168 libavfilter/af_crystalizer.c     const int end = (channels * (jobnr+1)) / nb_jobs;
channels          197 libavfilter/af_crystalizer.c     const int channels = td->channels;
channels          200 libavfilter/af_crystalizer.c     const int start = (channels * jobnr) / nb_jobs;
channels          201 libavfilter/af_crystalizer.c     const int end = (channels * (jobnr+1)) / nb_jobs;
channels          269 libavfilter/af_crystalizer.c     td.channels = in->channels;
channels          272 libavfilter/af_crystalizer.c     ctx->internal->execute(ctx, s->filter, &td, NULL, FFMIN(inlink->channels,
channels          105 libavfilter/af_dcshift.c         for (i = 0; i < inlink->channels; i++) {
channels          130 libavfilter/af_dcshift.c         for (i = 0; i < inlink->channels; i++) {
channels          105 libavfilter/af_deesser.c     s->chan = av_calloc(inlink->channels, sizeof(*s->chan));
channels          109 libavfilter/af_deesser.c     for (int i = 0; i < inlink->channels; i++) {
channels          136 libavfilter/af_deesser.c     for (int ch = 0; ch < inlink->channels; ch++) {
channels           90 libavfilter/af_drmeter.c     s->chstats = av_calloc(sizeof(*s->chstats), outlink->channels);
channels           93 libavfilter/af_drmeter.c     s->nb_channels = outlink->channels;
channels          131 libavfilter/af_drmeter.c     const int channels = s->nb_channels;
channels          136 libavfilter/af_drmeter.c         for (c = 0; c < channels; c++) {
channels          148 libavfilter/af_drmeter.c             for (c = 0; c < channels; c++, src++)
channels           77 libavfilter/af_dynaudnorm.c     int channels;
channels          302 libavfilter/af_dynaudnorm.c     for (c = 0; c < s->channels; c++) {
channels          334 libavfilter/af_dynaudnorm.c     s->channels = inlink->channels;
channels          338 libavfilter/af_dynaudnorm.c     s->prev_amplification_factor = av_malloc_array(inlink->channels, sizeof(*s->prev_amplification_factor));
channels          339 libavfilter/af_dynaudnorm.c     s->dc_correction_value = av_calloc(inlink->channels, sizeof(*s->dc_correction_value));
channels          340 libavfilter/af_dynaudnorm.c     s->compress_threshold = av_calloc(inlink->channels, sizeof(*s->compress_threshold));
channels          341 libavfilter/af_dynaudnorm.c     s->gain_history_original = av_calloc(inlink->channels, sizeof(*s->gain_history_original));
channels          342 libavfilter/af_dynaudnorm.c     s->gain_history_minimum = av_calloc(inlink->channels, sizeof(*s->gain_history_minimum));
channels          343 libavfilter/af_dynaudnorm.c     s->gain_history_smoothed = av_calloc(inlink->channels, sizeof(*s->gain_history_smoothed));
channels          344 libavfilter/af_dynaudnorm.c     s->threshold_history = av_calloc(inlink->channels, sizeof(*s->threshold_history));
channels          354 libavfilter/af_dynaudnorm.c     for (c = 0; c < inlink->channels; c++) {
channels          397 libavfilter/af_dynaudnorm.c         for (c = 0; c < frame->channels; c++) {
channels          419 libavfilter/af_dynaudnorm.c         for (c = 0; c < frame->channels; c++) {
channels          427 libavfilter/af_dynaudnorm.c         rms_value /= frame->nb_samples * frame->channels;
channels          549 libavfilter/af_dynaudnorm.c     for (c = 0; c < s->channels; c++) {
channels          595 libavfilter/af_dynaudnorm.c         for (c = 0; c < s->channels; c++) {
channels          602 libavfilter/af_dynaudnorm.c         variance /= (s->channels * frame->nb_samples) - 1;
channels          631 libavfilter/af_dynaudnorm.c         for (c = 0; c < s->channels; c++) {
channels          639 libavfilter/af_dynaudnorm.c         for (c = 0; c < s->channels; c++) {
channels          674 libavfilter/af_dynaudnorm.c         for (c = 0; c < s->channels; c++)
channels          679 libavfilter/af_dynaudnorm.c         for (c = 0; c < s->channels; c++)
channels          688 libavfilter/af_dynaudnorm.c     for (c = 0; c < s->channels; c++) {
channels          746 libavfilter/af_dynaudnorm.c     for (c = 0; c < s->channels; c++) {
channels          841 libavfilter/af_dynaudnorm.c         for (int c = 0; c < s->channels; c++) {
channels          639 libavfilter/af_firequalizer.c     vars[VAR_CHS] = inlink->channels;
channels          642 libavfilter/af_firequalizer.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          747 libavfilter/af_firequalizer.c     memcpy(s->kernel_buf, s->kernel_tmp_buf, (s->multi ? inlink->channels : 1) * s->rdft_len * sizeof(*s->kernel_buf));
channels          786 libavfilter/af_firequalizer.c     if (s->fft2 && !s->multi && inlink->channels > 1 && !(s->fft_ctx = av_fft_init(rdft_bits, 0)))
channels          828 libavfilter/af_firequalizer.c     s->kernel_tmp_buf = av_malloc_array(s->rdft_len * (s->multi ? inlink->channels : 1), sizeof(*s->kernel_tmp_buf));
channels          829 libavfilter/af_firequalizer.c     s->kernel_buf = av_malloc_array(s->rdft_len * (s->multi ? inlink->channels : 1), sizeof(*s->kernel_buf));
channels          830 libavfilter/af_firequalizer.c     s->conv_buf   = av_calloc(2 * s->rdft_len * inlink->channels, sizeof(*s->conv_buf));
channels          831 libavfilter/af_firequalizer.c     s->conv_idx   = av_calloc(inlink->channels, sizeof(*s->conv_idx));
channels          836 libavfilter/af_firequalizer.c            inlink->sample_rate, inlink->channels, s->analysis_rdft_len, s->rdft_len, s->fir_len, s->nsamples_max);
channels          851 libavfilter/af_firequalizer.c         for (ch = 0; ch + 1 < inlink->channels && s->fft_ctx; ch += 2) {
channels          857 libavfilter/af_firequalizer.c         for ( ; ch < inlink->channels; ch++) {
channels          863 libavfilter/af_firequalizer.c         for (ch = 0; ch < inlink->channels; ch++) {
channels          893 libavfilter/af_firequalizer.c         av_samples_set_silence(frame->extended_data, 0, frame->nb_samples, outlink->channels, frame->format);
channels          127 libavfilter/af_flanger.c     s->delay_last  = av_calloc(inlink->channels, sizeof(*s->delay_last));
channels          137 libavfilter/af_flanger.c                                               inlink->channels, s->max_samples,
channels          163 libavfilter/af_flanger.c         for (chan = 0; chan < inlink->channels; chan++) {
channels         1041 libavfilter/af_hdcd.c static int hdcd_integrate(HDCDContext *ctx, hdcd_state *states, int channels, int *flag, const int32_t *samples, int count, int stride)
channels         1049 libavfilter/af_hdcd.c     if (stride < channels) stride = channels;
channels         1051 libavfilter/af_hdcd.c     for (i = 0; i < channels; i++)
channels         1055 libavfilter/af_hdcd.c         for (i = 0; i < channels; i++)
channels         1057 libavfilter/af_hdcd.c         samples += stride - channels;
channels         1060 libavfilter/af_hdcd.c     for (i = 0; i < channels; i++) {
channels         1126 libavfilter/af_hdcd.c static int hdcd_scan(HDCDContext *ctx, hdcd_state *states, int channels, const int32_t *samples, int max, int stride)
channels         1133 libavfilter/af_hdcd.c     if (stride < channels) stride = channels;
channels         1136 libavfilter/af_hdcd.c     for(i = 0; i < channels; i++) {
channels         1150 libavfilter/af_hdcd.c         int consumed = hdcd_integrate(ctx, states, channels, &flag, samples, max - result, stride);
channels         1154 libavfilter/af_hdcd.c             for(i = 0; i < channels; i++) {
channels         1168 libavfilter/af_hdcd.c     for(i = 0; i < channels; i++) {
channels         1516 libavfilter/af_hdcd.c static void hdcd_detect_end(hdcd_detection_data *detect, int channels) {
channels         1519 libavfilter/af_hdcd.c     if (detect->_active_count == channels) {
channels         1556 libavfilter/af_hdcd.c                 for (c = 0; c < in->channels; c++) {
channels         1558 libavfilter/af_hdcd.c                     out_data[(n * in->channels) + c] = in_data[n];
channels         1563 libavfilter/af_hdcd.c             for (n = 0; n < in->nb_samples * in->channels; n++)
channels         1569 libavfilter/af_hdcd.c                 for (c = 0; c < in->channels; c++) {
channels         1571 libavfilter/af_hdcd.c                     out_data[(n * in->channels) + c] = in_data32[n] >> a;
channels         1576 libavfilter/af_hdcd.c             for (n = 0; n < in->nb_samples * in->channels; n++)
channels         1589 libavfilter/af_hdcd.c         for (c = 0; c < in->channels; c++) {
channels         1590 libavfilter/af_hdcd.c             hdcd_process(s, &s->state[c], out_data + c, in->nb_samples, in->channels);
channels         1593 libavfilter/af_hdcd.c         hdcd_detect_end(&s->detect, in->channels);
channels         1596 libavfilter/af_hdcd.c     s->sample_count += in->nb_samples * in->channels;
channels         1742 libavfilter/af_hdcd.c     if (inlink->channels != 2 && s->process_stereo) {
channels         1743 libavfilter/af_hdcd.c         av_log(ctx, AV_LOG_WARNING, "process_stereo disabled (channels = %d)\n", inlink->channels);
channels          181 libavfilter/af_headphone.c     const int in_channels = in->channels;
channels          252 libavfilter/af_headphone.c     const int in_channels = in->channels;
channels          395 libavfilter/af_headphone.c     int nb_input_channels = ctx->inputs[0]->channels;
channels          496 libavfilter/af_headphone.c             for (j = 0; j < inlink->channels; j++) {
channels          533 libavfilter/af_headphone.c             int I, N = ctx->inputs[1]->channels;
channels          538 libavfilter/af_headphone.c                 for (j = 0; j < inlink->channels; j++) {
channels          739 libavfilter/af_headphone.c     if (s->nb_irs < inlink->channels) {
channels          740 libavfilter/af_headphone.c         av_log(ctx, AV_LOG_ERROR, "Number of HRIRs must be >= %d.\n", inlink->channels);
channels          801 libavfilter/af_headphone.c         if (hrir_link->channels < inlink->channels * 2) {
channels          802 libavfilter/af_headphone.c             av_log(ctx, AV_LOG_ERROR, "Number of channels in HRIR stream must be >= %d.\n", inlink->channels * 2);
channels          807 libavfilter/af_headphone.c     s->gain_lfe = expf((s->gain - 3 * inlink->channels + s->lfe_gain) / 20 * M_LN10);
channels           55 libavfilter/af_join.c     ChannelMap *channels;
channels          127 libavfilter/af_join.c         if (s->channels[out_ch_idx].input >= 0) {
channels          151 libavfilter/af_join.c         s->channels[out_ch_idx].input      = input_idx;
channels          153 libavfilter/af_join.c             s->channels[out_ch_idx].in_channel = in_channel;
channels          155 libavfilter/af_join.c             s->channels[out_ch_idx].in_channel_idx = in_ch_idx;
channels          174 libavfilter/af_join.c     s->channels     = av_mallocz_array(s->nb_channels, sizeof(*s->channels));
channels          177 libavfilter/af_join.c     if (!s->channels || !s->buffers|| !s->input_frames)
channels          181 libavfilter/af_join.c         s->channels[i].out_channel = av_channel_layout_extract_channel(s->channel_layout, i);
channels          182 libavfilter/af_join.c         s->channels[i].input       = -1;
channels          218 libavfilter/af_join.c     av_freep(&s->channels);
channels          294 libavfilter/af_join.c         ChannelMap *ch = &s->channels[i];
channels          320 libavfilter/af_join.c         ChannelMap *ch = &s->channels[i];
channels          328 libavfilter/af_join.c         ChannelMap *ch = &s->channels[i];
channels          347 libavfilter/af_join.c         ChannelMap *ch = &s->channels[i];
channels          398 libavfilter/af_join.c         ChannelMap *ch = &s->channels[i];
channels          448 libavfilter/af_join.c     frame->channels       = outlink->channels;
channels          148 libavfilter/af_ladspa.c     av_assert0(in->channels == (s->nb_inputs * s->nb_handles));
channels          163 libavfilter/af_ladspa.c     av_assert0(!s->nb_outputs || out->channels == (s->nb_outputs * s->nb_handles));
channels          267 libavfilter/af_ladspa.c     s->nb_handles = s->nb_inputs == 1 && s->nb_outputs == 1 ? link->channels : 1;
channels          316 libavfilter/af_ladspa.c             outlink->channels = inlink->channels;
channels           92 libavfilter/af_loudnorm.c     int channels;
channels          167 libavfilter/af_loudnorm.c static void detect_peak(LoudNormContext *s, int offset, int nb_samples, int channels, int *peak_delta, double *peak_value)
channels          177 libavfilter/af_loudnorm.c     index = s->limiter_buf_index + (offset * channels) + (1920 * channels);
channels          182 libavfilter/af_loudnorm.c         for (c = 0; c < channels; c++)
channels          183 libavfilter/af_loudnorm.c             s->prev_smp[c] = fabs(buf[index + c - channels]);
channels          187 libavfilter/af_loudnorm.c         for (c = 0; c < channels; c++) {
channels          191 libavfilter/af_loudnorm.c             next = fabs(buf[(index + c + channels) < s->limiter_buf_size ? (index + c + channels) : (index + c + channels - s->limiter_buf_size)]);
channels          198 libavfilter/af_loudnorm.c                     next = fabs(buf[(index + c + (i * channels)) < s->limiter_buf_size ? (index + c + (i * channels)) : (index + c + (i * channels) - s->limiter_buf_size)]);
channels          208 libavfilter/af_loudnorm.c                 for (c = 0; c < channels; c++) {
channels          224 libavfilter/af_loudnorm.c         index += channels;
channels          230 libavfilter/af_loudnorm.c static void true_peak_limiter(LoudNormContext *s, double *out, int nb_samples, int channels)
channels          246 libavfilter/af_loudnorm.c             for (c = 0; c < channels; c++) {
channels          249 libavfilter/af_loudnorm.c             buf += channels;
channels          258 libavfilter/af_loudnorm.c                 for (c = 0; c < channels; c++) {
channels          263 libavfilter/af_loudnorm.c                 buf += channels;
channels          274 libavfilter/af_loudnorm.c             detect_peak(s, smp_cnt, nb_samples - smp_cnt, channels, &peak_delta, &peak_value);
channels          282 libavfilter/af_loudnorm.c                 s->env_index = s->peak_index - (s->attack_length * channels);
channels          286 libavfilter/af_loudnorm.c                 s->env_index += (s->env_cnt * channels);
channels          297 libavfilter/af_loudnorm.c                 for (c = 0; c < channels; c++) {
channels          303 libavfilter/af_loudnorm.c                 s->env_index += channels;
channels          322 libavfilter/af_loudnorm.c             detect_peak(s, smp_cnt, nb_samples, channels, &peak_delta, &peak_value);
channels          347 libavfilter/af_loudnorm.c                     for (c = 0; c < channels; c++) {
channels          353 libavfilter/af_loudnorm.c                     s->env_index += channels;
channels          368 libavfilter/af_loudnorm.c                 for (c = 0; c < channels; c++) {
channels          374 libavfilter/af_loudnorm.c                 s->env_index += channels;
channels          396 libavfilter/af_loudnorm.c         for (c = 0; c < channels; c++) {
channels          402 libavfilter/af_loudnorm.c         out += channels;
channels          403 libavfilter/af_loudnorm.c         index += channels;
channels          449 libavfilter/af_loudnorm.c         for (c = 0; c < inlink->channels; c++) {
channels          465 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          468 libavfilter/af_loudnorm.c             src += inlink->channels;
channels          469 libavfilter/af_loudnorm.c             s->buf_index += inlink->channels;
channels          489 libavfilter/af_loudnorm.c         for (n = 0; n < (s->limiter_buf_size / inlink->channels); n++) {
channels          490 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          493 libavfilter/af_loudnorm.c             s->limiter_buf_index += inlink->channels;
channels          497 libavfilter/af_loudnorm.c             s->buf_index += inlink->channels;
channels          501 libavfilter/af_loudnorm.c         true_peak_limiter(s, dst, subframe_length, inlink->channels);
channels          518 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          522 libavfilter/af_loudnorm.c             src += inlink->channels;
channels          524 libavfilter/af_loudnorm.c             s->limiter_buf_index += inlink->channels;
channels          528 libavfilter/af_loudnorm.c             s->prev_buf_index += inlink->channels;
channels          532 libavfilter/af_loudnorm.c             s->buf_index += inlink->channels;
channels          537 libavfilter/af_loudnorm.c         subframe_length = (frame_size(inlink->sample_rate, 100) - in->nb_samples) * inlink->channels;
channels          540 libavfilter/af_loudnorm.c         true_peak_limiter(s, dst, in->nb_samples, inlink->channels);
channels          580 libavfilter/af_loudnorm.c         for (n = 0; n < s->limiter_buf_size / inlink->channels; n++) {
channels          581 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          584 libavfilter/af_loudnorm.c             src_index += inlink->channels;
channels          586 libavfilter/af_loudnorm.c             s->limiter_buf_index += inlink->channels;
channels          593 libavfilter/af_loudnorm.c             true_peak_limiter(s, dst, subframe_length, inlink->channels);
channels          596 libavfilter/af_loudnorm.c                 for (c = 0; c < inlink->channels; c++) {
channels          597 libavfilter/af_loudnorm.c                     if (src_index < (in->nb_samples * inlink->channels)) {
channels          604 libavfilter/af_loudnorm.c                 if (src_index < (in->nb_samples * inlink->channels))
channels          605 libavfilter/af_loudnorm.c                     src_index += inlink->channels;
channels          607 libavfilter/af_loudnorm.c                 s->limiter_buf_index += inlink->channels;
channels          612 libavfilter/af_loudnorm.c             dst += (subframe_length * inlink->channels);
channels          621 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          624 libavfilter/af_loudnorm.c             src += inlink->channels;
channels          625 libavfilter/af_loudnorm.c             dst += inlink->channels;
channels          654 libavfilter/af_loudnorm.c         nb_samples  = (s->buf_size / inlink->channels) - s->prev_nb_samples;
channels          665 libavfilter/af_loudnorm.c         offset  = ((s->limiter_buf_size / inlink->channels) - s->prev_nb_samples) * inlink->channels;
channels          666 libavfilter/af_loudnorm.c         offset -= (frame_size(inlink->sample_rate, 100) - s->prev_nb_samples) * inlink->channels;
channels          670 libavfilter/af_loudnorm.c             for (c = 0; c < inlink->channels; c++) {
channels          673 libavfilter/af_loudnorm.c             src += inlink->channels;
channels          674 libavfilter/af_loudnorm.c             s->buf_index += inlink->channels;
channels          733 libavfilter/af_loudnorm.c     s->r128_in = ff_ebur128_init(inlink->channels, inlink->sample_rate, 0, FF_EBUR128_MODE_I | FF_EBUR128_MODE_S | FF_EBUR128_MODE_LRA | FF_EBUR128_MODE_SAMPLE_PEAK);
channels          737 libavfilter/af_loudnorm.c     s->r128_out = ff_ebur128_init(inlink->channels, inlink->sample_rate, 0, FF_EBUR128_MODE_I | FF_EBUR128_MODE_S | FF_EBUR128_MODE_LRA | FF_EBUR128_MODE_SAMPLE_PEAK);
channels          741 libavfilter/af_loudnorm.c     if (inlink->channels == 1 && s->dual_mono) {
channels          746 libavfilter/af_loudnorm.c     s->buf_size = frame_size(inlink->sample_rate, 3000) * inlink->channels;
channels          751 libavfilter/af_loudnorm.c     s->limiter_buf_size = frame_size(inlink->sample_rate, 210) * inlink->channels;
channels          756 libavfilter/af_loudnorm.c     s->prev_smp = av_malloc_array(inlink->channels, sizeof(*s->prev_smp));
channels          772 libavfilter/af_loudnorm.c     s->channels = inlink->channels;
channels          816 libavfilter/af_loudnorm.c     for (c = 0; c < s->channels; c++) {
channels          826 libavfilter/af_loudnorm.c     for (c = 0; c < s->channels; c++) {
channels          293 libavfilter/af_lv2.c             outlink->channels = inlink->channels;
channels          336 libavfilter/af_mcompand.c     p->previous = av_calloc(outlink->channels, sizeof(*p->previous));
channels          388 libavfilter/af_mcompand.c         s->bands[i].attack_rate = av_calloc(outlink->channels, sizeof(double));
channels          389 libavfilter/af_mcompand.c         s->bands[i].decay_rate = av_calloc(outlink->channels, sizeof(double));
channels          390 libavfilter/af_mcompand.c         s->bands[i].volume = av_calloc(outlink->channels, sizeof(double));
channels          391 libavfilter/af_mcompand.c         for (k = 0; k < FFMIN(nb_attacks / 2, outlink->channels); k++) {
channels          412 libavfilter/af_mcompand.c         for (ch = k; ch < outlink->channels; ch++) {
channels          484 libavfilter/af_mcompand.c                 for (k = 0; k < outlink->channels; k++) {
channels          618 libavfilter/af_mcompand.c     for (ch = 0; ch < outlink->channels; ch++) {
channels          302 libavfilter/af_pan.c     if (link->channels > MAX_CHANNELS ||
channels          318 libavfilter/af_pan.c         if (av_opt_set_int(pan->swr, "ich", link->channels, 0) < 0)
channels          332 libavfilter/af_pan.c             for (j = 0; j < link->channels; j++) {
channels          350 libavfilter/af_pan.c             for (j = 0; j < link->channels; j++)
channels          359 libavfilter/af_pan.c             for (j = 0; j < link->channels; j++)
channels          374 libavfilter/af_pan.c         for (j = 0; j < link->channels; j++) {
channels          411 libavfilter/af_pan.c     outsamples->channels = outlink->channels;
channels           37 libavfilter/af_rubberband.c         smoothing, formant, opitch, channels;
channels           76 libavfilter/af_rubberband.c     { "channels",   "set channels",   OFFSET(channels),   AV_OPT_TYPE_INT, {.i64=0}, 0, INT_MAX, A, "channels" },
channels          163 libavfilter/af_rubberband.c                s->smoothing|s->formant|s->opitch|s->channels|
channels          168 libavfilter/af_rubberband.c     s->rbs = rubberband_new(inlink->sample_rate, inlink->channels, opts, 1. / s->tempo, s->pitch);
channels          180 libavfilter/af_sidechaincompress.c             for (c = 1; c < sclink->channels; c++)
channels          183 libavfilter/af_sidechaincompress.c             for (c = 1; c < sclink->channels; c++)
channels          186 libavfilter/af_sidechaincompress.c             abs_sample /= sclink->channels;
channels          209 libavfilter/af_sidechaincompress.c         for (c = 0; c < inlink->channels; c++)
channels          212 libavfilter/af_sidechaincompress.c         src += inlink->channels;
channels          213 libavfilter/af_sidechaincompress.c         dst += inlink->channels;
channels          214 libavfilter/af_sidechaincompress.c         scsrc += sclink->channels;
channels          350 libavfilter/af_sidechaincompress.c     outlink->channels = ctx->inputs[0]->channels;
channels          352 libavfilter/af_sidechaincompress.c     s->fifo[0] = av_audio_fifo_alloc(ctx->inputs[0]->format, ctx->inputs[0]->channels, 1024);
channels          353 libavfilter/af_sidechaincompress.c     s->fifo[1] = av_audio_fifo_alloc(ctx->inputs[1]->format, ctx->inputs[1]->channels, 1024);
channels           40 libavfilter/af_silencedetect.c     int channels;               ///< number of channels
channels           87 libavfilter/af_silencedetect.c                 s->start[channel] = insamples->pts + av_rescale_q(current_sample / s->channels + 1 - nb_samples_notify * s->independent_channels / s->channels,
channels           99 libavfilter/af_silencedetect.c             int64_t end_pts = insamples ? insamples->pts + av_rescale_q(current_sample / s->channels,
channels          145 libavfilter/af_silencedetect.c     s->channels = inlink->channels;
channels          147 libavfilter/af_silencedetect.c     s->independent_channels = s->mono ? s->channels : 1;
channels          176 libavfilter/af_silencedetect.c     const int nb_channels           = inlink->channels;
channels          210 libavfilter/af_silenceremove.c     s->window_size = FFMAX((inlink->sample_rate * s->window_ratio), 1) * inlink->channels;
channels          228 libavfilter/af_silenceremove.c                                        inlink->channels);
channels          234 libavfilter/af_silenceremove.c                                             inlink->channels);
channels          244 libavfilter/af_silenceremove.c                                       inlink->channels);
channels          250 libavfilter/af_silenceremove.c                                            inlink->channels);
channels          273 libavfilter/af_silenceremove.c         out->nb_samples = *nb_samples_written / outlink->channels;
channels          291 libavfilter/af_silenceremove.c     silence = ff_get_audio_buffer(outlink, s->stop_silence_end / outlink->channels);
channels          338 libavfilter/af_silenceremove.c         nbs = in->nb_samples - nb_samples_read / outlink->channels;
channels          345 libavfilter/af_silenceremove.c                 for (j = 0; j < outlink->channels; j++) {
channels          350 libavfilter/af_silenceremove.c                 for (j = 0; j < outlink->channels; j++) {
channels          356 libavfilter/af_silenceremove.c                 for (j = 0; j < outlink->channels; j++) {
channels          360 libavfilter/af_silenceremove.c                 nb_samples_read += outlink->channels;
channels          362 libavfilter/af_silenceremove.c                 if (s->start_holdoff_end >= s->start_duration * outlink->channels) {
channels          376 libavfilter/af_silenceremove.c                 for (j = 0; j < outlink->channels; j++) {
channels          380 libavfilter/af_silenceremove.c                         s->start_silence_end = FFMIN(s->start_silence_end + 1, outlink->channels * s->start_silence);
channels          381 libavfilter/af_silenceremove.c                         if (s->start_silence_offset >= outlink->channels * s->start_silence) {
channels          387 libavfilter/af_silenceremove.c                 ibuf += outlink->channels;
channels          388 libavfilter/af_silenceremove.c                 nb_samples_read += outlink->channels;
channels          396 libavfilter/af_silenceremove.c         nbs -= nbs % outlink->channels;
channels          400 libavfilter/af_silenceremove.c         out = ff_get_audio_buffer(outlink, nbs / outlink->channels + s->start_silence_end / outlink->channels);
channels          445 libavfilter/af_silenceremove.c         nbs = in->nb_samples - nb_samples_read / outlink->channels;
channels          460 libavfilter/af_silenceremove.c                     for (j = 0; j < outlink->channels; j++) {
channels          465 libavfilter/af_silenceremove.c                     for (j = 0; j < outlink->channels; j++) {
channels          475 libavfilter/af_silenceremove.c                     for (j = 0; j < outlink->channels; j++) {
channels          479 libavfilter/af_silenceremove.c                     nb_samples_read    += outlink->channels;
channels          480 libavfilter/af_silenceremove.c                     nb_samples_written += outlink->channels;
channels          482 libavfilter/af_silenceremove.c                     for (j = 0; j < outlink->channels; j++) {
channels          486 libavfilter/af_silenceremove.c                             s->stop_silence_end = FFMIN(s->stop_silence_end + 1, outlink->channels * s->stop_silence);
channels          487 libavfilter/af_silenceremove.c                             if (s->stop_silence_offset >= outlink->channels * s->stop_silence) {
channels          494 libavfilter/af_silenceremove.c                     nb_samples_read += outlink->channels;
channels          496 libavfilter/af_silenceremove.c                     if (s->stop_holdoff_end >= s->stop_duration * outlink->channels) {
channels          526 libavfilter/af_silenceremove.c             memcpy(obuf, ibuf, sizeof(double) * nbs * outlink->channels);
channels          540 libavfilter/af_silenceremove.c         nbs -= nbs % outlink->channels;
channels          544 libavfilter/af_silenceremove.c         out = ff_get_audio_buffer(outlink, nbs / outlink->channels);
channels          593 libavfilter/af_silenceremove.c             frame = ff_get_audio_buffer(outlink, nbs / outlink->channels);
channels          251 libavfilter/af_sofalizer.c     int m, ch, n_conv = ctx->inputs[0]->channels; /* get no. input channels */
channels          728 libavfilter/af_sofalizer.c     int nb_input_channels = ctx->inputs[0]->channels; /* no. input channels */
channels          998 libavfilter/af_sofalizer.c     s->gain_lfe = expf((s->gain - 3 * inlink->channels + s->lfe_gain) / 20 * M_LN10);
channels         1000 libavfilter/af_sofalizer.c     s->n_conv = inlink->channels;
channels         1007 libavfilter/af_sofalizer.c         inlink->sample_rate, s->n_conv, inlink->channels, s->buffer_length);
channels          202 libavfilter/af_superequalizer.c     for (ch = 0; ch < in->channels; ch++) {
channels          203 libavfilter/af_surround.c     s->rdft = av_calloc(inlink->channels, sizeof(*s->rdft));
channels          207 libavfilter/af_surround.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          212 libavfilter/af_surround.c     s->nb_in_channels = inlink->channels;
channels          250 libavfilter/af_surround.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->buf_size);
channels          266 libavfilter/af_surround.c     s->irdft = av_calloc(outlink->channels, sizeof(*s->irdft));
channels          270 libavfilter/af_surround.c     for (ch = 0; ch < outlink->channels; ch++) {
channels          275 libavfilter/af_surround.c     s->nb_out_channels = outlink->channels;
channels         1592 libavfilter/af_surround.c     ctx->internal->execute(ctx, fft_channel, NULL, NULL, inlink->channels);
channels         1600 libavfilter/af_surround.c     ctx->internal->execute(ctx, ifft_channel, out, NULL, outlink->channels);
channels           52 libavfilter/af_tremolo.c     const int channels = inlink->channels;
channels           71 libavfilter/af_tremolo.c         for (c = 0; c < channels; c++)
channels           73 libavfilter/af_tremolo.c         dst += channels;
channels           74 libavfilter/af_tremolo.c         src += channels;
channels           31 libavfilter/af_vibrato.c     int channels;
channels           83 libavfilter/af_vibrato.c         for (c = 0; c < inlink->channels; c++) {
channels          150 libavfilter/af_vibrato.c     for (c = 0; c < s->channels; c++)
channels          160 libavfilter/af_vibrato.c     s->channels = inlink->channels;
channels          162 libavfilter/af_vibrato.c     s->buf = av_calloc(inlink->channels, sizeof(*s->buf));
channels          166 libavfilter/af_vibrato.c     for (c = 0; c < s->channels; c++) {
channels          297 libavfilter/af_volume.c     vol->channels   = inlink->channels;
channels          298 libavfilter/af_volume.c     vol->planes     = av_sample_fmt_is_planar(inlink->format) ? vol->channels : 1;
channels          310 libavfilter/af_volume.c     vol->var_values[VAR_NB_CHANNELS] = inlink->channels;
channels          433 libavfilter/af_volume.c             plane_samples = FFALIGN(nb_samples * vol->channels, vol->samples_align);
channels           82 libavfilter/af_volume.h     int    channels;
channels           65 libavfilter/af_volumedetect.c     int nb_channels = samples->channels;
channels           41 libavfilter/audio.c     int channels = link->channels;
channels           43 libavfilter/audio.c     av_assert0(channels == av_get_channel_layout_nb_channels(link->channel_layout) || !av_get_channel_layout_nb_channels(link->channel_layout));
channels           46 libavfilter/audio.c         link->frame_pool = ff_frame_pool_audio_init(av_buffer_allocz, channels,
channels           62 libavfilter/audio.c         if (pool_channels != channels || pool_nb_samples < nb_samples ||
channels           66 libavfilter/audio.c             link->frame_pool = ff_frame_pool_audio_init(av_buffer_allocz, channels,
channels           81 libavfilter/audio.c     av_samples_set_silence(frame->extended_data, 0, nb_samples, channels, link->format);
channels          100 libavfilter/avf_abitscope.c     s->nb_channels = inlink->channels;
channels          172 libavfilter/avf_abitscope.c         for (ch = 0; ch < inlink->channels; ch++) {
channels          174 libavfilter/avf_abitscope.c             int w = outpicref->width / inlink->channels;
channels          195 libavfilter/avf_abitscope.c         for (ch = 0; ch < inlink->channels; ch++) {
channels          197 libavfilter/avf_abitscope.c             int w = outpicref->width / inlink->channels;
channels          124 libavfilter/avf_ahistogram.c     s->dchannels = s->dmode == SINGLE ? 1 : inlink->channels;
channels          204 libavfilter/avf_ahistogram.c         for (c = 0; c < inlink->channels; c++) {
channels          227 libavfilter/avf_ahistogram.c         for (c = 0; c < inlink->channels; c++) {
channels          263 libavfilter/avf_concat.c                                outlink->channels, outlink->format);
channels          192 libavfilter/avf_showfreqs.c     s->nb_channels = inlink->channels;
channels          230 libavfilter/avf_showfreqs.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->win_size);
channels          214 libavfilter/avf_showspatial.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->win_size);
channels          694 libavfilter/avf_showspectrum.c     av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), inlink->channels,
channels         1018 libavfilter/avf_showspectrum.c     h = (s->mode == COMBINED || s->orientation == HORIZONTAL) ? s->h : s->h / inlink->channels;
channels         1019 libavfilter/avf_showspectrum.c     w = (s->mode == COMBINED || s->orientation == VERTICAL)   ? s->w : s->w / inlink->channels;
channels         1035 libavfilter/avf_showspectrum.c         s->fft = av_calloc(inlink->channels, sizeof(*s->fft));
channels         1042 libavfilter/avf_showspectrum.c             s->ifft = av_calloc(inlink->channels, sizeof(*s->ifft));
channels         1067 libavfilter/avf_showspectrum.c         s->nb_display_channels = inlink->channels;
channels         1200 libavfilter/avf_showspectrum.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, s->win_size);
channels          169 libavfilter/avf_showvolume.c     s->values = av_calloc(inlink->channels * VAR_VARS_NB, sizeof(double));
channels          173 libavfilter/avf_showvolume.c     s->color_lut = av_calloc(s->w, sizeof(*s->color_lut) * inlink->channels);
channels          177 libavfilter/avf_showvolume.c     s->max = av_calloc(inlink->channels, sizeof(*s->max));
channels          191 libavfilter/avf_showvolume.c         s->max_persistent = av_calloc(inlink->channels * s->persistent_max_frames, sizeof(*s->max_persistent));
channels          192 libavfilter/avf_showvolume.c         s->nb_frames_max_display = av_calloc(inlink->channels * s->persistent_max_frames, sizeof(*s->nb_frames_max_display));
channels          205 libavfilter/avf_showvolume.c         outlink->w = s->h * inlink->channels + (inlink->channels - 1) * s->b;
channels          208 libavfilter/avf_showvolume.c         outlink->h = s->h * inlink->channels + (inlink->channels - 1) * s->b;
channels          214 libavfilter/avf_showvolume.c     for (ch = 0; ch < inlink->channels; ch++) {
channels          356 libavfilter/avf_showvolume.c         for (c = 0; c < inlink->channels; c++) {
channels          391 libavfilter/avf_showvolume.c         for (c = 0; c < inlink->channels; c++) {
channels          435 libavfilter/avf_showvolume.c     for (c = 0; c < inlink->channels && s->h >= 8 && s->draw_volume; c++) {
channels          411 libavfilter/avf_showwaves.c     int nb_channels = inlink->channels;
channels          547 libavfilter/avf_showwaves.c     int nb_channels = inlink->channels;
channels          568 libavfilter/avf_showwaves.c     const int nb_channels = inlink->channels;
channels          648 libavfilter/avf_showwaves.c         out->pts = in->pts + av_rescale_q((p - (int16_t *)in->data[0]) / inlink->channels,
channels          679 libavfilter/avf_showwaves.c     int nb_channels = inlink->channels;
channels          806 libavfilter/avf_showwaves.c         showwaves->sum = av_mallocz_array(inlink->channels, sizeof(*showwaves->sum));
channels          189 libavfilter/avfilter.c     return link->channels;
channels         1096 libavfilter/avfilter.c         if (frame->channels != link->channels) {
channels         1177 libavfilter/avfilter.c                         frame->nb_samples, link->channels, link->format);
channels         1185 libavfilter/avfilter.c                         link->channels, link->format);
channels         1557 libavfilter/avfilter.c                         frame->channels,
channels          573 libavfilter/avfilter.h     int channels;
channels          737 libavfilter/avfiltergraph.c         if ((link->channels = FF_LAYOUT2COUNT(link->channel_layout)))
channels          740 libavfilter/avfiltergraph.c             link->channels = av_get_channel_layout_nb_channels(link->channel_layout);
channels          198 libavfilter/buffersink.c MAKE_AVFILTERLINK_ACCESSOR(int              , channels           )
channels           63 libavfilter/buffersrc.c     int channels;
channels           79 libavfilter/buffersrc.c         c->channel_layout != ch_layout || c->channels != ch_count) {\
channels           81 libavfilter/buffersrc.c                av_get_sample_fmt_name(c->sample_fmt), c->sample_rate, c->channel_layout, c->channels,\
channels          161 libavfilter/buffersrc.c         av_get_channel_layout_nb_channels(frame->channel_layout) != frame->channels) {
channels          221 libavfilter/buffersrc.c                                      frame->channels, frame->format, frame->pts);
channels          318 libavfilter/buffersrc.c     { "channels",       NULL, OFFSET(channels),            AV_OPT_TYPE_INT,      { .i64 = 0 }, 0, INT_MAX, A },
channels          346 libavfilter/buffersrc.c         if (s->channels) {
channels          347 libavfilter/buffersrc.c             if (n != s->channels) {
channels          351 libavfilter/buffersrc.c                        s->channels, s->channel_layout_str, n);
channels          355 libavfilter/buffersrc.c         s->channels = n;
channels          356 libavfilter/buffersrc.c     } else if (!s->channels) {
channels          402 libavfilter/buffersrc.c                               FF_COUNT2LAYOUT(c->channels))) < 0)
channels           44 libavfilter/dnn/dnn_backend_native.c             input->channels = oprd->dims[3];
channels           78 libavfilter/dnn/dnn_backend_native.c     oprd->dims[3] = input->channels;
channels          281 libavfilter/dnn/dnn_backend_native.c         outputs[i].channels = oprd->dims[3];
channels          104 libavfilter/dnn/dnn_backend_native.h     int height, width, channels;
channels           62 libavfilter/dnn/dnn_backend_native_layer_depth2space.c     int channels = operands[input_operand_index].dims[3];
channels           66 libavfilter/dnn/dnn_backend_native_layer_depth2space.c     int new_channels = channels / (block_size * block_size);
channels           67 libavfilter/dnn/dnn_backend_native_layer_depth2space.c     int output_linesize = width * channels;
channels           90 libavfilter/dnn/dnn_backend_tf.c     int64_t input_dims[] = {1, input->height, input->width, input->channels};
channels          134 libavfilter/dnn/dnn_backend_tf.c     input->channels = dims[3];
channels          636 libavfilter/dnn/dnn_backend_tf.c         outputs[i].channels = TF_Dim(tf_model->output_tensors[i], 3);
channels           40 libavfilter/dnn_interface.h     int width, height, channels;
channels          158 libavfilter/ebur128.c         (int *) av_malloc_array(st->channels, sizeof(*st->d->channel_map));
channels          161 libavfilter/ebur128.c     if (st->channels == 4) {
channels          166 libavfilter/ebur128.c     } else if (st->channels == 5) {
channels          173 libavfilter/ebur128.c         for (i = 0; i < st->channels; ++i) {
channels          217 libavfilter/ebur128.c FFEBUR128State *ff_ebur128_init(unsigned int channels,
channels          229 libavfilter/ebur128.c     st->channels = channels;
channels          234 libavfilter/ebur128.c         (double *) av_mallocz_array(channels, sizeof(*st->d->sample_peak));
channels          256 libavfilter/ebur128.c                                     st->channels * sizeof(*st->d->audio_data));
channels          278 libavfilter/ebur128.c     st->d->data_ptrs = av_malloc_array(channels, sizeof(*st->d->data_ptrs));
channels          323 libavfilter/ebur128.c         for (c = 0; c < st->channels; ++c) {                                       \
channels          337 libavfilter/ebur128.c     for (c = 0; c < st->channels; ++c) {                                           \
channels          347 libavfilter/ebur128.c             audio_data[i * st->channels + c] =                                     \
channels          399 libavfilter/ebur128.c     for (c = 0; c < st->channels; ++c) {
channels          403 libavfilter/ebur128.c         if (st->d->audio_data_index < frames_per_block * st->channels) {
channels          404 libavfilter/ebur128.c             for (i = 0; i < st->d->audio_data_index / st->channels; ++i) {
channels          405 libavfilter/ebur128.c                 channel_sum += st->d->audio_data[i * st->channels + c] *
channels          406 libavfilter/ebur128.c                     st->d->audio_data[i * st->channels + c];
channels          410 libavfilter/ebur128.c                   st->d->audio_data_index / st->channels);
channels          412 libavfilter/ebur128.c                 channel_sum += st->d->audio_data[i * st->channels + c] *
channels          413 libavfilter/ebur128.c                     st->d->audio_data[i * st->channels + c];
channels          417 libavfilter/ebur128.c                  st->d->audio_data_index / st->channels - frames_per_block;
channels          418 libavfilter/ebur128.c                  i < st->d->audio_data_index / st->channels; ++i) {
channels          420 libavfilter/ebur128.c                     st->d->audio_data[i * st->channels +
channels          422 libavfilter/ebur128.c                                                              st->channels +
channels          449 libavfilter/ebur128.c     if (channel_number >= st->channels) {
channels          453 libavfilter/ebur128.c         (st->channels != 1 || channel_number != 0)) {
channels          470 libavfilter/ebur128.c             st->d->audio_data_index += st->d->needed_frames * st->channels;            \
channels          490 libavfilter/ebur128.c             if (st->d->audio_data_index == st->d->audio_data_frames * st->channels) {  \
channels          495 libavfilter/ebur128.c             st->d->audio_data_index += frames * st->channels;                          \
channels          513 libavfilter/ebur128.c   for (i = 0; i < st->channels; i++)                                           \
channels          515 libavfilter/ebur128.c   ff_ebur128_add_frames_planar_##type(st, buf, frames, st->channels);          \
channels          764 libavfilter/ebur128.c     } else if (channel_number >= st->channels) {
channels          105 libavfilter/ebur128.h     unsigned int channels;            /**< The number of channels. */
channels          118 libavfilter/ebur128.h FFEBUR128State *ff_ebur128_init(unsigned int channels,
channels          192 libavfilter/f_graphmonitor.c             snprintf(buffer, sizeof(buffer)-1, " | channels: %d", l->channels);
channels           74 libavfilter/f_loop.c     s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, 8192);
channels           75 libavfilter/f_loop.c     s->left = av_audio_fifo_alloc(inlink->format, inlink->channels, 8192);
channels          175 libavfilter/f_reverse.c     for (int p = 0; p < out->channels; p++) {
channels          213 libavfilter/f_reverse.c     const int channels = out->channels;
channels          219 libavfilter/f_reverse.c             for (int p = 0; p < channels; p++)
channels          220 libavfilter/f_reverse.c                 FFSWAP(uint8_t, dst[i * channels + p], dst[j * channels + p]);
channels          226 libavfilter/f_reverse.c             for (int p = 0; p < channels; p++)
channels          227 libavfilter/f_reverse.c                 FFSWAP(int16_t, dst[i * channels + p], dst[j * channels + p]);
channels          233 libavfilter/f_reverse.c             for (int p = 0; p < channels; p++)
channels          234 libavfilter/f_reverse.c                 FFSWAP(int32_t, dst[i * channels + p], dst[j * channels + p]);
channels          240 libavfilter/f_reverse.c             for (int p = 0; p < channels; p++)
channels          241 libavfilter/f_reverse.c                 FFSWAP(float, dst[i * channels + p], dst[j * channels + p]);
channels          247 libavfilter/f_reverse.c             for (int p = 0; p < channels; p++)
channels          248 libavfilter/f_reverse.c                 FFSWAP(double, dst[i * channels + p], dst[j * channels + p]);
channels          121 libavfilter/f_streamselect.c         outlink->channels       = inlink->channels;
channels          107 libavfilter/fifo.c     int nb_channels = link->channels;
channels          132 libavfilter/fifo.c                  frame->channels : 1;
channels          173 libavfilter/fifo.c         int nb_channels = link->channels;
channels           40 libavfilter/framepool.c     int channels;
channels          120 libavfilter/framepool.c                                       int channels,
channels          135 libavfilter/framepool.c     pool->planes = planar ? channels : 1;
channels          136 libavfilter/framepool.c     pool->channels = channels;
channels          141 libavfilter/framepool.c     ret = av_samples_get_buffer_size(&pool->linesize[0], channels,
channels          177 libavfilter/framepool.c                                    int *channels,
channels          187 libavfilter/framepool.c     *channels = pool->channels;
channels          243 libavfilter/framepool.c         frame->channels = pool->channels;
channels           65 libavfilter/framepool.h                                       int channels,
channels          103 libavfilter/framepool.h                                    int *channels,
channels          137 libavfilter/framequeue.c     planes = planar ? b->frame->channels : 1;
channels          140 libavfilter/framequeue.c         bytes *= b->frame->channels;
channels           49 libavfilter/graphdump.c                                          link->channels, link->channel_layout);
channels          190 libavfilter/src_movie.c     int64_t chl = av_get_default_channel_layout(dec_par->channels);
channels          196 libavfilter/src_movie.c                st_index, dec_par->channels);
channels          200 libavfilter/src_movie.c     av_get_channel_layout_string(buf, sizeof(buf), dec_par->channels, chl);
channels          315 libavfilter/trim.c                         out->nb_samples, inlink->channels,
channels           47 libavfilter/vaf_spectrumsynth.c     int channels;
channels           77 libavfilter/vaf_spectrumsynth.c     { "channels",    "set channels",     OFFSET(channels), AV_OPT_TYPE_INT, {.i64 = 1}, 1, 8, A },
channels          118 libavfilter/vaf_spectrumsynth.c         (ret = ff_add_channel_layout  (&layout, FF_COUNT2LAYOUT(s->channels))) < 0 ||
channels          181 libavfilter/vaf_spectrumsynth.c     s->size = s->orientation == VERTICAL ? height / s->channels : width / s->channels;
channels          195 libavfilter/vaf_spectrumsynth.c     s->fft_data = av_calloc(s->channels, sizeof(*s->fft_data));
channels          198 libavfilter/vaf_spectrumsynth.c     for (ch = 0; ch < s->channels; ch++) {
channels          298 libavfilter/vaf_spectrumsynth.c     int start = h * (s->channels - ch) - 1;
channels          299 libavfilter/vaf_spectrumsynth.c     int end = h * (s->channels - ch - 1);
channels          347 libavfilter/vaf_spectrumsynth.c     for (ch = 0; ch < s->channels; ch++) {
channels          376 libavfilter/vaf_spectrumsynth.c     for (ch = 0; ch < s->channels; ch++) {
channels          398 libavfilter/vaf_spectrumsynth.c             if (ch == s->channels - 1) {
channels          411 libavfilter/vaf_spectrumsynth.c                 for (c = 0; c < s->channels; c++) {
channels          501 libavfilter/vaf_spectrumsynth.c         for (i = 0; i < s->channels; i++)
channels           86 libavfilter/vf_derain.c     dr_context->input.channels = 3;
channels          128 libavfilter/vf_dnn_processing.c            model_input->channels);
channels          150 libavfilter/vf_dnn_processing.c         if (model_input->channels != 3) {
channels          160 libavfilter/vf_dnn_processing.c         if (model_input->channels != 1) {
channels          175 libavfilter/vf_dnn_processing.c         if (model_input->channels != 1) {
channels          213 libavfilter/vf_dnn_processing.c     ctx->input.channels = model_input.channels;
channels          342 libavfilter/vf_scale_cuda.c static int call_resize_kernel(AVFilterContext *ctx, CUfunction func, int channels,
channels          364 libavfilter/vf_scale_cuda.c         .res.pitch2D.numChannels = channels,
channels          125 libavfilter/vf_sr.c     sr_context->input.channels = 1;
channels          157 libavfilter/vf_thumbnail_cuda.c static int thumbnail_kernel(AVFilterContext *ctx, CUfunction func, int channels,
channels          176 libavfilter/vf_thumbnail_cuda.c         .res.pitch2D.numChannels = channels,
channels           55 libavfilter/vf_yadif_cuda.c                             CUarray_format format, int channels,
channels           84 libavfilter/vf_yadif_cuda.c         .res.pitch2D.numChannels = channels,
channels          137 libavfilter/vf_yadif_cuda.c         int pixel_size, channels;
channels          147 libavfilter/vf_yadif_cuda.c         channels = comp->step / pixel_size;
channels          148 libavfilter/vf_yadif_cuda.c         if (pixel_size > 2 || channels > 2) {
channels          154 libavfilter/vf_yadif_cuda.c             func = channels == 1 ? s->cu_func_uchar : s->cu_func_uchar2;
channels          158 libavfilter/vf_yadif_cuda.c             func = channels == 1 ? s->cu_func_ushort : s->cu_func_ushort2;
channels          167 libavfilter/vf_yadif_cuda.c                comp->plane, pixel_size, channels);
channels          172 libavfilter/vf_yadif_cuda.c                     format, channels,
channels           66 libavformat/3dostr.c             st->codecpar->channels    = avio_rb32(s->pb);
channels           67 libavformat/3dostr.c             if (st->codecpar->channels <= 0)
channels           72 libavformat/3dostr.c                 st->duration       = (avio_rb32(s->pb) - 1) / st->codecpar->channels;
channels           74 libavformat/3dostr.c                 st->duration       = avio_rb32(s->pb) * 16 / st->codecpar->channels;
channels           99 libavformat/3dostr.c         st->codecpar->block_align = 1 * st->codecpar->channels;
channels          145 libavformat/3dostr.c             pkt->duration = size / st->codecpar->channels;
channels           71 libavformat/4xm.c     int channels;
channels          153 libavformat/4xm.c     fourxm->tracks[track].channels    = AV_RL32(buf + 36);
channels          158 libavformat/4xm.c     if (fourxm->tracks[track].channels    <= 0 ||
channels          159 libavformat/4xm.c         fourxm->tracks[track].channels     > FF_SANE_NB_CHANNELS ||
channels          171 libavformat/4xm.c     if (fourxm->tracks[track].sample_rate > INT64_MAX / fourxm->tracks[track].bits / fourxm->tracks[track].channels) {
channels          173 libavformat/4xm.c                fourxm->tracks[track].sample_rate, fourxm->tracks[track].bits, fourxm->tracks[track].channels);
channels          189 libavformat/4xm.c     st->codecpar->channels              = fourxm->tracks[track].channels;
channels          192 libavformat/4xm.c     st->codecpar->bit_rate              = (int64_t)st->codecpar->channels *
channels          195 libavformat/4xm.c     st->codecpar->block_align           = st->codecpar->channels *
channels          354 libavformat/4xm.c                 fourxm->tracks[track_number].channels > 0) {
channels          366 libavformat/4xm.c                     audio_frame_count -= 2 * (fourxm->tracks[track_number].channels);
channels          367 libavformat/4xm.c                 audio_frame_count /= fourxm->tracks[track_number].channels;
channels          191 libavformat/aadec.c         st->codecpar->channels = 1;
channels          199 libavformat/aadec.c         st->codecpar->channels = 1;
channels           51 libavformat/acm.c     st->codecpar->channels    = AV_RL16(st->codecpar->extradata +  8);
channels           53 libavformat/acm.c     if (st->codecpar->channels <= 0 || st->codecpar->sample_rate <= 0)
channels           56 libavformat/acm.c     st->duration           = AV_RL32(st->codecpar->extradata +  4) / st->codecpar->channels;
channels           90 libavformat/act.c     st->codecpar->channels=1;
channels           59 libavformat/adp.c     st->codecpar->channels       = 2;
channels           50 libavformat/ads.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           51 libavformat/ads.c     if (st->codecpar->channels <= 0)
channels           54 libavformat/ads.c     if (align <= 0 || align > INT_MAX / st->codecpar->channels)
channels           62 libavformat/ads.c     st->codecpar->block_align = st->codecpar->channels * align;
channels           66 libavformat/ads.c         st->duration = (size - 0x40) / 16 / st->codecpar->channels * 28;
channels           56 libavformat/adxdec.c     if (par->channels <= 0) {
channels           57 libavformat/adxdec.c         av_log(s, AV_LOG_ERROR, "invalid number of channels %d\n", par->channels);
channels           61 libavformat/adxdec.c     size = BLOCK_SIZE * par->channels;
channels          102 libavformat/adxdec.c     par->channels    = AV_RB8 (par->extradata + 7);
channels          105 libavformat/adxdec.c     if (par->channels <= 0) {
channels          106 libavformat/adxdec.c         av_log(s, AV_LOG_ERROR, "invalid number of channels %d\n", par->channels);
channels          117 libavformat/adxdec.c     par->bit_rate    = (int64_t)par->sample_rate * par->channels * BLOCK_SIZE * 8LL / BLOCK_SAMPLES;
channels           70 libavformat/aea.c     st->codecpar->channels = avio_r8(s->pb);
channels           79 libavformat/aea.c     if (st->codecpar->channels != 1 && st->codecpar->channels != 2) {
channels           80 libavformat/aea.c         av_log(s, AV_LOG_ERROR, "Channels %d not supported!\n", st->codecpar->channels);
channels           84 libavformat/aea.c     st->codecpar->channel_layout = (st->codecpar->channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
channels           86 libavformat/aea.c     st->codecpar->block_align = AT1_SU_SIZE * st->codecpar->channels;
channels           41 libavformat/afc.c     st->codecpar->channels   = 2;
channels           46 libavformat/afc.c     st->codecpar->extradata[0] = 8 * st->codecpar->channels;
channels          108 libavformat/aiffdec.c     par->channels = avio_rb16(pb);
channels          151 libavformat/aiffdec.c             par->block_align = 34 * par->channels;
channels          154 libavformat/aiffdec.c             par->block_align = 2 * par->channels;
channels          162 libavformat/aiffdec.c             par->block_align = 1 * par->channels;
channels          179 libavformat/aiffdec.c         par->block_align = (av_get_bits_per_sample(par->codec_id) * par->channels) >> 3;
channels          146 libavformat/aiffenc.c     if (par->channels > 2 && par->channel_layout) {
channels          160 libavformat/aiffenc.c     avio_wb16(pb, par->channels);  /* Number of channels */
channels          172 libavformat/aiffenc.c         par->block_align = (par->bits_per_coded_sample * par->channels) >> 3;
channels           67 libavformat/aixdec.c         st->codecpar->channels    = avio_r8(s->pb);
channels          105 libavformat/alp.c     par->channels               = hdr.num_channels;
channels          117 libavformat/alp.c     par->bit_rate               = par->channels *
channels          135 libavformat/alp.c     pkt->duration       = ret * 2 / par->channels;
channels          108 libavformat/amr.c     st->codecpar->channels   = 1;
channels          210 libavformat/amr.c     st->codecpar->channels       = 1;
channels          266 libavformat/amr.c     st->codecpar->channels       = 1;
channels           61 libavformat/apc.c         st->codecpar->channels       = 2;
channels           64 libavformat/apc.c         st->codecpar->channels       = 1;
channels           69 libavformat/apc.c     st->codecpar->bit_rate = (int64_t)st->codecpar->bits_per_coded_sample * st->codecpar->channels
channels           78 libavformat/ape.c     uint16_t channels;
channels          127 libavformat/ape.c     av_log(s, AV_LOG_DEBUG, "channels             = %"PRIu16"\n", ape_ctx->channels);
channels          210 libavformat/ape.c         ape->channels             = avio_rl16(pb);
channels          218 libavformat/ape.c         ape->channels             = avio_rl16(pb);
channels          360 libavformat/ape.c     st->codecpar->channels        = ape->channels;
channels          113 libavformat/apm.c     if (st->codecpar->channels == 2)
channels          115 libavformat/apm.c     else if (st->codecpar->channels == 1)
channels          122 libavformat/apm.c     st->codecpar->bit_rate              = st->codecpar->channels *
channels          157 libavformat/apm.c                       st->codecpar->channels;
channels          177 libavformat/apm.c     pkt->duration       = ret * (8 / par->bits_per_coded_sample) / par->channels;
channels           45 libavformat/aptxdec.c     st->codecpar->channels = 2;
channels          172 libavformat/argo_asf.c         st->codecpar->channels              = 2;
channels          175 libavformat/argo_asf.c         st->codecpar->channels              = 1;
channels          197 libavformat/argo_asf.c     st->codecpar->frame_size            = st->codecpar->channels +
channels          199 libavformat/argo_asf.c                                           st->codecpar->channels;
channels          203 libavformat/argo_asf.c     st->codecpar->bit_rate              = st->codecpar->channels *
channels           60 libavformat/astdec.c     st->codecpar->channels = avio_rb16(s->pb);
channels           61 libavformat/astdec.c     if (!st->codecpar->channels)
channels           64 libavformat/astdec.c     if (st->codecpar->channels == 2)
channels           66 libavformat/astdec.c     else if (st->codecpar->channels == 4)
channels           93 libavformat/astdec.c     if (!s->streams[0]->codecpar->channels || size > INT_MAX / s->streams[0]->codecpar->channels)
channels           96 libavformat/astdec.c     size *= s->streams[0]->codecpar->channels;
channels           87 libavformat/astenc.c     avio_wb16(pb, par->channels);
channels          112 libavformat/astenc.c     int size = pkt->size / par->channels;
channels          142 libavformat/au.c     unsigned int id, channels, rate;
channels          160 libavformat/au.c     channels = avio_rb32(pb);
channels          189 libavformat/au.c     if (channels == 0 || channels >= INT_MAX / (BLOCK_SIZE * bps >> 3)) {
channels          190 libavformat/au.c         av_log(s, AV_LOG_ERROR, "Invalid number of channels %u\n", channels);
channels          205 libavformat/au.c     st->codecpar->channels    = channels;
channels          208 libavformat/au.c     st->codecpar->bit_rate    = channels * rate * bps;
channels          209 libavformat/au.c     st->codecpar->block_align = ba ? ba : FFMAX(bps * st->codecpar->channels / 8, 1);
channels          211 libavformat/au.c         st->duration = (((int64_t)data_size)<<3) / (st->codecpar->channels * (int64_t)bps);
channels          307 libavformat/au.c     avio_wb32(pb, par->channels);
channels          488 libavformat/avisynth.c     st->codecpar->channels    = avs->vi->nchannels;
channels           56 libavformat/avr.c         st->codecpar->channels = 1;
channels           58 libavformat/avr.c         st->codecpar->channels = 2;
channels           84 libavformat/avr.c     st->codecpar->block_align = bps * st->codecpar->channels / 8;
channels          251 libavformat/bethsoftvid.c                 st->codecpar->channels              = 1;
channels          104 libavformat/bfi.c     astream->codecpar->channels        = 1;
channels          189 libavformat/bink.c                 ast->codecpar->channels       = 2;
channels          192 libavformat/bink.c                 ast->codecpar->channels       = 1;
channels          285 libavformat/bink.c                     AV_RL32(pkt->data) / (2 * s->streams[bink->current_track]->codecpar->channels);
channels           66 libavformat/bit.c     st->codecpar->channels=1;
channels          127 libavformat/bit.c     if ((par->codec_id != AV_CODEC_ID_G729) || par->channels != 1) {
channels          134 libavformat/bit.c     par->block_align = (par->bits_per_coded_sample * par->channels) >> 3;
channels           61 libavformat/bmv.c     ast->codecpar->channels        = 2;
channels           56 libavformat/boadec.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           57 libavformat/boadec.c     if (st->codecpar->channels > FF_SANE_NB_CHANNELS)
channels           64 libavformat/boadec.c     st->codecpar->block_align *= st->codecpar->channels;
channels          201 libavformat/brstm.c     st->codecpar->channels = avio_r8(s->pb);
channels          202 libavformat/brstm.c     if (!st->codecpar->channels)
channels          238 libavformat/brstm.c     if (b->block_size > UINT32_MAX / st->codecpar->channels)
channels          245 libavformat/brstm.c     if (b->last_block_size > UINT32_MAX / st->codecpar->channels)
channels          258 libavformat/brstm.c             toffset = toffset + read32(s) + st->codecpar->channels * 8 - 8;
channels          263 libavformat/brstm.c         b->table = av_mallocz(32 * st->codecpar->channels);
channels          267 libavformat/brstm.c         for (ch = 0; ch < st->codecpar->channels; ch++) {
channels          298 libavformat/brstm.c             asize = b->block_count * st->codecpar->channels * 4;
channels          397 libavformat/brstm.c             b->table = av_mallocz(32 * par->channels);
channels          403 libavformat/brstm.c             (32 + 4 + size) > (INT_MAX / par->channels) ||
channels          404 libavformat/brstm.c             (32 + 4 + size) * par->channels > INT_MAX - 8)
channels          406 libavformat/brstm.c         if ((ret = av_new_packet(pkt, 8 + (32 + 4 + size) * par->channels)) < 0)
channels          410 libavformat/brstm.c             bytestream_put_le32(&dst, size * par->channels);
channels          413 libavformat/brstm.c             bytestream_put_be32(&dst, size * par->channels);
channels          416 libavformat/brstm.c         bytestream_put_buffer(&dst, b->table, 32 * par->channels);
channels          417 libavformat/brstm.c         bytestream_put_buffer(&dst, b->adpc + 4 * par->channels *
channels          418 libavformat/brstm.c                                     (b->current_block - 1), 4 * par->channels);
channels          420 libavformat/brstm.c         for (i = 0; i < par->channels; i++) {
channels          430 libavformat/brstm.c         size *= par->channels;
channels          451 libavformat/brstm.c                            st->codecpar->channels, SEEK_SET);
channels           79 libavformat/cafdec.c     st->codecpar->channels    = avio_rb32(pb);
channels          172 libavformat/cafdec.c         if (st->codecpar->channels > 2) {
channels           54 libavformat/cafenc.c static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels, int block_align) {
channels           93 libavformat/cafenc.c         return 2048 * channels;
channels           97 libavformat/cafenc.c         return (block_align - 4 * channels) * 8 / (4 * channels) + 1;
channels           99 libavformat/cafenc.c         return (block_align - 7 * channels) * 2 / channels + 2;
channels          126 libavformat/cafenc.c     if (par->codec_id == AV_CODEC_ID_OPUS && par->channels > 2) {
channels          142 libavformat/cafenc.c         frame_size = samples_per_packet(par->codec_id, par->channels, par->block_align);
channels          155 libavformat/cafenc.c     avio_wb32(pb, par->channels);                     //< mChannelsPerFrame
channels          255 libavformat/cafenc.c             avio_wb64(pb, caf->packets * samples_per_packet(par->codec_id, par->channels, par->block_align)); ///< mNumberValidFrames
channels          158 libavformat/cdxl.c                 st->codecpar->channels       = 2;
channels          161 libavformat/cdxl.c                 st->codecpar->channels       = 1;
channels           93 libavformat/chromaprint.c     if (st->codecpar->channels > 2) {
channels          103 libavformat/chromaprint.c     if (!chromaprint_start(cpr->ctx, st->codecpar->sample_rate, st->codecpar->channels)) {
channels           71 libavformat/codec2.c     st->codecpar->channels          = 1;
channels          867 libavformat/dashenc.c                 s->streams[i]->codecpar->channels);
channels           32 libavformat/dauddec.c     st->codecpar->channels = 6;
channels           27 libavformat/daudenc.c     if (par->channels!=6 || par->sample_rate!=96000)
channels           44 libavformat/dcstr.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           51 libavformat/dcstr.c     if (st->codecpar->channels <= 0 || mult <= 0 || mult > INT_MAX / st->codecpar->channels) {
channels           52 libavformat/dcstr.c         av_log(s, AV_LOG_ERROR, "invalid number of channels %d x %d\n", st->codecpar->channels, mult);
channels           55 libavformat/dcstr.c     st->codecpar->channels *= mult;
channels           56 libavformat/dcstr.c     if (!align || align > INT_MAX / st->codecpar->channels)
channels           58 libavformat/dcstr.c     st->codecpar->block_align = align * st->codecpar->channels;
channels           54 libavformat/derf.c     par->channels    = avio_rl32(pb);
channels           55 libavformat/derf.c     if (par->channels != 1 && par->channels != 2)
channels           57 libavformat/derf.c     if (par->channels == 1)
channels           59 libavformat/derf.c     else if (par->channels == 2)
channels           62 libavformat/derf.c     st->duration = data_size / par->channels;
channels          398 libavformat/dhav.c         st->codecpar->channels    = dhav->audio_channels;
channels          111 libavformat/dsfdec.c     st->codecpar->channels     = avio_rl32(pb);
channels          114 libavformat/dsfdec.c     if (st->codecpar->channels <= 0)
channels          125 libavformat/dsfdec.c     dsf->audio_size = avio_rl64(pb) / 8 * st->codecpar->channels;
channels          127 libavformat/dsfdec.c     if (st->codecpar->block_align > INT_MAX / st->codecpar->channels) {
channels          131 libavformat/dsfdec.c     st->codecpar->block_align *= st->codecpar->channels;
channels          132 libavformat/dsfdec.c     st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate * 8LL;
channels          175 libavformat/dsfdec.c             for (ch = 0; ch < st->codecpar->channels; ch++) {
channels          176 libavformat/dsfdec.c                 ret = avio_read(pb, dst,  packet_size / st->codecpar->channels);
channels          177 libavformat/dsfdec.c                 if (ret < packet_size / st->codecpar->channels)
channels          181 libavformat/dsfdec.c                 avio_skip(pb, skip_size / st->codecpar->channels);
channels          186 libavformat/dsfdec.c             pkt->pts = (pos - s->internal->data_offset) / st->codecpar->channels;
channels          187 libavformat/dsfdec.c             pkt->duration = packet_size / st->codecpar->channels;
channels          196 libavformat/dsfdec.c     pkt->pts = (pos - s->internal->data_offset) / st->codecpar->channels;
channels          197 libavformat/dsfdec.c     pkt->duration = st->codecpar->block_align / st->codecpar->channels;
channels          135 libavformat/dsicin.c     st->codecpar->channels = 1;
channels          139 libavformat/dsicin.c     st->codecpar->bit_rate = st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample * st->codecpar->channels;
channels          158 libavformat/dss.c     st->codecpar->channels       = 1;
channels          107 libavformat/dtshddec.c             st->codecpar->channels = ff_dca_count_chs_for_mask(avio_rb16(pb));
channels          165 libavformat/dump.c     uint32_t flags, channels, sample_rate, width, height;
channels          178 libavformat/dump.c         channels = AV_RL32(data);
channels          181 libavformat/dump.c         av_log(ctx, AV_LOG_INFO, "channel count %"PRIu32", ", channels);
channels          272 libavformat/dv.c         c->ast[i]->codecpar->channels       = 2;
channels          330 libavformat/dvenc.c                c->ast[i]->codecpar->channels    != 2)
channels           35 libavformat/eacdata.c   unsigned int channels;
channels           58 libavformat/eacdata.c         case 0x0400: cdata->channels = 1; break;
channels           59 libavformat/eacdata.c         case 0x0404: cdata->channels = 2; break;
channels           60 libavformat/eacdata.c         case 0x040C: cdata->channels = 4; channel_layout = AV_CH_LAYOUT_QUAD;         break;
channels           61 libavformat/eacdata.c         case 0x0414: cdata->channels = 6; channel_layout = AV_CH_LAYOUT_5POINT1_BACK; break;
channels           76 libavformat/eacdata.c     st->codecpar->channels = cdata->channels;
channels           88 libavformat/eacdata.c     int packet_size = 76*cdata->channels;
channels          557 libavformat/electronicarts.c         st->codecpar->channels              = ea->num_channels;
channels          560 libavformat/electronicarts.c         st->codecpar->bit_rate              = (int64_t)st->codecpar->channels *
channels          563 libavformat/electronicarts.c         st->codecpar->block_align           = st->codecpar->channels *
channels           42 libavformat/epafdec.c     int le, sample_rate, codec, channels;
channels           56 libavformat/epafdec.c         channels    = avio_rl32(s->pb);
channels           60 libavformat/epafdec.c         channels    = avio_rb32(s->pb);
channels           63 libavformat/epafdec.c     if (channels <= 0 || channels > FF_SANE_NB_CHANNELS || sample_rate <= 0)
channels           71 libavformat/epafdec.c     st->codecpar->channels    = channels;
channels           87 libavformat/epafdec.c     st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8;
channels          160 libavformat/flic.c         ast->codecpar->channels = 1;
channels          613 libavformat/flvdec.c                         apar->channels       = num_val + 1;
channels          614 libavformat/flvdec.c                         apar->channel_layout = apar->channels == 2 ?
channels          998 libavformat/flvdec.c     int av_uninit(channels);
channels         1180 libavformat/flvdec.c         channels = (flags & FLV_AUDIO_CHANNEL_MASK) == FLV_STEREO ? 2 : 1;
channels         1184 libavformat/flvdec.c         if (!st->codecpar->channels || !st->codecpar->sample_rate ||
channels         1186 libavformat/flvdec.c             st->codecpar->channels              = channels;
channels         1187 libavformat/flvdec.c             st->codecpar->channel_layout        = channels == 1
channels         1199 libavformat/flvdec.c             channels              = st->codecpar->channels;
channels         1296 libavformat/flvdec.c                      channels    != flv->last_channels)) {
channels         1298 libavformat/flvdec.c         flv->last_channels    = channels;
channels         1299 libavformat/flvdec.c         ff_add_param_change(pkt, channels, 0, sample_rate, 0, 0);
channels          141 libavformat/flvenc.c         if (par->channels != 1) {
channels          181 libavformat/flvenc.c     if (par->channels > 1)
channels          345 libavformat/flvenc.c         put_amf_bool(pb, flv->audio_par->channels == 2);
channels          510 libavformat/flvenc.c                 int channels = flv->audio_par->channels
channels          511 libavformat/flvenc.c                         - (flv->audio_par->channels == 8 ? 1 : 0);
channels          523 libavformat/flvenc.c                 put_bits(&pbc, 4, channels);
channels           38 libavformat/framehash.c             av_get_channel_layout_string(buf, sizeof(buf), avctx->channels, avctx->channel_layout);
channels           71 libavformat/fsb.c         par->channels    = avio_rl16(pb);
channels           72 libavformat/fsb.c         if (!par->channels)
channels           77 libavformat/fsb.c             par->block_align = 4096 * par->channels;
channels           81 libavformat/fsb.c             par->block_align = 36 * par->channels;
channels           84 libavformat/fsb.c             par->block_align = 16 * par->channels;
channels           87 libavformat/fsb.c             par->block_align = 8 * par->channels;
channels           88 libavformat/fsb.c             if (par->channels > INT_MAX / 32)
channels           90 libavformat/fsb.c             ret = ff_alloc_extradata(par, 32 * par->channels);
channels           94 libavformat/fsb.c             for (c = 0; c < par->channels; c++) {
channels          128 libavformat/fsb.c         par->channels    = avio_rl16(pb);
channels          129 libavformat/fsb.c         if (!par->channels)
channels          141 libavformat/fsb.c             if (par->channels > INT_MAX / 32)
channels          143 libavformat/fsb.c             ret = ff_alloc_extradata(par, 32 * par->channels);
channels          147 libavformat/fsb.c             for (c = 0; c < par->channels; c++) {
channels          151 libavformat/fsb.c             par->block_align = 8 * par->channels;
channels          177 libavformat/fsb.c                par->channels > 1) {
channels          184 libavformat/fsb.c             for (ch = 0; ch < par->channels; ch++) {
channels           61 libavformat/fwse.c     par->channels    = avio_rl32(pb);
channels           62 libavformat/fwse.c     if (par->channels != 1 && par->channels != 2)
channels           64 libavformat/fwse.c     if (par->channels == 1)
channels           66 libavformat/fwse.c     else if (par->channels == 2)
channels           38 libavformat/g722.c     st->codecpar->channels    = 1;
channels           45 libavformat/g723_1.c     st->codecpar->channels       = 1;
channels           45 libavformat/g726.c     st->codecpar->channels              = 1;
channels           46 libavformat/g729dec.c     st->codecpar->channels    = 1;
channels          102 libavformat/gdv.c         ast->codecpar->channels    = 1 + !!(snd_flags & 2);
channels          111 libavformat/gdv.c                            ast->codecpar->channels * (1 + !!(snd_flags & 4)) / (1 + !!(snd_flags & 8));
channels           57 libavformat/genh.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           58 libavformat/genh.c     if (st->codecpar->channels <= 0 || st->codecpar->channels > FF_SANE_NB_CHANNELS)
channels           60 libavformat/genh.c     if (st->codecpar->channels == 1)
channels           62 libavformat/genh.c     else if (st->codecpar->channels == 2)
channels           66 libavformat/genh.c     if (align < 0 || align > INT_MAX / st->codecpar->channels)
channels           68 libavformat/genh.c     st->codecpar->block_align = align * st->codecpar->channels;
channels           78 libavformat/genh.c              st->codecpar->block_align = 36 * st->codecpar->channels;
channels          122 libavformat/genh.c         if (st->codecpar->channels > 2) {
channels          123 libavformat/genh.c             avpriv_request_sample(s, "channels %d>2", st->codecpar->channels);
channels          127 libavformat/genh.c         ff_alloc_extradata(st->codecpar, 32 * st->codecpar->channels);
channels          128 libavformat/genh.c         for (ch = 0; ch < st->codecpar->channels; ch++) {
channels          139 libavformat/genh.c             st->codecpar->block_align = 8 * st->codecpar->channels;
channels          161 libavformat/genh.c         par->channels > 1) {
channels          166 libavformat/genh.c         ret = av_new_packet(pkt, 8 * par->channels);
channels          170 libavformat/genh.c             for (ch = 0; ch < par->channels; ch++) {
channels          180 libavformat/genh.c         ret = av_get_packet(s->pb, pkt, par->block_align ? par->block_align : 1024 * par->channels);
channels           82 libavformat/gsmdec.c     st->codecpar->channels    = 1;
channels          144 libavformat/gxf.c             st->codecpar->channels = 1;
channels          154 libavformat/gxf.c             st->codecpar->channels = 1;
channels          164 libavformat/gxf.c             st->codecpar->channels = 2;
channels          733 libavformat/gxfenc.c             if (st->codecpar->channels != 1) {
channels           82 libavformat/hca.c     par->channels    = bytestream2_get_byte(&gb);
channels           65 libavformat/hcom.c     st->codecpar->channels    = 1;
channels          158 libavformat/idcin.c     unsigned int sample_rate, bytes_per_sample, channels;
channels          166 libavformat/idcin.c     channels = avio_rl32(pb);
channels          185 libavformat/idcin.c         if (channels < 1 || channels > 2) {
channels          186 libavformat/idcin.c             av_log(s, AV_LOG_ERROR, "invalid channels: %u\n", channels);
channels          221 libavformat/idcin.c         st->codecpar->channels = channels;
channels          222 libavformat/idcin.c         st->codecpar->channel_layout = channels > 1 ? AV_CH_LAYOUT_STEREO :
channels          226 libavformat/idcin.c         st->codecpar->bit_rate = sample_rate * bytes_per_sample * 8 * channels;
channels          227 libavformat/idcin.c         st->codecpar->block_align = idcin->block_align = bytes_per_sample * channels;
channels          235 libavformat/idcin.c             bytes_per_sample * channels;
channels          237 libavformat/idcin.c                 bytes_per_sample * channels;
channels          240 libavformat/idcin.c                 (sample_rate / 14) * bytes_per_sample * channels;
channels          188 libavformat/idroqdec.c                     st->codecpar->channels       = 2;
channels          191 libavformat/idroqdec.c                     st->codecpar->channels       = 1;
channels          194 libavformat/idroqdec.c                 roq->audio_channels    = st->codecpar->channels;
channels          197 libavformat/idroqdec.c                 st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
channels          199 libavformat/idroqdec.c                 st->codecpar->block_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample;
channels          273 libavformat/iff.c             st->codecpar->channels       = avio_rb16(pb);
channels          274 libavformat/iff.c             if (size < 2 + st->codecpar->channels * 4)
channels          277 libavformat/iff.c             if (st->codecpar->channels > FF_ARRAY_ELEMS(dsd_layout)) {
channels          281 libavformat/iff.c             for (i = 0; i < st->codecpar->channels; i++)
channels          285 libavformat/iff.c                 if (av_get_channel_layout_nb_channels(d->layout) == st->codecpar->channels &&
channels          286 libavformat/iff.c                     !memcmp(d->dsd_layout, dsd_layout, st->codecpar->channels * sizeof(uint32_t))) {
channels          429 libavformat/iff.c     st->codecpar->channels = 1;
channels          480 libavformat/iff.c             st->codecpar->channels = avio_rb16(pb);
channels          482 libavformat/iff.c             if (st->codecpar->channels == 1)
channels          484 libavformat/iff.c             else if (st->codecpar->channels == 2)
channels          508 libavformat/iff.c                 st->codecpar->channels       = 1;
channels          511 libavformat/iff.c                 st->codecpar->channels       = 2;
channels          755 libavformat/iff.c         st->codecpar->bit_rate = (int64_t)st->codecpar->channels * st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample;
channels          756 libavformat/iff.c         st->codecpar->block_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample;
channels          157 libavformat/ifv.c         st->codecpar->channels = 1;
channels           78 libavformat/ilbc.c     st->codecpar->channels = 1;
channels          469 libavformat/internal.h int ff_add_param_change(AVPacket *pkt, int32_t channels,
channels          259 libavformat/ipmovie.c     st->codecpar->channels = ipmovie->audio_channels;
channels          260 libavformat/ipmovie.c     st->codecpar->channel_layout = st->codecpar->channels == 1 ? AV_CH_LAYOUT_MONO :
channels          264 libavformat/ipmovie.c     st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
channels          268 libavformat/ipmovie.c     st->codecpar->block_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample;
channels           55 libavformat/ircamdec.c     uint32_t magic, sample_rate, channels, tag;
channels           70 libavformat/ircamdec.c         channels    = avio_rl32(s->pb);
channels           75 libavformat/ircamdec.c         channels    = avio_rb32(s->pb);
channels           82 libavformat/ircamdec.c     if (!channels || !sample_rate)
channels           90 libavformat/ircamdec.c     st->codecpar->channels    = channels;
channels           91 libavformat/ircamdec.c     if (st->codecpar->channels > FF_SANE_NB_CHANNELS)
channels          102 libavformat/ircamdec.c     st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8;
channels           47 libavformat/ircamenc.c     avio_wl32(s->pb, par->channels);
channels          558 libavformat/isom.c             st->codecpar->channels = cfg.channels;
channels          566 libavformat/isom.c                     "sample rate %d ext sample rate %d\n", st->codecpar->channels,
channels          113 libavformat/iss.c         st->codecpar->channels       = 2;
channels          116 libavformat/iss.c         st->codecpar->channels       = 1;
channels          123 libavformat/iss.c     st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate
channels          141 libavformat/iss.c     if(s->streams[0]->codecpar->channels > 0)
channels          142 libavformat/iss.c         pkt->pts /= s->streams[0]->codecpar->channels*2;
channels          104 libavformat/jvdec.c     ast->codecpar->channels       = 1;
channels           75 libavformat/kvag.c         par->channels           = 2;
channels           78 libavformat/kvag.c         par->channels           = 1;
channels           85 libavformat/kvag.c     par->bit_rate               = par->channels *
channels           93 libavformat/kvag.c                                   par->channels;
channels          108 libavformat/kvag.c     pkt->duration       = ret * (8 / par->bits_per_coded_sample) / par->channels;
channels          140 libavformat/kvag.c     if (par->channels > 2) {
channels          161 libavformat/kvag.c     AV_WL16(buf + 12, par->channels == 2);
channels          131 libavformat/libgme.c     st->codecpar->channels    = 2;
channels          230 libavformat/libmodplug.c     st->codecpar->channels    = settings.mChannels;
channels           42 libavformat/libopenmpt.c     int channels;
channels          122 libavformat/libopenmpt.c     openmpt->channels = av_get_channel_layout_nb_channels(openmpt->layout);
channels          161 libavformat/libopenmpt.c     st->codecpar->channels    = openmpt->channels;
channels          172 libavformat/libopenmpt.c     int n_samples = AUDIO_PKT_SIZE / (openmpt->channels ? openmpt->channels*4 : 4);
channels          178 libavformat/libopenmpt.c     switch (openmpt->channels) {
channels          192 libavformat/libopenmpt.c         av_log(s, AV_LOG_ERROR, "Unsupported number of channels: %d", openmpt->channels);
channels          201 libavformat/libopenmpt.c     pkt->size = ret * (openmpt->channels * 4);
channels           82 libavformat/lvfdec.c             st->codecpar->channels    = avio_rl16(s->pb);
channels           50 libavformat/lxfdec.c     int channels;                       ///< number of audio channels. zero means no audio
channels          117 libavformat/lxfdec.c     uint32_t version, audio_format, header_size, channels, tmp;
channels          174 libavformat/lxfdec.c         channels     = bytestream_get_le32(&p);
channels          214 libavformat/lxfdec.c         ret = av_popcount(channels) * track_size;
channels          276 libavformat/lxfdec.c     if ((lxf->channels = 1 << (disk_params >> 4 & 3) + 1)) {
channels          282 libavformat/lxfdec.c         st->codecpar->channels    = lxf->channels;
channels          207 libavformat/matroskadec.c     uint64_t channels;
channels          501 libavformat/matroskadec.c     { MATROSKA_ID_AUDIOCHANNELS,        EBML_UINT,  0, offsetof(MatroskaTrackAudio, channels),   { .u = 1 } },
channels         2545 libavformat/matroskadec.c             extradata[1] = ((sri & 0x01) << 7) | (track->audio.channels << 3);
channels         2570 libavformat/matroskadec.c             if (track->audio.channels > UINT16_MAX ||
channels         2575 libavformat/matroskadec.c                        track->audio.channels, track->audio.bitdepth);
channels         2590 libavformat/matroskadec.c             bytestream_put_le16(&ptr, track->audio.channels);
channels         2603 libavformat/matroskadec.c             track->audio.channels       = 1;
channels         2792 libavformat/matroskadec.c             st->codecpar->channels    = track->audio.channels;
channels         1327 libavformat/matroskaenc.c         put_ebml_uint  (pb, MATROSKA_ID_AUDIOCHANNELS    , par->channels);
channels          127 libavformat/mm.c         st->codecpar->channels = 1;
channels           83 libavformat/mmf.c     mmf->stereo = s->streams[0]->codecpar->channels > 1;
channels          264 libavformat/mmf.c     st->codecpar->channels              = (params >> 7) + 1;
channels          803 libavformat/mov.c     st->codecpar->channels = ((int[]){2,1,2,3,3,4,4,5})[acmod] + lfeon;
channels          808 libavformat/mov.c     if (st->codecpar->channels > 1 && bsmod == 0x7)
channels          846 libavformat/mov.c     st->codecpar->channels = av_get_channel_layout_nb_channels(st->codecpar->channel_layout);
channels          848 libavformat/mov.c     if (st->codecpar->channels > 1 && bsmod == 0x7)
channels          916 libavformat/mov.c     st->codecpar->channels = av_get_channel_layout_nb_channels(st->codecpar->channel_layout);
channels         2141 libavformat/mov.c     st->codecpar->channels              = avio_rb16(pb); /* channel count */
channels         2143 libavformat/mov.c     av_log(c->fc, AV_LOG_TRACE, "audio channels %d\n", st->codecpar->channels);
channels         2163 libavformat/mov.c             st->codecpar->channels    = avio_rb32(pb);
channels         2215 libavformat/mov.c         sc->bytes_per_frame   = 2 * st->codecpar->channels;
channels         2219 libavformat/mov.c         sc->bytes_per_frame   = 1 * st->codecpar->channels;
channels         2223 libavformat/mov.c         sc->bytes_per_frame   = 34 * st->codecpar->channels;
channels         2236 libavformat/mov.c         sc->sample_size = (bits_per_sample >> 3) * st->codecpar->channels;
channels         2395 libavformat/mov.c         st->codecpar->channels = 1;
channels         2405 libavformat/mov.c         st->codecpar->channels    = 1;
channels         2410 libavformat/mov.c         st->codecpar->channels    = 1;
channels         2429 libavformat/mov.c             st->codecpar->channels    = AV_RB8 (st->codecpar->extradata + 21);
channels         6792 libavformat/mov.c     st->codecpar->channels = truehd_channels(channel_assignment);
channels          456 libavformat/mov_chan.c     int i, channels;
channels          468 libavformat/mov_chan.c     channels = tag & 0xFFFF;
channels          469 libavformat/mov_chan.c     if (channels > 9)
channels          470 libavformat/mov_chan.c         channels = 0;
channels          471 libavformat/mov_chan.c     layout_map = mov_ch_layout_map[channels];
channels          511 libavformat/mov_chan.c         int channels;
channels          515 libavformat/mov_chan.c         channels = av_get_channel_layout_nb_channels(channel_layout);
channels          516 libavformat/mov_chan.c         if (channels > 9)
channels          517 libavformat/mov_chan.c             channels = 0;
channels          518 libavformat/mov_chan.c         layout_map = mov_ch_layout_map[channels];
channels          522 libavformat/mov_chan.c             if ((layouts[i] & 0xFFFF) != channels)
channels         1060 libavformat/movenc.c         if (track->timescale > UINT16_MAX || !track->par->channels) {
channels         1096 libavformat/movenc.c         avio_wb32(pb, track->par->channels);
channels         1104 libavformat/movenc.c             avio_wb16(pb, track->par->channels);
channels         1117 libavformat/movenc.c                 avio_wb16(pb, track->par->channels);
channels         1149 libavformat/movenc.c         avio_wb32(pb, track->sample_size / track->par->channels); /* Bytes per packet */
channels         4245 libavformat/movenc.c             param_write_int(pb, "Channels", track->par->channels);
channels         4984 libavformat/movenc.c     avio_wb32(pb, audio_par->channels);
channels         6520 libavformat/movenc.c                 track->sample_size = (av_get_bits_per_sample(st->codecpar->codec_id) >> 3) * st->codecpar->channels;
channels          150 libavformat/mp3enc.c     int srate_idx, i, channels;
channels          177 libavformat/mp3enc.c     switch (par->channels) {
channels          178 libavformat/mp3enc.c     case 1:  channels = MPA_MONO;                                          break;
channels          179 libavformat/mp3enc.c     case 2:  channels = MPA_STEREO;                                        break;
channels          189 libavformat/mp3enc.c     header |= channels << 6;
channels           98 libavformat/mpc.c     st->codecpar->channels = 2;
channels          259 libavformat/mpc8.c     st->codecpar->channels = (st->codecpar->extradata[1] >> 4) + 1;
channels          618 libavformat/mpeg.c         st->codecpar->channels = 1;
channels          382 libavformat/mpegenc.c                 if (st->codecpar->channels > 8) {
channels          387 libavformat/mpegenc.c                 stream->lpcm_header[1] = (st->codecpar->channels - 1) | (j << 4);
channels          389 libavformat/mpegenc.c                 stream->lpcm_align     = st->codecpar->channels * 2;
channels          406 libavformat/mpegenc.c                                          st->codecpar->channels - 1;
channels          409 libavformat/mpegenc.c                 stream->lpcm_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample / 8;
channels         1783 libavformat/mpegts.c     int desc_len, desc_tag, desc_es_id, ext_desc_tag, channels, channel_config_code;
channels         2024 libavformat/mpegts.c                     st->codecpar->extradata[9]  = channels = channel_config_code ? channel_config_code : 2;
channels         2025 libavformat/mpegts.c                     st->codecpar->extradata[18] = channel_config_code ? (channels > 2) : /* Dual Mono */ 255;
channels         2028 libavformat/mpegts.c                     memcpy(&st->codecpar->extradata[21], opus_channel_map[channels - 1], channels);
channels          400 libavformat/mpegtsenc.c         stream_type = (st->codecpar->channels > 6) ? 0x85 : 0x82;
channels          512 libavformat/mpegtsenc.c                     if (st->codecpar->extradata[18] == 0 && st->codecpar->channels <= 2) {
channels          514 libavformat/mpegtsenc.c                         *q++ = st->codecpar->channels;
channels          515 libavformat/mpegtsenc.c                     } else if (st->codecpar->extradata[18] == 1 && st->codecpar->channels <= 8 &&
channels          516 libavformat/mpegtsenc.c                                st->codecpar->extradata_size >= 21 + st->codecpar->channels) {
channels          542 libavformat/mpegtsenc.c                         if (st->codecpar->extradata[19] == st->codecpar->channels - coupled_stream_counts[st->codecpar->channels] &&
channels          543 libavformat/mpegtsenc.c                             st->codecpar->extradata[20] == coupled_stream_counts[st->codecpar->channels] &&
channels          544 libavformat/mpegtsenc.c                             memcmp(&st->codecpar->extradata[21], channel_map_a[st->codecpar->channels-1], st->codecpar->channels) == 0) {
channels          545 libavformat/mpegtsenc.c                             *q++ = st->codecpar->channels;
channels          546 libavformat/mpegtsenc.c                         } else if (st->codecpar->channels >= 2 && st->codecpar->extradata[19] == st->codecpar->channels &&
channels          548 libavformat/mpegtsenc.c                                    memcmp(&st->codecpar->extradata[21], channel_map_b[st->codecpar->channels-1], st->codecpar->channels) == 0) {
channels          549 libavformat/mpegtsenc.c                             *q++ = st->codecpar->channels | 0x80;
channels          560 libavformat/mpegtsenc.c                 } else if (st->codecpar->channels <= 2) {
channels          562 libavformat/mpegtsenc.c                     *q++ = st->codecpar->channels;
channels           57 libavformat/msf.c     st->codecpar->channels    = avio_rb32(s->pb);
channels           58 libavformat/msf.c     if (st->codecpar->channels <= 0 || st->codecpar->channels >= INT_MAX / 1024)
channels           68 libavformat/msf.c     case 3: st->codecpar->block_align = 16 * st->codecpar->channels;
channels           72 libavformat/msf.c     case 6: st->codecpar->block_align = (codec == 4 ? 96 : codec == 5 ? 152 : 192) * st->codecpar->channels;
channels           78 libavformat/msf.c             AV_WL16(st->codecpar->extradata+2, 2048 * st->codecpar->channels); /* unknown size */
channels          100 libavformat/msf.c     return av_get_packet(s->pb, pkt, par->block_align ? par->block_align : 1024 * par->channels);
channels           57 libavformat/mtaf.c     st->codecpar->channels    = 2 * stream_count;
channels           59 libavformat/mtaf.c     st->codecpar->block_align = 0x110 * st->codecpar->channels / 2;
channels           60 libavformat/musx.c         st->codecpar->channels    = 2;
channels           62 libavformat/musx.c         st->codecpar->block_align = 0x80 * st->codecpar->channels;
channels           69 libavformat/musx.c             st->codecpar->channels    = 2;
channels           76 libavformat/musx.c                 st->codecpar->channels   = avio_rl32(s->pb);
channels           77 libavformat/musx.c                 if (st->codecpar->channels <= 0 ||
channels           78 libavformat/musx.c                     st->codecpar->channels > INT_MAX / 0x20)
channels           83 libavformat/musx.c             st->codecpar->block_align = 0x20 * st->codecpar->channels;
channels           95 libavformat/musx.c             st->codecpar->channels   = avio_rl32(s->pb);
channels           96 libavformat/musx.c             if (st->codecpar->channels <= 0 ||
channels           97 libavformat/musx.c                 st->codecpar->channels > INT_MAX / 0x20)
channels          100 libavformat/musx.c             st->codecpar->block_align = 0x20 * st->codecpar->channels;
channels          104 libavformat/musx.c             st->codecpar->channels    = 2;
channels          106 libavformat/musx.c             st->codecpar->block_align = 0x20 * st->codecpar->channels;
channels          110 libavformat/musx.c             st->codecpar->channels    = 2;
channels          112 libavformat/musx.c             st->codecpar->block_align = 0x80 * st->codecpar->channels;
channels          116 libavformat/musx.c             st->codecpar->channels    = 2;
channels          118 libavformat/musx.c             st->codecpar->block_align = 0x80 * st->codecpar->channels;
channels          128 libavformat/musx.c         st->codecpar->channels    = 2;
channels          132 libavformat/musx.c             st->codecpar->block_align = 0x20 * st->codecpar->channels;
channels          138 libavformat/musx.c             st->codecpar->block_align = 0x80 * st->codecpar->channels;
channels          144 libavformat/musx.c             st->codecpar->block_align = 0x20 * st->codecpar->channels;
channels          314 libavformat/mux.c                 par->block_align = par->channels *
channels          103 libavformat/mvdec.c static int set_channels(AVFormatContext *avctx, AVStream *st, int channels)
channels          105 libavformat/mvdec.c     if (channels <= 0) {
channels          106 libavformat/mvdec.c         av_log(avctx, AV_LOG_ERROR, "Channel count %d invalid.\n", channels);
channels          109 libavformat/mvdec.c     st->codecpar->channels       = channels;
channels          110 libavformat/mvdec.c     st->codecpar->channel_layout = (st->codecpar->channels == 1) ? AV_CH_LAYOUT_MONO
channels          271 libavformat/mvdec.c             timestamp += size / (st->codecpar->channels * 2LL);
channels          358 libavformat/mvdec.c             timestamp += asize / (ast->codecpar->channels * 2LL);
channels          393 libavformat/mvdec.c             if (ast->codecpar->channels <= 0) {
channels           87 libavformat/mvi.c     ast->codecpar->channels        = 1;
channels          198 libavformat/mxfdec.c     int channels;
channels          546 libavformat/mxfdec.c     for (; end_ptr - buf_ptr >= st->codecpar->channels * 4; ) {
channels          547 libavformat/mxfdec.c         for (i = 0; i < st->codecpar->channels; i++) {
channels          554 libavformat/mxfdec.c         buf_ptr += 32 - st->codecpar->channels*4; // always 8 channels stored SMPTE 331M
channels         1223 libavformat/mxfdec.c         descriptor->channels = avio_rb32(pb);
channels         2487 libavformat/mxfdec.c             st->codecpar->channels = descriptor->channels;
channels         3073 libavformat/mxfdec.c         edit_unit_byte_count = (av_get_bits_per_sample(st->codecpar->codec_id) * st->codecpar->channels) >> 3;
channels         3388 libavformat/mxfdec.c     if (   par->channels <= 0
channels         3390 libavformat/mxfdec.c         || par->channels * (int64_t)bits_per_sample < 8)
channels         3393 libavformat/mxfdec.c         track->sample_count += pkt->size / (par->channels * (int64_t)bits_per_sample / 8);
channels         1389 libavformat/mxfenc.c         if (show_warnings && (s->oformat == &ff_mxf_d10_muxer) && (st->codecpar->channels != 4) && (st->codecpar->channels != 8))
channels         1391 libavformat/mxfenc.c         avio_wb32(pb, st->codecpar->channels);
channels         1393 libavformat/mxfenc.c         if (show_warnings && (mxf->channel_count < st->codecpar->channels))
channels         1399 libavformat/mxfenc.c         avio_wb32(pb, st->codecpar->channels);
channels         2565 libavformat/mxfenc.c                 if (st->codecpar->channels != 1) {
channels         2574 libavformat/mxfenc.c                 mxf->edit_unit_byte_count = (av_get_bits_per_sample(st->codecpar->codec_id) * st->codecpar->channels) >> 3;
channels         2578 libavformat/mxfenc.c                 sc->frame_size = st->codecpar->channels *
channels         2720 libavformat/mxfenc.c     avio_w8(pb, (1<<st->codecpar->channels)-1);
channels         2723 libavformat/mxfenc.c         for (i = 0; i < st->codecpar->channels; i++) {
channels           60 libavformat/mxg.c     audio_st->codecpar->channels = 1;
channels           83 libavformat/nistspheredec.c             st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8;
channels           92 libavformat/nistspheredec.c             sscanf(buffer, "%*s %*s %u", &st->codecpar->channels);
channels           38 libavformat/nspdec.c     int channels = 0, rate = 0;
channels           70 libavformat/nspdec.c             channels = 2;
channels           82 libavformat/nspdec.c             channels = 1;
channels           86 libavformat/nspdec.c         if (channels)
channels           91 libavformat/nspdec.c     st->codecpar->channels    = channels;
channels           94 libavformat/nspdec.c     st->codecpar->block_align = 2 * channels;
channels          608 libavformat/nsvdec.c             uint8_t channels;
channels          611 libavformat/nsvdec.c             channels = avio_r8(pb);
channels          613 libavformat/nsvdec.c             if (!channels || !samplerate)
channels          616 libavformat/nsvdec.c             av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate);
channels          622 libavformat/nsvdec.c                 bps /= channels; // ???
channels          626 libavformat/nsvdec.c                 channels = 1;
channels          627 libavformat/nsvdec.c                 st[NSV_ST_AUDIO]->codecpar->channels = channels;
channels          629 libavformat/nsvdec.c                 av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate);
channels          451 libavformat/nutdec.c         GET_V(st->codecpar->channels, tmp > 0);
channels          867 libavformat/nutdec.c     int channels = 0;
channels          938 libavformat/nutdec.c                 channels = value;
channels          951 libavformat/nutdec.c     if (channels || channel_layout || sample_rate || width || height) {
channels          956 libavformat/nutdec.c                             AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT*(!!channels) +
channels          961 libavformat/nutdec.c         if (channels)
channels          962 libavformat/nutdec.c             bytestream_put_le32(&dst, channels);
channels          464 libavformat/nutenc.c         put_v(bc, par->channels);
channels          118 libavformat/nuv.c                 ast->codecpar->channels              = avio_rl32(pb);
channels          225 libavformat/nuv.c         ast->codecpar->channels              = 2;
channels           67 libavformat/oggparsecelt.c         st->codecpar->channels       = nb_channels;
channels           99 libavformat/oggparseogm.c             st->codecpar->channels = bytestream2_get_le16(&p);
channels          162 libavformat/oggparseogm.c         st->codecpar->channels = AV_RL16(p + 126);
channels           58 libavformat/oggparseopus.c         st->codecpar->channels   = AV_RL8(packet + 9);
channels           76 libavformat/oggparsespeex.c         st->codecpar->channels = AV_RL32(p + 48);
channels           77 libavformat/oggparsespeex.c         if (st->codecpar->channels < 1 || st->codecpar->channels > 2) {
channels           81 libavformat/oggparsespeex.c         st->codecpar->channel_layout = st->codecpar->channels == 1 ? AV_CH_LAYOUT_MONO :
channels          333 libavformat/oggparsevorbis.c         int channels;
channels          341 libavformat/oggparsevorbis.c         channels = bytestream_get_byte(&p);
channels          342 libavformat/oggparsevorbis.c         if (st->codecpar->channels && channels != st->codecpar->channels) {
channels          346 libavformat/oggparsevorbis.c         st->codecpar->channels = channels;
channels          467 libavformat/omadec.c         st->codecpar->channels    = 2;
channels          496 libavformat/omadec.c         st->codecpar->channels       = ff_oma_chid_to_num_channels[channel_id - 1];
channels          514 libavformat/omadec.c         st->codecpar->channels = 2;
channels          525 libavformat/omadec.c         st->codecpar->channels    = 2;
channels          534 libavformat/omadec.c         st->codecpar->channels       = 2;
channels           63 libavformat/omaenc.c         if (par->channels != 2) {
channels           83 libavformat/omaenc.c                          (par->channels << 10) |
channels          124 libavformat/paf.c     ast->codecpar->channels       = 2;
channels           62 libavformat/pcm.c         (av_get_bits_per_sample(st->codecpar->codec_id) * st->codecpar->channels) >> 3;
channels           32 libavformat/pcmdec.c     int channels;
channels           49 libavformat/pcmdec.c     st->codecpar->channels    = s1->channels;
channels           53 libavformat/pcmdec.c         int rate = 0, channels = 0, little_endian = 0;
channels           64 libavformat/pcmdec.c                 if (!channels)
channels           65 libavformat/pcmdec.c                     sscanf(options, " channels=%d", &channels);
channels           81 libavformat/pcmdec.c             if (channels > 0)
channels           82 libavformat/pcmdec.c                 st->codecpar->channels = channels;
channels           95 libavformat/pcmdec.c         st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8;
channels          103 libavformat/pcmdec.c     { "channels",    "", offsetof(PCMAudioDemuxerContext, channels),    AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
channels          193 libavformat/pcmdec.c     { "channels",    "", offsetof(PCMAudioDemuxerContext, channels),    AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
channels           49 libavformat/pmpdec.c     int srate, channels;
channels           95 libavformat/pmpdec.c     channels = avio_rl32(pb) + 1;
channels          122 libavformat/pmpdec.c         ast->codecpar->channels    = channels;
channels          209 libavformat/pp_bnk.c         par->channels               = 1;
channels           66 libavformat/psxstr.c     StrChannel channels[32];
channels          148 libavformat/psxstr.c         str->channels[i].video_stream_index=
channels          149 libavformat/psxstr.c         str->channels[i].audio_stream_index= -1;
channels          193 libavformat/psxstr.c                 if(str->channels[channel].video_stream_index < 0){
channels          200 libavformat/psxstr.c                     str->channels[channel].video_stream_index = st->index;
channels          210 libavformat/psxstr.c                 pkt = &str->channels[channel].tmp_pkt;
channels          223 libavformat/psxstr.c                         str->channels[channel].video_stream_index;
channels          243 libavformat/psxstr.c             if(str->channels[channel].audio_stream_index < 0){
channels          250 libavformat/psxstr.c                 str->channels[channel].audio_stream_index = st->index;
channels          256 libavformat/psxstr.c                     st->codecpar->channels       = 2;
channels          259 libavformat/psxstr.c                     st->codecpar->channels       = 1;
channels          266 libavformat/psxstr.c                 avpriv_set_pts_info(st, 64, 18 * 224 / st->codecpar->channels,
channels          276 libavformat/psxstr.c                 str->channels[channel].audio_stream_index;
channels          295 libavformat/psxstr.c         if(str->channels[i].tmp_pkt.data)
channels          296 libavformat/psxstr.c             av_packet_unref(&str->channels[i].tmp_pkt);
channels           38 libavformat/pvfdec.c     int bps, channels, sample_rate;
channels           43 libavformat/pvfdec.c                &channels,
channels           48 libavformat/pvfdec.c     if (channels <= 0 || channels > FF_SANE_NB_CHANNELS ||
channels           57 libavformat/pvfdec.c     st->codecpar->channels    = channels;
channels           61 libavformat/pvfdec.c     st->codecpar->block_align = bps * st->codecpar->channels / 8;
channels          105 libavformat/qcp.c     st->codecpar->channels   = 1;
channels          285 libavformat/r3d.c         st->codecpar->channels = r3d->audio_channels;
channels           82 libavformat/rawenc.c         uint64_t sample_count = (file_size - 36) / par->channels / 18 * 32;
channels          100 libavformat/redspark.c     par->channels = bytestream2_get_byteu(&gbc);
channels          101 libavformat/redspark.c     if (!par->channels) {
channels          105 libavformat/redspark.c     coef_off = 0x54 + par->channels * 8;
channels          109 libavformat/redspark.c     if (coef_off + par->channels * (32 + 14) > HEADER_SIZE) {
channels          113 libavformat/redspark.c     if (ff_alloc_extradata(par, 32 * par->channels)) {
channels          119 libavformat/redspark.c     for (i = 0; i < par->channels; i++) {
channels          135 libavformat/redspark.c     uint32_t size = 8 * par->channels;
channels          106 libavformat/riffdec.c             par->channels    = avio_rl16(pb);
channels          113 libavformat/riffdec.c         par->channels    = avio_rb16(pb);
channels          164 libavformat/riffdec.c         par->channels      = 0;
channels          169 libavformat/riffdec.c             par->channels += par->extradata[8 + i * 20 + 17];
channels          182 libavformat/riffdec.c         par->channels    = 0;
channels           73 libavformat/riffenc.c     waveformatextensible = (par->channels > 2 && par->channel_layout) ||
channels           74 libavformat/riffenc.c                            par->channels == 1 && par->channel_layout && par->channel_layout != AV_CH_LAYOUT_MONO ||
channels           75 libavformat/riffenc.c                            par->channels == 2 && par->channel_layout && par->channel_layout != AV_CH_LAYOUT_STEREO ||
channels           85 libavformat/riffenc.c     avio_wl16(pb, par->channels);
channels          115 libavformat/riffenc.c         blkalign = 768 * par->channels; /* maximum bytes per frame */
channels          121 libavformat/riffenc.c         blkalign = bps * par->channels / av_gcd(8, bps);
channels          149 libavformat/riffenc.c         bytestream_put_le16(&riff_extradata, par->channels == 2 ? 1 : 8);
channels           86 libavformat/rl2.c     unsigned short channels;
channels          110 libavformat/rl2.c     channels = avio_rl16(pb);
channels          136 libavformat/rl2.c         if (!channels || channels > 42) {
channels          137 libavformat/rl2.c             av_log(s, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
channels          150 libavformat/rl2.c         st->codecpar->channels = channels;
channels          153 libavformat/rl2.c         st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
channels          155 libavformat/rl2.c         st->codecpar->block_align = st->codecpar->channels *
channels          206 libavformat/rl2.c             audio_frame_counter += audio_size[i] / channels;
channels          149 libavformat/rmdec.c         st->codecpar->channels = 1;
channels          182 libavformat/rmdec.c         st->codecpar->channels = avio_rb16(pb);
channels          231 libavformat/rmenc.c             avio_wb16(s, stream->par->channels);
channels          200 libavformat/rpl.c         ast->codecpar->channels        = read_line_and_int(pb, &error);  // number of audio channels
channels          211 libavformat/rpl.c                                   ast->codecpar->channels;
channels           84 libavformat/rsd.c     par->channels = avio_rl32(pb);
channels           85 libavformat/rsd.c     if (par->channels <= 0 || par->channels > INT_MAX / 36) {
channels           86 libavformat/rsd.c         av_log(s, AV_LOG_ERROR, "Invalid number of channels: %d\n", par->channels);
channels          105 libavformat/rsd.c         par->block_align = 16 * par->channels;
channels          110 libavformat/rsd.c         par->block_align = 20 * par->channels;
channels          119 libavformat/rsd.c         par->block_align = 36 * par->channels;
channels          135 libavformat/rsd.c         par->block_align = 8 * par->channels;
channels          138 libavformat/rsd.c         if ((ret = ff_alloc_extradata(st->codecpar, 32 * par->channels)) < 0)
channels          141 libavformat/rsd.c         for (i = 0; i < par->channels; i++) {
channels          146 libavformat/rsd.c             st->duration = (avio_size(pb) - start) / (8 * par->channels) * 14;
channels          154 libavformat/rsd.c             st->duration = (avio_size(pb) - start) / 2 / par->channels;
channels          185 libavformat/rsd.c                par->channels > 1) {
channels          192 libavformat/rsd.c             for (ch = 0; ch < par->channels; ch++) {
channels           65 libavformat/rsodec.c     st->codecpar->channels     = 1;
channels           37 libavformat/rsoenc.c     if (par->channels != 1) {
channels           81 libavformat/rtp.c                     par->channels = rtp_payload_types[i].audio_channels;
channels          114 libavformat/rtp.c                 par->sample_rate == 16000 && par->channels == 1)
channels          120 libavformat/rtp.c                   par->channels != rtp_payload_types[i].audio_channels)))
channels           38 libavformat/rtpdec_amr.c     int channels;
channels           43 libavformat/rtpdec_amr.c     data->channels = 1;
channels           67 libavformat/rtpdec_amr.c     if (st->codecpar->channels != 1) {
channels          155 libavformat/rtpdec_amr.c         data->channels = atoi(value);
channels          176 libavformat/rtpdec_amr.c             data->interleaving || data->channels != 1) {
channels          237 libavformat/rtpenc.c         if (st->codecpar->channels > 2) {
channels          265 libavformat/rtpenc.c         if (st->codecpar->channels != 1) {
channels          542 libavformat/rtpenc.c         return rtp_send_samples(s1, pkt->data, size, 8 * st->codecpar->channels);
channels          547 libavformat/rtpenc.c         return rtp_send_samples(s1, pkt->data, size, 16 * st->codecpar->channels);
channels          549 libavformat/rtpenc.c         return rtp_send_samples(s1, pkt->data, size, 24 * st->codecpar->channels);
channels          555 libavformat/rtpenc.c         return rtp_send_samples(s1, pkt->data, size, 8 * st->codecpar->channels);
channels          559 libavformat/rtpenc.c                                 st->codecpar->bits_per_coded_sample * st->codecpar->channels);
channels          302 libavformat/rtsp.c         par->channels = RTSP_DEFAULT_NB_AUDIO_CHANNELS;
channels          309 libavformat/rtsp.c                 par->channels = i;
channels          314 libavformat/rtsp.c                par->channels);
channels          146 libavformat/sbgdec.c     uint32_t channels;
channels         1007 libavformat/sbgdec.c                         enum ws_interval_type type, uint32_t channels, int ref,
channels         1016 libavformat/sbgdec.c         if (ri->type == type && ri->channels == channels &&
channels         1031 libavformat/sbgdec.c     i->channels = channels;
channels         1350 libavformat/sbgdec.c         ADD_EDATA32(inter->inter[i].channels);
channels         1419 libavformat/sbgdec.c     st->codecpar->channels       = 2;
channels          430 libavformat/sdp.c         if (par->channels <= 2)
channels          433 libavformat/sdp.c         if (par->channels <= 2) {
channels          435 libavformat/sdp.c         } else if (par->channels <= 5) {
channels          439 libavformat/sdp.c         if (par->channels <= 5) {
channels          468 libavformat/sdp.c     config_byte[3] = par->channels << 4;
channels          559 libavformat/sdp.c                                          payload_type, p->sample_rate, p->channels,
channels          578 libavformat/sdp.c                                          payload_type, p->sample_rate, p->channels,
channels          586 libavformat/sdp.c                                          p->sample_rate, p->channels);
channels          592 libavformat/sdp.c                                          p->sample_rate, p->channels);
channels          598 libavformat/sdp.c                                          p->sample_rate, p->channels);
channels          604 libavformat/sdp.c                                          p->sample_rate, p->channels);
channels          609 libavformat/sdp.c                                      payload_type, p->sample_rate, p->channels,
channels          615 libavformat/sdp.c                                      payload_type, p->sample_rate, p->channels,
channels          628 libavformat/sdp.c                                     payload_type, p->sample_rate, p->channels,
channels          680 libavformat/sdp.c                                          8000, p->channels);
channels          731 libavformat/sdp.c             if (p->channels == 2) {
channels           57 libavformat/sdr2.c     ast->codecpar->channels    = 1;
channels          113 libavformat/sdsdec.c     st->codecpar->channels = 1;
channels           57 libavformat/sdxdec.c     st->codecpar->channels = 1;
channels          177 libavformat/segafilm.c         st->codecpar->channels = film->audio_channels;
channels          182 libavformat/segafilm.c             st->codecpar->block_align = st->codecpar->channels * 18;
channels          186 libavformat/segafilm.c             st->codecpar->block_align = st->codecpar->channels *
channels          190 libavformat/segafilm.c         st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
channels          323 libavformat/segafilmenc.c         avio_w8(pb, audio->codecpar->channels); /* Audio channels */
channels           31 libavformat/shortendec.c     int version, internal_ftype, channels, blocksize;
channels           40 libavformat/shortendec.c         channels = get_ur_golomb_shorten(&gb, 0);
channels           51 libavformat/shortendec.c         channels = get_ur_golomb_shorten(&gb, k);
channels           60 libavformat/shortendec.c     if (channels < 1 || channels > 8)
channels          154 libavformat/sierravmd.c             st->codecpar->channels       = 2;
channels          159 libavformat/sierravmd.c             st->codecpar->channels       = 2;
channels          163 libavformat/sierravmd.c             st->codecpar->channels       = 1;
channels          167 libavformat/sierravmd.c             st->codecpar->bits_per_coded_sample * st->codecpar->channels;
channels          171 libavformat/sierravmd.c         den = st->codecpar->sample_rate * st->codecpar->channels;
channels           83 libavformat/siff.c     ast->codecpar->channels              = 1;
channels          189 libavformat/smacker.c                 par->channels       = 2;
channels          192 libavformat/smacker.c                 par->channels       = 1;
channels          200 libavformat/smacker.c             avpriv_set_pts_info(ast, 64, 1, par->sample_rate * par->channels
channels           97 libavformat/smjpegdec.c             ast->codecpar->channels    = avio_r8(pb);
channels           71 libavformat/smjpegenc.c             avio_w8(pb, par->channels);
channels          273 libavformat/smoothstreamingenc.c             avio_printf(out, "<QualityLevel Index=\"%d\" Bitrate=\"%"PRId64"\" FourCC=\"%s\" SamplingRate=\"%d\" Channels=\"%d\" BitsPerSample=\"16\" PacketSize=\"%d\" AudioTag=\"%d\" CodecPrivateData=\"%s\" />\n", index, s->streams[i]->codecpar->bit_rate, os->fourcc, s->streams[i]->codecpar->sample_rate, s->streams[i]->codecpar->channels, os->packet_size, os->audio_tag, os->private_str);
channels           53 libavformat/smush.c     uint32_t sample_rate, channels, palette[256];
channels          119 libavformat/smush.c                 channels = avio_rl32(pb);
channels          120 libavformat/smush.c                 if (!channels)
channels          181 libavformat/smush.c         ast->codecpar->channels    = channels;
channels           87 libavformat/sol.c     unsigned int id, channels, rate, type;
channels          103 libavformat/sol.c     channels = sol_channels(magic, type);
channels          116 libavformat/sol.c     st->codecpar->channels = channels;
channels          117 libavformat/sol.c     st->codecpar->channel_layout = channels == 1 ? AV_CH_LAYOUT_MONO :
channels           65 libavformat/soxdec.c         st->codecpar->channels = avio_rl32(pb);
channels           72 libavformat/soxdec.c         st->codecpar->channels = avio_rb32(pb);
channels           93 libavformat/soxdec.c         || st->codecpar->channels > 65535) /* Reserve top 16 bits */ {
channels          118 libavformat/soxdec.c                                           st->codecpar->channels;
channels          120 libavformat/soxdec.c                                           st->codecpar->channels / 8;
channels           64 libavformat/soxenc.c         avio_wl32(pb, par->channels);
channels           71 libavformat/soxenc.c         avio_wb32(pb, par->channels);
channels           50 libavformat/svag.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           51 libavformat/svag.c     if (st->codecpar->channels <= 0 || st->codecpar->channels > 8)
channels           53 libavformat/svag.c     st->duration           = size / (16 * st->codecpar->channels) * 28;
channels           55 libavformat/svag.c     if (align <= 0 || align > INT_MAX / st->codecpar->channels)
channels           57 libavformat/svag.c     st->codecpar->block_align = align * st->codecpar->channels;
channels          186 libavformat/swfdec.c         ast->codecpar->channels       = 2;
channels          189 libavformat/swfdec.c         ast->codecpar->channels       = 1;
channels          329 libavformat/swfenc.c         if (swf->audio_par->channels == 2)
channels          160 libavformat/takdec.c             st->codecpar->channels              = ti.channels;
channels          216 libavformat/tests/movenc.c     st->codecpar->channels = 2;
channels          142 libavformat/thp.c             st->codecpar->channels    = avio_rb32(pb); /* numChannels.  */
channels          253 libavformat/tiertexseq.c     st->codecpar->channels = 1;
channels          257 libavformat/tiertexseq.c     st->codecpar->bit_rate = st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample * st->codecpar->channels;
channels          258 libavformat/tiertexseq.c     st->codecpar->block_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample / 8;
channels          117 libavformat/tmv.c         ast->codecpar->channels       = 2;
channels          120 libavformat/tmv.c         ast->codecpar->channels       = 1;
channels          128 libavformat/tmv.c     fps.num = ast->codecpar->sample_rate * ast->codecpar->channels;
channels           53 libavformat/tta.c     int i, channels, bps, samplerate;
channels           67 libavformat/tta.c     channels = avio_rl16(s->pb);
channels          135 libavformat/tta.c     st->codecpar->channels = channels;
channels           84 libavformat/ttaenc.c     avio_wl16(s->pb, par->channels);
channels           82 libavformat/uncodedframecrcenc.c     nb_planes  = frame->channels;
channels         1682 libavformat/utils.c             st->codecpar->channels = st->internal->avctx->channels;
channels         3022 libavformat/utils.c         if (!avctx->channels)
channels         4272 libavformat/utils.c         if (type == AVMEDIA_TYPE_AUDIO && !(par->channels && par->sample_rate))
channels         5070 libavformat/utils.c int ff_add_param_change(AVPacket *pkt, int32_t channels,
channels         5079 libavformat/utils.c     if (channels) {
channels         5099 libavformat/utils.c     if (channels)
channels         5100 libavformat/utils.c         bytestream_put_le32(&data, channels);
channels         5275 libavformat/utils.c                 val = par->sample_rate && par->channels;
channels         5277 libavformat/utils.c                 val = val || (codec->sample_rate && codec->channels);
channels           45 libavformat/vag.c     st->codecpar->channels    = 1 + (avio_rb32(s->pb) == 0x00000004);
channels           47 libavformat/vag.c     if (st->codecpar->channels > 1) {
channels           57 libavformat/vag.c         st->codecpar->block_align = 0x1000 * st->codecpar->channels;
channels           61 libavformat/vag.c         st->codecpar->block_align = 16 * st->codecpar->channels;
channels           62 libavformat/vag.c         avio_seek(s->pb, st->codecpar->channels > 1 ? 0x80 : 0x30, SEEK_SET);
channels          368 libavformat/vividas.c         st->codecpar->channels = avio_rl16(pb); // channels
channels          650 libavformat/vividas.c         viv->audio_sample += viv->audio_subpackets[viv->current_audio_subpacket].pcm_bytes / 2 / astream->codecpar->channels;
channels          247 libavformat/vivo.c     ast->codecpar->channels = 1;
channels           35 libavformat/voc_packet.c     int channels = 1;
channels           65 libavformat/voc_packet.c                 par->channels = channels;
channels           72 libavformat/voc_packet.c             channels = 1;
channels           81 libavformat/voc_packet.c             channels = avio_r8(pb) + 1;
channels           82 libavformat/voc_packet.c             sample_rate = 256000000 / (channels * (65536 - sample_rate));
channels           92 libavformat/voc_packet.c                 par->channels = avio_r8(pb);
channels          129 libavformat/voc_packet.c     par->bit_rate = (int64_t)par->sample_rate * par->channels * par->bits_per_coded_sample;
channels           66 libavformat/vocenc.c             avio_w8(pb, par->channels);
channels           70 libavformat/vocenc.c             if (s->streams[0]->codecpar->channels > 1) {
channels           73 libavformat/vocenc.c                 avio_wl16(pb, 65536-(256000000 + par->sample_rate*par->channels/2)/(par->sample_rate*par->channels));
channels           75 libavformat/vocenc.c                 avio_w8(pb, par->channels - 1);
channels           62 libavformat/vpk.c     st->codecpar->channels    = avio_rl32(s->pb);
channels           63 libavformat/vpk.c     if (st->codecpar->channels <= 0)
channels           65 libavformat/vpk.c     samples_per_block      = ((st->codecpar->block_align / st->codecpar->channels) * 28LL) / 16;
channels           69 libavformat/vpk.c     vpk->last_block_size   = (st->duration % samples_per_block) * 16 * st->codecpar->channels / 28;
channels           88 libavformat/vpk.c         unsigned size = vpk->last_block_size / par->channels;
channels           89 libavformat/vpk.c         unsigned skip = (par->block_align - vpk->last_block_size) / par->channels;
channels           95 libavformat/vpk.c         for (i = 0; i < par->channels; i++) {
channels          136 libavformat/vqf.c             st->codecpar->channels = AV_RB32(comm_chunk    ) + 1;
channels          141 libavformat/vqf.c             if (st->codecpar->channels <= 0) {
channels          192 libavformat/vqf.c     if (read_bitrate / st->codecpar->channels <  8 ||
channels          193 libavformat/vqf.c         read_bitrate / st->codecpar->channels > 48) {
channels          195 libavformat/vqf.c                read_bitrate / st->codecpar->channels);
channels          200 libavformat/vqf.c             read_bitrate/st->codecpar->channels) {
channels          184 libavformat/wavdec.c     int version, num_streams, i, channels = 0, ret;
channels          212 libavformat/wavdec.c         channels += avio_r8(pb);
channels          215 libavformat/wavdec.c     (*st)->codecpar->channels = channels;
channels          217 libavformat/wavdec.c     if ((*st)->codecpar->channels <= 0 || (*st)->codecpar->sample_rate <= 0)
channels          546 libavformat/wavdec.c         && sample_count > 0 && st->codecpar->channels > 1
channels          547 libavformat/wavdec.c         && sample_count % st->codecpar->channels == 0) {
channels          548 libavformat/wavdec.c         if (fabs(8.0 * data_size * st->codecpar->channels * st->codecpar->sample_rate /
channels          550 libavformat/wavdec.c             sample_count /= st->codecpar->channels;
channels          553 libavformat/wavdec.c     if (   data_size > 0 && sample_count && st->codecpar->channels
channels          554 libavformat/wavdec.c         && (data_size << 3) / sample_count / st->codecpar->channels > st->codecpar->bits_per_coded_sample  + 1) {
channels          567 libavformat/wavdec.c         if (   st->codecpar->channels
channels          573 libavformat/wavdec.c                 (st->codecpar->channels * (uint64_t)av_get_bits_per_sample(st->codecpar->codec_id));
channels          579 libavformat/wavdec.c         st->codecpar->block_align == st->codecpar->channels * 4 &&
channels          586 libavformat/wavdec.c                st->codecpar->block_align == st->codecpar->channels * 4 &&
channels          592 libavformat/wavdec.c     } else if (st->codecpar->codec_id == AV_CODEC_ID_ADPCM_MS && st->codecpar->channels > 2) {
channels          593 libavformat/wavdec.c         st->codecpar->block_align *= st->codecpar->channels;
channels          176 libavformat/wavenc.c     wav->peak_maxpos = av_mallocz_array(par->channels, sizeof(*wav->peak_maxpos));
channels          177 libavformat/wavenc.c     wav->peak_maxneg = av_mallocz_array(par->channels, sizeof(*wav->peak_maxneg));
channels          200 libavformat/wavenc.c     for (c = 0; c < par->channels; c++) {
channels          278 libavformat/wavenc.c     avio_wl32(pb, par->channels);               /* number of channels */
channels          386 libavformat/wavenc.c             if (++c == s->streams[0]->codecpar->channels) {
channels          188 libavformat/wc3movie.c     st->codecpar->channels = WC3_AUDIO_CHANNELS;
channels          192 libavformat/wc3movie.c     st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
channels           88 libavformat/westwood_aud.c     int sample_rate, channels, codec;
channels           94 libavformat/westwood_aud.c     channels    = (header[10] & 0x1) + 1;
channels          104 libavformat/westwood_aud.c         if (channels != 1) {
channels          113 libavformat/westwood_aud.c         st->codecpar->bit_rate = channels * sample_rate * 4;
channels          121 libavformat/westwood_aud.c     st->codecpar->channels    = channels;
channels          122 libavformat/westwood_aud.c     st->codecpar->channel_layout = channels == 1 ? AV_CH_LAYOUT_MONO :
channels          167 libavformat/westwood_aud.c         if (st->codecpar->channels <= 0) {
channels          169 libavformat/westwood_aud.c                    st->codecpar->channels);
channels          174 libavformat/westwood_aud.c         pkt->duration = (chunk_size * 2) / st->codecpar->channels;
channels           59 libavformat/westwood_vqa.c     int channels;
channels          120 libavformat/westwood_vqa.c     wsvqa->channels     = header[26];
channels          194 libavformat/westwood_vqa.c                     if (!wsvqa->channels)
channels          195 libavformat/westwood_vqa.c                         wsvqa->channels = 1;
channels          200 libavformat/westwood_vqa.c                     st->codecpar->channels = wsvqa->channels;
channels          229 libavformat/westwood_vqa.c                         pkt->duration = AV_RL16(pkt->data) / wsvqa->channels;
channels          233 libavformat/westwood_vqa.c                     pkt->duration = (chunk_size * 2) / wsvqa->channels;
channels          130 libavformat/wsddec.c     st->codecpar->channels    = avio_r8(pb) & 0xF;
channels          131 libavformat/wsddec.c     st->codecpar->bit_rate    = (int64_t)st->codecpar->channels * st->codecpar->sample_rate * 8LL;
channels          132 libavformat/wsddec.c     if (!st->codecpar->channels)
channels          590 libavformat/wtvdec.c     case 4 : st->codecpar->channels       = 2;
channels          593 libavformat/wtvdec.c     case 8 : st->codecpar->channels       = 1;
channels          258 libavformat/wvdec.c     st->codecpar->channels              = wc->chan;
channels           46 libavformat/wvedec.c     st->codecpar->channels    = 1;
channels           48 libavformat/wvedec.c     st->codecpar->block_align = st->codecpar->bits_per_coded_sample * st->codecpar->channels / 8;
channels           45 libavformat/xa.c     int channels, srate, bits_per_sample;
channels           56 libavformat/xa.c     channels        = AV_RL16(p->buf + 10);
channels           59 libavformat/xa.c     if (!channels || channels > 8 || !srate || srate > 192000 ||
channels           81 libavformat/xa.c     st->codecpar->channels     = avio_rl16(pb);
channels           87 libavformat/xa.c     if (!st->codecpar->channels || !st->codecpar->sample_rate)
channels           90 libavformat/xa.c     st->codecpar->bit_rate = av_clip(15LL * st->codecpar->channels * 8 *
channels          111 libavformat/xa.c     packet_size = 15*st->codecpar->channels;
channels           79 libavformat/xmv.c     uint16_t channels;        ///< Number of channels.
channels          189 libavformat/xmv.c         packet->channels        = avio_rl16(pb);
channels          196 libavformat/xmv.c                                 packet->channels;
channels          197 libavformat/xmv.c         packet->block_align   = XMV_BLOCK_ALIGN_SIZE * packet->channels;
channels          213 libavformat/xmv.c         if (!packet->channels || packet->sample_rate <= 0 ||
channels          214 libavformat/xmv.c              packet->channels >= UINT16_MAX / XMV_BLOCK_ALIGN_SIZE) {
channels          343 libavformat/xmv.c             ast->codecpar->channels              = packet->channels;
channels          347 libavformat/xmv.c             ast->codecpar->block_align           = 36 * packet->channels;
channels           55 libavformat/xvag.c         st->codecpar->channels = avio_rb32(s->pb);
channels           63 libavformat/xvag.c         st->codecpar->channels = avio_rl32(s->pb);
channels           72 libavformat/xvag.c     if (st->codecpar->channels <= 0 || st->codecpar->channels > FF_SANE_NB_CHANNELS)
channels           78 libavformat/xvag.c         st->codecpar->block_align = 16 * st->codecpar->channels;
channels           88 libavformat/xwma.c         int ch = st->codecpar->channels;
channels          149 libavformat/xwma.c     if (!st->codecpar->channels) {
channels          151 libavformat/xwma.c                st->codecpar->channels);
channels          235 libavformat/xwma.c                 = (st->codecpar->channels * st->codecpar->bits_per_coded_sample) >> 3;
channels          243 libavformat/xwma.c                    st->codecpar->bits_per_coded_sample, st->codecpar->channels);
channels           75 libavformat/yop.c     audio_par->channels       = 1;
channels           30 libavresample/aarch64/audio_convert_init.c                               int len, int channels);
channels           32 libavresample/aarch64/audio_convert_init.c                                   int len, int channels);
channels           30 libavresample/arm/audio_convert_init.c                               int len, int channels);
channels           32 libavresample/arm/audio_convert_init.c                                   int len, int channels);
channels           43 libavresample/audio_convert.c                                     int len, int channels);
channels           46 libavresample/audio_convert.c                                       int channels);
channels           54 libavresample/audio_convert.c     int channels;
channels           71 libavresample/audio_convert.c                                enum AVSampleFormat in_fmt, int channels,
channels           96 libavresample/audio_convert.c             (!channels || ac->channels == channels)) {
channels          112 libavresample/audio_convert.c             (!channels || ac->channels == channels)) {
channels          157 libavresample/audio_convert.c                                        int len, int channels)               \
channels          162 libavresample/audio_convert.c     int os      = channels * out_bps;                                       \
channels          163 libavresample/audio_convert.c     for (ch = 0; ch < channels; ch++) {                                     \
channels          173 libavresample/audio_convert.c                                        int len, int channels)               \
channels          177 libavresample/audio_convert.c     int is     = channels * in_bps;                                         \
channels          179 libavresample/audio_convert.c     for (ch = 0; ch < channels; ch++) {                                     \
channels          263 libavresample/audio_convert.c                                      int channels, int sample_rate,
channels          276 libavresample/audio_convert.c     ac->channels = channels;
channels          282 libavresample/audio_convert.c         ac->dc = ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate,
channels          291 libavresample/audio_convert.c     in_planar  = ff_sample_fmt_is_planar(in_fmt, channels);
channels          292 libavresample/audio_convert.c     out_planar = ff_sample_fmt_is_planar(out_fmt, channels);
channels          296 libavresample/audio_convert.c         ac->planes    = in_planar ? ac->channels : 1;
channels          348 libavresample/audio_convert.c         if (!ff_sample_fmt_is_planar(ac->out_fmt, ac->channels)) {
channels          354 libavresample/audio_convert.c             if (ff_sample_fmt_is_planar(ac->in_fmt, ac->channels)) {
channels          367 libavresample/audio_convert.c                 for (p = 0; p < ac->channels; p++)
channels          370 libavresample/audio_convert.c                 convert(data, in->data[0], len, ac->channels);
channels          386 libavresample/audio_convert.c                 len *= in->channels;
channels          399 libavresample/audio_convert.c                                             ac->channels);
channels          401 libavresample/audio_convert.c                 ac->conv_interleave(out->data[0], in->data, len, ac->channels);
channels          406 libavresample/audio_convert.c                                               ac->channels);
channels          409 libavresample/audio_convert.c                                       ac->channels);
channels           49 libavresample/audio_convert.h                                enum AVSampleFormat in_fmt, int channels,
channels           67 libavresample/audio_convert.h                                      int channels, int sample_rate,
channels           51 libavresample/audio_data.c int ff_sample_fmt_is_planar(enum AVSampleFormat sample_fmt, int channels)
channels           53 libavresample/audio_data.c     if (channels == 1)
channels           59 libavresample/audio_data.c int ff_audio_data_set_channels(AudioData *a, int channels)
channels           61 libavresample/audio_data.c     if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS ||
channels           62 libavresample/audio_data.c         channels > a->allocated_channels)
channels           65 libavresample/audio_data.c     a->channels  = channels;
channels           66 libavresample/audio_data.c     a->planes    = a->is_planar ? channels : 1;
channels           74 libavresample/audio_data.c                        int channels, int nb_samples,
channels           83 libavresample/audio_data.c     if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS) {
channels           84 libavresample/audio_data.c         av_log(a, AV_LOG_ERROR, "invalid channel count: %d\n", channels);
channels           93 libavresample/audio_data.c     a->is_planar = ff_sample_fmt_is_planar(sample_fmt, channels);
channels           94 libavresample/audio_data.c     a->planes    = a->is_planar ? channels : 1;
channels           95 libavresample/audio_data.c     a->stride    = a->sample_size * (a->is_planar ? 1 : channels);
channels           97 libavresample/audio_data.c     for (p = 0; p < (a->is_planar ? channels : 1); p++) {
channels          107 libavresample/audio_data.c     a->channels           = channels;
channels          108 libavresample/audio_data.c     a->allocated_channels = channels;
channels          119 libavresample/audio_data.c AudioData *ff_audio_data_alloc(int channels, int nb_samples,
channels          125 libavresample/audio_data.c     if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS)
channels          137 libavresample/audio_data.c     a->is_planar = ff_sample_fmt_is_planar(sample_fmt, channels);
channels          138 libavresample/audio_data.c     a->planes    = a->is_planar ? channels : 1;
channels          139 libavresample/audio_data.c     a->stride    = a->sample_size * (a->is_planar ? 1 : channels);
channels          143 libavresample/audio_data.c     a->channels           = channels;
channels          144 libavresample/audio_data.c     a->allocated_channels = channels;
channels          230 libavresample/audio_data.c     if (dst->sample_fmt != src->sample_fmt || dst->channels < src->channels)
channels          284 libavresample/audio_data.c     if (dst->sample_fmt != src->sample_fmt || dst->channels != src->channels) {
channels           32 libavresample/audio_data.h int ff_sample_fmt_is_planar(enum AVSampleFormat sample_fmt, int channels);
channels           45 libavresample/audio_data.h     int channels;                       /**< channel count                  */
channels           58 libavresample/audio_data.h int ff_audio_data_set_channels(AudioData *a, int channels);
channels           80 libavresample/audio_data.h                        int channels, int nb_samples,
channels           95 libavresample/audio_data.h AudioData *ff_audio_data_alloc(int channels, int nb_samples,
channels           65 libavresample/dither.c     int channels;
channels          212 libavresample/dither.c                            int channels, int nb_samples)
channels          217 libavresample/dither.c     for (ch = 0; ch < channels; ch++) {
channels          294 libavresample/dither.c                           (float * const *)flt_data->data, src->channels,
channels          323 libavresample/dither.c     for (ch = 0; ch < c->channels; ch++)
channels          348 libavresample/dither.c                                int channels, int sample_rate, int apply_map)
channels          392 libavresample/dither.c         c->s16_data = ff_audio_data_alloc(channels, 1024, AV_SAMPLE_FMT_S16P,
channels          398 libavresample/dither.c                                            channels, sample_rate, 0);
channels          404 libavresample/dither.c         c->flt_data = ff_audio_data_alloc(channels, 1024, AV_SAMPLE_FMT_FLTP,
channels          411 libavresample/dither.c                                           channels, sample_rate, c->apply_map);
channels          416 libavresample/dither.c     c->state = av_mallocz(channels * sizeof(*c->state));
channels          419 libavresample/dither.c     c->channels = channels;
channels          428 libavresample/dither.c     for (ch = 0; ch < channels; ch++) {
channels           69 libavresample/dither.h                                int channels, int sample_rate, int apply_map);
channels          363 libavresample/resample.c             for (ch = 0; ch < c->buffer->channels; ch++) {
channels          387 libavresample/resample.c             for (ch = 0; ch < c->buffer->channels; ch++) {
channels          416 libavresample/resample.c     for (ch = 0; ch < c->buffer->channels; ch++) {
channels          420 libavresample/resample.c                                ch + 1 == c->buffer->channels, nearest_neighbour);
channels           43 libavresample/tests/avresample.c                                 int channels, int sample, int ch,           \
channels           51 libavresample/tests/avresample.c         out[0][sample * channels + ch] = v;                                 \
channels           61 libavresample/tests/avresample.c                        int channels, int sample, int ch, double v_dbl)
channels           65 libavresample/tests/avresample.c         put_sample_u8(data, sample_fmt, channels, sample, ch, v_dbl);
channels           68 libavresample/tests/avresample.c         put_sample_s16(data, sample_fmt, channels, sample, ch, v_dbl);
channels           71 libavresample/tests/avresample.c         put_sample_s32(data, sample_fmt, channels, sample, ch, v_dbl);
channels           74 libavresample/tests/avresample.c         put_sample_flt(data, sample_fmt, channels, sample, ch, v_dbl);
channels           77 libavresample/tests/avresample.c         put_sample_dbl(data, sample_fmt, channels, sample, ch, v_dbl);
channels           83 libavresample/tests/avresample.c                      int channels, int sample_rate, int nb_samples)
channels           91 libavresample/tests/avresample.c #define PUT_SAMPLE put_sample(data, sample_fmt, channels, k, ch, v);
channels           99 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++)
channels          108 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++)
channels          117 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++)
channels          124 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++)
channels          129 libavresample/tests/avresample.c     for (ch = 0; ch < channels; ch++) {
channels          135 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++) {
channels          147 libavresample/tests/avresample.c         for (ch = 0; ch < channels; ch++) {
channels          598 libavresample/utils.c         int channels = av_get_channel_layout_nb_channels(out->channel_layout);
channels          599 libavresample/utils.c         return samples / channels;
channels           47 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           49 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           52 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           54 libavresample/x86/audio_convert_init.c                                       int len, int channels);
channels           56 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           59 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           61 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           64 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels           66 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           68 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels           71 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels           73 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels           76 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           78 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           80 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           83 libavresample/x86/audio_convert_init.c                                  int channels);
channels           85 libavresample/x86/audio_convert_init.c                                  int channels);
channels           88 libavresample/x86/audio_convert_init.c                                   int channels);
channels           90 libavresample/x86/audio_convert_init.c                                   int channels);
channels           92 libavresample/x86/audio_convert_init.c                                   int channels);
channels           97 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels           99 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          101 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels          104 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          106 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          108 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          111 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels          113 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels          116 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          118 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          120 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          122 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          125 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels          127 libavresample/x86/audio_convert_init.c                                   int len, int channels);
channels          130 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          132 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          134 libavresample/x86/audio_convert_init.c                                    int len, int channels);
channels          137 libavresample/x86/audio_convert_init.c                                  int channels);
channels          139 libavresample/x86/audio_convert_init.c                                  int channels);
channels          142 libavresample/x86/audio_convert_init.c                                   int channels);
channels          144 libavresample/x86/audio_convert_init.c                                   int channels);
channels           40 libavutil/audio_fifo.c     int channels;                   /**< number of channels */
channels           59 libavutil/audio_fifo.c AVAudioFifo *av_audio_fifo_alloc(enum AVSampleFormat sample_fmt, int channels,
channels           66 libavutil/audio_fifo.c     if (av_samples_get_buffer_size(&buf_size, channels, nb_samples, sample_fmt, 1) < 0)
channels           73 libavutil/audio_fifo.c     af->channels    = channels;
channels           76 libavutil/audio_fifo.c     af->nb_buffers  = av_sample_fmt_is_planar(sample_fmt) ? channels : 1;
channels          100 libavutil/audio_fifo.c     if ((ret = av_samples_get_buffer_size(&buf_size, af->channels, nb_samples,
channels           66 libavutil/audio_fifo.h AVAudioFifo *av_audio_fifo_alloc(enum AVSampleFormat sample_fmt, int channels,
channels           35 libavutil/frame.c MAKE_ACCESSORS(AVFrame, frame, int,     channels)
channels           46 libavutil/frame.c                (frame)->channels == \
channels          271 libavutil/frame.c     int channels;
channels          276 libavutil/frame.c     if (!frame->channels)
channels          277 libavutil/frame.c         frame->channels = av_get_channel_layout_nb_channels(frame->channel_layout);
channels          279 libavutil/frame.c     channels = frame->channels;
channels          280 libavutil/frame.c     planes = planar ? channels : 1;
channels          284 libavutil/frame.c         ret = av_samples_get_buffer_size(&frame->linesize[0], channels,
channels          332 libavutil/frame.c     else if (frame->nb_samples > 0 && (frame->channel_layout || frame->channels > 0))
channels          449 libavutil/frame.c     av_assert1(dst->channels == 0);
channels          454 libavutil/frame.c     dst->channels       = src->channels;
channels          514 libavutil/frame.c         int ch = src->channels;
channels          586 libavutil/frame.c     av_assert1(dst->channels == 0);
channels          627 libavutil/frame.c     tmp.channels       = frame->channels;
channels          670 libavutil/frame.c         int channels = frame->channels;
channels          671 libavutil/frame.c         if (!channels)
channels          674 libavutil/frame.c         planes = av_sample_fmt_is_planar(frame->format) ? channels : 1;
channels          779 libavutil/frame.c     int channels = dst->channels;
channels          780 libavutil/frame.c     int planes   = planar ? channels : 1;
channels          784 libavutil/frame.c         dst->channels       != src->channels ||
channels          795 libavutil/frame.c                     dst->nb_samples, channels, dst->format);
channels          807 libavutil/frame.c     else if (dst->nb_samples > 0 && dst->channels > 0)
channels          606 libavutil/frame.h     int channels;
channels         1376 libavutil/hwcontext_opencl.c     int channels = 0, order = 0, depth = 0, step = 0;
channels         1428 libavutil/hwcontext_opencl.c         ++channels;
channels         1430 libavutil/hwcontext_opencl.c     if (channels == 0)
channels           88 libavutil/tests/audio_fifo.c                          ? samples : afifo->channels * samples;
channels           30 libswresample/aarch64/audio_convert_init.c void swri_oldapi_conv_fltp_to_s16_2ch_neon(int16_t *dst, float *const *src, int len, int channels);
channels           31 libswresample/aarch64/audio_convert_init.c void swri_oldapi_conv_fltp_to_s16_nch_neon(int16_t *dst, float *const *src, int len, int channels);
channels           42 libswresample/aarch64/audio_convert_init.c     int channels;
channels           43 libswresample/aarch64/audio_convert_init.c     for(channels=3; channels<SWR_CH_MAX && src[channels]; channels++)
channels           45 libswresample/aarch64/audio_convert_init.c     swri_oldapi_conv_fltp_to_s16_nch_neon((int16_t*)*dst, (float *const*)src, len, channels);
channels           51 libswresample/aarch64/audio_convert_init.c                                        int channels)
channels           60 libswresample/aarch64/audio_convert_init.c         if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels == 2)
channels           62 libswresample/aarch64/audio_convert_init.c         if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels >  2)
channels           30 libswresample/arm/audio_convert_init.c void swri_oldapi_conv_fltp_to_s16_2ch_neon(int16_t *dst, float *const *src, int len, int channels);
channels           31 libswresample/arm/audio_convert_init.c void swri_oldapi_conv_fltp_to_s16_nch_neon(int16_t *dst, float *const *src, int len, int channels);
channels           42 libswresample/arm/audio_convert_init.c     int channels;
channels           43 libswresample/arm/audio_convert_init.c     for(channels=3; channels<SWR_CH_MAX && src[channels]; channels++)
channels           45 libswresample/arm/audio_convert_init.c     swri_oldapi_conv_fltp_to_s16_nch_neon((int16_t*)*dst, (float *const*)src, len, channels);
channels           51 libswresample/arm/audio_convert_init.c                                        int channels)
channels           60 libswresample/arm/audio_convert_init.c         if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels == 2)
channels           62 libswresample/arm/audio_convert_init.c         if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels >  2)
channels          147 libswresample/audioconvert.c                                        int channels, const int *ch_map,
channels          159 libswresample/audioconvert.c     if(channels == 1){
channels          164 libswresample/audioconvert.c     ctx->channels = channels;
channels          179 libswresample/audioconvert.c     if(HAVE_X86ASM && HAVE_MMX) swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels);
channels          180 libswresample/audioconvert.c     if(ARCH_ARM)              swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels);
channels          181 libswresample/audioconvert.c     if(ARCH_AARCH64)          swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels);
channels          198 libswresample/audioconvert.c     av_assert0(ctx->channels == out->ch_count);
channels          221 libswresample/audioconvert.c         av_assert2(ctx->channels == SWR_CH_MAX || !in->ch[ctx->channels]);
channels          236 libswresample/audioconvert.c     for(ch=0; ch<ctx->channels; ch++){
channels           40 libswresample/audioconvert.h     int channels;
channels           61 libswresample/audioconvert.h                                        int channels, const int *ch_map,
channels          118 libswresample/swresample_frame.c         int channels = av_get_channel_layout_nb_channels(out->channel_layout);
channels          119 libswresample/swresample_frame.c         return samples / channels;
channels          212 libswresample/swresample_internal.h                                  int channels);
channels          216 libswresample/swresample_internal.h                                  int channels);
channels          220 libswresample/swresample_internal.h                                  int channels);
channels          147 libswresample/tests/swresample.c                      int channels, int sample_rate, int nb_samples)
channels          156 libswresample/tests/swresample.c #define PUT_SAMPLE set(data, ch, k, channels, sample_fmt, v);
channels          165 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++)
channels          174 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++)
channels          183 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++)
channels          190 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++)
channels          195 libswresample/tests/swresample.c     for (ch = 0; ch < channels; ch++) {
channels          201 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++) {
channels          213 libswresample/tests/swresample.c         for (ch = 0; ch < channels; ch++) {
channels           39 libswresample/x86/audio_convert_init.c                                  int channels){
channels           58 libswresample/x86/audio_convert_init.c         if(channels == 6) {
channels           64 libswresample/x86/audio_convert_init.c         if(channels == 6) {
channels           82 libswresample/x86/audio_convert_init.c         if(channels == 2) {
channels          118 libswresample/x86/audio_convert_init.c         if(channels == 6) {
channels          129 libswresample/x86/audio_convert_init.c         if(channels == 8) {
channels          139 libswresample/x86/audio_convert_init.c         if(channels == 2) {
channels          153 libswresample/x86/audio_convert_init.c         if(channels == 6) {
channels          168 libswresample/x86/audio_convert_init.c         if(channels == 8) {
channels           39 tests/api/api-flac-test.c                               int channels, int frame_size)
channels           44 tests/api/api-flac-test.c         frame_data[channels * j] = 10000 * ((j / 10 * i) % 2);
channels           45 tests/api/api-flac-test.c         for (k = 1; k < channels; k++)
channels           46 tests/api/api-flac-test.c             frame_data[channels * j + k] = frame_data[channels * j] * (k + 1);
channels          158 tests/api/api-flac-test.c                            enc_ctx->channels, enc_ctx->frame_size);
channels          159 tests/api/api-flac-test.c         in_frame_bytes = in_frame->nb_samples * in_frame->channels * sizeof(uint16_t);
channels          200 tests/api/api-flac-test.c                 out_frame_bytes = out_frame->nb_samples * out_frame->channels * sizeof(uint16_t);
channels          117 tests/audiogen.c static void put_wav_header(int sample_rate, int channels, int nb_samples)
channels          119 tests/audiogen.c     int block_align = SAMPLE_SIZE * channels;
channels          127 tests/audiogen.c     put16(channels);
channels           93 tests/checkasm/alacdsp.c     static const char * const channels[2] = { "mono", "stereo" };
channels           98 tests/checkasm/alacdsp.c         if (check_func(c.append_extra_bits[ch-1], "alac_append_extra_bits_%s", channels[ch-1])) {
channels           35 tests/checkasm/flacdsp.c             for (j = 0; j < channels; j++) {                \
channels           44 tests/checkasm/flacdsp.c                               int channels, int bits) {
channels           45 tests/checkasm/flacdsp.c     declare_func(void, uint8_t **out, int32_t **in, int channels, int len, int shift);
channels           48 tests/checkasm/flacdsp.c     call_ref(ref_dst, (int32_t **)ref_src, channels, BUF_SIZE / sizeof(int32_t), 8);
channels           49 tests/checkasm/flacdsp.c     call_new(new_dst, (int32_t **)new_src, channels, BUF_SIZE / sizeof(int32_t), 8);
channels           50 tests/checkasm/flacdsp.c     if (memcmp(*ref_dst, *new_dst, bits == 16 ? BUF_SIZE * (channels/2) : BUF_SIZE * channels) ||
channels           51 tests/checkasm/flacdsp.c         memcmp(*ref_src, *new_src, BUF_SIZE * channels))
channels           53 tests/checkasm/flacdsp.c     bench_new(new_dst, (int32_t **)new_src, channels, BUF_SIZE / sizeof(int32_t), 8);
channels           77 tools/ismindex.c     int sample_rate, channels;
channels          577 tools/ismindex.c             track->channels    = st->codecpar->channels;
channels          757 tools/ismindex.c                     track->channels, track->blocksize, track->tag);
channels           42 tools/sidxindex.c     int sample_rate, channels;
channels          194 tools/sidxindex.c             track->channels    = st->codecpar->channels;
channels          305 tools/sidxindex.c             int width = 0, height = 0, sample_rate = 0, channels = 0, bitrate = 0;
channels          313 tools/sidxindex.c                     channels = track->channels;
channels          331 tools/sidxindex.c             if (channels > 0)
channels          332 tools/sidxindex.c                 fprintf(out, "\t\t\t\t<AudioChannelConfiguration schemeIdUri=\"urn:mpeg:dash:23003:3:audio_channel_configuration:2011\" value=\"%d\" />\n", channels);
channels           86 tools/target_bsf_fuzzer.c         bsf->par_in->channels                   = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS;
channels          226 tools/target_dec_fuzzer.c         ctx->channels                           = (unsigned)bytestream2_get_le32(&gbc) % FF_SANE_NB_CHANNELS;
channels          176 tools/uncoded_frame.c             st->stream->codecpar->channels       = av_buffersink_get_channels(st->sink);