av1_convolve_ x,y _avx2() -- use 256 bit load/store
[aom.git] / test / test_intra_pred_speed.cc
blobaab7834018be0f726a10ad803c59b130835912d8
1 /*
2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
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.
12 // Test and time AOM intra-predictor functions
14 #include <stdio.h>
15 #include <string.h>
17 #include "third_party/googletest/src/googletest/include/gtest/gtest.h"
19 #include "./aom_dsp_rtcd.h"
20 #include "test/acm_random.h"
21 #include "test/clear_system_state.h"
22 #include "test/md5_helper.h"
23 #include "aom/aom_integer.h"
24 #include "aom_ports/mem.h"
25 #include "aom_ports/aom_timer.h"
27 // -----------------------------------------------------------------------------
29 namespace {
31 typedef void (*AvxPredFunc)(uint8_t *dst, ptrdiff_t y_stride,
32 const uint8_t *above, const uint8_t *left);
34 const int kBPS = 32;
35 const int kTotalPixels = kBPS * kBPS;
36 const int kNumAv1IntraFuncs = INTRA_MODES + 3; // 4 DC predictor variants.
37 const char *kAv1IntraPredNames[kNumAv1IntraFuncs] = {
38 "DC_PRED", "DC_LEFT_PRED", "DC_TOP_PRED", "DC_128_PRED",
39 "V_PRED", "H_PRED", "D45_PRED", "D135_PRED",
40 "D117_PRED", "D153_PRED", "D207_PRED", "D63_PRED",
41 "PAETH_PRED", "SMOOTH_PRED", "SMOOTH_V_PRED", "SMOOTH_H_PRED",
44 template <typename Pixel>
45 struct IntraPredTestMem {
46 void Init(int block_width, int bd) {
47 libaom_test::ACMRandom rnd(libaom_test::ACMRandom::DeterministicSeed());
48 Pixel *const above = above_mem + 16;
49 const int mask = (1 << bd) - 1;
50 for (int i = 0; i < kTotalPixels; ++i) ref_src[i] = rnd.Rand16() & mask;
51 for (int i = 0; i < kBPS; ++i) left[i] = rnd.Rand16() & mask;
52 for (int i = -1; i < kBPS; ++i) above[i] = rnd.Rand16() & mask;
54 ASSERT_LE(block_width, kBPS);
55 for (int i = kBPS; i < 2 * kBPS; ++i) {
56 left[i] = rnd.Rand16() & mask;
57 above[i] = rnd.Rand16() & mask;
61 DECLARE_ALIGNED(16, Pixel, src[kTotalPixels]);
62 DECLARE_ALIGNED(16, Pixel, ref_src[kTotalPixels]);
63 DECLARE_ALIGNED(16, Pixel, left[2 * kBPS]);
64 DECLARE_ALIGNED(16, Pixel, above_mem[2 * kBPS + 16]);
67 // -----------------------------------------------------------------------------
68 // Low Bittdepth
70 typedef IntraPredTestMem<uint8_t> Av1IntraPredTestMem;
72 // Note:
73 // APPLY_UNIT_TESTS
74 // 1: Do unit tests
75 // 0: Generate MD5 array as required
76 #define APPLY_UNIT_TESTS 1
78 void CheckMd5Signature(const char name[], const char *const signatures[],
79 const void *data, size_t data_size, int elapsed_time,
80 int idx) {
81 libaom_test::MD5 md5;
82 md5.Add(reinterpret_cast<const uint8_t *>(data), data_size);
83 #if APPLY_UNIT_TESTS
84 printf("Mode %s[%13s]: %5d ms MD5: %s\n", name, kAv1IntraPredNames[idx],
85 elapsed_time, md5.Get());
86 EXPECT_STREQ(signatures[idx], md5.Get());
87 #else
88 printf("\"%s\",\n", md5.Get());
89 #endif
92 void TestIntraPred(const char name[], AvxPredFunc const *pred_funcs,
93 const char *const signatures[], int block_width,
94 int block_height) {
95 const int num_pixels_per_test =
96 block_width * block_height * kNumAv1IntraFuncs;
97 const int kNumTests = static_cast<int>(2.e10 / num_pixels_per_test);
98 Av1IntraPredTestMem intra_pred_test_mem;
99 const uint8_t *const above = intra_pred_test_mem.above_mem + 16;
101 intra_pred_test_mem.Init(block_width, 8);
103 for (int k = 0; k < kNumAv1IntraFuncs; ++k) {
104 if (pred_funcs[k] == NULL) continue;
105 memcpy(intra_pred_test_mem.src, intra_pred_test_mem.ref_src,
106 sizeof(intra_pred_test_mem.src));
107 aom_usec_timer timer;
108 aom_usec_timer_start(&timer);
109 for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
110 pred_funcs[k](intra_pred_test_mem.src, kBPS, above,
111 intra_pred_test_mem.left);
113 libaom_test::ClearSystemState();
114 aom_usec_timer_mark(&timer);
115 const int elapsed_time =
116 static_cast<int>(aom_usec_timer_elapsed(&timer) / 1000);
117 CheckMd5Signature(name, signatures, intra_pred_test_mem.src,
118 sizeof(intra_pred_test_mem.src), elapsed_time, k);
122 void TestIntraPred4(const char *block_name, AvxPredFunc const *pred_funcs) {
123 static const char *const kSignatures4x4[kNumAv1IntraFuncs] = {
124 "e7ed7353c3383fff942e500e9bfe82fe", "2a4a26fcc6ce005eadc08354d196c8a9",
125 "269d92eff86f315d9c38fe7640d85b15", "ae2960eea9f71ee3dabe08b282ec1773",
126 "6c1abcc44e90148998b51acd11144e9c", "f7bb3186e1ef8a2b326037ff898cad8e",
127 "87e72798518d62e84bcc77dcb17d0f3b", "141624072a4a56773f68fadbdd07c4a7",
128 "7be49b08687a5f24df3a2c612fca3876", "459bb5d9fd5b238348179c9a22108cd6",
129 "3d98810f418a9de92acfe2c68909c61c", "6310eecda3cc9496987ca10186255558",
130 "59fc0e923a08cfac0a493fb38988e2bb", "9ff8bb37d9c830e6ab8ecb0c435d3c91",
131 "de6937fca02354f2874dbc5dbec5d5b3", "723cf948137f7d8c7860d814e55ae67d",
133 static const char *const kSignatures4x8[kNumAv1IntraFuncs] = {
134 "d9fbebdc85f71ab1e18461b2db4a2adc", "5ccb2a68284bc9714d94b8a06ccadbb2",
135 "735d059abc2744f3ff3f9590f7191b37", "d9fbebdc85f71ab1e18461b2db4a2adc",
136 "6819497c44cd0ace120add83672996ee", "7e3244f5a2d3edf81c7e962a842b97f9",
137 "3fa52ee9acf5a25594cac684be263f32", "c18dd23d57def4df4c6147c572dfc827",
138 "d007fbf7e43cb8f49702daa20f0c9153", "5c0226c44c5df285728296b80cc6de4b",
139 "b55d7b558bebc8c2042dfac58b3c4688", "6549362baa389b8faa2d954926b64e2f",
140 "809350f164cd4d1650850bb0f59c3260", "1b60a394331eeab6927a6f8aaff57040",
141 "5307de1bd7329ba6b281d2c1b0b457f9", "24c58a8138339846d95568efb91751db",
143 if (!strcmp(block_name, "intra4x4")) {
144 TestIntraPred(block_name, pred_funcs, kSignatures4x4, 4, 4);
146 if (!strcmp(block_name, "intra4x8")) {
147 TestIntraPred(block_name, pred_funcs, kSignatures4x8, 4, 8);
151 void TestIntraPred8(const char *block_name, AvxPredFunc const *pred_funcs) {
152 static const char *const kSignatures8x8[kNumAv1IntraFuncs] = {
153 "d8bbae5d6547cfc17e4f5f44c8730e88", "373bab6d931868d41a601d9d88ce9ac3",
154 "6fdd5ff4ff79656c14747598ca9e3706", "d9661c2811d6a73674f40ffb2b841847",
155 "7c722d10b19ccff0b8c171868e747385", "f81dd986eb2b50f750d3a7da716b7e27",
156 "e0b1292448f3350bf1c92ca283ca872a", "0e3523f9cab2142dd37fd07ec0760bce",
157 "79ac4efe907f0a0f1885d43066cfedee", "19ecf2432ac305057de3b6578474eec6",
158 "7ae38292cbe47b4aa0807c3bd5a543df", "d0ecffec1bb01f4b61ab5738164695c4",
159 "064404361748dd111a890a1470d7f0ea", "dc29b7e1f78cc8e7525d5ea4c0ab9b78",
160 "97111eb1bc26bade6272015df829f1ae", "d19a8a73cc46b807f2c5e817576cc1e1",
162 static const char *const kSignatures8x4[kNumAv1IntraFuncs] = {
163 "23f9fc11344426c9bee2e06d57dfd628", "2d71a26d1bae1fb34734de7b42fc5eb7",
164 "5af9c1b2fd9d5721fad67b67b3f7c816", "00d71b17be662753813d515f197d145e",
165 "bef10ec984427e28f4390f43809d10af", "77773cdfb7ed6bc882ab202a64b0a470",
166 "cba356970f6b9a1b6024e1dbe4a66f9b", "c58c21efc804242848e6f29a93a7984d",
167 "dc92cc45a51c7a397506cab19f74e66d", "391f6a12224f81a3719ea09a2cf7a5ad",
168 "b74b8b11f7eb2bbf723b25f381104ca9", "2234aaa06ca245624211cf53a0261017",
169 "2cc48bd66d6b0121b5221d52ccd732af", "b302155e1c9eeeafe2ba2bf68e807a46",
170 "561bc8d0e76d5041ebd5168fc6a115e1", "81d0113fb1d0a9a24ffd6f1987b77948",
172 static const char *const kSignatures8x16[kNumAv1IntraFuncs] = {
173 "c849de88b24f773dfcdd1d48d1209796", "6cb807c1897b94866a0f3d3c56ed8695",
174 "d56db05a8ac7981762f5b877f486c4ef", "b4bc01eb6e59a40922ad17715cafb04b",
175 "09d178439534f4062ae687c351f66d64", "644501399cf73080ac606e5cef7ca09b",
176 "0e8e968fa177204d7e73d7e04ce69ebb", "1d25f9287fdf7ba48a5105f1529b7e75",
177 "02cacccf3752451763a6a6e2e784494f", "6044a1416d53e324ddc012d2e7763339",
178 "57ac6e8f3ab5e943c9280043eeb174b8", "d51b9d65471194d9caebc7d67e75ef10",
179 "278076495180e17c065a95ab7278539a", "9dd7f324816f242be408ffeb0c673732",
180 "f520c4a20acfa0bea1d253c6f0f040fd", "85f38df809df2c2d7c8b4a157a65cd44",
182 if (!strcmp(block_name, "intra8x8")) {
183 TestIntraPred(block_name, pred_funcs, kSignatures8x8, 8, 8);
185 if (!strcmp(block_name, "intra8x4")) {
186 TestIntraPred(block_name, pred_funcs, kSignatures8x4, 8, 4);
188 if (!strcmp(block_name, "intra8x16")) {
189 TestIntraPred(block_name, pred_funcs, kSignatures8x16, 8, 16);
193 void TestIntraPred16(const char *block_name, AvxPredFunc const *pred_funcs) {
194 static const char *const kSignatures16x16[kNumAv1IntraFuncs] = {
195 "50971c07ce26977d30298538fffec619", "527a6b9e0dc5b21b98cf276305432bef",
196 "7eff2868f80ebc2c43a4f367281d80f7", "67cd60512b54964ef6aff1bd4816d922",
197 "48371c87dc95c08a33b2048f89cf6468", "b0acf2872ee411d7530af6d2625a7084",
198 "31d901ab2289d1e61e704e40240382a7", "dae208f3dca583529cff49b73f7c4183",
199 "7af66a2f4c8e0b4908e40f047e60c47c", "125e3ab6ab9bc961f183ec366a7afa88",
200 "ff230677e800977757d14b85a9eba404", "eb42dc39140515dd4f3ab1afe6c3e71b",
201 "93d6b5352b571805ab16a55e1bbed86a", "03764e4c0aebbc180e4e2c68fb06df2b",
202 "bb6c74c9076c9f266ab11fb57060d8e6", "0c5162bc28489756ddb847b5678e6f07",
204 static const char *const kSignatures16x8[kNumAv1IntraFuncs] = {
205 "b4cbdbdf10ce13300b4063a3daf99e04", "3731e1e6202064a9d0604d7c293ecee4",
206 "6c856188c4256a06452f0d5d70cac436", "1f2192b4c8c497589484ea7bf9c944e8",
207 "84011bd4b7f565119d06787840e333a0", "0e48949f7a6aa36f0d76b5d01f91124a",
208 "58114c06f6b9d8285e5020c7afd834ab", "e37afe84a8b3c5e0f048d4652ecbe09e",
209 "c216348473fb029b45f8fb4f2862a7bd", "0b7385155dcef742cc456d5741ae93a3",
210 "d55fadb221f0ea20266e57cd413e7b94", "9bd6eb226c7e169b8d53cf70aea98b3a",
211 "60eff8064634b6c73b10681356baeee9", "1559aeb081a9c0c71111d6093c2ff9fd",
212 "c15479b739713773e5cabb748451987b", "72e33ec12c9b67aea26d8d005fb82de2",
214 static const char *const kSignatures16x32[kNumAv1IntraFuncs] = {
215 "abe5233d189cdbf79424721571bbaa7b", "282759f81e3cfb2e2d396fe406b72a8b",
216 "e2224926c264f6f174cbc3167a233168", "6814e85c2b33f8c9415d62e80394b47b",
217 "99cbbb60459c08a3061d72c4e4f6276a", "1d1567d40b8e816f8c1f71e576fe0f87",
218 "5e989f9c748a0d2cd8c4ebf9d3fe1278", "7135a2f419452a3a192a35156f68b019",
219 "06e10af5a726d2c81b8f8c708204f9fb", "c0882f0e7ba1ffa0aeef6d5c751df6de",
220 "8477429e17d39a423f30e2082f651549", "ba35068a30c2d1d10901e4bfabd02a11",
221 "36fdd371b624a075814d497c4832ec85", "8ab8da61b727442b6ff692b40d0df018",
222 "e35a10ad7fdf2327e821504a90f6a6eb", "1f7211e727dc1de7d6a55d082fbdd821",
224 if (!strcmp(block_name, "intra16x16")) {
225 TestIntraPred(block_name, pred_funcs, kSignatures16x16, 16, 16);
227 if (!strcmp(block_name, "intra16x8")) {
228 TestIntraPred(block_name, pred_funcs, kSignatures16x8, 16, 8);
230 if (!strcmp(block_name, "intra16x32")) {
231 TestIntraPred(block_name, pred_funcs, kSignatures16x32, 16, 32);
235 void TestIntraPred32(const char *block_name, AvxPredFunc const *pred_funcs) {
236 static const char *const kSignatures32x32[kNumAv1IntraFuncs] = {
237 "a0a618c900e65ae521ccc8af789729f2", "985aaa7c72b4a6c2fb431d32100cf13a",
238 "10662d09febc3ca13ee4e700120daeb5", "b3b01379ba08916ef6b1b35f7d9ad51c",
239 "9f4261755795af97e34679c333ec7004", "bc2c9da91ad97ef0d1610fb0a9041657",
240 "f524b1a7e31c7bb9bfb2487fac3e16d8", "4039bb7da0f6860090d3c57b5c85468f",
241 "b29fff7b61804e68383e3a609b33da58", "e1aa5e49067fd8dba66c2eb8d07b7a89",
242 "db217e7891581cf93895ef5974bebb21", "beb6cdc52b52c8976b4d2407ec8d2313",
243 "ef1653982b69e1f64bee3759f3e1ec45", "1a51a675deba2c83282142eb48d3dc3d",
244 "866c224746dc260cda861a7b1b383fb3", "cea23799fc3526e1b6a6ff02b42b82af",
246 static const char *const kSignatures32x16[kNumAv1IntraFuncs] = {
247 "d1aeb8d5fdcfd3307922af01a798a4dc", "b0bcb514ebfbee065faea9d34c12ae75",
248 "d6a18c63b4e909871c0137ca652fad23", "fd047f2fc1b8ffb95d0eeef3e8796a45",
249 "645ab60779ea348fd93c81561c31bab9", "4409633c9db8dff41ade4292a3a56e7f",
250 "b9b2935b2287a9a461ac5c11251ac706", "43b05f808c0ac4fe8accd84d293b0488",
251 "1d2cb43872d20c205ffb185102bcd22a", "2c1551b5e99592fd21053b5d14e397d9",
252 "cd499ef0dd41e2e38d5dac3319dfdd97", "cd2610426637003f3b5d3984cb3320d5",
253 "5e36a11e069b31c2a739f3a9c7b37c24", "e83b9483d702cfae496991c3c7fa92c0",
254 "12f6ddf98c7f30a277307f1ea935b030", "354321d6c32bbdb0739e4fa2acbf41e1",
256 if (!strcmp(block_name, "intra32x32")) {
257 TestIntraPred(block_name, pred_funcs, kSignatures32x32, 32, 32);
259 if (!strcmp(block_name, "intra32x16")) {
260 TestIntraPred(block_name, pred_funcs, kSignatures32x16, 32, 16);
264 } // namespace
266 // Defines a test case for |arch| (e.g., C, SSE2, ...) passing the predictors
267 // to |test_func|. The test name is 'arch.test_func', e.g., C.TestIntraPred4.
268 #define INTRA_PRED_TEST(arch, test_func, blk, dc, dc_left, dc_top, dc_128, v, \
269 h, d45e, d135, d117, d153, d207e, d63e, paeth, smooth, \
270 smooth_v, smooth_h) \
271 TEST(arch, DISABLED_##test_func) { \
272 static const AvxPredFunc aom_intra_pred[] = { \
273 dc, dc_left, dc_top, dc_128, v, h, d45e, d135, \
274 d117, d153, d207e, d63e, paeth, smooth, smooth_v, smooth_h \
275 }; \
276 test_func(blk, aom_intra_pred); \
279 // -----------------------------------------------------------------------------
280 // 4x4
282 INTRA_PRED_TEST(C_1, TestIntraPred4, "intra4x4", aom_dc_predictor_4x4_c,
283 aom_dc_left_predictor_4x4_c, aom_dc_top_predictor_4x4_c,
284 aom_dc_128_predictor_4x4_c, aom_v_predictor_4x4_c,
285 aom_h_predictor_4x4_c, aom_d45e_predictor_4x4_c,
286 aom_d135_predictor_4x4_c, aom_d117_predictor_4x4_c,
287 aom_d153_predictor_4x4_c, aom_d207e_predictor_4x4_c,
288 aom_d63e_predictor_4x4_c, aom_paeth_predictor_4x4_c,
289 aom_smooth_predictor_4x4_c, aom_smooth_v_predictor_4x4_c,
290 aom_smooth_h_predictor_4x4_c)
292 INTRA_PRED_TEST(C_2, TestIntraPred4, "intra4x8", aom_dc_predictor_4x8_c,
293 aom_dc_left_predictor_4x8_c, aom_dc_top_predictor_4x8_c,
294 aom_dc_128_predictor_4x8_c, aom_v_predictor_4x8_c,
295 aom_h_predictor_4x8_c, aom_d45e_predictor_4x8_c,
296 aom_d135_predictor_4x8_c, aom_d117_predictor_4x8_c,
297 aom_d153_predictor_4x8_c, aom_d207e_predictor_4x8_c,
298 aom_d63e_predictor_4x8_c, aom_paeth_predictor_4x8_c,
299 aom_smooth_predictor_4x8_c, aom_smooth_v_predictor_4x8_c,
300 aom_smooth_h_predictor_4x8_c)
302 #if HAVE_SSE2
303 INTRA_PRED_TEST(SSE2_1, TestIntraPred4, "intra4x4", aom_dc_predictor_4x4_sse2,
304 aom_dc_left_predictor_4x4_sse2, aom_dc_top_predictor_4x4_sse2,
305 aom_dc_128_predictor_4x4_sse2, aom_v_predictor_4x4_sse2,
306 aom_h_predictor_4x4_sse2, NULL, NULL, NULL, NULL,
307 aom_d207e_predictor_4x4_sse2, aom_d63e_predictor_4x4_sse2, NULL,
308 NULL, NULL, NULL)
309 INTRA_PRED_TEST(SSE2_2, TestIntraPred4, "intra4x8", aom_dc_predictor_4x8_sse2,
310 aom_dc_left_predictor_4x8_sse2, aom_dc_top_predictor_4x8_sse2,
311 aom_dc_128_predictor_4x8_sse2, aom_v_predictor_4x8_sse2,
312 aom_h_predictor_4x8_sse2, NULL, NULL, NULL, NULL,
313 aom_d207e_predictor_4x8_sse2, aom_d63e_predictor_4x8_sse2, NULL,
314 NULL, NULL, NULL)
315 #endif // HAVE_SSE2
317 #if HAVE_SSSE3
318 INTRA_PRED_TEST(SSSE3_1, TestIntraPred4, "intra4x4", NULL, NULL, NULL, NULL,
319 NULL, NULL, aom_d45e_predictor_4x4_ssse3, NULL, NULL,
320 aom_d153_predictor_4x4_ssse3, NULL,
321 aom_d63e_predictor_4x4_ssse3, aom_paeth_predictor_4x4_ssse3,
322 aom_smooth_predictor_4x4_ssse3, NULL, NULL)
323 INTRA_PRED_TEST(SSSE3_2, TestIntraPred4, "intra4x8", NULL, NULL, NULL, NULL,
324 NULL, NULL, aom_d45e_predictor_4x8_ssse3, NULL, NULL, NULL,
325 NULL, NULL, aom_paeth_predictor_4x8_ssse3,
326 aom_smooth_predictor_4x8_ssse3, NULL, NULL)
327 #endif // HAVE_SSSE3
329 #if HAVE_DSPR2
330 INTRA_PRED_TEST(DSPR2, TestIntraPred4, "intra4x4", aom_dc_predictor_4x4_dspr2,
331 NULL, NULL, NULL, NULL, aom_h_predictor_4x4_dspr2, NULL, NULL,
332 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
333 #endif // HAVE_DSPR2
335 #if HAVE_NEON
336 INTRA_PRED_TEST(NEON, TestIntraPred4, "intra4x4", aom_dc_predictor_4x4_neon,
337 aom_dc_left_predictor_4x4_neon, aom_dc_top_predictor_4x4_neon,
338 aom_dc_128_predictor_4x4_neon, aom_v_predictor_4x4_neon,
339 aom_h_predictor_4x4_neon, NULL, aom_d135_predictor_4x4_neon,
340 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
341 #endif // HAVE_NEON
343 #if HAVE_MSA
344 INTRA_PRED_TEST(MSA, TestIntraPred4, "intra4x4", aom_dc_predictor_4x4_msa,
345 aom_dc_left_predictor_4x4_msa, aom_dc_top_predictor_4x4_msa,
346 aom_dc_128_predictor_4x4_msa, aom_v_predictor_4x4_msa,
347 aom_h_predictor_4x4_msa, NULL, NULL, NULL, NULL, NULL, NULL,
348 NULL, NULL, NULL, NULL)
349 #endif // HAVE_MSA
351 // -----------------------------------------------------------------------------
352 // 8x8
354 INTRA_PRED_TEST(C_1, TestIntraPred8, "intra8x8", aom_dc_predictor_8x8_c,
355 aom_dc_left_predictor_8x8_c, aom_dc_top_predictor_8x8_c,
356 aom_dc_128_predictor_8x8_c, aom_v_predictor_8x8_c,
357 aom_h_predictor_8x8_c, aom_d45e_predictor_8x8_c,
358 aom_d135_predictor_8x8_c, aom_d117_predictor_8x8_c,
359 aom_d153_predictor_8x8_c, aom_d207e_predictor_8x8_c,
360 aom_d63e_predictor_8x8_c, aom_paeth_predictor_8x8_c,
361 aom_smooth_predictor_8x8_c, aom_smooth_v_predictor_8x8_c,
362 aom_smooth_h_predictor_8x8_c)
364 INTRA_PRED_TEST(C_2, TestIntraPred8, "intra8x4", aom_dc_predictor_8x4_c,
365 aom_dc_left_predictor_8x4_c, aom_dc_top_predictor_8x4_c,
366 aom_dc_128_predictor_8x4_c, aom_v_predictor_8x4_c,
367 aom_h_predictor_8x4_c, aom_d45e_predictor_8x4_c,
368 aom_d135_predictor_8x4_c, aom_d117_predictor_8x4_c,
369 aom_d153_predictor_8x4_c, aom_d207e_predictor_8x4_c,
370 aom_d63e_predictor_8x4_c, aom_paeth_predictor_8x4_c,
371 aom_smooth_predictor_8x4_c, aom_smooth_v_predictor_8x4_c,
372 aom_smooth_h_predictor_8x4_c)
374 INTRA_PRED_TEST(C_3, TestIntraPred8, "intra8x16", aom_dc_predictor_8x16_c,
375 aom_dc_left_predictor_8x16_c, aom_dc_top_predictor_8x16_c,
376 aom_dc_128_predictor_8x16_c, aom_v_predictor_8x16_c,
377 aom_h_predictor_8x16_c, aom_d45e_predictor_8x16_c,
378 aom_d135_predictor_8x16_c, aom_d117_predictor_8x16_c,
379 aom_d153_predictor_8x16_c, aom_d207e_predictor_8x16_c,
380 aom_d63e_predictor_8x16_c, aom_paeth_predictor_8x16_c,
381 aom_smooth_predictor_8x16_c, aom_smooth_v_predictor_8x16_c,
382 aom_smooth_h_predictor_8x16_c)
384 #if HAVE_SSE2
385 INTRA_PRED_TEST(SSE2_1, TestIntraPred8, "intra8x8", aom_dc_predictor_8x8_sse2,
386 aom_dc_left_predictor_8x8_sse2, aom_dc_top_predictor_8x8_sse2,
387 aom_dc_128_predictor_8x8_sse2, aom_v_predictor_8x8_sse2,
388 aom_h_predictor_8x8_sse2, NULL, NULL, NULL, NULL,
389 aom_d207e_predictor_8x8_sse2, aom_d63e_predictor_8x8_sse2, NULL,
390 NULL, NULL, NULL)
391 INTRA_PRED_TEST(SSE2_2, TestIntraPred8, "intra8x4", aom_dc_predictor_8x4_sse2,
392 aom_dc_left_predictor_8x4_sse2, aom_dc_top_predictor_8x4_sse2,
393 aom_dc_128_predictor_8x4_sse2, aom_v_predictor_8x4_sse2,
394 aom_h_predictor_8x4_sse2, NULL, NULL, NULL, NULL,
395 aom_d207e_predictor_8x4_sse2, aom_d63e_predictor_8x4_sse2, NULL,
396 NULL, NULL, NULL)
397 INTRA_PRED_TEST(SSE2_3, TestIntraPred8, "intra8x16", aom_dc_predictor_8x16_sse2,
398 aom_dc_left_predictor_8x16_sse2, aom_dc_top_predictor_8x16_sse2,
399 aom_dc_128_predictor_8x16_sse2, aom_v_predictor_8x16_sse2,
400 aom_h_predictor_8x16_sse2, NULL, NULL, NULL, NULL,
401 aom_d207e_predictor_8x16_sse2, aom_d63e_predictor_8x16_sse2,
402 NULL, NULL, NULL, NULL)
403 #endif // HAVE_SSE2
405 #if HAVE_SSSE3
406 INTRA_PRED_TEST(SSSE3_1, TestIntraPred8, "intra8x8", NULL, NULL, NULL, NULL,
407 NULL, NULL, aom_d45e_predictor_8x8_ssse3, NULL, NULL,
408 aom_d153_predictor_8x8_ssse3, NULL, NULL,
409 aom_paeth_predictor_8x8_ssse3, aom_smooth_predictor_8x8_ssse3,
410 NULL, NULL)
411 INTRA_PRED_TEST(SSSE3_2, TestIntraPred8, "intra8x4", NULL, NULL, NULL, NULL,
412 NULL, NULL, aom_d45e_predictor_8x4_ssse3, NULL, NULL, NULL,
413 NULL, NULL, aom_paeth_predictor_8x4_ssse3,
414 aom_smooth_predictor_8x4_ssse3, NULL, NULL)
415 INTRA_PRED_TEST(SSSE3_3, TestIntraPred8, "intra8x16", NULL, NULL, NULL, NULL,
416 NULL, NULL, aom_d45e_predictor_8x16_ssse3, NULL, NULL, NULL,
417 NULL, NULL, aom_paeth_predictor_8x16_ssse3,
418 aom_smooth_predictor_8x16_ssse3, NULL, NULL)
419 #endif // HAVE_SSSE3
421 #if HAVE_DSPR2
422 INTRA_PRED_TEST(DSPR2, TestIntraPred8, "intra8x8", aom_dc_predictor_8x8_dspr2,
423 NULL, NULL, NULL, NULL, aom_h_predictor_8x8_dspr2, NULL, NULL,
424 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
425 #endif // HAVE_DSPR2
427 #if HAVE_NEON
428 INTRA_PRED_TEST(NEON, TestIntraPred8, "intra8x8", aom_dc_predictor_8x8_neon,
429 aom_dc_left_predictor_8x8_neon, aom_dc_top_predictor_8x8_neon,
430 aom_dc_128_predictor_8x8_neon, aom_v_predictor_8x8_neon,
431 aom_h_predictor_8x8_neon, NULL, NULL, NULL, NULL, NULL, NULL,
432 NULL, NULL, NULL, NULL)
433 #endif // HAVE_NEON
435 #if HAVE_MSA
436 INTRA_PRED_TEST(MSA, TestIntraPred8, "intra8x8", aom_dc_predictor_8x8_msa,
437 aom_dc_left_predictor_8x8_msa, aom_dc_top_predictor_8x8_msa,
438 aom_dc_128_predictor_8x8_msa, aom_v_predictor_8x8_msa,
439 aom_h_predictor_8x8_msa, NULL, NULL, NULL, NULL, NULL, NULL,
440 NULL, NULL, NULL, NULL)
441 #endif // HAVE_MSA
443 // -----------------------------------------------------------------------------
444 // 16x16
446 INTRA_PRED_TEST(C_1, TestIntraPred16, "intra16x16", aom_dc_predictor_16x16_c,
447 aom_dc_left_predictor_16x16_c, aom_dc_top_predictor_16x16_c,
448 aom_dc_128_predictor_16x16_c, aom_v_predictor_16x16_c,
449 aom_h_predictor_16x16_c, aom_d45e_predictor_16x16_c,
450 aom_d135_predictor_16x16_c, aom_d117_predictor_16x16_c,
451 aom_d153_predictor_16x16_c, aom_d207e_predictor_16x16_c,
452 aom_d63e_predictor_16x16_c, aom_paeth_predictor_16x16_c,
453 aom_smooth_predictor_16x16_c, aom_smooth_v_predictor_16x16_c,
454 aom_smooth_h_predictor_16x16_c)
456 INTRA_PRED_TEST(C_2, TestIntraPred16, "intra16x8", aom_dc_predictor_16x8_c,
457 aom_dc_left_predictor_16x8_c, aom_dc_top_predictor_16x8_c,
458 aom_dc_128_predictor_16x8_c, aom_v_predictor_16x8_c,
459 aom_h_predictor_16x8_c, aom_d45e_predictor_16x8_c,
460 aom_d135_predictor_16x8_c, aom_d117_predictor_16x8_c,
461 aom_d153_predictor_16x8_c, aom_d207e_predictor_16x8_c,
462 aom_d63e_predictor_16x8_c, aom_paeth_predictor_16x8_c,
463 aom_smooth_predictor_16x8_c, aom_smooth_v_predictor_16x8_c,
464 aom_smooth_h_predictor_16x8_c)
466 INTRA_PRED_TEST(C_3, TestIntraPred16, "intra16x32", aom_dc_predictor_16x32_c,
467 aom_dc_left_predictor_16x32_c, aom_dc_top_predictor_16x32_c,
468 aom_dc_128_predictor_16x32_c, aom_v_predictor_16x32_c,
469 aom_h_predictor_16x32_c, aom_d45e_predictor_16x32_c,
470 aom_d135_predictor_16x32_c, aom_d117_predictor_16x32_c,
471 aom_d153_predictor_16x32_c, aom_d207e_predictor_16x32_c,
472 aom_d63e_predictor_16x32_c, aom_paeth_predictor_16x32_c,
473 aom_smooth_predictor_16x32_c, aom_smooth_v_predictor_16x32_c,
474 aom_smooth_h_predictor_16x32_c)
476 #if HAVE_SSE2
477 INTRA_PRED_TEST(SSE2_1, TestIntraPred16, "intra16x16",
478 aom_dc_predictor_16x16_sse2, aom_dc_left_predictor_16x16_sse2,
479 aom_dc_top_predictor_16x16_sse2,
480 aom_dc_128_predictor_16x16_sse2, aom_v_predictor_16x16_sse2,
481 aom_h_predictor_16x16_sse2, NULL, NULL, NULL, NULL,
482 aom_d207e_predictor_16x16_sse2, aom_d63e_predictor_16x16_sse2,
483 NULL, NULL, NULL, NULL)
484 INTRA_PRED_TEST(SSE2_2, TestIntraPred16, "intra16x8",
485 aom_dc_predictor_16x8_sse2, aom_dc_left_predictor_16x8_sse2,
486 aom_dc_top_predictor_16x8_sse2, aom_dc_128_predictor_16x8_sse2,
487 aom_v_predictor_16x8_sse2, aom_h_predictor_16x8_sse2, NULL,
488 NULL, NULL, NULL, aom_d207e_predictor_16x8_sse2,
489 aom_d63e_predictor_16x8_sse2, NULL, NULL, NULL, NULL)
490 INTRA_PRED_TEST(SSE2_3, TestIntraPred16, "intra16x32",
491 aom_dc_predictor_16x32_sse2, aom_dc_left_predictor_16x32_sse2,
492 aom_dc_top_predictor_16x32_sse2,
493 aom_dc_128_predictor_16x32_sse2, aom_v_predictor_16x32_sse2,
494 aom_h_predictor_16x32_sse2, NULL, NULL, NULL, NULL,
495 aom_d207e_predictor_16x32_sse2, aom_d63e_predictor_16x32_sse2,
496 NULL, NULL, NULL, NULL)
497 #endif // HAVE_SSE2
499 #if HAVE_SSSE3
500 INTRA_PRED_TEST(SSSE3_1, TestIntraPred16, "intra16x16", NULL, NULL, NULL, NULL,
501 NULL, NULL, aom_d45e_predictor_16x16_ssse3, NULL, NULL,
502 aom_d153_predictor_16x16_ssse3, NULL, NULL,
503 aom_paeth_predictor_16x16_ssse3,
504 aom_smooth_predictor_16x16_ssse3, NULL, NULL)
505 INTRA_PRED_TEST(SSSE3_2, TestIntraPred16, "intra16x8", NULL, NULL, NULL, NULL,
506 NULL, NULL, aom_d45e_predictor_16x8_ssse3, NULL, NULL, NULL,
507 NULL, NULL, aom_paeth_predictor_16x8_ssse3,
508 aom_smooth_predictor_16x8_ssse3, NULL, NULL)
509 INTRA_PRED_TEST(SSSE3_3, TestIntraPred16, "intra16x32", NULL, NULL, NULL, NULL,
510 NULL, NULL, aom_d45e_predictor_16x32_ssse3, NULL, NULL, NULL,
511 NULL, NULL, aom_paeth_predictor_16x32_ssse3,
512 aom_smooth_predictor_16x32_ssse3, NULL, NULL)
513 #endif // HAVE_SSSE3
515 #if HAVE_AVX2
516 INTRA_PRED_TEST(AVX2_1, TestIntraPred16, "intra16x16", NULL, NULL, NULL, NULL,
517 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
518 aom_paeth_predictor_16x16_avx2, NULL, NULL, NULL)
519 INTRA_PRED_TEST(AVX2_2, TestIntraPred16, "intra16x8", NULL, NULL, NULL, NULL,
520 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
521 aom_paeth_predictor_16x8_avx2, NULL, NULL, NULL)
522 INTRA_PRED_TEST(AVX2_3, TestIntraPred16, "intra16x32", NULL, NULL, NULL, NULL,
523 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
524 aom_paeth_predictor_16x32_avx2, NULL, NULL, NULL)
525 #endif // HAVE_AVX2
527 #if HAVE_DSPR2
528 INTRA_PRED_TEST(DSPR2, TestIntraPred16, "intra16x16",
529 aom_dc_predictor_16x16_dspr2, NULL, NULL, NULL, NULL,
530 aom_h_predictor_16x16_dspr2, NULL, NULL, NULL, NULL, NULL, NULL,
531 NULL, NULL, NULL, NULL)
532 #endif // HAVE_DSPR2
534 #if HAVE_NEON
535 INTRA_PRED_TEST(NEON, TestIntraPred16, "intra16x16",
536 aom_dc_predictor_16x16_neon, aom_dc_left_predictor_16x16_neon,
537 aom_dc_top_predictor_16x16_neon,
538 aom_dc_128_predictor_16x16_neon, aom_v_predictor_16x16_neon,
539 aom_h_predictor_16x16_neon, NULL, NULL, NULL, NULL, NULL, NULL,
540 NULL, NULL, NULL, NULL)
541 #endif // HAVE_NEON
543 #if HAVE_MSA
544 INTRA_PRED_TEST(MSA, TestIntraPred16, "intra16x16", aom_dc_predictor_16x16_msa,
545 aom_dc_left_predictor_16x16_msa, aom_dc_top_predictor_16x16_msa,
546 aom_dc_128_predictor_16x16_msa, aom_v_predictor_16x16_msa,
547 aom_h_predictor_16x16_msa, NULL, NULL, NULL, NULL, NULL, NULL,
548 NULL, NULL, NULL, NULL)
549 #endif // HAVE_MSA
551 // -----------------------------------------------------------------------------
552 // 32x32
554 INTRA_PRED_TEST(C_1, TestIntraPred32, "intra32x32", aom_dc_predictor_32x32_c,
555 aom_dc_left_predictor_32x32_c, aom_dc_top_predictor_32x32_c,
556 aom_dc_128_predictor_32x32_c, aom_v_predictor_32x32_c,
557 aom_h_predictor_32x32_c, aom_d45e_predictor_32x32_c,
558 aom_d135_predictor_32x32_c, aom_d117_predictor_32x32_c,
559 aom_d153_predictor_32x32_c, aom_d207e_predictor_32x32_c,
560 aom_d63e_predictor_32x32_c, aom_paeth_predictor_32x32_c,
561 aom_smooth_predictor_32x32_c, aom_smooth_v_predictor_32x32_c,
562 aom_smooth_h_predictor_32x32_c)
564 INTRA_PRED_TEST(C_2, TestIntraPred32, "intra32x16", aom_dc_predictor_32x16_c,
565 aom_dc_left_predictor_32x16_c, aom_dc_top_predictor_32x16_c,
566 aom_dc_128_predictor_32x16_c, aom_v_predictor_32x16_c,
567 aom_h_predictor_32x16_c, aom_d45e_predictor_32x16_c,
568 aom_d135_predictor_32x16_c, aom_d117_predictor_32x16_c,
569 aom_d153_predictor_32x16_c, aom_d207e_predictor_32x16_c,
570 aom_d63e_predictor_32x16_c, aom_paeth_predictor_32x16_c,
571 aom_smooth_predictor_32x16_c, aom_smooth_v_predictor_32x16_c,
572 aom_smooth_h_predictor_32x16_c)
574 #if HAVE_SSE2
575 INTRA_PRED_TEST(SSE2_1, TestIntraPred32, "intra32x32",
576 aom_dc_predictor_32x32_sse2, aom_dc_left_predictor_32x32_sse2,
577 aom_dc_top_predictor_32x32_sse2,
578 aom_dc_128_predictor_32x32_sse2, aom_v_predictor_32x32_sse2,
579 aom_h_predictor_32x32_sse2, NULL, NULL, NULL, NULL,
580 aom_d207e_predictor_32x32_sse2, aom_d63e_predictor_32x32_sse2,
581 NULL, NULL, NULL, NULL)
582 INTRA_PRED_TEST(SSE2_2, TestIntraPred32, "intra32x16",
583 aom_dc_predictor_32x16_sse2, aom_dc_left_predictor_32x16_sse2,
584 aom_dc_top_predictor_32x16_sse2,
585 aom_dc_128_predictor_32x16_sse2, aom_v_predictor_32x16_sse2,
586 aom_h_predictor_32x16_sse2, NULL, NULL, NULL, NULL,
587 aom_d207e_predictor_32x16_sse2, aom_d63e_predictor_32x16_sse2,
588 NULL, NULL, NULL, NULL)
589 #endif // HAVE_SSE2
591 #if HAVE_SSSE3
592 INTRA_PRED_TEST(SSSE3_1, TestIntraPred32, "intra32x32", NULL, NULL, NULL, NULL,
593 NULL, NULL, aom_d45e_predictor_32x32_ssse3, NULL, NULL,
594 aom_d153_predictor_32x32_ssse3, NULL, NULL,
595 aom_paeth_predictor_32x32_ssse3,
596 aom_smooth_predictor_32x32_ssse3, NULL, NULL)
597 INTRA_PRED_TEST(SSSE3_2, TestIntraPred32, "intra32x16", NULL, NULL, NULL, NULL,
598 NULL, NULL, aom_d45e_predictor_32x16_ssse3, NULL, NULL, NULL,
599 NULL, NULL, aom_paeth_predictor_32x16_ssse3,
600 aom_smooth_predictor_32x16_ssse3, NULL, NULL)
601 #endif // HAVE_SSSE3
603 #if HAVE_AVX2
604 INTRA_PRED_TEST(AVX2_1, TestIntraPred32, "intra32x32",
605 aom_dc_predictor_32x32_avx2, aom_dc_left_predictor_32x32_avx2,
606 aom_dc_top_predictor_32x32_avx2,
607 aom_dc_128_predictor_32x32_avx2, aom_v_predictor_32x32_avx2,
608 aom_h_predictor_32x32_avx2, NULL, NULL, NULL, NULL, NULL, NULL,
609 aom_paeth_predictor_32x32_avx2, NULL, NULL, NULL)
610 INTRA_PRED_TEST(AVX2_2, TestIntraPred32, "intra32x16",
611 aom_dc_predictor_32x16_avx2, aom_dc_left_predictor_32x16_avx2,
612 aom_dc_top_predictor_32x16_avx2,
613 aom_dc_128_predictor_32x16_avx2, aom_v_predictor_32x16_avx2,
614 NULL, NULL, NULL, NULL, NULL, NULL, NULL,
615 aom_paeth_predictor_32x16_avx2, NULL, NULL, NULL)
616 #endif // HAVE_AVX2
618 #if HAVE_NEON
619 INTRA_PRED_TEST(NEON, TestIntraPred32, "intra32x32",
620 aom_dc_predictor_32x32_neon, aom_dc_left_predictor_32x32_neon,
621 aom_dc_top_predictor_32x32_neon,
622 aom_dc_128_predictor_32x32_neon, aom_v_predictor_32x32_neon,
623 aom_h_predictor_32x32_neon, NULL, NULL, NULL, NULL, NULL, NULL,
624 NULL, NULL, NULL, NULL)
625 #endif // HAVE_NEON
627 #if HAVE_MSA
628 INTRA_PRED_TEST(MSA, TestIntraPred32, "intra32x32", aom_dc_predictor_32x32_msa,
629 aom_dc_left_predictor_32x32_msa, aom_dc_top_predictor_32x32_msa,
630 aom_dc_128_predictor_32x32_msa, aom_v_predictor_32x32_msa,
631 aom_h_predictor_32x32_msa, NULL, NULL, NULL, NULL, NULL, NULL,
632 NULL, NULL, NULL, NULL)
633 #endif // HAVE_MSA
635 // -----------------------------------------------------------------------------
636 // High Bitdepth
637 namespace {
639 typedef void (*AvxHighbdPredFunc)(uint16_t *dst, ptrdiff_t y_stride,
640 const uint16_t *above, const uint16_t *left,
641 int bd);
643 typedef IntraPredTestMem<uint16_t> Av1HighbdIntraPredTestMem;
645 void TestHighbdIntraPred(const char name[], AvxHighbdPredFunc const *pred_funcs,
646 const char *const signatures[], int block_width,
647 int block_height) {
648 const int num_pixels_per_test =
649 block_width * block_height * kNumAv1IntraFuncs;
650 const int kNumTests = static_cast<int>(2.e10 / num_pixels_per_test);
651 Av1HighbdIntraPredTestMem intra_pred_test_mem;
652 const uint16_t *const above = intra_pred_test_mem.above_mem + 16;
653 const int bd = 12;
655 intra_pred_test_mem.Init(block_width, bd);
657 for (int k = 0; k < kNumAv1IntraFuncs; ++k) {
658 if (pred_funcs[k] == NULL) continue;
659 memcpy(intra_pred_test_mem.src, intra_pred_test_mem.ref_src,
660 sizeof(intra_pred_test_mem.src));
661 aom_usec_timer timer;
662 aom_usec_timer_start(&timer);
663 for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
664 pred_funcs[k](intra_pred_test_mem.src, kBPS, above,
665 intra_pred_test_mem.left, bd);
667 libaom_test::ClearSystemState();
668 aom_usec_timer_mark(&timer);
669 const int elapsed_time =
670 static_cast<int>(aom_usec_timer_elapsed(&timer) / 1000);
671 CheckMd5Signature(name, signatures, intra_pred_test_mem.src,
672 sizeof(intra_pred_test_mem.src), elapsed_time, k);
676 void TestHighbdIntraPred4(const char *block_name,
677 AvxHighbdPredFunc const *pred_funcs) {
678 static const char *const kSignatures4x4[kNumAv1IntraFuncs] = {
679 "11f74af6c5737df472f3275cbde062fa", "51bea056b6447c93f6eb8f6b7e8f6f71",
680 "27e97f946766331795886f4de04c5594", "53ab15974b049111fb596c5168ec7e3f",
681 "f0b640bb176fbe4584cf3d32a9b0320a", "729783ca909e03afd4b47111c80d967b",
682 "d631a8544ccc87702db3e98fac494657", "293fc903254a33754133314c6cdba81f",
683 "f8074d704233e73dfd35b458c6092374", "aa6363d08544a1ec4da33d7a0be5640d",
684 "0bdc21a3acdebc393bc2c22e71bbeada", "a48f7a484ba4ad3916055c7160665b56",
685 "6e30009c45474a22032678b1bd579c8f", "e57cba016d808aa8a35619df2a65f049",
686 "55a6c37f39afcbbf5abca4a985b96459", "a623d45b37dafec1f8a75c4c5218913d",
688 static const char *const kSignatures4x8[kNumAv1IntraFuncs] = {
689 "22d519b796d59644043466320e4ccd14", "09513a738c49b3f9542d27f34abbe1d5",
690 "807ae5e8813443ff01e71be6efacfb69", "cbfa18d0293430b6e9708b0be1fd2394",
691 "346c354c34ec7fa780b576db355dab88", "f97dae85c35359632380b09ca98d611e",
692 "aed1beef71de33856c814ff7d63dd9db", "49c47c04dd3d23d6fc5cc32bf9d40ae4",
693 "a24aade6e22b323ee28c8bf08aa2d234", "aefef502f9e144e71cd27dc7383b3c28",
694 "b284ae5277b85ebdd16b5952149f7458", "8dc5791167271f6f347582e07379f580",
695 "698ae351d8896d89ed9e4e67b6e53eda", "dcc197034a9c45a3d8238bf085835f4e",
696 "7a35e2c42ffdc2efc2d6d1d75a100fc7", "41ab6cebd4516c87a91b2a593e2c2506",
699 if (!strcmp(block_name, "Hbd Intra4x4")) {
700 TestHighbdIntraPred(block_name, pred_funcs, kSignatures4x4, 4, 4);
702 if (!strcmp(block_name, "Hbd Intra4x8")) {
703 TestHighbdIntraPred(block_name, pred_funcs, kSignatures4x8, 4, 8);
707 void TestHighbdIntraPred8(const char *block_name,
708 AvxHighbdPredFunc const *pred_funcs) {
709 static const char *const kSignatures8x8[kNumAv1IntraFuncs] = {
710 "03da8829fe94663047fd108c5fcaa71d", "ecdb37b8120a2d3a4c706b016bd1bfd7",
711 "1d4543ed8d2b9368cb96898095fe8a75", "f791c9a67b913cbd82d9da8ecede30e2",
712 "065c70646f4dbaff913282f55a45a441", "51f87123616662ef7c35691497dfd0ba",
713 "4f53cf8e5f43894dc0759f43c7081f60", "9ffe186a6bc7db95275f1bbddd6f7aba",
714 "a3258a2eae2e2bd55cb8f71351b22998", "8d909f0a2066e39b3216092c6289ece4",
715 "6751f60655aba44aff78aaaf4e967377", "d31a449872fab968a8d41de578338780",
716 "85c01ba03df68f9ece7bd3fa0f8980e6", "ad19b7dac092f56df6d054e1f67f21e7",
717 "0edc415b5dd7299f7a34fb9f71d31d78", "2bc8ec19e9f4b77a64b8a0a1f6aec7e7",
719 static const char *const kSignatures8x4[kNumAv1IntraFuncs] = {
720 "d58cd4c4bf3b7bbaa5db5e1a5622ec78", "6e572c35aa782d00cafcb99e9ea047ea",
721 "e8c22a3702b416dc9ab974505afbed09", "aaa4e4762a795aad7ad74de0c662c4e4",
722 "a19f9101967383c3dcbd516dc317a291", "9ab8cb91f1a595b9ebe3fe8de58031aa",
723 "c6c7d65264397d4d31e378e1f1cfd921", "5804158e463ff794b6b8a623f5d2c10d",
724 "c342cdeb39aae4c4f7be10e057029298", "c1bbbcfe4b25f6b8eca6ad2f7ee793d3",
725 "98d1dab8b949859b9c65298ee9f105f8", "396e803aaf6d7a03a231edc48b396051",
726 "2cf9021d5f1169268699807ee118b65f", "ee9605fcbd6fb871f1c5cd81a6989327",
727 "b4871af8316089e3e23522175df7e93f", "d33301e1c2cb173be46792a22d19881a",
729 static const char *const kSignatures8x16[kNumAv1IntraFuncs] = {
730 "4562de1d0336610880fdd5685498a9ec", "16310fa7076394f16fc85c4b149d89c9",
731 "0e94af88e1dc573b6f0f499cddd1f530", "dfd245ee20d091c67809160340365aa9",
732 "d3562504327f70c096c5be23fd8a3747", "601b853558502acbb5135eadd2da117a",
733 "e83f9a8bc16b507d2ed0b6b31a25d6f5", "fc8427d942246e8cba81247bb294afb5",
734 "89cde712e4c1ef675ea156ad679c62c7", "0a68c2b28c3b171ad797cf76a7058f10",
735 "e70724010e12d8f374cedd3910ceb0d5", "ad7987e91267503ba6fd3e8be42eb48c",
736 "3c624345a723a1b2b1bea05a6a08bc99", "2a9c781de609e0184cc7ab442050f4e5",
737 "0ddc5035c22252747126b61fc238c74d", "e43f5d83bab759af69c7b6773fc8f9b2",
739 if (!strcmp(block_name, "Hbd Intra8x8")) {
740 TestHighbdIntraPred(block_name, pred_funcs, kSignatures8x8, 8, 8);
742 if (!strcmp(block_name, "Hbd Intra8x4")) {
743 TestHighbdIntraPred(block_name, pred_funcs, kSignatures8x4, 8, 4);
745 if (!strcmp(block_name, "Hbd Intra8x16")) {
746 TestHighbdIntraPred(block_name, pred_funcs, kSignatures8x16, 8, 16);
750 void TestHighbdIntraPred16(const char *block_name,
751 AvxHighbdPredFunc const *pred_funcs) {
752 static const char *const kSignatures16x16[kNumAv1IntraFuncs] = {
753 "e33cb3f56a878e2fddb1b2fc51cdd275", "c7bff6f04b6052c8ab335d726dbbd52d",
754 "d0b0b47b654a9bcc5c6008110a44589b", "78f5da7b10b2b9ab39f114a33b6254e9",
755 "c78e31d23831abb40d6271a318fdd6f3", "90d1347f4ec9198a0320daecb6ff90b8",
756 "e38e12830e2ee5a01a064ec5998d5948", "cf28bd387b81ad3e5f1a1c779a4b70a0",
757 "24c304330431ddeaf630f6ce94af2eac", "91a329798036bf64e8e00a87b131b8b1",
758 "e536338d1a8ee192b9e591855db1a222", "54ecd47737f71c62d24e3779585113f2",
759 "e63ded54ab3d0e8728b6f24d4f01e53f", "35ce21fbe0ea114c089fc3489a78155d",
760 "f277f6ef8e4d717f1f0dfe2706ac197d", "e8014d3f41256976c02e0f1e622ba2b9",
762 static const char *const kSignatures16x8[kNumAv1IntraFuncs] = {
763 "a57d6b5a9bfd30c29591d8717ace9c51", "f5907ba97ee6c53e339e953fc8d845ee",
764 "ea3aa727913ce45af06f89dd1808db5f", "408af4f23e48d14b48ee35ae094fcd18",
765 "85c41cbcb5d744f7961e8950026fbffe", "8a4e588a837638887ba671f8d4910485",
766 "caae3cc3d419bbd28aa389dbe4febee1", "ea67fb80d71b6471467c79662af1186c",
767 "c83f7252412dd1ad2fc6af848e7f6be8", "f45af3d697f42f1b9b8def4e46bac78c",
768 "dca4a2aaf5f63db387e264ba5963943a", "d01b1bcc50b4b66c1231142eae628cd3",
769 "b792d8826b67a21757ea7097cff9e05b", "f94ce7101bb87fd3bb9312112527dbf4",
770 "688c6660a6dc6fa61fa1aa38e708c209", "0cdf641b4f81d69509c92ae0b93ef5ff",
772 static const char *const kSignatures16x32[kNumAv1IntraFuncs] = {
773 "aee4b3b0e3cc02d48e2c40d77f807927", "8baef2b2e789f79c8df9d90ad10f34a4",
774 "038c38ee3c4f090bb8d736eab136aafc", "1a3de2aaeaffd68a9fd6c7f6557b83f3",
775 "385c6e0ea29421dd81011a2934641e26", "6cf96c285d1a2d4787f955dad715b08c",
776 "21f82421fda1c3afca8baca0dc048a52", "eac3734852c99a051f6d15a921d9e7b9",
777 "c81f7ffec79508bf78d0f2c67d8abe96", "14b8c62304f65a06653b9b35dfe12d97",
778 "e0893310042511275ae04e5186ee5326", "b4f05903a6191093be719794417ac6fd",
779 "2d7f75dcd73b9528c8396279ff09ff3a", "5a63cd1841e4ed470e4ca5ef845f2281",
780 "610d899ca945fbead33287d4335a8b32", "6bafaad81fce37be46730187e78d8b11",
782 if (!strcmp(block_name, "Hbd Intra16x16")) {
783 TestHighbdIntraPred(block_name, pred_funcs, kSignatures16x16, 16, 16);
785 if (!strcmp(block_name, "Hbd Intra16x8")) {
786 TestHighbdIntraPred(block_name, pred_funcs, kSignatures16x8, 16, 8);
788 if (!strcmp(block_name, "Hbd Intra16x32")) {
789 TestHighbdIntraPred(block_name, pred_funcs, kSignatures16x32, 16, 32);
793 void TestHighbdIntraPred32(const char *block_name,
794 AvxHighbdPredFunc const *pred_funcs) {
795 static const char *const kSignatures32x32[kNumAv1IntraFuncs] = {
796 "a3e8056ba7e36628cce4917cd956fedd", "cc7d3024fe8748b512407edee045377e",
797 "2aab0a0f330a1d3e19b8ecb8f06387a3", "a547bc3fb7b06910bf3973122a426661",
798 "26f712514da95042f93d6e8dc8e431dc", "bb08c6e16177081daa3d936538dbc2e3",
799 "4e10f10b082a5b4265080c102d34eb47", "42867c8553285e94ee8e4df7abafbda8",
800 "6496bdee96100667833f546e1be3d640", "2ebfa25bf981377e682e580208504300",
801 "1788695b10a6f82ae1a56686dcbcd0a9", "c3b9c506604a7132bbb5f4e97bdb03f0",
802 "84bf83f94a51b33654ca940c6f8bc057", "7168b03fc31bf29596a344d6a35d007c",
803 "b073a70d3672f1282236994f5d12e94b", "c51607aebad5dcb3c1e3b58ef9e5b84e",
805 static const char *const kSignatures32x16[kNumAv1IntraFuncs] = {
806 "290b23c9f5a1de7905bfa71a942da29b", "701e7b82593c66da5052fc4b6afd79ce",
807 "4da828c5455cd246735a663fbb204989", "e3fbeaf234efece8dbd752b77226200c",
808 "4d1d8c969f05155a7e7e84cf7aad021b", "c22e4877c2c946d5bdc0d542e29e70cf",
809 "ffd86b234d65c2e1386a5b5b5c188a69", "50aaaa7d90e300b635ab18cdd73e189b",
810 "a945dc7429df168e2169d81b58a15859", "66725070d7fad02dee78730ba0843e19",
811 "33d873cb05d45df2af4ff59033833db7", "0dd783695b69271f65d56f5516fa6dc0",
812 "8ac1ce815e7780500f842b0beb0bb980", "9fee2e2502b507f25bfad30a55b0b610",
813 "4ced9c212ec6f9956e27f68a91b59fef", "4a7a0b93f138bb0863e4e465b01ec0b1",
815 if (!strcmp(block_name, "Hbd Intra32x32")) {
816 TestHighbdIntraPred(block_name, pred_funcs, kSignatures32x32, 32, 32);
818 if (!strcmp(block_name, "Hbd Intra32x16")) {
819 TestHighbdIntraPred(block_name, pred_funcs, kSignatures32x16, 32, 16);
823 } // namespace
825 #define HIGHBD_INTRA_PRED_TEST(arch, test_func, block_size, dc, dc_left, \
826 dc_top, dc_128, v, h, d45e, d135, d117, d153, \
827 d207e, d63e, paeth, smooth, smooth_v, smooth_h) \
828 TEST(arch, DISABLED_##test_func) { \
829 static const AvxHighbdPredFunc aom_intra_pred[] = { \
830 dc, dc_left, dc_top, dc_128, v, h, d45e, d135, \
831 d117, d153, d207e, d63e, paeth, smooth, smooth_v, smooth_h \
832 }; \
833 test_func(block_size, aom_intra_pred); \
836 // -----------------------------------------------------------------------------
837 // 4x4
839 HIGHBD_INTRA_PRED_TEST(
840 C_1, TestHighbdIntraPred4, "Hbd Intra4x4", aom_highbd_dc_predictor_4x4_c,
841 aom_highbd_dc_left_predictor_4x4_c, aom_highbd_dc_top_predictor_4x4_c,
842 aom_highbd_dc_128_predictor_4x4_c, aom_highbd_v_predictor_4x4_c,
843 aom_highbd_h_predictor_4x4_c, aom_highbd_d45e_predictor_4x4_c,
844 aom_highbd_d135_predictor_4x4_c, aom_highbd_d117_predictor_4x4_c,
845 aom_highbd_d153_predictor_4x4_c, aom_highbd_d207e_predictor_4x4_c,
846 aom_highbd_d63e_predictor_4x4_c, aom_highbd_paeth_predictor_4x4_c,
847 aom_highbd_smooth_predictor_4x4_c, aom_highbd_smooth_v_predictor_4x4_c,
848 aom_highbd_smooth_h_predictor_4x4_c)
850 #if HAVE_SSE2
851 HIGHBD_INTRA_PRED_TEST(
852 SSE2_1, TestHighbdIntraPred4, "Hbd Intra4x4",
853 aom_highbd_dc_predictor_4x4_sse2, aom_highbd_dc_left_predictor_4x4_sse2,
854 aom_highbd_dc_top_predictor_4x4_sse2, aom_highbd_dc_128_predictor_4x4_sse2,
855 aom_highbd_v_predictor_4x4_sse2, aom_highbd_h_predictor_4x4_sse2,
856 aom_highbd_d45e_predictor_4x4_sse2, aom_highbd_d135_predictor_4x4_sse2,
857 aom_highbd_d117_predictor_4x4_sse2, aom_highbd_d153_predictor_4x4_sse2,
858 aom_highbd_d207e_predictor_4x4_sse2, aom_highbd_d63e_predictor_4x4_sse2,
859 NULL, NULL, NULL, NULL)
861 HIGHBD_INTRA_PRED_TEST(
862 SSE2_2, TestHighbdIntraPred4, "Hbd Intra4x8",
863 aom_highbd_dc_predictor_4x8_sse2, aom_highbd_dc_left_predictor_4x8_sse2,
864 aom_highbd_dc_top_predictor_4x8_sse2, aom_highbd_dc_128_predictor_4x8_sse2,
865 aom_highbd_v_predictor_4x8_sse2, aom_highbd_h_predictor_4x8_sse2,
866 aom_highbd_d45e_predictor_4x8_sse2, NULL, NULL, NULL,
867 aom_highbd_d207e_predictor_4x8_sse2, aom_highbd_d63e_predictor_4x8_sse2,
868 NULL, NULL, NULL, NULL)
869 #endif
871 HIGHBD_INTRA_PRED_TEST(
872 C_2, TestHighbdIntraPred4, "Hbd Intra4x8", aom_highbd_dc_predictor_4x8_c,
873 aom_highbd_dc_left_predictor_4x8_c, aom_highbd_dc_top_predictor_4x8_c,
874 aom_highbd_dc_128_predictor_4x8_c, aom_highbd_v_predictor_4x8_c,
875 aom_highbd_h_predictor_4x8_c, aom_highbd_d45e_predictor_4x8_c,
876 aom_highbd_d135_predictor_4x8_c, aom_highbd_d117_predictor_4x8_c,
877 aom_highbd_d153_predictor_4x8_c, aom_highbd_d207e_predictor_4x8_c,
878 aom_highbd_d63e_predictor_4x8_c, aom_highbd_paeth_predictor_4x8_c,
879 aom_highbd_smooth_predictor_4x8_c, aom_highbd_smooth_v_predictor_4x8_c,
880 aom_highbd_smooth_h_predictor_4x8_c)
882 // -----------------------------------------------------------------------------
883 // 8x8
885 HIGHBD_INTRA_PRED_TEST(
886 C_1, TestHighbdIntraPred8, "Hbd Intra8x8", aom_highbd_dc_predictor_8x8_c,
887 aom_highbd_dc_left_predictor_8x8_c, aom_highbd_dc_top_predictor_8x8_c,
888 aom_highbd_dc_128_predictor_8x8_c, aom_highbd_v_predictor_8x8_c,
889 aom_highbd_h_predictor_8x8_c, aom_highbd_d45e_predictor_8x8_c,
890 aom_highbd_d135_predictor_8x8_c, aom_highbd_d117_predictor_8x8_c,
891 aom_highbd_d153_predictor_8x8_c, aom_highbd_d207e_predictor_8x8_c,
892 aom_highbd_d63e_predictor_8x8_c, aom_highbd_paeth_predictor_8x8_c,
893 aom_highbd_smooth_predictor_8x8_c, aom_highbd_smooth_v_predictor_8x8_c,
894 aom_highbd_smooth_h_predictor_8x8_c)
896 #if HAVE_SSE2
897 HIGHBD_INTRA_PRED_TEST(
898 SSE2_1, TestHighbdIntraPred8, "Hbd Intra8x8",
899 aom_highbd_dc_predictor_8x8_sse2, aom_highbd_dc_left_predictor_8x8_sse2,
900 aom_highbd_dc_top_predictor_8x8_sse2, aom_highbd_dc_128_predictor_8x8_sse2,
901 aom_highbd_v_predictor_8x8_sse2, aom_highbd_h_predictor_8x8_sse2,
902 aom_highbd_d45e_predictor_8x8_sse2, NULL, NULL, NULL,
903 aom_highbd_d207e_predictor_8x8_sse2, aom_highbd_d63e_predictor_8x8_sse2,
904 NULL, NULL, NULL, NULL)
905 HIGHBD_INTRA_PRED_TEST(
906 SSE2_2, TestHighbdIntraPred8, "Hbd Intra8x4",
907 aom_highbd_dc_predictor_8x4_sse2, aom_highbd_dc_left_predictor_8x4_sse2,
908 aom_highbd_dc_top_predictor_8x4_sse2, aom_highbd_dc_128_predictor_8x4_sse2,
909 aom_highbd_v_predictor_8x4_sse2, aom_highbd_h_predictor_8x4_sse2,
910 aom_highbd_d45e_predictor_8x4_sse2, NULL, NULL, NULL,
911 aom_highbd_d207e_predictor_8x4_sse2, aom_highbd_d63e_predictor_8x4_sse2,
912 NULL, NULL, NULL, NULL)
913 HIGHBD_INTRA_PRED_TEST(
914 SSE2_3, TestHighbdIntraPred8, "Hbd Intra8x16",
915 aom_highbd_dc_predictor_8x16_sse2, aom_highbd_dc_left_predictor_8x16_sse2,
916 aom_highbd_dc_top_predictor_8x16_sse2,
917 aom_highbd_dc_128_predictor_8x16_sse2, aom_highbd_v_predictor_8x16_sse2,
918 aom_highbd_h_predictor_8x16_sse2, aom_highbd_d45e_predictor_8x16_sse2, NULL,
919 NULL, NULL, aom_highbd_d207e_predictor_8x16_sse2,
920 aom_highbd_d63e_predictor_8x16_sse2, NULL, NULL, NULL, NULL)
921 #endif
923 #if HAVE_SSSE3
924 HIGHBD_INTRA_PRED_TEST(SSSE3, TestHighbdIntraPred8, "Hbd Intra8x8", NULL, NULL,
925 NULL, NULL, NULL, NULL, NULL,
926 aom_highbd_d135_predictor_8x8_ssse3,
927 aom_highbd_d117_predictor_8x8_ssse3,
928 aom_highbd_d153_predictor_8x8_ssse3, NULL, NULL, NULL,
929 NULL, NULL, NULL)
930 #endif
932 HIGHBD_INTRA_PRED_TEST(
933 C_2, TestHighbdIntraPred8, "Hbd Intra8x4", aom_highbd_dc_predictor_8x4_c,
934 aom_highbd_dc_left_predictor_8x4_c, aom_highbd_dc_top_predictor_8x4_c,
935 aom_highbd_dc_128_predictor_8x4_c, aom_highbd_v_predictor_8x4_c,
936 aom_highbd_h_predictor_8x4_c, aom_highbd_d45e_predictor_8x4_c,
937 aom_highbd_d135_predictor_8x4_c, aom_highbd_d117_predictor_8x4_c,
938 aom_highbd_d153_predictor_8x4_c, aom_highbd_d207e_predictor_8x4_c,
939 aom_highbd_d63e_predictor_8x4_c, aom_highbd_paeth_predictor_8x4_c,
940 aom_highbd_smooth_predictor_8x4_c, aom_highbd_smooth_v_predictor_8x4_c,
941 aom_highbd_smooth_h_predictor_8x4_c)
943 HIGHBD_INTRA_PRED_TEST(
944 C_3, TestHighbdIntraPred8, "Hbd Intra8x16", aom_highbd_dc_predictor_8x16_c,
945 aom_highbd_dc_left_predictor_8x16_c, aom_highbd_dc_top_predictor_8x16_c,
946 aom_highbd_dc_128_predictor_8x16_c, aom_highbd_v_predictor_8x16_c,
947 aom_highbd_h_predictor_8x16_c, aom_highbd_d45e_predictor_8x16_c,
948 aom_highbd_d135_predictor_8x16_c, aom_highbd_d117_predictor_8x16_c,
949 aom_highbd_d153_predictor_8x16_c, aom_highbd_d207e_predictor_8x16_c,
950 aom_highbd_d63e_predictor_8x16_c, aom_highbd_paeth_predictor_8x16_c,
951 aom_highbd_smooth_predictor_8x16_c, aom_highbd_smooth_v_predictor_8x16_c,
952 aom_highbd_smooth_h_predictor_8x16_c)
954 // -----------------------------------------------------------------------------
955 // 16x16
957 HIGHBD_INTRA_PRED_TEST(
958 C_1, TestHighbdIntraPred16, "Hbd Intra16x16",
959 aom_highbd_dc_predictor_16x16_c, aom_highbd_dc_left_predictor_16x16_c,
960 aom_highbd_dc_top_predictor_16x16_c, aom_highbd_dc_128_predictor_16x16_c,
961 aom_highbd_v_predictor_16x16_c, aom_highbd_h_predictor_16x16_c,
962 aom_highbd_d45e_predictor_16x16_c, aom_highbd_d135_predictor_16x16_c,
963 aom_highbd_d117_predictor_16x16_c, aom_highbd_d153_predictor_16x16_c,
964 aom_highbd_d207e_predictor_16x16_c, aom_highbd_d63e_predictor_16x16_c,
965 aom_highbd_paeth_predictor_16x16_c, aom_highbd_smooth_predictor_16x16_c,
966 aom_highbd_smooth_v_predictor_16x16_c,
967 aom_highbd_smooth_h_predictor_16x16_c)
969 #if HAVE_SSE2
970 HIGHBD_INTRA_PRED_TEST(SSE2_1, TestHighbdIntraPred16, "Hbd Intra16x16",
971 aom_highbd_dc_predictor_16x16_sse2,
972 aom_highbd_dc_left_predictor_16x16_sse2,
973 aom_highbd_dc_top_predictor_16x16_sse2,
974 aom_highbd_dc_128_predictor_16x16_sse2,
975 aom_highbd_v_predictor_16x16_sse2,
976 aom_highbd_h_predictor_16x16_sse2, NULL, NULL, NULL,
977 NULL, aom_highbd_d207e_predictor_16x16_sse2, NULL, NULL,
978 NULL, NULL, NULL)
979 HIGHBD_INTRA_PRED_TEST(SSE2_2, TestHighbdIntraPred16, "Hbd Intra16x8",
980 aom_highbd_dc_predictor_16x8_sse2,
981 aom_highbd_dc_left_predictor_16x8_sse2,
982 aom_highbd_dc_top_predictor_16x8_sse2,
983 aom_highbd_dc_128_predictor_16x8_sse2,
984 aom_highbd_v_predictor_16x8_sse2,
985 aom_highbd_h_predictor_16x8_sse2, NULL, NULL, NULL, NULL,
986 aom_highbd_d207e_predictor_16x8_sse2, NULL, NULL, NULL,
987 NULL, NULL)
988 HIGHBD_INTRA_PRED_TEST(SSE2_3, TestHighbdIntraPred16, "Hbd Intra16x32",
989 aom_highbd_dc_predictor_16x32_sse2,
990 aom_highbd_dc_left_predictor_16x32_sse2,
991 aom_highbd_dc_top_predictor_16x32_sse2,
992 aom_highbd_dc_128_predictor_16x32_sse2,
993 aom_highbd_v_predictor_16x32_sse2,
994 aom_highbd_h_predictor_16x32_sse2, NULL, NULL, NULL,
995 NULL, aom_highbd_d207e_predictor_16x32_sse2, NULL, NULL,
996 NULL, NULL, NULL)
997 #endif
999 #if HAVE_SSSE3
1000 HIGHBD_INTRA_PRED_TEST(SSSE3_1, TestHighbdIntraPred16, "Hbd Intra16x16", NULL,
1001 NULL, NULL, NULL, NULL, NULL, NULL,
1002 aom_highbd_d135_predictor_16x16_ssse3,
1003 aom_highbd_d117_predictor_16x16_ssse3,
1004 aom_highbd_d153_predictor_16x16_ssse3, NULL, NULL, NULL,
1005 NULL, NULL, NULL)
1006 #endif
1008 #if HAVE_AVX2
1009 HIGHBD_INTRA_PRED_TEST(AVX2_1, TestHighbdIntraPred16, "Hbd Intra16x16", NULL,
1010 NULL, NULL, NULL, NULL, NULL,
1011 aom_highbd_d45e_predictor_16x16_avx2, NULL, NULL, NULL,
1012 NULL, aom_highbd_d63e_predictor_16x16_avx2, NULL, NULL,
1013 NULL, NULL)
1015 HIGHBD_INTRA_PRED_TEST(AVX2_2, TestHighbdIntraPred16, "Hbd Intra16x8", NULL,
1016 NULL, NULL, NULL, NULL, NULL,
1017 aom_highbd_d45e_predictor_16x8_avx2, NULL, NULL, NULL,
1018 NULL, aom_highbd_d63e_predictor_16x8_avx2, NULL, NULL,
1019 NULL, NULL)
1021 HIGHBD_INTRA_PRED_TEST(AVX2_3, TestHighbdIntraPred16, "Hbd Intra16x32", NULL,
1022 NULL, NULL, NULL, NULL, NULL,
1023 aom_highbd_d45e_predictor_16x32_avx2, NULL, NULL, NULL,
1024 NULL, aom_highbd_d63e_predictor_16x32_avx2, NULL, NULL,
1025 NULL, NULL)
1026 #endif
1028 HIGHBD_INTRA_PRED_TEST(
1029 C_2, TestHighbdIntraPred16, "Hbd Intra16x8", aom_highbd_dc_predictor_16x8_c,
1030 aom_highbd_dc_left_predictor_16x8_c, aom_highbd_dc_top_predictor_16x8_c,
1031 aom_highbd_dc_128_predictor_16x8_c, aom_highbd_v_predictor_16x8_c,
1032 aom_highbd_h_predictor_16x8_c, aom_highbd_d45e_predictor_16x8_c,
1033 aom_highbd_d135_predictor_16x8_c, aom_highbd_d117_predictor_16x8_c,
1034 aom_highbd_d153_predictor_16x8_c, aom_highbd_d207e_predictor_16x8_c,
1035 aom_highbd_d63e_predictor_16x8_c, aom_highbd_paeth_predictor_16x8_c,
1036 aom_highbd_smooth_predictor_16x8_c, aom_highbd_smooth_v_predictor_16x8_c,
1037 aom_highbd_smooth_h_predictor_16x8_c)
1039 HIGHBD_INTRA_PRED_TEST(
1040 C_3, TestHighbdIntraPred16, "Hbd Intra16x32",
1041 aom_highbd_dc_predictor_16x32_c, aom_highbd_dc_left_predictor_16x32_c,
1042 aom_highbd_dc_top_predictor_16x32_c, aom_highbd_dc_128_predictor_16x32_c,
1043 aom_highbd_v_predictor_16x32_c, aom_highbd_h_predictor_16x32_c,
1044 aom_highbd_d45e_predictor_16x32_c, aom_highbd_d135_predictor_16x32_c,
1045 aom_highbd_d117_predictor_16x32_c, aom_highbd_d153_predictor_16x32_c,
1046 aom_highbd_d207e_predictor_16x32_c, aom_highbd_d63e_predictor_16x32_c,
1047 aom_highbd_paeth_predictor_16x32_c, aom_highbd_smooth_predictor_16x32_c,
1048 aom_highbd_smooth_v_predictor_16x32_c,
1049 aom_highbd_smooth_h_predictor_16x32_c)
1051 // -----------------------------------------------------------------------------
1052 // 32x32
1054 HIGHBD_INTRA_PRED_TEST(
1055 C_1, TestHighbdIntraPred32, "Hbd Intra32x32",
1056 aom_highbd_dc_predictor_32x32_c, aom_highbd_dc_left_predictor_32x32_c,
1057 aom_highbd_dc_top_predictor_32x32_c, aom_highbd_dc_128_predictor_32x32_c,
1058 aom_highbd_v_predictor_32x32_c, aom_highbd_h_predictor_32x32_c,
1059 aom_highbd_d45e_predictor_32x32_c, aom_highbd_d135_predictor_32x32_c,
1060 aom_highbd_d117_predictor_32x32_c, aom_highbd_d153_predictor_32x32_c,
1061 aom_highbd_d207e_predictor_32x32_c, aom_highbd_d63e_predictor_32x32_c,
1062 aom_highbd_paeth_predictor_32x32_c, aom_highbd_smooth_predictor_32x32_c,
1063 aom_highbd_smooth_v_predictor_32x32_c,
1064 aom_highbd_smooth_h_predictor_32x32_c)
1066 #if HAVE_SSE2
1067 HIGHBD_INTRA_PRED_TEST(SSE2_1, TestHighbdIntraPred32, "Hbd Intra32x32",
1068 aom_highbd_dc_predictor_32x32_sse2,
1069 aom_highbd_dc_left_predictor_32x32_sse2,
1070 aom_highbd_dc_top_predictor_32x32_sse2,
1071 aom_highbd_dc_128_predictor_32x32_sse2,
1072 aom_highbd_v_predictor_32x32_sse2,
1073 aom_highbd_h_predictor_32x32_sse2, NULL, NULL, NULL,
1074 NULL, NULL, NULL, NULL, NULL, NULL, NULL)
1075 HIGHBD_INTRA_PRED_TEST(SSE2_2, TestHighbdIntraPred32, "Hbd Intra32x16",
1076 aom_highbd_dc_predictor_32x16_sse2,
1077 aom_highbd_dc_left_predictor_32x16_sse2,
1078 aom_highbd_dc_top_predictor_32x16_sse2,
1079 aom_highbd_dc_128_predictor_32x16_sse2,
1080 aom_highbd_v_predictor_32x16_sse2,
1081 aom_highbd_h_predictor_32x16_sse2, NULL, NULL, NULL,
1082 NULL, NULL, NULL, NULL, NULL, NULL, NULL)
1083 #endif
1085 #if HAVE_SSSE3
1086 HIGHBD_INTRA_PRED_TEST(SSSE3_1, TestHighbdIntraPred32, "Hbd Intra32x32", NULL,
1087 NULL, NULL, NULL, NULL, NULL, NULL,
1088 aom_highbd_d135_predictor_32x32_ssse3,
1089 aom_highbd_d117_predictor_32x32_ssse3,
1090 aom_highbd_d153_predictor_32x32_ssse3, NULL, NULL, NULL,
1091 NULL, NULL, NULL)
1092 #endif
1094 #if HAVE_AVX2
1095 HIGHBD_INTRA_PRED_TEST(AVX2_1, TestHighbdIntraPred32, "Hbd Intra32x32", NULL,
1096 NULL, NULL, NULL, NULL, NULL,
1097 aom_highbd_d45e_predictor_32x32_avx2, NULL, NULL, NULL,
1098 aom_highbd_d207e_predictor_32x32_avx2,
1099 aom_highbd_d63e_predictor_32x32_avx2, NULL, NULL, NULL,
1100 NULL)
1102 HIGHBD_INTRA_PRED_TEST(AVX2_2, TestHighbdIntraPred32, "Hbd Intra32x16", NULL,
1103 NULL, NULL, NULL, NULL, NULL,
1104 aom_highbd_d45e_predictor_32x16_avx2, NULL, NULL, NULL,
1105 aom_highbd_d207e_predictor_32x16_avx2,
1106 aom_highbd_d63e_predictor_32x16_avx2, NULL, NULL, NULL,
1107 NULL)
1108 #endif
1110 HIGHBD_INTRA_PRED_TEST(
1111 C_2, TestHighbdIntraPred32, "Hbd Intra32x16",
1112 aom_highbd_dc_predictor_32x16_c, aom_highbd_dc_left_predictor_32x16_c,
1113 aom_highbd_dc_top_predictor_32x16_c, aom_highbd_dc_128_predictor_32x16_c,
1114 aom_highbd_v_predictor_32x16_c, aom_highbd_h_predictor_32x16_c,
1115 aom_highbd_d45e_predictor_32x16_c, aom_highbd_d135_predictor_32x16_c,
1116 aom_highbd_d117_predictor_32x16_c, aom_highbd_d153_predictor_32x16_c,
1117 aom_highbd_d207e_predictor_32x16_c, aom_highbd_d63e_predictor_32x16_c,
1118 aom_highbd_paeth_predictor_32x16_c, aom_highbd_smooth_predictor_32x16_c,
1119 aom_highbd_smooth_v_predictor_32x16_c,
1120 aom_highbd_smooth_h_predictor_32x16_c)
1122 #include "test/test_libaom.cc"