ref: 7a19474d5df9825d73624eddc727c32c08b5c1b9
parent: 632ee6aa76df257a90430387eca6a6e79780491f
author: Yaowu Xu <[email protected]>
date: Wed Dec 19 11:49:08 EST 2018
Remove a special case The special case was put in to prevent a lossless test failure, the issue has been dealt with by a recent fix of skip condition in lossless mode. Change-Id: Ia25d2bf6beead2208841b4f012171dffac15f411
--- a/vp9/encoder/vp9_rd.c
+++ b/vp9/encoder/vp9_rd.c
@@ -179,9 +179,7 @@
uint32_t rdmult = q * q;
if (cpi->common.frame_type != KEY_FRAME) {
- if (qindex < 1)
- rdmult = rdmult * 3 + (rdmult * 2 / 3);
- else if (qindex < 128)
+ if (qindex < 128)
rdmult = rdmult * 4;
else if (qindex < 190)
rdmult = rdmult * 4 + rdmult / 2;