Bug 1882465 - Update .hg-annotate-ignore-revs and .git-blame-ignore-revs to reflect...
[gecko.git] / third_party / aom / test / hiprec_convolve_test.cc
blob78883ccddfd2e6aefa24069211d9a39e57f9e32f
1 /*
2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
4 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
12 #include <tuple>
14 #include "third_party/googletest/src/googletest/include/gtest/gtest.h"
15 #include "test/hiprec_convolve_test_util.h"
17 using libaom_test::ACMRandom;
18 #if CONFIG_AV1_HIGHBITDEPTH
19 using libaom_test::AV1HighbdHiprecConvolve::AV1HighbdHiprecConvolveTest;
20 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AV1HighbdHiprecConvolveTest);
21 #endif
22 using libaom_test::AV1HiprecConvolve::AV1HiprecConvolveTest;
23 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AV1HiprecConvolveTest);
24 using std::make_tuple;
25 using std::tuple;
27 namespace {
29 TEST_P(AV1HiprecConvolveTest, CheckOutput) { RunCheckOutput(GET_PARAM(3)); }
30 TEST_P(AV1HiprecConvolveTest, DISABLED_SpeedTest) {
31 RunSpeedTest(GET_PARAM(3));
33 #if HAVE_SSE2
34 INSTANTIATE_TEST_SUITE_P(SSE2, AV1HiprecConvolveTest,
35 libaom_test::AV1HiprecConvolve::BuildParams(
36 av1_wiener_convolve_add_src_sse2));
37 #endif
38 #if HAVE_AVX2
39 INSTANTIATE_TEST_SUITE_P(AVX2, AV1HiprecConvolveTest,
40 libaom_test::AV1HiprecConvolve::BuildParams(
41 av1_wiener_convolve_add_src_avx2));
42 #endif
43 #if HAVE_NEON
44 INSTANTIATE_TEST_SUITE_P(NEON, AV1HiprecConvolveTest,
45 libaom_test::AV1HiprecConvolve::BuildParams(
46 av1_wiener_convolve_add_src_neon));
47 #endif
49 #if CONFIG_AV1_HIGHBITDEPTH
50 #if HAVE_SSSE3 || HAVE_AVX2 || HAVE_NEON
51 TEST_P(AV1HighbdHiprecConvolveTest, CheckOutput) {
52 RunCheckOutput(GET_PARAM(4));
54 TEST_P(AV1HighbdHiprecConvolveTest, DISABLED_SpeedTest) {
55 RunSpeedTest(GET_PARAM(4));
57 #if HAVE_SSSE3
58 INSTANTIATE_TEST_SUITE_P(SSSE3, AV1HighbdHiprecConvolveTest,
59 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
60 av1_highbd_wiener_convolve_add_src_ssse3));
61 #endif
62 #if HAVE_AVX2
63 INSTANTIATE_TEST_SUITE_P(AVX2, AV1HighbdHiprecConvolveTest,
64 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
65 av1_highbd_wiener_convolve_add_src_avx2));
66 #endif
68 #if HAVE_NEON
69 INSTANTIATE_TEST_SUITE_P(NEON, AV1HighbdHiprecConvolveTest,
70 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
71 av1_highbd_wiener_convolve_add_src_neon));
72 #endif
73 #endif
74 #endif // CONFIG_AV1_HIGHBITDEPTH
76 } // namespace