blob: 8d13ac15964544828483a19546eeb3c16b578fad [file] [log] [blame]
Geza Loreaacdf982016-07-05 13:36:25 +01001/*
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Geza Loreaacdf982016-07-05 13:36:25 +01003 *
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07004 * 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.
Geza Loreaacdf982016-07-05 13:36:25 +010010 */
11
Tom Finegan7a07ece2017-02-07 17:14:05 -080012#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
Geza Loreaacdf982016-07-05 13:36:25 +010013
14#include "test/function_equivalence_test.h"
Geza Lorea3f7ddc2016-07-12 15:26:36 +010015#include "test/register_state_check.h"
Geza Loreaacdf982016-07-05 13:36:25 +010016
Tom Finegan60e653d2018-05-22 11:34:58 -070017#include "config/aom_config.h"
Tom Finegan44702c82018-05-22 13:00:39 -070018#include "config/aom_dsp_rtcd.h"
Tom Finegan60e653d2018-05-22 11:34:58 -070019
Yaowu Xuf883b422016-08-30 14:01:10 -070020#include "aom/aom_integer.h"
Geza Loreaacdf982016-07-05 13:36:25 +010021
22#define MAX_SB_SQUARE (MAX_SB_SIZE * MAX_SB_SIZE)
23
Yaowu Xuc27fc142016-08-22 16:08:15 -070024using libaom_test::FunctionEquivalenceTest;
Geza Loreaacdf982016-07-05 13:36:25 +010025
26namespace {
27
28static const int kIterations = 1000;
29static const int kMaskMax = 64;
30
Geza Lorec804e0d2016-07-12 13:20:04 +010031typedef unsigned int (*ObmcSadF)(const uint8_t *pre, int pre_stride,
Geza Loreaacdf982016-07-05 13:36:25 +010032 const int32_t *wsrc, const int32_t *mask);
Yaowu Xuc27fc142016-08-22 16:08:15 -070033typedef libaom_test::FuncParam<ObmcSadF> TestFuncs;
Geza Loreaacdf982016-07-05 13:36:25 +010034
35////////////////////////////////////////////////////////////////////////////////
36// 8 bit
37////////////////////////////////////////////////////////////////////////////////
38
Geza Lorea3f7ddc2016-07-12 15:26:36 +010039class ObmcSadTest : public FunctionEquivalenceTest<ObmcSadF> {};
chiyotsai9dfac722020-07-07 17:43:02 -070040GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ObmcSadTest);
Geza Loreaacdf982016-07-05 13:36:25 +010041
42TEST_P(ObmcSadTest, RandomValues) {
Geza Lorec804e0d2016-07-12 13:20:04 +010043 DECLARE_ALIGNED(32, uint8_t, pre[MAX_SB_SQUARE]);
Geza Loreaacdf982016-07-05 13:36:25 +010044 DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]);
45 DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]);
46
clang-format3a826f12016-08-11 17:46:05 -070047 for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) {
Geza Lorec804e0d2016-07-12 13:20:04 +010048 const int pre_stride = rng_(MAX_SB_SIZE + 1);
Geza Loreaacdf982016-07-05 13:36:25 +010049
clang-format3a826f12016-08-11 17:46:05 -070050 for (int i = 0; i < MAX_SB_SQUARE; ++i) {
Geza Lorec804e0d2016-07-12 13:20:04 +010051 pre[i] = rng_.Rand8();
Geza Loreaacdf982016-07-05 13:36:25 +010052 wsrc[i] = rng_.Rand8() * rng_(kMaskMax * kMaskMax + 1);
53 mask[i] = rng_(kMaskMax * kMaskMax + 1);
54 }
55
Geza Lorea3f7ddc2016-07-12 15:26:36 +010056 const unsigned int ref_res = params_.ref_func(pre, pre_stride, wsrc, mask);
57 unsigned int tst_res;
chiyotsaief261062021-07-01 14:01:45 -070058 API_REGISTER_STATE_CHECK(tst_res =
clang-format3a826f12016-08-11 17:46:05 -070059 params_.tst_func(pre, pre_stride, wsrc, mask));
Geza Loreaacdf982016-07-05 13:36:25 +010060
61 ASSERT_EQ(ref_res, tst_res);
62 }
63}
64
65TEST_P(ObmcSadTest, ExtremeValues) {
Geza Lorec804e0d2016-07-12 13:20:04 +010066 DECLARE_ALIGNED(32, uint8_t, pre[MAX_SB_SQUARE]);
Geza Loreaacdf982016-07-05 13:36:25 +010067 DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]);
68 DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]);
69
clang-format3a826f12016-08-11 17:46:05 -070070 for (int iter = 0; iter < MAX_SB_SIZE && !HasFatalFailure(); ++iter) {
Geza Lorec804e0d2016-07-12 13:20:04 +010071 const int pre_stride = iter;
Geza Loreaacdf982016-07-05 13:36:25 +010072
clang-format3a826f12016-08-11 17:46:05 -070073 for (int i = 0; i < MAX_SB_SQUARE; ++i) {
Geza Lorec804e0d2016-07-12 13:20:04 +010074 pre[i] = UINT8_MAX;
Geza Loreaacdf982016-07-05 13:36:25 +010075 wsrc[i] = UINT8_MAX * kMaskMax * kMaskMax;
76 mask[i] = kMaskMax * kMaskMax;
77 }
78
Geza Lorea3f7ddc2016-07-12 15:26:36 +010079 const unsigned int ref_res = params_.ref_func(pre, pre_stride, wsrc, mask);
80 unsigned int tst_res;
chiyotsaief261062021-07-01 14:01:45 -070081 API_REGISTER_STATE_CHECK(tst_res =
clang-format3a826f12016-08-11 17:46:05 -070082 params_.tst_func(pre, pre_stride, wsrc, mask));
Geza Loreaacdf982016-07-05 13:36:25 +010083
84 ASSERT_EQ(ref_res, tst_res);
85 }
86}
87
88#if HAVE_SSE4_1
89const ObmcSadTest::ParamType sse4_functions[] = {
Yaowu Xuf883b422016-08-30 14:01:10 -070090 TestFuncs(aom_obmc_sad128x128_c, aom_obmc_sad128x128_sse4_1),
91 TestFuncs(aom_obmc_sad128x64_c, aom_obmc_sad128x64_sse4_1),
92 TestFuncs(aom_obmc_sad64x128_c, aom_obmc_sad64x128_sse4_1),
Yaowu Xuf883b422016-08-30 14:01:10 -070093 TestFuncs(aom_obmc_sad64x64_c, aom_obmc_sad64x64_sse4_1),
94 TestFuncs(aom_obmc_sad64x32_c, aom_obmc_sad64x32_sse4_1),
95 TestFuncs(aom_obmc_sad32x64_c, aom_obmc_sad32x64_sse4_1),
96 TestFuncs(aom_obmc_sad32x32_c, aom_obmc_sad32x32_sse4_1),
97 TestFuncs(aom_obmc_sad32x16_c, aom_obmc_sad32x16_sse4_1),
98 TestFuncs(aom_obmc_sad16x32_c, aom_obmc_sad16x32_sse4_1),
99 TestFuncs(aom_obmc_sad16x16_c, aom_obmc_sad16x16_sse4_1),
100 TestFuncs(aom_obmc_sad16x8_c, aom_obmc_sad16x8_sse4_1),
101 TestFuncs(aom_obmc_sad8x16_c, aom_obmc_sad8x16_sse4_1),
102 TestFuncs(aom_obmc_sad8x8_c, aom_obmc_sad8x8_sse4_1),
103 TestFuncs(aom_obmc_sad8x4_c, aom_obmc_sad8x4_sse4_1),
104 TestFuncs(aom_obmc_sad4x8_c, aom_obmc_sad4x8_sse4_1),
Debargha Mukherjee79787fd2019-07-16 09:56:15 -0700105 TestFuncs(aom_obmc_sad4x4_c, aom_obmc_sad4x4_sse4_1),
106
107 TestFuncs(aom_obmc_sad64x16_c, aom_obmc_sad64x16_sse4_1),
108 TestFuncs(aom_obmc_sad16x64_c, aom_obmc_sad16x64_sse4_1),
109 TestFuncs(aom_obmc_sad32x8_c, aom_obmc_sad32x8_sse4_1),
110 TestFuncs(aom_obmc_sad8x32_c, aom_obmc_sad8x32_sse4_1),
111 TestFuncs(aom_obmc_sad16x4_c, aom_obmc_sad16x4_sse4_1),
112 TestFuncs(aom_obmc_sad4x16_c, aom_obmc_sad4x16_sse4_1),
Geza Loreaacdf982016-07-05 13:36:25 +0100113};
114
Cheng Chen96786fe2020-02-14 17:28:25 -0800115INSTANTIATE_TEST_SUITE_P(SSE4_1, ObmcSadTest,
116 ::testing::ValuesIn(sse4_functions));
Geza Loreaacdf982016-07-05 13:36:25 +0100117#endif // HAVE_SSE4_1
118
Xing Jin6eecfe92018-07-09 14:54:38 +0800119#if HAVE_AVX2
120const ObmcSadTest::ParamType avx2_functions[] = {
121 TestFuncs(aom_obmc_sad128x128_c, aom_obmc_sad128x128_avx2),
122 TestFuncs(aom_obmc_sad128x64_c, aom_obmc_sad128x64_avx2),
123 TestFuncs(aom_obmc_sad64x128_c, aom_obmc_sad64x128_avx2),
124 TestFuncs(aom_obmc_sad64x64_c, aom_obmc_sad64x64_avx2),
125 TestFuncs(aom_obmc_sad64x32_c, aom_obmc_sad64x32_avx2),
126 TestFuncs(aom_obmc_sad32x64_c, aom_obmc_sad32x64_avx2),
127 TestFuncs(aom_obmc_sad32x32_c, aom_obmc_sad32x32_avx2),
128 TestFuncs(aom_obmc_sad32x16_c, aom_obmc_sad32x16_avx2),
129 TestFuncs(aom_obmc_sad16x32_c, aom_obmc_sad16x32_avx2),
130 TestFuncs(aom_obmc_sad16x16_c, aom_obmc_sad16x16_avx2),
131 TestFuncs(aom_obmc_sad16x8_c, aom_obmc_sad16x8_avx2),
132 TestFuncs(aom_obmc_sad8x16_c, aom_obmc_sad8x16_avx2),
133 TestFuncs(aom_obmc_sad8x8_c, aom_obmc_sad8x8_avx2),
134 TestFuncs(aom_obmc_sad8x4_c, aom_obmc_sad8x4_avx2),
135 TestFuncs(aom_obmc_sad4x8_c, aom_obmc_sad4x8_avx2),
Debargha Mukherjee79787fd2019-07-16 09:56:15 -0700136 TestFuncs(aom_obmc_sad4x4_c, aom_obmc_sad4x4_avx2),
137
138 TestFuncs(aom_obmc_sad64x16_c, aom_obmc_sad64x16_avx2),
139 TestFuncs(aom_obmc_sad16x64_c, aom_obmc_sad16x64_avx2),
140 TestFuncs(aom_obmc_sad32x8_c, aom_obmc_sad32x8_avx2),
141 TestFuncs(aom_obmc_sad8x32_c, aom_obmc_sad8x32_avx2),
142 TestFuncs(aom_obmc_sad16x4_c, aom_obmc_sad16x4_avx2),
143 TestFuncs(aom_obmc_sad4x16_c, aom_obmc_sad4x16_avx2),
Xing Jin6eecfe92018-07-09 14:54:38 +0800144};
145
Cheng Chen96786fe2020-02-14 17:28:25 -0800146INSTANTIATE_TEST_SUITE_P(AVX2, ObmcSadTest,
147 ::testing::ValuesIn(avx2_functions));
Xing Jin6eecfe92018-07-09 14:54:38 +0800148#endif // HAVE_AVX2
149
Salome Thirot22fba5b2023-05-05 15:54:13 +0100150#if HAVE_NEON
151const ObmcSadTest::ParamType neon_functions[] = {
152 TestFuncs(aom_obmc_sad128x128_c, aom_obmc_sad128x128_neon),
153 TestFuncs(aom_obmc_sad128x64_c, aom_obmc_sad128x64_neon),
154 TestFuncs(aom_obmc_sad64x128_c, aom_obmc_sad64x128_neon),
155 TestFuncs(aom_obmc_sad64x64_c, aom_obmc_sad64x64_neon),
156 TestFuncs(aom_obmc_sad64x32_c, aom_obmc_sad64x32_neon),
157 TestFuncs(aom_obmc_sad32x64_c, aom_obmc_sad32x64_neon),
158 TestFuncs(aom_obmc_sad32x32_c, aom_obmc_sad32x32_neon),
159 TestFuncs(aom_obmc_sad32x16_c, aom_obmc_sad32x16_neon),
160 TestFuncs(aom_obmc_sad16x32_c, aom_obmc_sad16x32_neon),
161 TestFuncs(aom_obmc_sad16x16_c, aom_obmc_sad16x16_neon),
162 TestFuncs(aom_obmc_sad16x8_c, aom_obmc_sad16x8_neon),
163 TestFuncs(aom_obmc_sad8x16_c, aom_obmc_sad8x16_neon),
164 TestFuncs(aom_obmc_sad8x8_c, aom_obmc_sad8x8_neon),
165 TestFuncs(aom_obmc_sad8x4_c, aom_obmc_sad8x4_neon),
166 TestFuncs(aom_obmc_sad4x8_c, aom_obmc_sad4x8_neon),
167 TestFuncs(aom_obmc_sad4x4_c, aom_obmc_sad4x4_neon),
168
169 TestFuncs(aom_obmc_sad64x16_c, aom_obmc_sad64x16_neon),
170 TestFuncs(aom_obmc_sad16x64_c, aom_obmc_sad16x64_neon),
171 TestFuncs(aom_obmc_sad32x8_c, aom_obmc_sad32x8_neon),
172 TestFuncs(aom_obmc_sad8x32_c, aom_obmc_sad8x32_neon),
173 TestFuncs(aom_obmc_sad16x4_c, aom_obmc_sad16x4_neon),
174 TestFuncs(aom_obmc_sad4x16_c, aom_obmc_sad4x16_neon),
175};
176
177INSTANTIATE_TEST_SUITE_P(NEON, ObmcSadTest,
178 ::testing::ValuesIn(neon_functions));
179#endif // HAVE_NEON
180
Jerome Jiang1cb298c2019-09-17 11:04:04 -0700181#if CONFIG_AV1_HIGHBITDEPTH
Geza Loreaacdf982016-07-05 13:36:25 +0100182////////////////////////////////////////////////////////////////////////////////
183// High bit-depth
184////////////////////////////////////////////////////////////////////////////////
185
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100186class ObmcSadHBDTest : public FunctionEquivalenceTest<ObmcSadF> {};
chiyotsai9dfac722020-07-07 17:43:02 -0700187GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ObmcSadHBDTest);
Geza Loreaacdf982016-07-05 13:36:25 +0100188
189TEST_P(ObmcSadHBDTest, RandomValues) {
Geza Lorec804e0d2016-07-12 13:20:04 +0100190 DECLARE_ALIGNED(32, uint16_t, pre[MAX_SB_SQUARE]);
Geza Loreaacdf982016-07-05 13:36:25 +0100191 DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]);
192 DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]);
193
clang-format3a826f12016-08-11 17:46:05 -0700194 for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) {
Geza Lorec804e0d2016-07-12 13:20:04 +0100195 const int pre_stride = rng_(MAX_SB_SIZE + 1);
Geza Loreaacdf982016-07-05 13:36:25 +0100196
clang-format3a826f12016-08-11 17:46:05 -0700197 for (int i = 0; i < MAX_SB_SQUARE; ++i) {
198 pre[i] = rng_(1 << 12);
199 wsrc[i] = rng_(1 << 12) * rng_(kMaskMax * kMaskMax + 1);
Geza Loreaacdf982016-07-05 13:36:25 +0100200 mask[i] = rng_(kMaskMax * kMaskMax + 1);
201 }
202
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100203 const unsigned int ref_res =
204 params_.ref_func(CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask);
205 unsigned int tst_res;
chiyotsaief261062021-07-01 14:01:45 -0700206 API_REGISTER_STATE_CHECK(
clang-format3a826f12016-08-11 17:46:05 -0700207 tst_res =
208 params_.tst_func(CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask));
Geza Loreaacdf982016-07-05 13:36:25 +0100209
210 ASSERT_EQ(ref_res, tst_res);
211 }
212}
213
214TEST_P(ObmcSadHBDTest, ExtremeValues) {
Geza Lorec804e0d2016-07-12 13:20:04 +0100215 DECLARE_ALIGNED(32, uint16_t, pre[MAX_SB_SQUARE]);
Geza Loreaacdf982016-07-05 13:36:25 +0100216 DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]);
217 DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]);
218
clang-format3a826f12016-08-11 17:46:05 -0700219 for (int iter = 0; iter < MAX_SB_SIZE && !HasFatalFailure(); ++iter) {
Geza Lorec804e0d2016-07-12 13:20:04 +0100220 const int pre_stride = iter;
Geza Loreaacdf982016-07-05 13:36:25 +0100221
clang-format3a826f12016-08-11 17:46:05 -0700222 for (int i = 0; i < MAX_SB_SQUARE; ++i) {
Geza Lorec804e0d2016-07-12 13:20:04 +0100223 pre[i] = (1 << 12) - 1;
Geza Loreaacdf982016-07-05 13:36:25 +0100224 wsrc[i] = ((1 << 12) - 1) * kMaskMax * kMaskMax;
225 mask[i] = kMaskMax * kMaskMax;
226 }
227
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100228 const unsigned int ref_res =
229 params_.ref_func(CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask);
230 unsigned int tst_res;
chiyotsaief261062021-07-01 14:01:45 -0700231 API_REGISTER_STATE_CHECK(
clang-format3a826f12016-08-11 17:46:05 -0700232 tst_res =
233 params_.tst_func(CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask));
Geza Loreaacdf982016-07-05 13:36:25 +0100234
235 ASSERT_EQ(ref_res, tst_res);
236 }
237}
238
239#if HAVE_SSE4_1
240ObmcSadHBDTest::ParamType sse4_functions_hbd[] = {
Yaowu Xuf883b422016-08-30 14:01:10 -0700241 TestFuncs(aom_highbd_obmc_sad128x128_c, aom_highbd_obmc_sad128x128_sse4_1),
242 TestFuncs(aom_highbd_obmc_sad128x64_c, aom_highbd_obmc_sad128x64_sse4_1),
243 TestFuncs(aom_highbd_obmc_sad64x128_c, aom_highbd_obmc_sad64x128_sse4_1),
Yaowu Xuf883b422016-08-30 14:01:10 -0700244 TestFuncs(aom_highbd_obmc_sad64x64_c, aom_highbd_obmc_sad64x64_sse4_1),
245 TestFuncs(aom_highbd_obmc_sad64x32_c, aom_highbd_obmc_sad64x32_sse4_1),
246 TestFuncs(aom_highbd_obmc_sad32x64_c, aom_highbd_obmc_sad32x64_sse4_1),
247 TestFuncs(aom_highbd_obmc_sad32x32_c, aom_highbd_obmc_sad32x32_sse4_1),
248 TestFuncs(aom_highbd_obmc_sad32x16_c, aom_highbd_obmc_sad32x16_sse4_1),
249 TestFuncs(aom_highbd_obmc_sad16x32_c, aom_highbd_obmc_sad16x32_sse4_1),
250 TestFuncs(aom_highbd_obmc_sad16x16_c, aom_highbd_obmc_sad16x16_sse4_1),
251 TestFuncs(aom_highbd_obmc_sad16x8_c, aom_highbd_obmc_sad16x8_sse4_1),
252 TestFuncs(aom_highbd_obmc_sad8x16_c, aom_highbd_obmc_sad8x16_sse4_1),
253 TestFuncs(aom_highbd_obmc_sad8x8_c, aom_highbd_obmc_sad8x8_sse4_1),
254 TestFuncs(aom_highbd_obmc_sad8x4_c, aom_highbd_obmc_sad8x4_sse4_1),
255 TestFuncs(aom_highbd_obmc_sad4x8_c, aom_highbd_obmc_sad4x8_sse4_1),
Debargha Mukherjee79787fd2019-07-16 09:56:15 -0700256 TestFuncs(aom_highbd_obmc_sad4x4_c, aom_highbd_obmc_sad4x4_sse4_1),
257
258 TestFuncs(aom_highbd_obmc_sad64x16_c, aom_highbd_obmc_sad64x16_sse4_1),
259 TestFuncs(aom_highbd_obmc_sad16x64_c, aom_highbd_obmc_sad16x64_sse4_1),
260 TestFuncs(aom_highbd_obmc_sad32x8_c, aom_highbd_obmc_sad32x8_sse4_1),
261 TestFuncs(aom_highbd_obmc_sad8x32_c, aom_highbd_obmc_sad8x32_sse4_1),
262 TestFuncs(aom_highbd_obmc_sad16x4_c, aom_highbd_obmc_sad16x4_sse4_1),
263 TestFuncs(aom_highbd_obmc_sad4x16_c, aom_highbd_obmc_sad4x16_sse4_1),
Geza Loreaacdf982016-07-05 13:36:25 +0100264};
265
Cheng Chen96786fe2020-02-14 17:28:25 -0800266INSTANTIATE_TEST_SUITE_P(SSE4_1, ObmcSadHBDTest,
267 ::testing::ValuesIn(sse4_functions_hbd));
Geza Loreaacdf982016-07-05 13:36:25 +0100268#endif // HAVE_SSE4_1
Xing Jin6eecfe92018-07-09 14:54:38 +0800269
270#if HAVE_AVX2
271ObmcSadHBDTest::ParamType avx2_functions_hbd[] = {
272 TestFuncs(aom_highbd_obmc_sad128x128_c, aom_highbd_obmc_sad128x128_avx2),
273 TestFuncs(aom_highbd_obmc_sad128x64_c, aom_highbd_obmc_sad128x64_avx2),
274 TestFuncs(aom_highbd_obmc_sad64x128_c, aom_highbd_obmc_sad64x128_avx2),
275 TestFuncs(aom_highbd_obmc_sad64x64_c, aom_highbd_obmc_sad64x64_avx2),
276 TestFuncs(aom_highbd_obmc_sad64x32_c, aom_highbd_obmc_sad64x32_avx2),
277 TestFuncs(aom_highbd_obmc_sad32x64_c, aom_highbd_obmc_sad32x64_avx2),
278 TestFuncs(aom_highbd_obmc_sad32x32_c, aom_highbd_obmc_sad32x32_avx2),
279 TestFuncs(aom_highbd_obmc_sad32x16_c, aom_highbd_obmc_sad32x16_avx2),
280 TestFuncs(aom_highbd_obmc_sad16x32_c, aom_highbd_obmc_sad16x32_avx2),
281 TestFuncs(aom_highbd_obmc_sad16x16_c, aom_highbd_obmc_sad16x16_avx2),
282 TestFuncs(aom_highbd_obmc_sad16x8_c, aom_highbd_obmc_sad16x8_avx2),
283 TestFuncs(aom_highbd_obmc_sad8x16_c, aom_highbd_obmc_sad8x16_avx2),
284 TestFuncs(aom_highbd_obmc_sad8x8_c, aom_highbd_obmc_sad8x8_avx2),
285 TestFuncs(aom_highbd_obmc_sad8x4_c, aom_highbd_obmc_sad8x4_avx2),
286 TestFuncs(aom_highbd_obmc_sad4x8_c, aom_highbd_obmc_sad4x8_avx2),
Debargha Mukherjee79787fd2019-07-16 09:56:15 -0700287 TestFuncs(aom_highbd_obmc_sad4x4_c, aom_highbd_obmc_sad4x4_avx2),
288
289 TestFuncs(aom_highbd_obmc_sad64x16_c, aom_highbd_obmc_sad64x16_avx2),
290 TestFuncs(aom_highbd_obmc_sad16x64_c, aom_highbd_obmc_sad16x64_avx2),
291 TestFuncs(aom_highbd_obmc_sad32x8_c, aom_highbd_obmc_sad32x8_avx2),
292 TestFuncs(aom_highbd_obmc_sad8x32_c, aom_highbd_obmc_sad8x32_avx2),
293 TestFuncs(aom_highbd_obmc_sad16x4_c, aom_highbd_obmc_sad16x4_avx2),
294 TestFuncs(aom_highbd_obmc_sad4x16_c, aom_highbd_obmc_sad4x16_avx2),
Xing Jin6eecfe92018-07-09 14:54:38 +0800295};
296
Cheng Chen96786fe2020-02-14 17:28:25 -0800297INSTANTIATE_TEST_SUITE_P(AVX2, ObmcSadHBDTest,
298 ::testing::ValuesIn(avx2_functions_hbd));
Xing Jin6eecfe92018-07-09 14:54:38 +0800299#endif // HAVE_AVX2
Jerome Jiang1cb298c2019-09-17 11:04:04 -0700300#endif // CONFIG_AV1_HIGHBITDEPTH
Geza Loreaacdf982016-07-05 13:36:25 +0100301} // namespace