]> granicus.if.org Git - libvpx/commitdiff
Remove a special case
authorYaowu Xu <yaowu@google.com>
Thu, 20 Dec 2018 00:49:08 +0000 (16:49 -0800)
committerYaowu Xu <yaowu@google.com>
Thu, 20 Dec 2018 01:14:07 +0000 (01:14 +0000)
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

vp9/encoder/vp9_rd.c

index c01e5f81be8968a570c1a960c4c6e0bbc85f6a8c..894b1497b3bdc8131351227aa83d8f8e4f5e7b25 100644 (file)
@@ -179,9 +179,7 @@ int vp9_compute_rd_mult_based_on_qindex(const VP9_COMP *cpi, int qindex) {
   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;