David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [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 | |
Tom Finegan | 7a07ece | 2017-02-07 17:14:05 -0800 | [diff] [blame] | 12 | #include "third_party/googletest/src/googletest/include/gtest/gtest.h" |
Sean Purser-Haskell | 05a12ea | 2017-03-30 14:56:50 -0700 | [diff] [blame] | 13 | #include "test/warp_filter_test_util.h" |
David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [diff] [blame] | 14 | |
| 15 | using std::tr1::tuple; |
| 16 | using std::tr1::make_tuple; |
| 17 | using libaom_test::ACMRandom; |
Sean Purser-Haskell | 05a12ea | 2017-03-30 14:56:50 -0700 | [diff] [blame] | 18 | using libaom_test::AV1WarpFilter::AV1WarpFilterTest; |
Sebastien Alaiwan | 71e8784 | 2017-04-12 16:03:28 +0200 | [diff] [blame] | 19 | #if CONFIG_HIGHBITDEPTH |
David Barker | 2bcf280 | 2017-04-05 11:44:31 +0100 | [diff] [blame] | 20 | using libaom_test::AV1HighbdWarpFilter::AV1HighbdWarpFilterTest; |
| 21 | #endif |
David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [diff] [blame] | 22 | |
| 23 | namespace { |
| 24 | |
Sean Purser-Haskell | 05a12ea | 2017-03-30 14:56:50 -0700 | [diff] [blame] | 25 | TEST_P(AV1WarpFilterTest, CheckOutput) { RunCheckOutput(av1_warp_affine_sse2); } |
David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [diff] [blame] | 26 | |
Sean Purser-Haskell | 05a12ea | 2017-03-30 14:56:50 -0700 | [diff] [blame] | 27 | INSTANTIATE_TEST_CASE_P(SSE2, AV1WarpFilterTest, |
| 28 | libaom_test::AV1WarpFilter::GetDefaultParams()); |
David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [diff] [blame] | 29 | |
Sebastien Alaiwan | 71e8784 | 2017-04-12 16:03:28 +0200 | [diff] [blame] | 30 | #if CONFIG_HIGHBITDEPTH |
David Barker | 521383a | 2017-04-05 14:07:12 +0100 | [diff] [blame] | 31 | TEST_P(AV1HighbdWarpFilterTest, CheckOutput) { |
| 32 | RunCheckOutput(av1_highbd_warp_affine_ssse3); |
| 33 | } |
| 34 | |
| 35 | INSTANTIATE_TEST_CASE_P(SSSE3, AV1HighbdWarpFilterTest, |
| 36 | libaom_test::AV1HighbdWarpFilter::GetDefaultParams()); |
| 37 | #endif |
| 38 | |
David Barker | 838367d | 2017-01-12 15:13:28 +0000 | [diff] [blame] | 39 | } // namespace |