summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorParag Salasakar <img.mips1@gmail.com>2015-06-04 11:50:41 +0530
committerParag Salasakar <img.mips1@gmail.com>2015-06-04 11:50:41 +0530
commit914f8f9ee01f1b07005488634b4532b9afbd3892 (patch)
treefe179e281a12f17699836c04bb0903c493ad0200 /test
parentc005792951199bd40724a028120e80888ac38b57 (diff)
downloadlibvpx-914f8f9ee01f1b07005488634b4532b9afbd3892.tar
libvpx-914f8f9ee01f1b07005488634b4532b9afbd3892.tar.gz
libvpx-914f8f9ee01f1b07005488634b4532b9afbd3892.tar.bz2
libvpx-914f8f9ee01f1b07005488634b4532b9afbd3892.zip
mips msa vp9 loopfilter 16 optimization
average improvement ~3x-4x Change-Id: I8ef263da6ebcf8f20aabaefeccf25a84640ba048
Diffstat (limited to 'test')
-rw-r--r--test/lpf_8_test.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/lpf_8_test.cc b/test/lpf_8_test.cc
index 3d21e6c7c..726f472d7 100644
--- a/test/lpf_8_test.cc
+++ b/test/lpf_8_test.cc
@@ -137,6 +137,20 @@ void wrapper_vertical_16_dual_c(uint8_t *s, int p, const uint8_t *blimit,
#endif // CONFIG_VP9_HIGHBITDEPTH
#endif // HAVE_NEON_ASM
+#if HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH)
+void wrapper_vertical_16_msa(uint8_t *s, int p, const uint8_t *blimit,
+ const uint8_t *limit, const uint8_t *thresh,
+ int count) {
+ vp9_lpf_vertical_16_msa(s, p, blimit, limit, thresh);
+}
+
+void wrapper_vertical_16_c(uint8_t *s, int p, const uint8_t *blimit,
+ const uint8_t *limit, const uint8_t *thresh,
+ int count) {
+ vp9_lpf_vertical_16_c(s, p, blimit, limit, thresh);
+}
+#endif // HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH)
+
class Loop8Test6Param : public ::testing::TestWithParam<loop8_param_t> {
public:
virtual ~Loop8Test6Param() {}
@@ -676,4 +690,13 @@ INSTANTIATE_TEST_CASE_P(
#endif // CONFIG_VP9_HIGHBITDEPTH
#endif // HAVE_NEON
+#if HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH)
+INSTANTIATE_TEST_CASE_P(
+ MSA, Loop8Test6Param,
+ ::testing::Values(
+ make_tuple(&vp9_lpf_horizontal_16_msa, &vp9_lpf_horizontal_16_c, 8, 1),
+ make_tuple(&vp9_lpf_horizontal_16_msa, &vp9_lpf_horizontal_16_c, 8, 2),
+ make_tuple(&wrapper_vertical_16_msa, &wrapper_vertical_16_c, 8, 1)));
+#endif // HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH)
+
} // namespace