shithub: libvpx

Download patch

ref: 1b63238b678e24dfcd0ea17fc0d63c70b4b3d1a8
parent: 0941ff72a00732cea6750477edfe649348e699de
parent: 064a9eca494a668d983261ae6c0de16515b61718
author: Marco Paniconi <[email protected]>
date: Thu Nov 12 01:08:38 EST 2015

Merge "Non-rd partition: reduce variance threshold low resolutions."

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -497,10 +497,10 @@
         if (cpi->noise_estimate.level == kMedium)
           threshold_base = threshold_base << 1;
     }
-    thresholds[1] = threshold_base;
     if (cm->width <= 352 && cm->height <= 288) {
-      thresholds[0] = threshold_base >> 2;
-      thresholds[2] = threshold_base << 3;
+      thresholds[0] = threshold_base >> 3;
+      thresholds[1] = threshold_base >> 1;
+      thresholds[2] = threshold_base << 2;
     } else {
       thresholds[0] = threshold_base;
       thresholds[1] = (5 * threshold_base) >> 2;
@@ -526,7 +526,7 @@
       cpi->vbp_bsize_min = BLOCK_8X8;
     } else {
       if (cm->width <= 352 && cm->height <= 288)
-        cpi->vbp_threshold_sad = 100;
+        cpi->vbp_threshold_sad = 10;
       else
         cpi->vbp_threshold_sad = (cpi->y_dequant[q][1] << 1) > 1000 ?
             (cpi->y_dequant[q][1] << 1) : 1000;