comparison utils.c @ 1505:010f76d07a27 libavcodec

use lagrange multipler instead of qp for ratecontrol, this may break some things, tell me ASAP if u notice anything broken quality which was 1..31 float is now a 1..FF_LAMBDA_MAX int, and FF_QP2LAMBDA * qp can be used to convert to the new range
author michaelni
date Tue, 07 Oct 2003 11:32:40 +0000
parents 670fca257a69
children 2312ceb69d17
comparison
equal deleted inserted replaced
1504:df7ab60d1ee0 1505:010f76d07a27
270 s->me_method= ME_EPZS; 270 s->me_method= ME_EPZS;
271 s->get_buffer= avcodec_default_get_buffer; 271 s->get_buffer= avcodec_default_get_buffer;
272 s->release_buffer= avcodec_default_release_buffer; 272 s->release_buffer= avcodec_default_release_buffer;
273 s->get_format= avcodec_default_get_format; 273 s->get_format= avcodec_default_get_format;
274 s->me_subpel_quality=8; 274 s->me_subpel_quality=8;
275 s->lmin= FF_QP2LAMBDA * s->qmin;
276 s->lmax= FF_QP2LAMBDA * s->qmax;
275 277
276 s->intra_quant_bias= FF_DEFAULT_QUANT_BIAS; 278 s->intra_quant_bias= FF_DEFAULT_QUANT_BIAS;
277 s->inter_quant_bias= FF_DEFAULT_QUANT_BIAS; 279 s->inter_quant_bias= FF_DEFAULT_QUANT_BIAS;
278 } 280 }
279 281