shithub: libvpx

Download patch

ref: 2ff2376fbcb240c202a51d0f77b339da4ee63450
parent: f129e09529e7d9e78acc39c44714d6e5fc2f0008
author: Jerome Jiang <[email protected]>
date: Thu Jan 12 12:59:22 EST 2017

vp9: Update threshold for partition copy.

Avoid many visual artifacts. Compression quality is improved by more
than 1%. Encode speed is about 4% for QVGA and 6% for VGA faster on
android.

Change-Id: I4dd0a81429ddf7efdef1e80a191da5fb8de8e8af

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -527,11 +527,13 @@
                                      : 1000;
       cpi->vbp_bsize_min = BLOCK_16X16;
       if (cm->width <= 352 && cm->height <= 288)
-        cpi->vbp_threshold_copy = 40960;
+        cpi->vbp_threshold_copy = 4000;
+      else if (cm->width <= 640 && cm->height <= 360)
+        cpi->vbp_threshold_copy = 9000;
       else
-        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 6) > 32000
-                                      ? (cpi->y_dequant[q][1] << 6)
-                                      : 32000;
+        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 5) > 16000
+                                      ? (cpi->y_dequant[q][1] << 5)
+                                      : 16000;
     }
     cpi->vbp_threshold_minmax = 15 + (q >> 3);
   }