David Barker | 5d34e6a | 2017-05-18 15:12:50 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 15 | using std::tr1::tuple; |
| 16 | using std::tr1::make_tuple; |
| 17 | using libaom_test::ACMRandom; |
| 18 | using libaom_test::AV1HiprecConvolve::AV1HiprecConvolveTest; |
| 19 | #if CONFIG_HIGHBITDEPTH |
| 20 | using libaom_test::AV1HighbdHiprecConvolve::AV1HighbdHiprecConvolveTest; |
| 21 | #endif |
| 22 | |
| 23 | namespace { |
| 24 | |
| 25 | TEST_P(AV1HiprecConvolveTest, CheckOutput) { RunCheckOutput(GET_PARAM(3)); } |
| 26 | |
| 27 | INSTANTIATE_TEST_CASE_P(SSE2, AV1HiprecConvolveTest, |
| 28 | libaom_test::AV1HiprecConvolve::BuildParams( |
| 29 | aom_convolve8_add_src_hip_sse2)); |
| 30 | |
| 31 | #if CONFIG_HIGHBITDEPTH && HAVE_SSSE3 |
| 32 | TEST_P(AV1HighbdHiprecConvolveTest, CheckOutput) { |
| 33 | RunCheckOutput(GET_PARAM(4)); |
| 34 | } |
| 35 | |
| 36 | INSTANTIATE_TEST_CASE_P(SSSE3, AV1HighbdHiprecConvolveTest, |
| 37 | libaom_test::AV1HighbdHiprecConvolve::BuildParams( |
| 38 | aom_highbd_convolve8_add_src_hip_ssse3)); |
| 39 | |
| 40 | #endif |
| 41 | |
| 42 | } // namespace |