Mercurial > libavcodec.hg
comparison ratecontrol.c @ 932:176fd8c8e8a8 libavcodec
mb qp limits
author | michaelni |
---|---|
date | Wed, 18 Dec 2002 10:09:43 +0000 |
parents | 6bcb214d6a17 |
children | 693a0797398f |
comparison
equal
deleted
inserted
replaced
931:5bc072934017 | 932:176fd8c8e8a8 |
---|---|
472 const float p_masking = s->avctx->p_masking; | 472 const float p_masking = s->avctx->p_masking; |
473 float bits_sum= 0.0; | 473 float bits_sum= 0.0; |
474 float cplx_sum= 0.0; | 474 float cplx_sum= 0.0; |
475 float cplx_tab[s->mb_num]; | 475 float cplx_tab[s->mb_num]; |
476 float bits_tab[s->mb_num]; | 476 float bits_tab[s->mb_num]; |
477 const int qmin= 2; //s->avctx->mb_qmin; | 477 const int qmin= s->avctx->mb_qmin; |
478 const int qmax= 31; //s->avctx->mb_qmax; | 478 const int qmax= s->avctx->mb_qmax; |
479 Picture * const pic= &s->current_picture; | 479 Picture * const pic= &s->current_picture; |
480 | 480 |
481 for(i=0; i<s->mb_num; i++){ | 481 for(i=0; i<s->mb_num; i++){ |
482 float temp_cplx= sqrt(pic->mc_mb_var[i]); | 482 float temp_cplx= sqrt(pic->mc_mb_var[i]); |
483 float spat_cplx= sqrt(pic->mb_var[i]); | 483 float spat_cplx= sqrt(pic->mb_var[i]); |