summaryrefslogtreecommitdiff
path: root/test/predict_test.cc
diff options
context:
space:
mode:
authorWang Chen <wangchen20@iscas.ac.cn>2023-07-10 09:19:39 +0800
committerChen Wang <unicorn_wang@outlook.com>2023-07-10 11:15:18 +0800
commitc2814bb8cc32362822b5a546c8de21b3a0e89032 (patch)
tree8484f4144f8797682fc98e1e020627606a11ca61 /test/predict_test.cc
parentb8fdf4909a12c40fd373cfba0e212d45b021549f (diff)
downloadlibvpx-c2814bb8cc32362822b5a546c8de21b3a0e89032.tar
libvpx-c2814bb8cc32362822b5a546c8de21b3a0e89032.tar.gz
libvpx-c2814bb8cc32362822b5a546c8de21b3a0e89032.tar.bz2
libvpx-c2814bb8cc32362822b5a546c8de21b3a0e89032.zip
add example how to use rtcd
Just use vp8_sixtap_predict as example but have not implemented it actually. Test: $ CROSS=riscv64-unknown-linux-gnu- ../libvpx/configure --target=riscv64-linux-gcc $ make Check if vp8_sixtap_predict functions have been replaced with those suffixed with "_rvv": $ riscv64-unknown-linux-gnu-nm ./vp8/decoder/decodeframe.c.o | grep vp8_sixtap_predict16x16 U vp8_sixtap_predict16x16_rvv Check if vp8_sixtap_predictMxN_rvv work. $ qemu-riscv64 -L $SYSROOT_RV64 ./build-test/test_libvpx --gtest_filter="RVV/SixtapPredictTest.TestWithPresetData/*" You should see print log output such as: "--> vp8_sixtap_predict4x4_rvv" "FAILED" is expected due to we have not implemented the actual algorithm. Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn> Co-authored-by: sun min <sunmin89@outlook.com>
Diffstat (limited to 'test/predict_test.cc')
-rw-r--r--test/predict_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/predict_test.cc b/test/predict_test.cc
index 747297057..d686a9161 100644
--- a/test/predict_test.cc
+++ b/test/predict_test.cc
@@ -350,6 +350,15 @@ INSTANTIATE_TEST_SUITE_P(
make_tuple(4, 4, &vp8_sixtap_predict4x4_mmi)));
#endif
+#if HAVE_RVV
+INSTANTIATE_TEST_SUITE_P(
+ RVV, SixtapPredictTest,
+ ::testing::Values(make_tuple(16, 16, &vp8_sixtap_predict16x16_rvv),
+ make_tuple(8, 8, &vp8_sixtap_predict8x8_rvv),
+ make_tuple(8, 4, &vp8_sixtap_predict8x4_rvv),
+ make_tuple(4, 4, &vp8_sixtap_predict4x4_rvv)));
+#endif
+
class BilinearPredictTest : public PredictTestBase {};
TEST_P(BilinearPredictTest, TestWithRandomData) {