comparison ratecontrol.c @ 2494:36d70fbb31c5 libavcodec

mb_lmin/max to limit the per mb quality for the ratecontrol independant from the frame limits
author michael
date Wed, 02 Feb 2005 19:33:48 +0000
parents 258120c61eea
children 511e3afc43e1
comparison
equal deleted inserted replaced
2493:258120c61eea 2494:36d70fbb31c5
504 const float border_masking = s->avctx->border_masking; 504 const float border_masking = s->avctx->border_masking;
505 float bits_sum= 0.0; 505 float bits_sum= 0.0;
506 float cplx_sum= 0.0; 506 float cplx_sum= 0.0;
507 float cplx_tab[s->mb_num]; 507 float cplx_tab[s->mb_num];
508 float bits_tab[s->mb_num]; 508 float bits_tab[s->mb_num];
509 const int qmin= s->avctx->lmin; 509 const int qmin= s->avctx->mb_lmin;
510 const int qmax= s->avctx->lmax; 510 const int qmax= s->avctx->mb_lmax;
511 Picture * const pic= &s->current_picture; 511 Picture * const pic= &s->current_picture;
512 const int mb_width = s->mb_width; 512 const int mb_width = s->mb_width;
513 const int mb_height = s->mb_height; 513 const int mb_height = s->mb_height;
514 514
515 for(i=0; i<s->mb_num; i++){ 515 for(i=0; i<s->mb_num; i++){