comparison ratecontrol.c @ 463:ba3e863aa316 libavcodec

10l found&patch by D Richard Felker III <dalias at aerifal.cx>
author michaelni
date Sun, 02 Jun 2002 15:49:21 +0000
parents 295ce90742ff
children c0005de2be59
comparison
equal deleted inserted replaced
462:3fdd0627f6bd 463:ba3e863aa316
340 else if (short_term_q<1.0) short_term_q=1.0; 340 else if (short_term_q<1.0) short_term_q=1.0;
341 341
342 q= 1/((1/avg_quantizer[pict_type] - 1/short_term_q)*s->qcompress + 1/short_term_q); 342 q= 1/((1/avg_quantizer[pict_type] - 1/short_term_q)*s->qcompress + 1/short_term_q);
343 if (q<qmin) q=qmin; 343 if (q<qmin) q=qmin;
344 else if(q>qmax) q=qmax; 344 else if(q>qmax) q=qmax;
345 printf("lq:%f, sq:%f t:%f q:%f\n", avg_quantizer[rce->pict_type], short_term_q, bits_left, q); 345 //printf("lq:%f, sq:%f t:%f q:%f\n", avg_quantizer[rce->pict_type], short_term_q, bits_left, q);
346 rce->new_qscale= q; 346 rce->new_qscale= q;
347 } 347 }
348 348
349 /* smooth curve */ 349 /* smooth curve */
350 350