shithub: libvpx

Download patch

ref: 2dc0a5132da161265c302f5f5cd55398c1b4b75c
parent: d080c9252488727fa7ae6e518db694b703c01e48
parent: e89344d61a723e904750b40d07e71b350c674f47
author: Johann Koenig <johannkoenig@google.com>
date: Thu Aug 24 10:04:29 EDT 2017

Merge "quantize test: set threshold for 32x32"

--- a/test/vp9_quantize_test.cc
+++ b/test/vp9_quantize_test.cc
@@ -299,7 +299,13 @@
 
       if (i == 0) {
         // When |coeff values| are less than zbin the results are 0.
-        for (int j = 0; j < 8; ++j) zbin_ptr_[j] = 100;
+        int threshold = 100;
+        if (max_size_ == 32) {
+          // For 32x32, the threshold is halved. Double it to keep the values
+          // from clearing it.
+          threshold = 200;
+        }
+        for (int j = 0; j < 8; ++j) zbin_ptr_[j] = threshold;
         coeff.Set(&rnd, -99, 99);
       } else if (i == 1) {
         for (int j = 0; j < 8; ++j) zbin_ptr_[j] = 50;