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 Originally committed as revision 2348 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -272,6 +272,8 @@ void avcodec_get_context_defaults(AVCodecContext *s){
|
||||
s->release_buffer= avcodec_default_release_buffer;
|
||||
s->get_format= avcodec_default_get_format;
|
||||
s->me_subpel_quality=8;
|
||||
s->lmin= FF_QP2LAMBDA * s->qmin;
|
||||
s->lmax= FF_QP2LAMBDA * s->qmax;
|
||||
|
||||
s->intra_quant_bias= FF_DEFAULT_QUANT_BIAS;
|
||||
s->inter_quant_bias= FF_DEFAULT_QUANT_BIAS;
|
||||
|
Reference in New Issue
Block a user