blob: 0b34c99c9f4992f44af1dfd3bfb3fb684461370a [file] [log] [blame]
David Barker5d34e6a2017-05-18 15:12:50 +01001/*
2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
3 *
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.
10 */
11
12#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
13#include "test/hiprec_convolve_test_util.h"
14
15using std::tr1::tuple;
16using std::tr1::make_tuple;
17using libaom_test::ACMRandom;
18using libaom_test::AV1HiprecConvolve::AV1HiprecConvolveTest;
19#if CONFIG_HIGHBITDEPTH
20using libaom_test::AV1HighbdHiprecConvolve::AV1HighbdHiprecConvolveTest;
21#endif
22
23namespace {
24
25TEST_P(AV1HiprecConvolveTest, CheckOutput) { RunCheckOutput(GET_PARAM(3)); }
26
27INSTANTIATE_TEST_CASE_P(SSE2, AV1HiprecConvolveTest,
28 libaom_test::AV1HiprecConvolve::BuildParams(
29 aom_convolve8_add_src_hip_sse2));
30
31#if CONFIG_HIGHBITDEPTH && HAVE_SSSE3
32TEST_P(AV1HighbdHiprecConvolveTest, CheckOutput) {
33 RunCheckOutput(GET_PARAM(4));
34}
35
36INSTANTIATE_TEST_CASE_P(SSSE3, AV1HighbdHiprecConvolveTest,
37 libaom_test::AV1HighbdHiprecConvolve::BuildParams(
38 aom_highbd_convolve8_add_src_hip_ssse3));
39
40#endif
41
42} // namespace