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.
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
);
22 using libaom_test::AV1HiprecConvolve::AV1HiprecConvolveTest
;
23 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AV1HiprecConvolveTest
);
24 using std::make_tuple
;
29 TEST_P(AV1HiprecConvolveTest
, CheckOutput
) { RunCheckOutput(GET_PARAM(3)); }
30 TEST_P(AV1HiprecConvolveTest
, DISABLED_SpeedTest
) {
31 RunSpeedTest(GET_PARAM(3));
34 INSTANTIATE_TEST_SUITE_P(SSE2
, AV1HiprecConvolveTest
,
35 libaom_test::AV1HiprecConvolve::BuildParams(
36 av1_wiener_convolve_add_src_sse2
));
39 INSTANTIATE_TEST_SUITE_P(AVX2
, AV1HiprecConvolveTest
,
40 libaom_test::AV1HiprecConvolve::BuildParams(
41 av1_wiener_convolve_add_src_avx2
));
44 INSTANTIATE_TEST_SUITE_P(NEON
, AV1HiprecConvolveTest
,
45 libaom_test::AV1HiprecConvolve::BuildParams(
46 av1_wiener_convolve_add_src_neon
));
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));
58 INSTANTIATE_TEST_SUITE_P(SSSE3
, AV1HighbdHiprecConvolveTest
,
59 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
60 av1_highbd_wiener_convolve_add_src_ssse3
));
63 INSTANTIATE_TEST_SUITE_P(AVX2
, AV1HighbdHiprecConvolveTest
,
64 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
65 av1_highbd_wiener_convolve_add_src_avx2
));
69 INSTANTIATE_TEST_SUITE_P(NEON
, AV1HighbdHiprecConvolveTest
,
70 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
71 av1_highbd_wiener_convolve_add_src_neon
));
74 #endif // CONFIG_AV1_HIGHBITDEPTH