shithub: libvpx

Download patch

ref: 3a7ad43fb81a456909d02dc4c2feff289a17430c
parent: 8e8e2d11bfb2f6dd90051b2ca897190fe99a0fbd
author: Jerome Jiang <[email protected]>
date: Tue Jan 24 12:20:05 EST 2017

vp9: Adjust threshold for y sad used in copying partition.

Visual quality improvement is observed for noisy clips. Little effects
on speed tests on Nexus 6.

Change-Id: Ib38e04002220708c34102de7b5c36e9940775d89

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -531,9 +531,9 @@
       else if (cm->width <= 640 && cm->height <= 360)
         cpi->vbp_threshold_copy = 8000;
       else
-        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 4) > 16000
-                                      ? (cpi->y_dequant[q][1] << 4)
-                                      : 16000;
+        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 3) > 8000
+                                      ? (cpi->y_dequant[q][1] << 3)
+                                      : 8000;
     }
     cpi->vbp_threshold_minmax = 15 + (q >> 3);
   }