Tuning of baseline Rd equation to improve behavior at the

low and high Q ends.
This commit is contained in:
Paul Wilkins 2010-06-11 15:10:51 +01:00
parent 8389f1967c
commit f6a58d620d

View File

@ -237,12 +237,12 @@ void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue)
vp8_clear_system_state(); //__asm emms;
cpi->RDMULT = (int)( (0.0001 * (capped_q * capped_q * capped_q * capped_q))
-(0.0125 * (capped_q * capped_q * capped_q))
-(0.015 * (capped_q * capped_q * capped_q))
+(3.25 * (capped_q * capped_q))
-(12.5 * capped_q) + 50.0);
-(17.5 * capped_q) + 125.0);
if (cpi->RDMULT < 50)
cpi->RDMULT = 50;
if (cpi->RDMULT < 125)
cpi->RDMULT = 125;
if (cpi->pass == 2 && (cpi->common.frame_type != KEY_FRAME))
{