Lines Matching defs:avctx
67 static void search_for_quantizers_twoloop(AVCodecContext *avctx,
73 int destbits = avctx->bit_rate * 1024.0 / avctx->sample_rate
74 / ((avctx->flags & AV_CODEC_FLAG_QSCALE) ? 2.0f : avctx->ch_layout.nb_channels)
136 * (lambda / (avctx->global_quality ? avctx->global_quality : 120));
139 if (avctx->flags & AV_CODEC_FLAG_QSCALE) {
187 int frame_bit_rate = (avctx->flags & AV_CODEC_FLAG_QSCALE)
188 ? (refbits * rate_bandwidth_multiplier * avctx->sample_rate / 1024)
189 : (avctx->bit_rate / avctx->ch_layout.nb_channels);
195 if (avctx->cutoff > 0) {
196 bandwidth = avctx->cutoff;
198 bandwidth = FFMAX(3000, AAC_CUTOFF_FROM_BITRATE(frame_bit_rate, 1, avctx->sample_rate));
202 cutoff = bandwidth * 2 * wlen / avctx->sample_rate;
203 pns_start_pos = NOISE_LOW_LIMIT * 2 * wlen / avctx->sample_rate;
335 if (!(avctx->flags & AV_CODEC_FLAG_QSCALE)) {
349 if (!(avctx->flags & AV_CODEC_FLAG_QSCALE)) {