blob: fd6608bfc1ac96b5457d9ac06abcad3eb41f454c [file] [log] [blame]
David Barker838367d2017-01-12 15:13:28 +00001/*
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 Finegan7a07ece2017-02-07 17:14:05 -080012#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
Sean Purser-Haskell05a12ea2017-03-30 14:56:50 -070013#include "test/warp_filter_test_util.h"
David Barker838367d2017-01-12 15:13:28 +000014
15using std::tr1::tuple;
16using std::tr1::make_tuple;
17using libaom_test::ACMRandom;
Sean Purser-Haskell05a12ea2017-03-30 14:56:50 -070018using libaom_test::AV1WarpFilter::AV1WarpFilterTest;
Sebastien Alaiwan71e87842017-04-12 16:03:28 +020019#if CONFIG_HIGHBITDEPTH
David Barker2bcf2802017-04-05 11:44:31 +010020using libaom_test::AV1HighbdWarpFilter::AV1HighbdWarpFilterTest;
21#endif
David Barker838367d2017-01-12 15:13:28 +000022
23namespace {
24
Sean Purser-Haskell05a12ea2017-03-30 14:56:50 -070025TEST_P(AV1WarpFilterTest, CheckOutput) { RunCheckOutput(av1_warp_affine_sse2); }
David Barker838367d2017-01-12 15:13:28 +000026
Sean Purser-Haskell05a12ea2017-03-30 14:56:50 -070027INSTANTIATE_TEST_CASE_P(SSE2, AV1WarpFilterTest,
28 libaom_test::AV1WarpFilter::GetDefaultParams());
David Barker838367d2017-01-12 15:13:28 +000029
Sebastien Alaiwan71e87842017-04-12 16:03:28 +020030#if CONFIG_HIGHBITDEPTH
David Barker521383a2017-04-05 14:07:12 +010031TEST_P(AV1HighbdWarpFilterTest, CheckOutput) {
32 RunCheckOutput(av1_highbd_warp_affine_ssse3);
33}
34
35INSTANTIATE_TEST_CASE_P(SSSE3, AV1HighbdWarpFilterTest,
36 libaom_test::AV1HighbdWarpFilter::GetDefaultParams());
37#endif
38
David Barker838367d2017-01-12 15:13:28 +000039} // namespace