summaryrefslogtreecommitdiff
path: root/test/vp9_quantize_test.cc
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2022-08-15 06:14:49 -0700
committerScott LaVarnway <slavarnway@google.com>2022-08-15 10:45:43 -0700
commit763167aac7e58452dd6db5ce4db6703b88a20dec (patch)
treee9111239c9bbc13fa8b0ee5f8352d8166b0241e3 /test/vp9_quantize_test.cc
parentc082f0ca151f4e16ce7e459dd7018a16db3a763c (diff)
downloadlibvpx-763167aac7e58452dd6db5ce4db6703b88a20dec.tar
libvpx-763167aac7e58452dd6db5ce4db6703b88a20dec.tar.gz
libvpx-763167aac7e58452dd6db5ce4db6703b88a20dec.tar.bz2
libvpx-763167aac7e58452dd6db5ce4db6703b88a20dec.zip
VPX: Add vp9_highbd_quantize_fp_neon().
Up to 4.1x faster than vp9_highbd_quantize_fp_c() for full calculations. ~1.3% overall encoder improvement for the test clip used. Bug: b/237714063 Change-Id: I8c6466bdbcf1c398b1d8b03cab4165c1d8556b0c
Diffstat (limited to 'test/vp9_quantize_test.cc')
-rw-r--r--test/vp9_quantize_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/vp9_quantize_test.cc b/test/vp9_quantize_test.cc
index b93635023..5c75c4b08 100644
--- a/test/vp9_quantize_test.cc
+++ b/test/vp9_quantize_test.cc
@@ -616,6 +616,16 @@ INSTANTIATE_TEST_SUITE_P(
#endif // HAVE_AVX2
#if HAVE_NEON
+#if CONFIG_VP9_HIGHBITDEPTH
+INSTANTIATE_TEST_SUITE_P(
+ NEON, VP9QuantizeTest,
+ ::testing::Values(make_tuple(&QuantFPWrapper<vp9_quantize_fp_neon>,
+ &QuantFPWrapper<quantize_fp_nz_c>, VPX_BITS_8,
+ 16, true),
+ make_tuple(&QuantFPWrapper<vp9_highbd_quantize_fp_neon>,
+ &QuantFPWrapper<vp9_highbd_quantize_fp_c>,
+ VPX_BITS_12, 16, true)));
+#else
INSTANTIATE_TEST_SUITE_P(
NEON, VP9QuantizeTest,
::testing::Values(make_tuple(&vpx_quantize_b_neon, &vpx_quantize_b_c,
@@ -629,6 +639,7 @@ INSTANTIATE_TEST_SUITE_P(
make_tuple(&QuantFPWrapper<vp9_quantize_fp_32x32_neon>,
&QuantFPWrapper<vp9_quantize_fp_32x32_c>,
VPX_BITS_8, 32, true)));
+#endif // CONFIG_VP9_HIGHBITDEPTH
#endif // HAVE_NEON
#if HAVE_VSX && !CONFIG_VP9_HIGHBITDEPTH