summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2016-10-01 11:59:31 -0700
committerJames Zern <jzern@google.com>2016-10-05 11:14:25 -0700
commita6be7ba1aaf67989bf97bae04707fe9bf5c7d4d4 (patch)
treee39f5ed813935266f6302dc7f214c91301b7a4c2 /test
parentefb56ec3ff6c8bfdeb1b29c97374017e1556aa16 (diff)
downloadlibvpx-a6be7ba1aaf67989bf97bae04707fe9bf5c7d4d4.tar
libvpx-a6be7ba1aaf67989bf97bae04707fe9bf5c7d4d4.tar.gz
libvpx-a6be7ba1aaf67989bf97bae04707fe9bf5c7d4d4.tar.bz2
libvpx-a6be7ba1aaf67989bf97bae04707fe9bf5c7d4d4.zip
enable idct*_1_add_neon in high-bitdepth builds
these are compatible as they only load one element of the input so the larger size of tran_low_t makes no difference in little endian builds. note the asm is incompatible with big-endian, but there are other points of failure there so currently it's considered unsupported. BUG=webm:1294 Change-Id: Icd2665a0699bccae92d1bea43a95b0a83fb17028
Diffstat (limited to 'test')
-rw-r--r--test/partial_idct_test.cc17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/partial_idct_test.cc b/test/partial_idct_test.cc
index 85946fbbf..9eb4d9dbb 100644
--- a/test/partial_idct_test.cc
+++ b/test/partial_idct_test.cc
@@ -201,7 +201,19 @@ INSTANTIATE_TEST_CASE_P(
make_tuple(&vpx_fdct4x4_c, &vpx_idct4x4_16_add_c,
&vpx_idct4x4_1_add_c, TX_4X4, 1)));
-#if HAVE_NEON && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE
+#if HAVE_NEON && !CONFIG_EMULATE_HARDWARE
+#if CONFIG_VP9_HIGHBITDEPTH
+INSTANTIATE_TEST_CASE_P(
+ NEON, PartialIDctTest,
+ ::testing::Values(make_tuple(&vpx_fdct32x32_c, &vpx_idct32x32_1024_add_c,
+ &vpx_idct32x32_1_add_neon, TX_32X32, 1),
+ make_tuple(&vpx_fdct16x16_c, &vpx_idct16x16_256_add_c,
+ &vpx_idct16x16_1_add_neon, TX_16X16, 1),
+ make_tuple(&vpx_fdct8x8_c, &vpx_idct8x8_64_add_c,
+ &vpx_idct8x8_1_add_neon, TX_8X8, 1),
+ make_tuple(&vpx_fdct4x4_c, &vpx_idct4x4_16_add_c,
+ &vpx_idct4x4_1_add_neon, TX_4X4, 1)));
+#else // !CONFIG_VP9_HIGHBITDEPTH
// 32x32_34_ 32x32_135_ are implemented using the 1024 version.
INSTANTIATE_TEST_CASE_P(
NEON, PartialIDctTest,
@@ -229,7 +241,8 @@ INSTANTIATE_TEST_CASE_P(
&vpx_idct4x4_16_add_neon, TX_4X4, 16),
make_tuple(&vpx_fdct4x4_c, &vpx_idct4x4_16_add_c,
&vpx_idct4x4_1_add_neon, TX_4X4, 1)));
-#endif // HAVE_NEON && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE
+#endif // CONFIG_VP9_HIGHBITDEPTH
+#endif // HAVE_NEON && !CONFIG_EMULATE_HARDWARE
#if HAVE_SSE2 && !CONFIG_VP9_HIGHBITDEPTH && !CONFIG_EMULATE_HARDWARE
// 32x32_135_ is implemented using the 1024 version.