Lines Matching refs:qmax
332 if (frame_size > max_rate && s->qscale == s->avctx->qmax) {
333 av_log(s->avctx, AV_LOG_ERROR, "max bitrate possibly too small or try trellis with large lmax or increase qmax\n");
476 * Get the qmin & qmax for pict_type.
481 int qmax = s->avctx->lmax;
483 assert(qmin <= qmax);
488 qmax = (int)(qmax * FFABS(s->avctx->b_quant_factor) + s->avctx->b_quant_offset + 0.5);
492 qmax = (int)(qmax * FFABS(s->avctx->i_quant_factor) + s->avctx->i_quant_offset + 0.5);
497 qmax = av_clip(qmax, 1, FF_LAMBDA_MAX);
499 if (qmax < qmin)
500 qmax = qmin;
503 *qmax_ret = qmax;
515 int qmin, qmax;
517 get_qminmax(&qmin, &qmax, s, pict_type);
573 if (s->avctx->rc_qsquish == 0.0 || qmin == qmax) {
576 else if (q > qmax)
577 q = qmax;
580 double max2 = log(qmax);
628 const int qmax = s->avctx->mb_lmax;
691 /* handle qmin/qmax clipping */
698 if (newq > qmax) {
700 cplx_sum -= cplx_tab[i] * q / qmax;
723 if (intq > qmax)
724 intq = qmax;
745 int qmin, qmax;
768 get_qminmax(&qmin, &qmax, s, pict_type);
886 qmin, q, qmax, picture_number,
895 else if (q > qmax)
896 q = qmax;
1042 s->avctx->qmin, s->avctx->qmax);