]> granicus.if.org Git - libvpx/commitdiff
vp9: Adjust threshold for copy partiton, for speed=8.
authorMarco <marpan@google.com>
Fri, 13 Jan 2017 18:27:51 +0000 (10:27 -0800)
committerMarco <marpan@google.com>
Fri, 13 Jan 2017 18:29:31 +0000 (10:29 -0800)
Change-Id: I4799cb2b67d911ee385e6d6992c61633ca77e69d

vp9/encoder/vp9_encodeframe.c

index e11307ef7960b192422b50c82b8f04f12eee88cb..58d556260ecda70baa25d0562c7d49b48e56b255 100644 (file)
@@ -529,10 +529,10 @@ void vp9_set_variance_partition_thresholds(VP9_COMP *cpi, int q) {
       if (cm->width <= 352 && cm->height <= 288)
         cpi->vbp_threshold_copy = 4000;
       else if (cm->width <= 640 && cm->height <= 360)
-        cpi->vbp_threshold_copy = 9000;
+        cpi->vbp_threshold_copy = 8000;
       else
-        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 5) > 16000
-                                      ? (cpi->y_dequant[q][1] << 5)
+        cpi->vbp_threshold_copy = (cpi->y_dequant[q][1] << 4) > 16000
+                                      ? (cpi->y_dequant[q][1] << 4)
                                       : 16000;
     }
     cpi->vbp_threshold_minmax = 15 + (q >> 3);