summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2017-08-23 15:59:11 -0700
committerJohann <johannkoenig@google.com>2017-08-23 15:59:11 -0700
commite89344d61a723e904750b40d07e71b350c674f47 (patch)
treeb6d18fd7ae22961a4e83b68756fbfcaf6562c26c
parentf53b656207daebaee57d2162e8534e34c0b3f6a5 (diff)
downloadlibvpx-e89344d61a723e904750b40d07e71b350c674f47.tar
libvpx-e89344d61a723e904750b40d07e71b350c674f47.tar.gz
libvpx-e89344d61a723e904750b40d07e71b350c674f47.tar.bz2
libvpx-e89344d61a723e904750b40d07e71b350c674f47.zip
quantize test: set threshold for 32x32
Change-Id: I77be617c7d7c64929dd51c6077322f4f8ad23897
-rw-r--r--test/vp9_quantize_test.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc
index fcf86e9c6..a6ad941bd 100644
--- a/test/vp9_quantize_test.cc
+++ b/test/vp9_quantize_test.cc
@@ -299,7 +299,13 @@ TEST_P(VP9QuantizeTest, DISABLED_Speed) {
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;