summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-08-01 10:48:35 -0700
committerJerome Jiang <jianj@google.com>2019-08-01 14:57:28 -0700
commit8894c766c6d9460d12e52d350e7084b143d6109b (patch)
tree0f648fecff2fc9e44f27def85926a5ab3f0b7ef5 /test
parent59b7f2f36f534ec53caba6ee049bfafca02511c6 (diff)
downloadlibvpx-8894c766c6d9460d12e52d350e7084b143d6109b.tar
libvpx-8894c766c6d9460d12e52d350e7084b143d6109b.tar.gz
libvpx-8894c766c6d9460d12e52d350e7084b143d6109b.tar.bz2
libvpx-8894c766c6d9460d12e52d350e7084b143d6109b.zip
Fix saturation issue in vp9_quantize_fp_neon
Change-Id: I7850a5c5aea3633e50e9a2efc8116b9e16383a8f
Diffstat (limited to 'test')
-rw-r--r--test/vp9_quantize_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc
index cce6b6f19..d094904f1 100644
--- a/test/vp9_quantize_test.cc
+++ b/test/vp9_quantize_test.cc
@@ -77,7 +77,12 @@ class VP9QuantizeBase : public AbstractBench {
coeff_(Buffer<tran_low_t>(max_size_, max_size_, 0, 16)),
qcoeff_(Buffer<tran_low_t>(max_size_, max_size_, 0, 32)),
dqcoeff_(Buffer<tran_low_t>(max_size_, max_size_, 0, 32)) {
+ // TODO(jianj): SSSE3 and AVX2 tests fail on extreme values.
+#if HAVE_NEON
+ max_value_ = (1 << (7 + bit_depth_)) - 1;
+#else
max_value_ = (1 << bit_depth_) - 1;
+#endif
zbin_ptr_ =
reinterpret_cast<int16_t *>(vpx_memalign(16, 8 * sizeof(*zbin_ptr_)));
round_fp_ptr_ = reinterpret_cast<int16_t *>(