Lines Matching defs:channels
94 int channels = avctx->ch_layout.nb_channels;
98 bytestream_put_byte(&p, channels);
108 bytestream_put_buffer(&p, channel_mapping, channels);
184 av_log(avctx, AV_LOG_ERROR, "Opus mapping family undefined for %d channels.\n",
198 "channel layout for %d channels.\n", avctx->ch_layout.nb_channels);
237 /* Opus expects channels to be in Vorbis order. */
264 int channels = avctx->ch_layout.nb_channels;
352 mapping_family = channels > 2 ? 1 : 0;
353 coupled_stream_count = opus_coupled_streams[channels - 1];
354 opus->stream_count = channels - coupled_stream_count;
356 opus_vorbis_channel_map[channels - 1],
357 channels * sizeof(*libopus_channel_mapping));
360 avctx->sample_rate, channels, opus->stream_count,
362 libavcodec_libopus_channel_map[channels - 1],
370 avctx->sample_rate, channels, mapping_family,
389 if (avctx->bit_rate < 500 || avctx->bit_rate > 256000 * channels) {
392 256000 * channels);
404 header_size = 19 + (mapping_family == 0 ? 0 : 2 + channels);
413 opus->samples = av_calloc(frame_size, channels *
460 const int channels = avctx->ch_layout.nb_channels;
461 const int sample_size = channels * bytes_per_sample;
474 channels, frame->nb_samples, bytes_per_sample);