Skip to content

Commit

Permalink
vp9[loongarch]: Optimize sad64x64/32x32/16x16
Browse files Browse the repository at this point in the history
1. vpx_sad64x64x4d_lsx
2. vpx_sad32x32x4d_lsx
3. vpx_sad16x16x4d_lsx
4. vpx_sad64x64_lsx
5. vpx_sad32x32_lsx

Bug: webm:1755

Change-Id: Ief71c2216f697b261d7c1fc481c89c9f1a6098e6
  • Loading branch information
HecaiYuan committed Apr 12, 2022
1 parent fb2f58e commit 3a3645d
Show file tree
Hide file tree
Showing 4 changed files with 403 additions and 5 deletions.
18 changes: 18 additions & 0 deletions test/sad_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1128,4 +1128,22 @@ const SadMxNx4Param x4d_mmi_tests[] = {
};
INSTANTIATE_TEST_SUITE_P(MMI, SADx4Test, ::testing::ValuesIn(x4d_mmi_tests));
#endif // HAVE_MMI

//------------------------------------------------------------------------------
// loongarch functions
#if HAVE_LSX
const SadMxNParam lsx_tests[] = {
SadMxNParam(64, 64, &vpx_sad64x64_lsx),
SadMxNParam(32, 32, &vpx_sad32x32_lsx),
};
INSTANTIATE_TEST_SUITE_P(LSX, SADTest, ::testing::ValuesIn(lsx_tests));

const SadMxNx4Param x4d_lsx_tests[] = {
SadMxNx4Param(64, 64, &vpx_sad64x64x4d_lsx),
SadMxNx4Param(32, 32, &vpx_sad32x32x4d_lsx),
SadMxNx4Param(16, 16, &vpx_sad16x16x4d_lsx),
};
INSTANTIATE_TEST_SUITE_P(LSX, SADx4Test, ::testing::ValuesIn(x4d_lsx_tests));
#endif // HAVE_LSX

} // namespace
Loading

0 comments on commit 3a3645d

Please sign in to comment.