xref: /aosp_15_r20/external/libaom/test/test_intra_pred_speed.cc (revision 77c1e3ccc04c968bd2bc212e87364f250e820521)
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 //  Test and time AOM intra-predictor functions
13 
14 #include <stdio.h>
15 #include <string>
16 
17 #include "gtest/gtest.h"
18 
19 #include "config/aom_dsp_rtcd.h"
20 
21 #include "test/acm_random.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"
26 #include "av1/common/common_data.h"
27 
28 // -----------------------------------------------------------------------------
29 
30 namespace {
31 
32 // Note:
33 // APPLY_UNIT_TESTS
34 // 1: Do unit tests
35 // 0: Generate MD5 array as required
36 #define APPLY_UNIT_TESTS 1
37 
38 typedef void (*AvxPredFunc)(uint8_t *dst, ptrdiff_t y_stride,
39                             const uint8_t *above, const uint8_t *left);
40 
41 const int kBPS = 64;
42 const int kTotalPixels = kBPS * kBPS;
43 // 4 DC variants, V, H, PAETH, SMOOTH, SMOOTH_V, SMOOTH_H
44 const int kNumAv1IntraFuncs = 10;
45 
46 #if APPLY_UNIT_TESTS
47 const char *kAv1IntraPredNames[kNumAv1IntraFuncs] = {
48   "DC_PRED", "DC_LEFT_PRED", "DC_TOP_PRED", "DC_128_PRED",   "V_PRED",
49   "H_PRED",  "PAETH_PRED",   "SMOOTH_PRED", "SMOOTH_V_PRED", "SMOOTH_H_PRED",
50 };
51 #endif  // APPLY_UNIT_TESTS
52 
53 template <typename Pixel>
54 struct IntraPredTestMem {
Init__anon5cc8b9a40111::IntraPredTestMem55   void Init(int block_width, int block_height, int bd) {
56     ASSERT_LE(block_width, kBPS);
57     ASSERT_LE(block_height, kBPS);
58     // Note: for blocks having width <= 32 and height <= 32, we generate 32x32
59     // random pixels as before to avoid having to recalculate all hashes again.
60     const int block_size_upto_32 = (block_width <= 32) && (block_height <= 32);
61     stride = block_size_upto_32 ? 32 : kBPS;
62     num_pixels = stride * stride;
63     libaom_test::ACMRandom rnd(libaom_test::ACMRandom::DeterministicSeed());
64     above = above_mem + 16;
65     const int mask = (1 << bd) - 1;
66     for (int i = 0; i < num_pixels; ++i) ref_src[i] = rnd.Rand16() & mask;
67     for (int i = 0; i < stride; ++i) left[i] = rnd.Rand16() & mask;
68     for (int i = -1; i < stride; ++i) above[i] = rnd.Rand16() & mask;
69 
70     for (int i = stride; i < 2 * stride; ++i) {
71       left[i] = rnd.Rand16() & mask;
72       above[i] = rnd.Rand16() & mask;
73     }
74   }
75 
76   DECLARE_ALIGNED(16, Pixel, src[kTotalPixels]);
77   DECLARE_ALIGNED(16, Pixel, ref_src[kTotalPixels]);
78   DECLARE_ALIGNED(16, Pixel, left[2 * kBPS]);
79   Pixel *above;
80   int stride;
81   int num_pixels;
82 
83  private:
84   DECLARE_ALIGNED(16, Pixel, above_mem[2 * kBPS + 16]);
85 };
86 
87 // -----------------------------------------------------------------------------
88 // Low Bittdepth
89 
90 typedef IntraPredTestMem<uint8_t> Av1IntraPredTestMem;
91 
92 static const char *const kTxSizeStrings[TX_SIZES_ALL] = {
93   "4X4",  "8X8",  "16X16", "32X32", "64X64", "4X8",   "8X4",
94   "8X16", "16X8", "16X32", "32X16", "32X64", "64X32", "4X16",
95   "16X4", "8X32", "32X8",  "16X64", "64X16",
96 };
97 
CheckMd5Signature(TX_SIZE tx_size,bool is_hbd,const char * const signatures[],const void * data,size_t data_size,int elapsed_time,int idx)98 void CheckMd5Signature(TX_SIZE tx_size, bool is_hbd,
99                        const char *const signatures[], const void *data,
100                        size_t data_size, int elapsed_time, int idx) {
101   const std::string hbd_str = is_hbd ? "Hbd " : "";
102   const std::string name_str = hbd_str + "Intra" + kTxSizeStrings[tx_size];
103   libaom_test::MD5 md5;
104   md5.Add(reinterpret_cast<const uint8_t *>(data), data_size);
105 #if APPLY_UNIT_TESTS
106   printf("Mode %s[%13s]: %5d ms     MD5: %s\n", name_str.c_str(),
107          kAv1IntraPredNames[idx], elapsed_time, md5.Get());
108   EXPECT_STREQ(signatures[idx], md5.Get());
109 #else
110   (void)signatures;
111   (void)elapsed_time;
112   (void)idx;
113   printf("\"%s\",\n", md5.Get());
114 #endif
115 }
116 
TestIntraPred(TX_SIZE tx_size,AvxPredFunc const * pred_funcs,const char * const signatures[])117 void TestIntraPred(TX_SIZE tx_size, AvxPredFunc const *pred_funcs,
118                    const char *const signatures[]) {
119   const int block_width = tx_size_wide[tx_size];
120   const int block_height = tx_size_high[tx_size];
121   const int num_pixels_per_test =
122       block_width * block_height * kNumAv1IntraFuncs;
123   const int kNumTests = static_cast<int>(2.e10 / num_pixels_per_test);
124   Av1IntraPredTestMem intra_pred_test_mem;
125   intra_pred_test_mem.Init(block_width, block_height, 8);
126 
127   for (int k = 0; k < kNumAv1IntraFuncs; ++k) {
128     if (pred_funcs[k] == nullptr) continue;
129     memcpy(intra_pred_test_mem.src, intra_pred_test_mem.ref_src,
130            sizeof(intra_pred_test_mem.src));
131     aom_usec_timer timer;
132     aom_usec_timer_start(&timer);
133     for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
134       pred_funcs[k](intra_pred_test_mem.src, intra_pred_test_mem.stride,
135                     intra_pred_test_mem.above, intra_pred_test_mem.left);
136     }
137     aom_usec_timer_mark(&timer);
138     const int elapsed_time =
139         static_cast<int>(aom_usec_timer_elapsed(&timer) / 1000);
140     CheckMd5Signature(
141         tx_size, false, signatures, intra_pred_test_mem.src,
142         intra_pred_test_mem.num_pixels * sizeof(*intra_pred_test_mem.src),
143         elapsed_time, k);
144   }
145 }
146 
147 static const char *const kSignatures[TX_SIZES_ALL][kNumAv1IntraFuncs] = {
148   {
149       // 4X4
150       "e7ed7353c3383fff942e500e9bfe82fe",
151       "2a4a26fcc6ce005eadc08354d196c8a9",
152       "269d92eff86f315d9c38fe7640d85b15",
153       "ae2960eea9f71ee3dabe08b282ec1773",
154       "6c1abcc44e90148998b51acd11144e9c",
155       "f7bb3186e1ef8a2b326037ff898cad8e",
156       "59fc0e923a08cfac0a493fb38988e2bb",
157       "9ff8bb37d9c830e6ab8ecb0c435d3c91",
158       "de6937fca02354f2874dbc5dbec5d5b3",
159       "723cf948137f7d8c7860d814e55ae67d",
160   },
161   {
162       // 8X8
163       "d8bbae5d6547cfc17e4f5f44c8730e88",
164       "373bab6d931868d41a601d9d88ce9ac3",
165       "6fdd5ff4ff79656c14747598ca9e3706",
166       "d9661c2811d6a73674f40ffb2b841847",
167       "7c722d10b19ccff0b8c171868e747385",
168       "f81dd986eb2b50f750d3a7da716b7e27",
169       "064404361748dd111a890a1470d7f0ea",
170       "dc29b7e1f78cc8e7525d5ea4c0ab9b78",
171       "97111eb1bc26bade6272015df829f1ae",
172       "d19a8a73cc46b807f2c5e817576cc1e1",
173   },
174   {
175       // 16X16
176       "50971c07ce26977d30298538fffec619",
177       "527a6b9e0dc5b21b98cf276305432bef",
178       "7eff2868f80ebc2c43a4f367281d80f7",
179       "67cd60512b54964ef6aff1bd4816d922",
180       "48371c87dc95c08a33b2048f89cf6468",
181       "b0acf2872ee411d7530af6d2625a7084",
182       "93d6b5352b571805ab16a55e1bbed86a",
183       "03764e4c0aebbc180e4e2c68fb06df2b",
184       "bb6c74c9076c9f266ab11fb57060d8e6",
185       "0c5162bc28489756ddb847b5678e6f07",
186   },
187   {
188       // 32X32
189       "a0a618c900e65ae521ccc8af789729f2",
190       "985aaa7c72b4a6c2fb431d32100cf13a",
191       "10662d09febc3ca13ee4e700120daeb5",
192       "b3b01379ba08916ef6b1b35f7d9ad51c",
193       "9f4261755795af97e34679c333ec7004",
194       "bc2c9da91ad97ef0d1610fb0a9041657",
195       "ef1653982b69e1f64bee3759f3e1ec45",
196       "1a51a675deba2c83282142eb48d3dc3d",
197       "866c224746dc260cda861a7b1b383fb3",
198       "cea23799fc3526e1b6a6ff02b42b82af",
199   },
200   {
201       // 64X64
202       "6e1094fa7b50bc813aa2ba29f5df8755",
203       "afe020786b83b793c2bbd9468097ff6e",
204       "be91585259bc37bf4dc1651936e90b3e",
205       "a1650dbcd56e10288c3e269eca37967d",
206       "9e5c34f3797e0cdd3cd9d4c05b0d8950",
207       "bc87be7ac899cc6a28f399d7516c49fe",
208       "9811fd0d2dd515f06122f5d1bd18b784",
209       "3c140e466f2c2c0d9cb7d2157ab8dc27",
210       "9543de76c925a8f6adc884cc7f98dc91",
211       "df1df0376cc944afe7e74e94f53e575a",
212   },
213   {
214       // 4X8
215       "d9fbebdc85f71ab1e18461b2db4a2adc",
216       "5ccb2a68284bc9714d94b8a06ccadbb2",
217       "735d059abc2744f3ff3f9590f7191b37",
218       "d9fbebdc85f71ab1e18461b2db4a2adc",
219       "6819497c44cd0ace120add83672996ee",
220       "7e3244f5a2d3edf81c7e962a842b97f9",
221       "809350f164cd4d1650850bb0f59c3260",
222       "1b60a394331eeab6927a6f8aaff57040",
223       "5307de1bd7329ba6b281d2c1b0b457f9",
224       "24c58a8138339846d95568efb91751db",
225   },
226   {
227       // 8X4
228       "23f9fc11344426c9bee2e06d57dfd628",
229       "2d71a26d1bae1fb34734de7b42fc5eb7",
230       "5af9c1b2fd9d5721fad67b67b3f7c816",
231       "00d71b17be662753813d515f197d145e",
232       "bef10ec984427e28f4390f43809d10af",
233       "77773cdfb7ed6bc882ab202a64b0a470",
234       "2cc48bd66d6b0121b5221d52ccd732af",
235       "b302155e1c9eeeafe2ba2bf68e807a46",
236       "561bc8d0e76d5041ebd5168fc6a115e1",
237       "81d0113fb1d0a9a24ffd6f1987b77948",
238   },
239   {
240       // 8X16
241       "c849de88b24f773dfcdd1d48d1209796",
242       "6cb807c1897b94866a0f3d3c56ed8695",
243       "d56db05a8ac7981762f5b877f486c4ef",
244       "b4bc01eb6e59a40922ad17715cafb04b",
245       "09d178439534f4062ae687c351f66d64",
246       "644501399cf73080ac606e5cef7ca09b",
247       "278076495180e17c065a95ab7278539a",
248       "9dd7f324816f242be408ffeb0c673732",
249       "f520c4a20acfa0bea1d253c6f0f040fd",
250       "85f38df809df2c2d7c8b4a157a65cd44",
251   },
252   {
253       // 16X8
254       "b4cbdbdf10ce13300b4063a3daf99e04",
255       "3731e1e6202064a9d0604d7c293ecee4",
256       "6c856188c4256a06452f0d5d70cac436",
257       "1f2192b4c8c497589484ea7bf9c944e8",
258       "84011bd4b7f565119d06787840e333a0",
259       "0e48949f7a6aa36f0d76b5d01f91124a",
260       "60eff8064634b6c73b10681356baeee9",
261       "1559aeb081a9c0c71111d6093c2ff9fd",
262       "c15479b739713773e5cabb748451987b",
263       "72e33ec12c9b67aea26d8d005fb82de2",
264   },
265   {
266       // 16X32
267       "abe5233d189cdbf79424721571bbaa7b",
268       "282759f81e3cfb2e2d396fe406b72a8b",
269       "e2224926c264f6f174cbc3167a233168",
270       "6814e85c2b33f8c9415d62e80394b47b",
271       "99cbbb60459c08a3061d72c4e4f6276a",
272       "1d1567d40b8e816f8c1f71e576fe0f87",
273       "36fdd371b624a075814d497c4832ec85",
274       "8ab8da61b727442b6ff692b40d0df018",
275       "e35a10ad7fdf2327e821504a90f6a6eb",
276       "1f7211e727dc1de7d6a55d082fbdd821",
277   },
278   {
279       // 32X16
280       "d1aeb8d5fdcfd3307922af01a798a4dc",
281       "b0bcb514ebfbee065faea9d34c12ae75",
282       "d6a18c63b4e909871c0137ca652fad23",
283       "fd047f2fc1b8ffb95d0eeef3e8796a45",
284       "645ab60779ea348fd93c81561c31bab9",
285       "4409633c9db8dff41ade4292a3a56e7f",
286       "5e36a11e069b31c2a739f3a9c7b37c24",
287       "e83b9483d702cfae496991c3c7fa92c0",
288       "12f6ddf98c7f30a277307f1ea935b030",
289       "354321d6c32bbdb0739e4fa2acbf41e1",
290   },
291   {
292       // 32X64
293       "0ce332b343934b34cd4417725faa85cb",
294       "4e2a2cfd8f56f15939bdfc753145b303",
295       "0f46d124ba9f48cdd5d5290acf786d6d",
296       "e1e8ed803236367821981500a3d9eebe",
297       "1d2f8e48e3adb7c448be05d9f66f4954",
298       "9fb2e176636a5689b26f73ca73fcc512",
299       "e720ebccae7e25e36f23da53ae5b5d6a",
300       "86fe4364734169aaa4520d799890d530",
301       "b1870290764bb1b100d1974e2bd70f1d",
302       "ce5b238e19d85ef69d85badfab4e63ae",
303   },
304   {
305       // 64X32
306       "a6c5aeb722615089efbca80b02951ceb",
307       "538424b24bd0830f21788e7238ca762f",
308       "80c15b303235f9bc2259027bb92dfdc4",
309       "e48e1ac15e97191a8fda08d62fff343e",
310       "12604b37875533665078405ef4582e35",
311       "0048afa17bd3e1632d68b96048836530",
312       "07a0cfcb56a5eed50c4bd6c26814336b",
313       "529d8a070de5bc6531fa3ee8f450c233",
314       "33c50a11c7d78f72434064f634305e95",
315       "e0ef7f0559c1a50ec5a8c12011b962f7",
316   },
317   {
318       // 4X16
319       "750491056568eb8fe15387b86bdf06b8",
320       "3a52dae9f599f08cfb3bd1b910dc0e11",
321       "af79f71e3e03dbeca44e2e13561f70c7",
322       "ca7dfd7624afc0c06fb5552f44398535",
323       "b591af115444bf43140c29c269f68fb2",
324       "483d942ae36e69e62f31eb215331416f",
325       "f14b58525e81870bc5d95c7ac71a347f",
326       "371208bb4027d9badb04095d1590bbc4",
327       "c7049c21b2924d70c7c12784d6b6b796",
328       "7d87233f4b5b0f12086045e5d7b2d4c2",
329   },
330   {
331       // 16X4
332       "7c6e325a65e77e732b3adbe237e045e4",
333       "24478f93ffcec47852e004d0fe948464",
334       "258d042c67d4ba3ecfa667f0adc9aebf",
335       "b2cd21d06959f159a1f3c4d9768ee7fb",
336       "b4e1f38157bf8410e7c3da02f687a343",
337       "869e703729eb0fc0711c254944ff5d5a",
338       "9638dd77105a640b146a8201ea7a0801",
339       "919d932c6af8a1cc7486e8ce996dd487",
340       "e1c9be493b6714c7ae48f30044c43140",
341       "bf0fe3889d654b2f6eb98c8fc751f9e4",
342   },
343   {
344       // 8X32
345       "8dfac4319fe0bd40013ffb3102da8c72",
346       "feb46b6dc4e2ca0a09533bfc51d4dcb0",
347       "850837ec714c37262216527aaf4cbbe9",
348       "4603c7800fb08361f163daca876e8bda",
349       "1ff95e7d2debc27b05806fb25abfd624",
350       "d81b9a51a062b23ca7823804cb7bec22",
351       "f1d8978158766f46335203608cb807e7",
352       "f3527096256258c0878d644a9d7d53ca",
353       "cbde98ac8b009953eb112807ad2ea29e",
354       "654fb1153415747feae599f538122af5",
355   },
356   {
357       // 32X8
358       "3d4ee16fab374357474f60b845327bc7",
359       "bc17c5059473a476df4e85f56395ad55",
360       "3d4ee16fab374357474f60b845327bc7",
361       "c14b8db34dc2355b84e3735c9ba16c7f",
362       "a71d25b5d47a92a8b9223c98f18458ee",
363       "6c1cfe2b1893f4576a80675687cb6426",
364       "92d11bbef8b85bb48d799bb055de3514",
365       "bcf81d1db8ae5cc03360467f44f498ec",
366       "79f8c564163555592e808e145eaf5c60",
367       "46fff139cef2ef773938bcc8b0e5abb8",
368   },
369   {
370       // 16X64
371       "3b2a053ee8b05a8ac35ad23b0422a151",
372       "12b0c69595328c465e0b25e0c9e3e9fc",
373       "f77c544ac8035e01920deae40cee7b07",
374       "727797ef15ccd8d325476fe8f12006a3",
375       "f3be77c0fe67eb5d9d515e92bec21eb7",
376       "f1ece6409e01e9dd98b800d49628247d",
377       "efd2ec9bfbbd4fd1f6604ea369df1894",
378       "ec703de918422b9e03197ba0ed60a199",
379       "739418efb89c07f700895deaa5d0b3e3",
380       "9943ae1bbeeebfe1d3a92dc39e049d63",
381   },
382   {
383       // 64X16
384       "821b76b1494d4f84d20817840f719a1a",
385       "69e462c3338a9aaf993c3f7cfbc15649",
386       "516d8f6eb054d74d150e7b444185b6b9",
387       "de1b736e9d99129609d6ef3a491507a0",
388       "fd9b4276e7affe1e0e4ce4f428058994",
389       "cd82fd361a4767ac29a9f406b480b8f3",
390       "2792c2f810157a4a6cb13c28529ff779",
391       "1220442d90c4255ba0969d28b91e93a6",
392       "c7253e10b45f7f67dfee3256c9b94825",
393       "879792198071c7e0b50b9b5010d8c18f",
394   },
395 };
396 
397 }  // namespace
398 
399 // Defines a test case for |arch| (e.g., C, SSE2, ...) passing the predictors
400 // to TestIntraPred. The test name is 'arch.TestIntraPred_tx_size', e.g.,
401 // C.TestIntraPred.0
402 #define INTRA_PRED_TEST(arch, tx_size, dc, dc_left, dc_top, dc_128, v, h,  \
403                         paeth, smooth, smooth_v, smooth_h)                 \
404   TEST(arch, DISABLED_##TestIntraPred_##tx_size) {                         \
405     static const AvxPredFunc aom_intra_pred[] = {                          \
406       dc, dc_left, dc_top, dc_128, v, h, paeth, smooth, smooth_v, smooth_h \
407     };                                                                     \
408     TestIntraPred(tx_size, aom_intra_pred, kSignatures[tx_size]);          \
409   }
410 
411 // -----------------------------------------------------------------------------
412 // 4x4, 4x8, 4x16
413 
414 INTRA_PRED_TEST(C, TX_4X4, aom_dc_predictor_4x4_c, aom_dc_left_predictor_4x4_c,
415                 aom_dc_top_predictor_4x4_c, aom_dc_128_predictor_4x4_c,
416                 aom_v_predictor_4x4_c, aom_h_predictor_4x4_c,
417                 aom_paeth_predictor_4x4_c, aom_smooth_predictor_4x4_c,
418                 aom_smooth_v_predictor_4x4_c, aom_smooth_h_predictor_4x4_c)
419 INTRA_PRED_TEST(C, TX_4X8, aom_dc_predictor_4x8_c, aom_dc_left_predictor_4x8_c,
420                 aom_dc_top_predictor_4x8_c, aom_dc_128_predictor_4x8_c,
421                 aom_v_predictor_4x8_c, aom_h_predictor_4x8_c,
422                 aom_paeth_predictor_4x8_c, aom_smooth_predictor_4x8_c,
423                 aom_smooth_v_predictor_4x8_c, aom_smooth_h_predictor_4x8_c)
424 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
425 INTRA_PRED_TEST(C, TX_4X16, aom_dc_predictor_4x16_c,
426                 aom_dc_left_predictor_4x16_c, aom_dc_top_predictor_4x16_c,
427                 aom_dc_128_predictor_4x16_c, aom_v_predictor_4x16_c,
428                 aom_h_predictor_4x16_c, aom_paeth_predictor_4x16_c,
429                 aom_smooth_predictor_4x16_c, aom_smooth_v_predictor_4x16_c,
430                 aom_smooth_h_predictor_4x16_c)
431 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
432 #if HAVE_SSE2
433 INTRA_PRED_TEST(SSE2, TX_4X4, aom_dc_predictor_4x4_sse2,
434                 aom_dc_left_predictor_4x4_sse2, aom_dc_top_predictor_4x4_sse2,
435                 aom_dc_128_predictor_4x4_sse2, aom_v_predictor_4x4_sse2,
436                 aom_h_predictor_4x4_sse2, nullptr, nullptr, nullptr, nullptr)
437 INTRA_PRED_TEST(SSE2, TX_4X8, aom_dc_predictor_4x8_sse2,
438                 aom_dc_left_predictor_4x8_sse2, aom_dc_top_predictor_4x8_sse2,
439                 aom_dc_128_predictor_4x8_sse2, aom_v_predictor_4x8_sse2,
440                 aom_h_predictor_4x8_sse2, nullptr, nullptr, nullptr, nullptr)
441 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
442 INTRA_PRED_TEST(SSE2, TX_4X16, aom_dc_predictor_4x16_sse2,
443                 aom_dc_left_predictor_4x16_sse2, aom_dc_top_predictor_4x16_sse2,
444                 aom_dc_128_predictor_4x16_sse2, aom_v_predictor_4x16_sse2,
445                 aom_h_predictor_4x16_sse2, nullptr, nullptr, nullptr, nullptr)
446 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
447 #endif  // HAVE_SSE2
448 
449 #if HAVE_SSSE3
450 INTRA_PRED_TEST(SSSE3, TX_4X4, nullptr, nullptr, nullptr, nullptr, nullptr,
451                 nullptr, aom_paeth_predictor_4x4_ssse3,
452                 aom_smooth_predictor_4x4_ssse3,
453                 aom_smooth_v_predictor_4x4_ssse3,
454                 aom_smooth_h_predictor_4x4_ssse3)
455 INTRA_PRED_TEST(SSSE3, TX_4X8, nullptr, nullptr, nullptr, nullptr, nullptr,
456                 nullptr, aom_paeth_predictor_4x8_ssse3,
457                 aom_smooth_predictor_4x8_ssse3,
458                 aom_smooth_v_predictor_4x8_ssse3,
459                 aom_smooth_h_predictor_4x8_ssse3)
460 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
461 INTRA_PRED_TEST(SSSE3, TX_4X16, nullptr, nullptr, nullptr, nullptr, nullptr,
462                 nullptr, aom_paeth_predictor_4x16_ssse3,
463                 aom_smooth_predictor_4x16_ssse3,
464                 aom_smooth_v_predictor_4x16_ssse3,
465                 aom_smooth_h_predictor_4x16_ssse3)
466 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
467 #endif  // HAVE_SSSE3
468 
469 #if HAVE_NEON
470 INTRA_PRED_TEST(NEON, TX_4X4, aom_dc_predictor_4x4_neon,
471                 aom_dc_left_predictor_4x4_neon, aom_dc_top_predictor_4x4_neon,
472                 aom_dc_128_predictor_4x4_neon, aom_v_predictor_4x4_neon,
473                 aom_h_predictor_4x4_neon, aom_paeth_predictor_4x4_neon,
474                 aom_smooth_predictor_4x4_neon, aom_smooth_v_predictor_4x4_neon,
475                 aom_smooth_h_predictor_4x4_neon)
476 INTRA_PRED_TEST(NEON, TX_4X8, aom_dc_predictor_4x8_neon,
477                 aom_dc_left_predictor_4x8_neon, aom_dc_top_predictor_4x8_neon,
478                 aom_dc_128_predictor_4x8_neon, aom_v_predictor_4x8_neon,
479                 aom_h_predictor_4x8_neon, aom_paeth_predictor_4x8_neon,
480                 aom_smooth_predictor_4x8_neon, aom_smooth_v_predictor_4x8_neon,
481                 aom_smooth_h_predictor_4x8_neon)
482 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
483 INTRA_PRED_TEST(NEON, TX_4X16, aom_dc_predictor_4x16_neon,
484                 aom_dc_left_predictor_4x16_neon, aom_dc_top_predictor_4x16_neon,
485                 aom_dc_128_predictor_4x16_neon, aom_v_predictor_4x16_neon,
486                 aom_h_predictor_4x16_neon, aom_paeth_predictor_4x16_neon,
487                 aom_smooth_predictor_4x16_neon,
488                 aom_smooth_v_predictor_4x16_neon,
489                 aom_smooth_h_predictor_4x16_neon)
490 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
491 #endif  // HAVE_NEON
492 
493 // -----------------------------------------------------------------------------
494 // 8x8, 8x4, 8x16, 8x32
495 
496 INTRA_PRED_TEST(C, TX_8X8, aom_dc_predictor_8x8_c, aom_dc_left_predictor_8x8_c,
497                 aom_dc_top_predictor_8x8_c, aom_dc_128_predictor_8x8_c,
498                 aom_v_predictor_8x8_c, aom_h_predictor_8x8_c,
499                 aom_paeth_predictor_8x8_c, aom_smooth_predictor_8x8_c,
500                 aom_smooth_v_predictor_8x8_c, aom_smooth_h_predictor_8x8_c)
501 
502 INTRA_PRED_TEST(C, TX_8X4, aom_dc_predictor_8x4_c, aom_dc_left_predictor_8x4_c,
503                 aom_dc_top_predictor_8x4_c, aom_dc_128_predictor_8x4_c,
504                 aom_v_predictor_8x4_c, aom_h_predictor_8x4_c,
505                 aom_paeth_predictor_8x4_c, aom_smooth_predictor_8x4_c,
506                 aom_smooth_v_predictor_8x4_c, aom_smooth_h_predictor_8x4_c)
507 INTRA_PRED_TEST(C, TX_8X16, aom_dc_predictor_8x16_c,
508                 aom_dc_left_predictor_8x16_c, aom_dc_top_predictor_8x16_c,
509                 aom_dc_128_predictor_8x16_c, aom_v_predictor_8x16_c,
510                 aom_h_predictor_8x16_c, aom_paeth_predictor_8x16_c,
511                 aom_smooth_predictor_8x16_c, aom_smooth_v_predictor_8x16_c,
512                 aom_smooth_h_predictor_8x16_c)
513 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
514 INTRA_PRED_TEST(C, TX_8X32, aom_dc_predictor_8x32_c,
515                 aom_dc_left_predictor_8x32_c, aom_dc_top_predictor_8x32_c,
516                 aom_dc_128_predictor_8x32_c, aom_v_predictor_8x32_c,
517                 aom_h_predictor_8x32_c, aom_paeth_predictor_8x32_c,
518                 aom_smooth_predictor_8x32_c, aom_smooth_v_predictor_8x32_c,
519                 aom_smooth_h_predictor_8x32_c)
520 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
521 
522 #if HAVE_SSE2
523 INTRA_PRED_TEST(SSE2, TX_8X8, aom_dc_predictor_8x8_sse2,
524                 aom_dc_left_predictor_8x8_sse2, aom_dc_top_predictor_8x8_sse2,
525                 aom_dc_128_predictor_8x8_sse2, aom_v_predictor_8x8_sse2,
526                 aom_h_predictor_8x8_sse2, nullptr, nullptr, nullptr, nullptr)
527 INTRA_PRED_TEST(SSE2, TX_8X4, aom_dc_predictor_8x4_sse2,
528                 aom_dc_left_predictor_8x4_sse2, aom_dc_top_predictor_8x4_sse2,
529                 aom_dc_128_predictor_8x4_sse2, aom_v_predictor_8x4_sse2,
530                 aom_h_predictor_8x4_sse2, nullptr, nullptr, nullptr, nullptr)
531 INTRA_PRED_TEST(SSE2, TX_8X16, aom_dc_predictor_8x16_sse2,
532                 aom_dc_left_predictor_8x16_sse2, aom_dc_top_predictor_8x16_sse2,
533                 aom_dc_128_predictor_8x16_sse2, aom_v_predictor_8x16_sse2,
534                 aom_h_predictor_8x16_sse2, nullptr, nullptr, nullptr, nullptr)
535 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
536 INTRA_PRED_TEST(SSE2, TX_8X32, aom_dc_predictor_8x32_sse2,
537                 aom_dc_left_predictor_8x32_sse2, aom_dc_top_predictor_8x32_sse2,
538                 aom_dc_128_predictor_8x32_sse2, aom_v_predictor_8x32_sse2,
539                 aom_h_predictor_8x32_sse2, nullptr, nullptr, nullptr, nullptr)
540 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
541 #endif  // HAVE_SSE2
542 
543 #if HAVE_SSSE3
544 INTRA_PRED_TEST(SSSE3, TX_8X8, nullptr, nullptr, nullptr, nullptr, nullptr,
545                 nullptr, aom_paeth_predictor_8x8_ssse3,
546                 aom_smooth_predictor_8x8_ssse3,
547                 aom_smooth_v_predictor_8x8_ssse3,
548                 aom_smooth_h_predictor_8x8_ssse3)
549 INTRA_PRED_TEST(SSSE3, TX_8X4, nullptr, nullptr, nullptr, nullptr, nullptr,
550                 nullptr, aom_paeth_predictor_8x4_ssse3,
551                 aom_smooth_predictor_8x4_ssse3,
552                 aom_smooth_v_predictor_8x4_ssse3,
553                 aom_smooth_h_predictor_8x4_ssse3)
554 INTRA_PRED_TEST(SSSE3, TX_8X16, nullptr, nullptr, nullptr, nullptr, nullptr,
555                 nullptr, aom_paeth_predictor_8x16_ssse3,
556                 aom_smooth_predictor_8x16_ssse3,
557                 aom_smooth_v_predictor_8x16_ssse3,
558                 aom_smooth_h_predictor_8x16_ssse3)
559 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
560 INTRA_PRED_TEST(SSSE3, TX_8X32, nullptr, nullptr, nullptr, nullptr, nullptr,
561                 nullptr, aom_paeth_predictor_8x32_ssse3,
562                 aom_smooth_predictor_8x32_ssse3,
563                 aom_smooth_v_predictor_8x32_ssse3,
564                 aom_smooth_h_predictor_8x32_ssse3)
565 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
566 #endif  // HAVE_SSSE3
567 
568 #if HAVE_NEON
569 INTRA_PRED_TEST(NEON, TX_8X8, aom_dc_predictor_8x8_neon,
570                 aom_dc_left_predictor_8x8_neon, aom_dc_top_predictor_8x8_neon,
571                 aom_dc_128_predictor_8x8_neon, aom_v_predictor_8x8_neon,
572                 aom_h_predictor_8x8_neon, aom_paeth_predictor_8x8_neon,
573                 aom_smooth_predictor_8x8_neon, aom_smooth_v_predictor_8x8_neon,
574                 aom_smooth_h_predictor_8x8_neon)
575 INTRA_PRED_TEST(NEON, TX_8X4, aom_dc_predictor_8x4_neon,
576                 aom_dc_left_predictor_8x4_neon, aom_dc_top_predictor_8x4_neon,
577                 aom_dc_128_predictor_8x4_neon, aom_v_predictor_8x4_neon,
578                 aom_h_predictor_8x4_neon, aom_paeth_predictor_8x4_neon,
579                 aom_smooth_predictor_8x4_neon, aom_smooth_v_predictor_8x4_neon,
580                 aom_smooth_h_predictor_8x4_neon)
581 INTRA_PRED_TEST(NEON, TX_8X16, aom_dc_predictor_8x16_neon,
582                 aom_dc_left_predictor_8x16_neon, aom_dc_top_predictor_8x16_neon,
583                 aom_dc_128_predictor_8x16_neon, aom_v_predictor_8x16_neon,
584                 aom_h_predictor_8x16_neon, aom_paeth_predictor_8x16_neon,
585                 aom_smooth_predictor_8x16_neon,
586                 aom_smooth_v_predictor_8x16_neon,
587                 aom_smooth_h_predictor_8x16_neon)
588 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
589 INTRA_PRED_TEST(NEON, TX_8X32, aom_dc_predictor_8x32_neon,
590                 aom_dc_left_predictor_8x32_neon, aom_dc_top_predictor_8x32_neon,
591                 aom_dc_128_predictor_8x32_neon, aom_v_predictor_8x32_neon,
592                 aom_h_predictor_8x32_neon, aom_paeth_predictor_8x32_neon,
593                 aom_smooth_predictor_8x32_neon,
594                 aom_smooth_v_predictor_8x32_neon,
595                 aom_smooth_h_predictor_8x32_neon)
596 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
597 #endif  // HAVE_NEON
598 
599 // -----------------------------------------------------------------------------
600 // 16x16, 16x8, 16x32, 16x4, 16x64
601 
602 INTRA_PRED_TEST(C, TX_16X16, aom_dc_predictor_16x16_c,
603                 aom_dc_left_predictor_16x16_c, aom_dc_top_predictor_16x16_c,
604                 aom_dc_128_predictor_16x16_c, aom_v_predictor_16x16_c,
605                 aom_h_predictor_16x16_c, aom_paeth_predictor_16x16_c,
606                 aom_smooth_predictor_16x16_c, aom_smooth_v_predictor_16x16_c,
607                 aom_smooth_h_predictor_16x16_c)
608 INTRA_PRED_TEST(C, TX_16X8, aom_dc_predictor_16x8_c,
609                 aom_dc_left_predictor_16x8_c, aom_dc_top_predictor_16x8_c,
610                 aom_dc_128_predictor_16x8_c, aom_v_predictor_16x8_c,
611                 aom_h_predictor_16x8_c, aom_paeth_predictor_16x8_c,
612                 aom_smooth_predictor_16x8_c, aom_smooth_v_predictor_16x8_c,
613                 aom_smooth_h_predictor_16x8_c)
614 INTRA_PRED_TEST(C, TX_16X32, aom_dc_predictor_16x32_c,
615                 aom_dc_left_predictor_16x32_c, aom_dc_top_predictor_16x32_c,
616                 aom_dc_128_predictor_16x32_c, aom_v_predictor_16x32_c,
617                 aom_h_predictor_16x32_c, aom_paeth_predictor_16x32_c,
618                 aom_smooth_predictor_16x32_c, aom_smooth_v_predictor_16x32_c,
619                 aom_smooth_h_predictor_16x32_c)
620 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
621 INTRA_PRED_TEST(C, TX_16X4, aom_dc_predictor_16x4_c,
622                 aom_dc_left_predictor_16x4_c, aom_dc_top_predictor_16x4_c,
623                 aom_dc_128_predictor_16x4_c, aom_v_predictor_16x4_c,
624                 aom_h_predictor_16x4_c, aom_paeth_predictor_16x4_c,
625                 aom_smooth_predictor_16x4_c, aom_smooth_v_predictor_16x4_c,
626                 aom_smooth_h_predictor_16x4_c)
627 INTRA_PRED_TEST(C, TX_16X64, aom_dc_predictor_16x64_c,
628                 aom_dc_left_predictor_16x64_c, aom_dc_top_predictor_16x64_c,
629                 aom_dc_128_predictor_16x64_c, aom_v_predictor_16x64_c,
630                 aom_h_predictor_16x64_c, aom_paeth_predictor_16x64_c,
631                 aom_smooth_predictor_16x64_c, aom_smooth_v_predictor_16x64_c,
632                 aom_smooth_h_predictor_16x64_c)
633 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
634 
635 #if HAVE_SSE2
636 INTRA_PRED_TEST(SSE2, TX_16X16, aom_dc_predictor_16x16_sse2,
637                 aom_dc_left_predictor_16x16_sse2,
638                 aom_dc_top_predictor_16x16_sse2,
639                 aom_dc_128_predictor_16x16_sse2, aom_v_predictor_16x16_sse2,
640                 aom_h_predictor_16x16_sse2, nullptr, nullptr, nullptr, nullptr)
641 INTRA_PRED_TEST(SSE2, TX_16X8, aom_dc_predictor_16x8_sse2,
642                 aom_dc_left_predictor_16x8_sse2, aom_dc_top_predictor_16x8_sse2,
643                 aom_dc_128_predictor_16x8_sse2, aom_v_predictor_16x8_sse2,
644                 aom_h_predictor_16x8_sse2, nullptr, nullptr, nullptr, nullptr)
645 INTRA_PRED_TEST(SSE2, TX_16X32, aom_dc_predictor_16x32_sse2,
646                 aom_dc_left_predictor_16x32_sse2,
647                 aom_dc_top_predictor_16x32_sse2,
648                 aom_dc_128_predictor_16x32_sse2, aom_v_predictor_16x32_sse2,
649                 aom_h_predictor_16x32_sse2, nullptr, nullptr, nullptr, nullptr)
650 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
651 INTRA_PRED_TEST(SSE2, TX_16X64, aom_dc_predictor_16x64_sse2,
652                 aom_dc_left_predictor_16x64_sse2,
653                 aom_dc_top_predictor_16x64_sse2,
654                 aom_dc_128_predictor_16x64_sse2, aom_v_predictor_16x64_sse2,
655                 aom_h_predictor_16x64_sse2, nullptr, nullptr, nullptr, nullptr)
656 INTRA_PRED_TEST(SSE2, TX_16X4, aom_dc_predictor_16x4_sse2,
657                 aom_dc_left_predictor_16x4_sse2, aom_dc_top_predictor_16x4_sse2,
658                 aom_dc_128_predictor_16x4_sse2, aom_v_predictor_16x4_sse2,
659                 aom_h_predictor_16x4_sse2, nullptr, nullptr, nullptr, nullptr)
660 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
661 #endif  // HAVE_SSE2
662 
663 #if HAVE_SSSE3
664 INTRA_PRED_TEST(SSSE3, TX_16X16, nullptr, nullptr, nullptr, nullptr, nullptr,
665                 nullptr, aom_paeth_predictor_16x16_ssse3,
666                 aom_smooth_predictor_16x16_ssse3,
667                 aom_smooth_v_predictor_16x16_ssse3,
668                 aom_smooth_h_predictor_16x16_ssse3)
669 INTRA_PRED_TEST(SSSE3, TX_16X8, nullptr, nullptr, nullptr, nullptr, nullptr,
670                 nullptr, aom_paeth_predictor_16x8_ssse3,
671                 aom_smooth_predictor_16x8_ssse3,
672                 aom_smooth_v_predictor_16x8_ssse3,
673                 aom_smooth_h_predictor_16x8_ssse3)
674 INTRA_PRED_TEST(SSSE3, TX_16X32, nullptr, nullptr, nullptr, nullptr, nullptr,
675                 nullptr, aom_paeth_predictor_16x32_ssse3,
676                 aom_smooth_predictor_16x32_ssse3,
677                 aom_smooth_v_predictor_16x32_ssse3,
678                 aom_smooth_h_predictor_16x32_ssse3)
679 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
680 INTRA_PRED_TEST(SSSE3, TX_16X64, nullptr, nullptr, nullptr, nullptr, nullptr,
681                 nullptr, aom_paeth_predictor_16x64_ssse3,
682                 aom_smooth_predictor_16x64_ssse3,
683                 aom_smooth_v_predictor_16x64_ssse3,
684                 aom_smooth_h_predictor_16x64_ssse3)
685 INTRA_PRED_TEST(SSSE3, TX_16X4, nullptr, nullptr, nullptr, nullptr, nullptr,
686                 nullptr, aom_paeth_predictor_16x4_ssse3,
687                 aom_smooth_predictor_16x4_ssse3,
688                 aom_smooth_v_predictor_16x4_ssse3,
689                 aom_smooth_h_predictor_16x4_ssse3)
690 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
691 #endif  // HAVE_SSSE3
692 
693 #if HAVE_AVX2
694 INTRA_PRED_TEST(AVX2, TX_16X16, nullptr, nullptr, nullptr, nullptr, nullptr,
695                 nullptr, aom_paeth_predictor_16x16_avx2, nullptr, nullptr,
696                 nullptr)
697 INTRA_PRED_TEST(AVX2, TX_16X8, nullptr, nullptr, nullptr, nullptr, nullptr,
698                 nullptr, aom_paeth_predictor_16x8_avx2, nullptr, nullptr,
699                 nullptr)
700 INTRA_PRED_TEST(AVX2, TX_16X32, nullptr, nullptr, nullptr, nullptr, nullptr,
701                 nullptr, aom_paeth_predictor_16x32_avx2, nullptr, nullptr,
702                 nullptr)
703 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
704 INTRA_PRED_TEST(AVX2, TX_16X64, nullptr, nullptr, nullptr, nullptr, nullptr,
705                 nullptr, aom_paeth_predictor_16x64_avx2, nullptr, nullptr,
706                 nullptr)
707 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
708 #endif  // HAVE_AVX2
709 
710 #if HAVE_NEON
711 INTRA_PRED_TEST(NEON, TX_16X16, aom_dc_predictor_16x16_neon,
712                 aom_dc_left_predictor_16x16_neon,
713                 aom_dc_top_predictor_16x16_neon,
714                 aom_dc_128_predictor_16x16_neon, aom_v_predictor_16x16_neon,
715                 aom_h_predictor_16x16_neon, aom_paeth_predictor_16x16_neon,
716                 aom_smooth_predictor_16x16_neon,
717                 aom_smooth_v_predictor_16x16_neon,
718                 aom_smooth_h_predictor_16x16_neon)
719 INTRA_PRED_TEST(NEON, TX_16X8, aom_dc_predictor_16x8_neon,
720                 aom_dc_left_predictor_16x8_neon, aom_dc_top_predictor_16x8_neon,
721                 aom_dc_128_predictor_16x8_neon, aom_v_predictor_16x8_neon,
722                 aom_h_predictor_16x8_neon, aom_paeth_predictor_16x8_neon,
723                 aom_smooth_predictor_16x8_neon,
724                 aom_smooth_v_predictor_16x8_neon,
725                 aom_smooth_h_predictor_16x8_neon)
726 INTRA_PRED_TEST(NEON, TX_16X32, aom_dc_predictor_16x32_neon,
727                 aom_dc_left_predictor_16x32_neon,
728                 aom_dc_top_predictor_16x32_neon,
729                 aom_dc_128_predictor_16x32_neon, aom_v_predictor_16x32_neon,
730                 aom_h_predictor_16x32_neon, aom_paeth_predictor_16x32_neon,
731                 aom_smooth_predictor_16x32_neon,
732                 aom_smooth_v_predictor_16x32_neon,
733                 aom_smooth_h_predictor_16x32_neon)
734 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
735 INTRA_PRED_TEST(NEON, TX_16X4, aom_dc_predictor_16x4_neon,
736                 aom_dc_left_predictor_16x4_neon, aom_dc_top_predictor_16x4_neon,
737                 aom_dc_128_predictor_16x4_neon, aom_v_predictor_16x4_neon,
738                 aom_h_predictor_16x4_neon, aom_paeth_predictor_16x4_neon,
739                 aom_smooth_predictor_16x4_neon,
740                 aom_smooth_v_predictor_16x4_neon,
741                 aom_smooth_h_predictor_16x4_neon)
742 INTRA_PRED_TEST(NEON, TX_16X64, aom_dc_predictor_16x64_neon,
743                 aom_dc_left_predictor_16x64_neon,
744                 aom_dc_top_predictor_16x64_neon,
745                 aom_dc_128_predictor_16x64_neon, aom_v_predictor_16x64_neon,
746                 aom_h_predictor_16x64_neon, aom_paeth_predictor_16x64_neon,
747                 aom_smooth_predictor_16x64_neon,
748                 aom_smooth_v_predictor_16x64_neon,
749                 aom_smooth_h_predictor_16x64_neon)
750 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
751 #endif  // HAVE_NEON
752 
753 // -----------------------------------------------------------------------------
754 // 32x32, 32x16, 32x64, 32x8
755 
756 INTRA_PRED_TEST(C, TX_32X32, aom_dc_predictor_32x32_c,
757                 aom_dc_left_predictor_32x32_c, aom_dc_top_predictor_32x32_c,
758                 aom_dc_128_predictor_32x32_c, aom_v_predictor_32x32_c,
759                 aom_h_predictor_32x32_c, aom_paeth_predictor_32x32_c,
760                 aom_smooth_predictor_32x32_c, aom_smooth_v_predictor_32x32_c,
761                 aom_smooth_h_predictor_32x32_c)
762 INTRA_PRED_TEST(C, TX_32X16, aom_dc_predictor_32x16_c,
763                 aom_dc_left_predictor_32x16_c, aom_dc_top_predictor_32x16_c,
764                 aom_dc_128_predictor_32x16_c, aom_v_predictor_32x16_c,
765                 aom_h_predictor_32x16_c, aom_paeth_predictor_32x16_c,
766                 aom_smooth_predictor_32x16_c, aom_smooth_v_predictor_32x16_c,
767                 aom_smooth_h_predictor_32x16_c)
768 INTRA_PRED_TEST(C, TX_32X64, aom_dc_predictor_32x64_c,
769                 aom_dc_left_predictor_32x64_c, aom_dc_top_predictor_32x64_c,
770                 aom_dc_128_predictor_32x64_c, aom_v_predictor_32x64_c,
771                 aom_h_predictor_32x64_c, aom_paeth_predictor_32x64_c,
772                 aom_smooth_predictor_32x64_c, aom_smooth_v_predictor_32x64_c,
773                 aom_smooth_h_predictor_32x64_c)
774 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
775 INTRA_PRED_TEST(C, TX_32X8, aom_dc_predictor_32x8_c,
776                 aom_dc_left_predictor_32x8_c, aom_dc_top_predictor_32x8_c,
777                 aom_dc_128_predictor_32x8_c, aom_v_predictor_32x8_c,
778                 aom_h_predictor_32x8_c, aom_paeth_predictor_32x8_c,
779                 aom_smooth_predictor_32x8_c, aom_smooth_v_predictor_32x8_c,
780                 aom_smooth_h_predictor_32x8_c)
781 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
782 
783 #if HAVE_SSE2
784 INTRA_PRED_TEST(SSE2, TX_32X32, aom_dc_predictor_32x32_sse2,
785                 aom_dc_left_predictor_32x32_sse2,
786                 aom_dc_top_predictor_32x32_sse2,
787                 aom_dc_128_predictor_32x32_sse2, aom_v_predictor_32x32_sse2,
788                 aom_h_predictor_32x32_sse2, nullptr, nullptr, nullptr, nullptr)
789 INTRA_PRED_TEST(SSE2, TX_32X16, aom_dc_predictor_32x16_sse2,
790                 aom_dc_left_predictor_32x16_sse2,
791                 aom_dc_top_predictor_32x16_sse2,
792                 aom_dc_128_predictor_32x16_sse2, aom_v_predictor_32x16_sse2,
793                 aom_h_predictor_32x16_sse2, nullptr, nullptr, nullptr, nullptr)
794 INTRA_PRED_TEST(SSE2, TX_32X64, aom_dc_predictor_32x64_sse2,
795                 aom_dc_left_predictor_32x64_sse2,
796                 aom_dc_top_predictor_32x64_sse2,
797                 aom_dc_128_predictor_32x64_sse2, aom_v_predictor_32x64_sse2,
798                 aom_h_predictor_32x64_sse2, nullptr, nullptr, nullptr, nullptr)
799 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
800 INTRA_PRED_TEST(SSE2, TX_32X8, aom_dc_predictor_32x8_sse2,
801                 aom_dc_left_predictor_32x8_sse2, aom_dc_top_predictor_32x8_sse2,
802                 aom_dc_128_predictor_32x8_sse2, aom_v_predictor_32x8_sse2,
803                 aom_h_predictor_32x8_sse2, nullptr, nullptr, nullptr, nullptr)
804 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
805 #endif  // HAVE_SSE2
806 
807 #if HAVE_SSSE3
808 INTRA_PRED_TEST(SSSE3, TX_32X32, nullptr, nullptr, nullptr, nullptr, nullptr,
809                 nullptr, aom_paeth_predictor_32x32_ssse3,
810                 aom_smooth_predictor_32x32_ssse3,
811                 aom_smooth_v_predictor_32x32_ssse3,
812                 aom_smooth_h_predictor_32x32_ssse3)
813 INTRA_PRED_TEST(SSSE3, TX_32X16, nullptr, nullptr, nullptr, nullptr, nullptr,
814                 nullptr, aom_paeth_predictor_32x16_ssse3,
815                 aom_smooth_predictor_32x16_ssse3,
816                 aom_smooth_v_predictor_32x16_ssse3,
817                 aom_smooth_h_predictor_32x16_ssse3)
818 INTRA_PRED_TEST(SSSE3, TX_32X64, nullptr, nullptr, nullptr, nullptr, nullptr,
819                 nullptr, aom_paeth_predictor_32x64_ssse3,
820                 aom_smooth_predictor_32x64_ssse3,
821                 aom_smooth_v_predictor_32x64_ssse3,
822                 aom_smooth_h_predictor_32x64_ssse3)
823 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
824 INTRA_PRED_TEST(SSSE3, TX_32X8, nullptr, nullptr, nullptr, nullptr, nullptr,
825                 nullptr, aom_paeth_predictor_32x8_ssse3,
826                 aom_smooth_predictor_32x8_ssse3,
827                 aom_smooth_v_predictor_32x8_ssse3,
828                 aom_smooth_h_predictor_32x8_ssse3)
829 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
830 #endif  // HAVE_SSSE3
831 
832 #if HAVE_AVX2
833 INTRA_PRED_TEST(AVX2, TX_32X32, aom_dc_predictor_32x32_avx2,
834                 aom_dc_left_predictor_32x32_avx2,
835                 aom_dc_top_predictor_32x32_avx2,
836                 aom_dc_128_predictor_32x32_avx2, aom_v_predictor_32x32_avx2,
837                 aom_h_predictor_32x32_avx2, aom_paeth_predictor_32x32_avx2,
838                 nullptr, nullptr, nullptr)
839 INTRA_PRED_TEST(AVX2, TX_32X16, aom_dc_predictor_32x16_avx2,
840                 aom_dc_left_predictor_32x16_avx2,
841                 aom_dc_top_predictor_32x16_avx2,
842                 aom_dc_128_predictor_32x16_avx2, aom_v_predictor_32x16_avx2,
843                 nullptr, aom_paeth_predictor_32x16_avx2, nullptr, nullptr,
844                 nullptr)
845 INTRA_PRED_TEST(AVX2, TX_32X64, aom_dc_predictor_32x64_avx2,
846                 aom_dc_left_predictor_32x64_avx2,
847                 aom_dc_top_predictor_32x64_avx2,
848                 aom_dc_128_predictor_32x64_avx2, aom_v_predictor_32x64_avx2,
849                 nullptr, aom_paeth_predictor_32x64_avx2, nullptr, nullptr,
850                 nullptr)
851 #endif  // HAVE_AVX2
852 
853 #if HAVE_NEON
854 INTRA_PRED_TEST(NEON, TX_32X32, aom_dc_predictor_32x32_neon,
855                 aom_dc_left_predictor_32x32_neon,
856                 aom_dc_top_predictor_32x32_neon,
857                 aom_dc_128_predictor_32x32_neon, aom_v_predictor_32x32_neon,
858                 aom_h_predictor_32x32_neon, aom_paeth_predictor_32x32_neon,
859                 aom_smooth_predictor_32x32_neon,
860                 aom_smooth_v_predictor_32x32_neon,
861                 aom_smooth_h_predictor_32x32_neon)
862 INTRA_PRED_TEST(NEON, TX_32X16, aom_dc_predictor_32x16_neon,
863                 aom_dc_left_predictor_32x16_neon,
864                 aom_dc_top_predictor_32x16_neon,
865                 aom_dc_128_predictor_32x16_neon, aom_v_predictor_32x16_neon,
866                 aom_h_predictor_32x16_neon, aom_paeth_predictor_32x16_neon,
867                 aom_smooth_predictor_32x16_neon,
868                 aom_smooth_v_predictor_32x16_neon,
869                 aom_smooth_h_predictor_32x16_neon)
870 INTRA_PRED_TEST(NEON, TX_32X64, aom_dc_predictor_32x64_neon,
871                 aom_dc_left_predictor_32x64_neon,
872                 aom_dc_top_predictor_32x64_neon,
873                 aom_dc_128_predictor_32x64_neon, aom_v_predictor_32x64_neon,
874                 aom_h_predictor_32x64_neon, aom_paeth_predictor_32x64_neon,
875                 aom_smooth_predictor_32x64_neon,
876                 aom_smooth_v_predictor_32x64_neon,
877                 aom_smooth_h_predictor_32x64_neon)
878 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
879 INTRA_PRED_TEST(NEON, TX_32X8, aom_dc_predictor_32x8_neon,
880                 aom_dc_left_predictor_32x8_neon, aom_dc_top_predictor_32x8_neon,
881                 aom_dc_128_predictor_32x8_neon, aom_v_predictor_32x8_neon,
882                 aom_h_predictor_32x8_neon, aom_paeth_predictor_32x8_neon,
883                 aom_smooth_predictor_32x8_neon,
884                 aom_smooth_v_predictor_32x8_neon,
885                 aom_smooth_h_predictor_32x8_neon)
886 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
887 #endif  // HAVE_NEON
888 
889 // -----------------------------------------------------------------------------
890 // 64x64, 64x32, 64x16
891 
892 INTRA_PRED_TEST(C, TX_64X64, aom_dc_predictor_64x64_c,
893                 aom_dc_left_predictor_64x64_c, aom_dc_top_predictor_64x64_c,
894                 aom_dc_128_predictor_64x64_c, aom_v_predictor_64x64_c,
895                 aom_h_predictor_64x64_c, aom_paeth_predictor_64x64_c,
896                 aom_smooth_predictor_64x64_c, aom_smooth_v_predictor_64x64_c,
897                 aom_smooth_h_predictor_64x64_c)
898 INTRA_PRED_TEST(C, TX_64X32, aom_dc_predictor_64x32_c,
899                 aom_dc_left_predictor_64x32_c, aom_dc_top_predictor_64x32_c,
900                 aom_dc_128_predictor_64x32_c, aom_v_predictor_64x32_c,
901                 aom_h_predictor_64x32_c, aom_paeth_predictor_64x32_c,
902                 aom_smooth_predictor_64x32_c, aom_smooth_v_predictor_64x32_c,
903                 aom_smooth_h_predictor_64x32_c)
904 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
905 INTRA_PRED_TEST(C, TX_64X16, aom_dc_predictor_64x16_c,
906                 aom_dc_left_predictor_64x16_c, aom_dc_top_predictor_64x16_c,
907                 aom_dc_128_predictor_64x16_c, aom_v_predictor_64x16_c,
908                 aom_h_predictor_64x16_c, aom_paeth_predictor_64x16_c,
909                 aom_smooth_predictor_64x16_c, aom_smooth_v_predictor_64x16_c,
910                 aom_smooth_h_predictor_64x16_c)
911 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
912 
913 #if HAVE_SSE2
914 INTRA_PRED_TEST(SSE2, TX_64X64, aom_dc_predictor_64x64_sse2,
915                 aom_dc_left_predictor_64x64_sse2,
916                 aom_dc_top_predictor_64x64_sse2,
917                 aom_dc_128_predictor_64x64_sse2, aom_v_predictor_64x64_sse2,
918                 aom_h_predictor_64x64_sse2, nullptr, nullptr, nullptr, nullptr)
919 INTRA_PRED_TEST(SSE2, TX_64X32, aom_dc_predictor_64x32_sse2,
920                 aom_dc_left_predictor_64x32_sse2,
921                 aom_dc_top_predictor_64x32_sse2,
922                 aom_dc_128_predictor_64x32_sse2, aom_v_predictor_64x32_sse2,
923                 aom_h_predictor_64x32_sse2, nullptr, nullptr, nullptr, nullptr)
924 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
925 INTRA_PRED_TEST(SSE2, TX_64X16, aom_dc_predictor_64x16_sse2,
926                 aom_dc_left_predictor_64x16_sse2,
927                 aom_dc_top_predictor_64x16_sse2,
928                 aom_dc_128_predictor_64x16_sse2, aom_v_predictor_64x16_sse2,
929                 aom_h_predictor_64x16_sse2, nullptr, nullptr, nullptr, nullptr)
930 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
931 #endif
932 
933 #if HAVE_SSSE3
934 INTRA_PRED_TEST(SSSE3, TX_64X64, nullptr, nullptr, nullptr, nullptr, nullptr,
935                 nullptr, aom_paeth_predictor_64x64_ssse3,
936                 aom_smooth_predictor_64x64_ssse3,
937                 aom_smooth_v_predictor_64x64_ssse3,
938                 aom_smooth_h_predictor_64x64_ssse3)
939 INTRA_PRED_TEST(SSSE3, TX_64X32, nullptr, nullptr, nullptr, nullptr, nullptr,
940                 nullptr, aom_paeth_predictor_64x32_ssse3,
941                 aom_smooth_predictor_64x32_ssse3,
942                 aom_smooth_v_predictor_64x32_ssse3,
943                 aom_smooth_h_predictor_64x32_ssse3)
944 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
945 INTRA_PRED_TEST(SSSE3, TX_64X16, nullptr, nullptr, nullptr, nullptr, nullptr,
946                 nullptr, aom_paeth_predictor_64x16_ssse3,
947                 aom_smooth_predictor_64x16_ssse3,
948                 aom_smooth_v_predictor_64x16_ssse3,
949                 aom_smooth_h_predictor_64x16_ssse3)
950 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
951 #endif
952 
953 #if HAVE_AVX2
954 INTRA_PRED_TEST(AVX2, TX_64X64, aom_dc_predictor_64x64_avx2,
955                 aom_dc_left_predictor_64x64_avx2,
956                 aom_dc_top_predictor_64x64_avx2,
957                 aom_dc_128_predictor_64x64_avx2, aom_v_predictor_64x64_avx2,
958                 nullptr, aom_paeth_predictor_64x64_avx2, nullptr, nullptr,
959                 nullptr)
960 INTRA_PRED_TEST(AVX2, TX_64X32, aom_dc_predictor_64x32_avx2,
961                 aom_dc_left_predictor_64x32_avx2,
962                 aom_dc_top_predictor_64x32_avx2,
963                 aom_dc_128_predictor_64x32_avx2, aom_v_predictor_64x32_avx2,
964                 nullptr, aom_paeth_predictor_64x32_avx2, nullptr, nullptr,
965                 nullptr)
966 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
967 INTRA_PRED_TEST(AVX2, TX_64X16, aom_dc_predictor_64x16_avx2,
968                 aom_dc_left_predictor_64x16_avx2,
969                 aom_dc_top_predictor_64x16_avx2,
970                 aom_dc_128_predictor_64x16_avx2, aom_v_predictor_64x16_avx2,
971                 nullptr, aom_paeth_predictor_64x16_avx2, nullptr, nullptr,
972                 nullptr)
973 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
974 #endif
975 
976 #if HAVE_NEON
977 INTRA_PRED_TEST(NEON, TX_64X64, aom_dc_predictor_64x64_neon,
978                 aom_dc_left_predictor_64x64_neon,
979                 aom_dc_top_predictor_64x64_neon,
980                 aom_dc_128_predictor_64x64_neon, aom_v_predictor_64x64_neon,
981                 aom_h_predictor_64x64_neon, aom_paeth_predictor_64x64_neon,
982                 aom_smooth_predictor_64x64_neon,
983                 aom_smooth_v_predictor_64x64_neon,
984                 aom_smooth_h_predictor_64x64_neon)
985 INTRA_PRED_TEST(NEON, TX_64X32, aom_dc_predictor_64x32_neon,
986                 aom_dc_left_predictor_64x32_neon,
987                 aom_dc_top_predictor_64x32_neon,
988                 aom_dc_128_predictor_64x32_neon, aom_v_predictor_64x32_neon,
989                 aom_h_predictor_64x32_neon, aom_paeth_predictor_64x32_neon,
990                 aom_smooth_predictor_64x32_neon,
991                 aom_smooth_v_predictor_64x32_neon,
992                 aom_smooth_h_predictor_64x32_neon)
993 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
994 INTRA_PRED_TEST(NEON, TX_64X16, aom_dc_predictor_64x16_neon,
995                 aom_dc_left_predictor_64x16_neon,
996                 aom_dc_top_predictor_64x16_neon,
997                 aom_dc_128_predictor_64x16_neon, aom_v_predictor_64x16_neon,
998                 aom_h_predictor_64x16_neon, aom_paeth_predictor_64x16_neon,
999                 aom_smooth_predictor_64x16_neon,
1000                 aom_smooth_v_predictor_64x16_neon,
1001                 aom_smooth_h_predictor_64x16_neon)
1002 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1003 #endif  // HAVE_NEON
1004 
1005 #if CONFIG_AV1_HIGHBITDEPTH
1006 // -----------------------------------------------------------------------------
1007 // High Bitdepth
1008 namespace {
1009 
1010 typedef void (*AvxHighbdPredFunc)(uint16_t *dst, ptrdiff_t y_stride,
1011                                   const uint16_t *above, const uint16_t *left,
1012                                   int bd);
1013 
1014 typedef IntraPredTestMem<uint16_t> Av1HighbdIntraPredTestMem;
1015 
TestHighbdIntraPred(TX_SIZE tx_size,AvxHighbdPredFunc const * pred_funcs,const char * const signatures[])1016 void TestHighbdIntraPred(TX_SIZE tx_size, AvxHighbdPredFunc const *pred_funcs,
1017                          const char *const signatures[]) {
1018   const int block_width = tx_size_wide[tx_size];
1019   const int block_height = tx_size_high[tx_size];
1020   const int num_pixels_per_test =
1021       block_width * block_height * kNumAv1IntraFuncs;
1022   const int kNumTests = static_cast<int>(2.e10 / num_pixels_per_test);
1023   Av1HighbdIntraPredTestMem intra_pred_test_mem;
1024   const int bd = 12;
1025   intra_pred_test_mem.Init(block_width, block_height, bd);
1026 
1027   for (int k = 0; k < kNumAv1IntraFuncs; ++k) {
1028     if (pred_funcs[k] == nullptr) continue;
1029     memcpy(intra_pred_test_mem.src, intra_pred_test_mem.ref_src,
1030            sizeof(intra_pred_test_mem.src));
1031     aom_usec_timer timer;
1032     aom_usec_timer_start(&timer);
1033     for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
1034       pred_funcs[k](intra_pred_test_mem.src, intra_pred_test_mem.stride,
1035                     intra_pred_test_mem.above, intra_pred_test_mem.left, bd);
1036     }
1037     aom_usec_timer_mark(&timer);
1038     const int elapsed_time =
1039         static_cast<int>(aom_usec_timer_elapsed(&timer) / 1000);
1040     CheckMd5Signature(
1041         tx_size, true, signatures, intra_pred_test_mem.src,
1042         intra_pred_test_mem.num_pixels * sizeof(*intra_pred_test_mem.src),
1043         elapsed_time, k);
1044   }
1045 }
1046 
1047 static const char *const kHighbdSignatures[TX_SIZES_ALL][kNumAv1IntraFuncs] = {
1048   {
1049       // 4X4
1050       "11f74af6c5737df472f3275cbde062fa",
1051       "51bea056b6447c93f6eb8f6b7e8f6f71",
1052       "27e97f946766331795886f4de04c5594",
1053       "53ab15974b049111fb596c5168ec7e3f",
1054       "f0b640bb176fbe4584cf3d32a9b0320a",
1055       "729783ca909e03afd4b47111c80d967b",
1056       "6e30009c45474a22032678b1bd579c8f",
1057       "e57cba016d808aa8a35619df2a65f049",
1058       "55a6c37f39afcbbf5abca4a985b96459",
1059       "a623d45b37dafec1f8a75c4c5218913d",
1060   },
1061   {
1062       // 8X8
1063       "03da8829fe94663047fd108c5fcaa71d",
1064       "ecdb37b8120a2d3a4c706b016bd1bfd7",
1065       "1d4543ed8d2b9368cb96898095fe8a75",
1066       "f791c9a67b913cbd82d9da8ecede30e2",
1067       "065c70646f4dbaff913282f55a45a441",
1068       "51f87123616662ef7c35691497dfd0ba",
1069       "85c01ba03df68f9ece7bd3fa0f8980e6",
1070       "ad19b7dac092f56df6d054e1f67f21e7",
1071       "0edc415b5dd7299f7a34fb9f71d31d78",
1072       "2bc8ec19e9f4b77a64b8a0a1f6aec7e7",
1073   },
1074   {
1075       // 16X16
1076       "e33cb3f56a878e2fddb1b2fc51cdd275",
1077       "c7bff6f04b6052c8ab335d726dbbd52d",
1078       "d0b0b47b654a9bcc5c6008110a44589b",
1079       "78f5da7b10b2b9ab39f114a33b6254e9",
1080       "c78e31d23831abb40d6271a318fdd6f3",
1081       "90d1347f4ec9198a0320daecb6ff90b8",
1082       "e63ded54ab3d0e8728b6f24d4f01e53f",
1083       "35ce21fbe0ea114c089fc3489a78155d",
1084       "f277f6ef8e4d717f1f0dfe2706ac197d",
1085       "e8014d3f41256976c02e0f1e622ba2b9",
1086   },
1087   {
1088       // 32X32
1089       "a3e8056ba7e36628cce4917cd956fedd",
1090       "cc7d3024fe8748b512407edee045377e",
1091       "2aab0a0f330a1d3e19b8ecb8f06387a3",
1092       "a547bc3fb7b06910bf3973122a426661",
1093       "26f712514da95042f93d6e8dc8e431dc",
1094       "bb08c6e16177081daa3d936538dbc2e3",
1095       "84bf83f94a51b33654ca940c6f8bc057",
1096       "7168b03fc31bf29596a344d6a35d007c",
1097       "b073a70d3672f1282236994f5d12e94b",
1098       "c51607aebad5dcb3c1e3b58ef9e5b84e",
1099   },
1100   {
1101       // 64X64
1102       "a6baa0d4bfb2269a94c7a38f86a4bccf",
1103       "3f1ef5f473a49eba743f17a3324adf9d",
1104       "12ac11889ae5f55b7781454efd706a6a",
1105       "d9a906c0e692b22e1b4414e71a704b7e",
1106       "47d4cadd56f70c11ff8f3e5d8df81161",
1107       "de997744cf24c16c5ac2a36b02b351cc",
1108       "23781211ae178ddeb6c4bb97a6bd7d83",
1109       "a79d2e28340ca34b9e37daabbf030f63",
1110       "0372bd3ddfc258750a6ac106b70587f4",
1111       "228ef625d9460cbf6fa253a16a730976",
1112   },
1113   {
1114       // 4X8
1115       "22d519b796d59644043466320e4ccd14",
1116       "09513a738c49b3f9542d27f34abbe1d5",
1117       "807ae5e8813443ff01e71be6efacfb69",
1118       "cbfa18d0293430b6e9708b0be1fd2394",
1119       "346c354c34ec7fa780b576db355dab88",
1120       "f97dae85c35359632380b09ca98d611e",
1121       "698ae351d8896d89ed9e4e67b6e53eda",
1122       "dcc197034a9c45a3d8238bf085835f4e",
1123       "7a35e2c42ffdc2efc2d6d1d75a100fc7",
1124       "41ab6cebd4516c87a91b2a593e2c2506",
1125   },
1126   {
1127       // 8X4
1128       "d58cd4c4bf3b7bbaa5db5e1a5622ec78",
1129       "6e572c35aa782d00cafcb99e9ea047ea",
1130       "e8c22a3702b416dc9ab974505afbed09",
1131       "aaa4e4762a795aad7ad74de0c662c4e4",
1132       "a19f9101967383c3dcbd516dc317a291",
1133       "9ab8cb91f1a595b9ebe3fe8de58031aa",
1134       "2cf9021d5f1169268699807ee118b65f",
1135       "ee9605fcbd6fb871f1c5cd81a6989327",
1136       "b4871af8316089e3e23522175df7e93f",
1137       "d33301e1c2cb173be46792a22d19881a",
1138   },
1139   {
1140       // 8X16
1141       "4562de1d0336610880fdd5685498a9ec",
1142       "16310fa7076394f16fc85c4b149d89c9",
1143       "0e94af88e1dc573b6f0f499cddd1f530",
1144       "dfd245ee20d091c67809160340365aa9",
1145       "d3562504327f70c096c5be23fd8a3747",
1146       "601b853558502acbb5135eadd2da117a",
1147       "3c624345a723a1b2b1bea05a6a08bc99",
1148       "2a9c781de609e0184cc7ab442050f4e5",
1149       "0ddc5035c22252747126b61fc238c74d",
1150       "e43f5d83bab759af69c7b6773fc8f9b2",
1151   },
1152   {
1153       // 16X8
1154       "a57d6b5a9bfd30c29591d8717ace9c51",
1155       "f5907ba97ee6c53e339e953fc8d845ee",
1156       "ea3aa727913ce45af06f89dd1808db5f",
1157       "408af4f23e48d14b48ee35ae094fcd18",
1158       "85c41cbcb5d744f7961e8950026fbffe",
1159       "8a4e588a837638887ba671f8d4910485",
1160       "b792d8826b67a21757ea7097cff9e05b",
1161       "f94ce7101bb87fd3bb9312112527dbf4",
1162       "688c6660a6dc6fa61fa1aa38e708c209",
1163       "0cdf641b4f81d69509c92ae0b93ef5ff",
1164   },
1165   {
1166       // 16X32
1167       "aee4b3b0e3cc02d48e2c40d77f807927",
1168       "8baef2b2e789f79c8df9d90ad10f34a4",
1169       "038c38ee3c4f090bb8d736eab136aafc",
1170       "1a3de2aaeaffd68a9fd6c7f6557b83f3",
1171       "385c6e0ea29421dd81011a2934641e26",
1172       "6cf96c285d1a2d4787f955dad715b08c",
1173       "2d7f75dcd73b9528c8396279ff09ff3a",
1174       "5a63cd1841e4ed470e4ca5ef845f2281",
1175       "610d899ca945fbead33287d4335a8b32",
1176       "6bafaad81fce37be46730187e78d8b11",
1177   },
1178   {
1179       // 32X16
1180       "290b23c9f5a1de7905bfa71a942da29b",
1181       "701e7b82593c66da5052fc4b6afd79ce",
1182       "4da828c5455cd246735a663fbb204989",
1183       "e3fbeaf234efece8dbd752b77226200c",
1184       "4d1d8c969f05155a7e7e84cf7aad021b",
1185       "c22e4877c2c946d5bdc0d542e29e70cf",
1186       "8ac1ce815e7780500f842b0beb0bb980",
1187       "9fee2e2502b507f25bfad30a55b0b610",
1188       "4ced9c212ec6f9956e27f68a91b59fef",
1189       "4a7a0b93f138bb0863e4e465b01ec0b1",
1190   },
1191   {
1192       // 32X64
1193       "ad9cfc395a5c5644a21d958c7274ac14",
1194       "f29d6d03c143ddf96fef04c19f2c8333",
1195       "a8bdc852ef704dd4975c61893e8fbc3f",
1196       "7d0bd7dea26226741dbca9a97f27fa74",
1197       "45c27c5cca9a91b6ae8379feb0881c9f",
1198       "8a0b78df1e001b85c874d686eac4aa1b",
1199       "ce9fa75fac54a3f6c0cc3f2083b938f1",
1200       "c0dca10d88762c954af18dc9e3791a39",
1201       "61df229eddfccab913b8fda4bb02f9ac",
1202       "4f4df6bc8d50a5600b573f0e44d70e66",
1203   },
1204   {
1205       // 64X32
1206       "db9d82921fd88b24fdff6f849f2f9c87",
1207       "5ecc7fdc52d2f575ad4f2d0e9e6b1e11",
1208       "b4581311a0a73d95dfac7f8f44591032",
1209       "68bd283cfd1a125f6b2ee47cee874d36",
1210       "804179f05c032908a5e36077bb87c994",
1211       "fc5fd041a8ee779015394d0c066ee43c",
1212       "68f5579ccadfe9a1baafb158334a3db2",
1213       "fe237e45e215ab06d79046da9ad71e84",
1214       "9a8a938a6824551bf7d21b8fd1d70ea1",
1215       "eb7332f2017cd96882c76e7136aeaf53",
1216   },
1217   {
1218       // 4X16
1219       "7bafa307d507747b8132e7735b7f1c73",
1220       "e58bc2d8213a97d1fea9cfb73d7a9633",
1221       "435f8a8e8bbf14dbf2fe16b2be9e97aa",
1222       "1d0e767b68d84acbfb50b7a04e633836",
1223       "5f713bd7b324fe73bb7063e35ee14e5e",
1224       "0dac4e1fa3d59814202715468c01ed56",
1225       "47709d1db4a330c7a8900f450e6fddd1",
1226       "258e0b930bb27db28f05da9cf7d1ee7c",
1227       "36cf030fbae767912593efea045bfff5",
1228       "248d7aceabb7499febae663fae41a920",
1229   },
1230   {
1231       // 16X4
1232       "04dde98e632670e393704742c89f9067",
1233       "8c72543f1664651ae1fa08e2ac0adb9b",
1234       "2354a2cdc2773aa2df8ab4010db1be39",
1235       "6300ad3221c26da39b10e0e6d87ee3be",
1236       "8ea30b661c6ba60b28d3167f19e449b8",
1237       "fb6c1e4ff101a371cede63c2955cdb7e",
1238       "a517c06433d6d7927b16a72184a23e92",
1239       "393828be5d62ab6c48668bea5e2f801a",
1240       "b1e510c542013eb9d6fb188dea2ce90a",
1241       "569a8f2fe01679ca216535ecbcdccb62",
1242   },
1243   {
1244       // 8X32
1245       "9d541865c185ca7607852852613ac1fc",
1246       "b96be67f08c6b5fa5ebd3411299c2f7c",
1247       "75a2dcf50004b9d188849b048239767e",
1248       "429492ff415c9fd9b050d73b2ad500f8",
1249       "64b3606c1ccd036bd766bd5711392cf4",
1250       "cb59844a0f01660ac955bae3511f1100",
1251       "3e076155b7a70e8828618e3f33b51e3d",
1252       "ed2d1f597ab7c50beff690f737cf9726",
1253       "7909c6a26aaf20c59d996d3e5b5f9c29",
1254       "965798807240c98c6f7cc9b457ed0773",
1255   },
1256   {
1257       // 32X8
1258       "36f391aa31619eec1f4d9ee95ea454cc",
1259       "b82648f14eeba2527357cb50bc3223cb",
1260       "7a7b2adf429125e8bee9d1d00a66e13f",
1261       "4198e4d6ba503b7cc2d7e96bb845f661",
1262       "96c160d2ec1be9fe0cdea9682f14d257",
1263       "19a450bcebaa75afb4fc6bd1fd6434af",
1264       "2bd2e35967d43d0ec1c6587a36f204d5",
1265       "49799a99aa4ccfbd989bee92a99422f1",
1266       "955530e99813812a74659edeac3f5475",
1267       "f0316b84e378a19cd11b19a6e40b2914",
1268   },
1269   {
1270       // 16X64
1271       "8cba1b70a0bde29e8ef235cedc5faa7d",
1272       "96d00ddc7537bf7f196006591b733b4e",
1273       "cbf69d5d157c9f3355a4757b1d6e3414",
1274       "3ac1f642019493dec1b737d7a3a1b4e5",
1275       "35f9ee300d7fa3c97338e81a6f21dcd4",
1276       "aae335442e77c8ebc280f16ea50ba9c7",
1277       "a6140fdac2278644328be094d88731db",
1278       "2df93621b6ff100f7008432d509f4161",
1279       "c77bf5aee39e7ed4a3dd715f816f452a",
1280       "02109bd63557d90225c32a8f1338258e",
1281   },
1282   {
1283       // 64X16
1284       "a5e2f9fb685d5f4a048e9a96affd25a4",
1285       "1348f249690d9eefe09d9ad7ead2c801",
1286       "525da4b187acd81b1ff1116b60461141",
1287       "e99d072de858094c98b01bd4a6772634",
1288       "873bfa9dc24693f19721f7c8d527f7d3",
1289       "0acfc6507bd3468e9679efc127d6e4b9",
1290       "57d03f8d079c7264854e22ac1157cfae",
1291       "6c2c4036f70c7d957a9399b5436c0774",
1292       "42b8e4a97b7f8416c72a5148c031c0b1",
1293       "a38a2c5f79993dfae8530e9e25800893",
1294   },
1295 };
1296 
1297 }  // namespace
1298 
1299 #define HIGHBD_INTRA_PRED_TEST(arch, tx_size, dc, dc_left, dc_top, dc_128, v, \
1300                                h, paeth, smooth, smooth_v, smooth_h)          \
1301   TEST(arch, DISABLED_##TestHighbdIntraPred_##tx_size) {                      \
1302     static const AvxHighbdPredFunc aom_intra_pred[] = {                       \
1303       dc, dc_left, dc_top, dc_128, v, h, paeth, smooth, smooth_v, smooth_h    \
1304     };                                                                        \
1305     TestHighbdIntraPred(tx_size, aom_intra_pred, kHighbdSignatures[tx_size]); \
1306   }
1307 
1308 // -----------------------------------------------------------------------------
1309 // 4x4, 4x8, 4x16
1310 
1311 HIGHBD_INTRA_PRED_TEST(
1312     C, TX_4X4, aom_highbd_dc_predictor_4x4_c,
1313     aom_highbd_dc_left_predictor_4x4_c, aom_highbd_dc_top_predictor_4x4_c,
1314     aom_highbd_dc_128_predictor_4x4_c, aom_highbd_v_predictor_4x4_c,
1315     aom_highbd_h_predictor_4x4_c, aom_highbd_paeth_predictor_4x4_c,
1316     aom_highbd_smooth_predictor_4x4_c, aom_highbd_smooth_v_predictor_4x4_c,
1317     aom_highbd_smooth_h_predictor_4x4_c)
1318 
1319 HIGHBD_INTRA_PRED_TEST(
1320     C, TX_4X8, aom_highbd_dc_predictor_4x8_c,
1321     aom_highbd_dc_left_predictor_4x8_c, aom_highbd_dc_top_predictor_4x8_c,
1322     aom_highbd_dc_128_predictor_4x8_c, aom_highbd_v_predictor_4x8_c,
1323     aom_highbd_h_predictor_4x8_c, aom_highbd_paeth_predictor_4x8_c,
1324     aom_highbd_smooth_predictor_4x8_c, aom_highbd_smooth_v_predictor_4x8_c,
1325     aom_highbd_smooth_h_predictor_4x8_c)
1326 
1327 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1328 HIGHBD_INTRA_PRED_TEST(
1329     C, TX_4X16, aom_highbd_dc_predictor_4x16_c,
1330     aom_highbd_dc_left_predictor_4x16_c, aom_highbd_dc_top_predictor_4x16_c,
1331     aom_highbd_dc_128_predictor_4x16_c, aom_highbd_v_predictor_4x16_c,
1332     aom_highbd_h_predictor_4x16_c, aom_highbd_paeth_predictor_4x16_c,
1333     aom_highbd_smooth_predictor_4x16_c, aom_highbd_smooth_v_predictor_4x16_c,
1334     aom_highbd_smooth_h_predictor_4x16_c)
1335 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1336 
1337 #if HAVE_SSE2
1338 HIGHBD_INTRA_PRED_TEST(SSE2, TX_4X4, aom_highbd_dc_predictor_4x4_sse2,
1339                        aom_highbd_dc_left_predictor_4x4_sse2,
1340                        aom_highbd_dc_top_predictor_4x4_sse2,
1341                        aom_highbd_dc_128_predictor_4x4_sse2,
1342                        aom_highbd_v_predictor_4x4_sse2,
1343                        aom_highbd_h_predictor_4x4_sse2, nullptr, nullptr,
1344                        nullptr, nullptr)
1345 
1346 HIGHBD_INTRA_PRED_TEST(SSE2, TX_4X8, aom_highbd_dc_predictor_4x8_sse2,
1347                        aom_highbd_dc_left_predictor_4x8_sse2,
1348                        aom_highbd_dc_top_predictor_4x8_sse2,
1349                        aom_highbd_dc_128_predictor_4x8_sse2,
1350                        aom_highbd_v_predictor_4x8_sse2,
1351                        aom_highbd_h_predictor_4x8_sse2, nullptr, nullptr,
1352                        nullptr, nullptr)
1353 #endif
1354 
1355 #if HAVE_NEON
1356 HIGHBD_INTRA_PRED_TEST(NEON, TX_4X4, aom_highbd_dc_predictor_4x4_neon,
1357                        aom_highbd_dc_left_predictor_4x4_neon,
1358                        aom_highbd_dc_top_predictor_4x4_neon,
1359                        aom_highbd_dc_128_predictor_4x4_neon,
1360                        aom_highbd_v_predictor_4x4_neon,
1361                        aom_highbd_h_predictor_4x4_neon,
1362                        aom_highbd_paeth_predictor_4x4_neon,
1363                        aom_highbd_smooth_predictor_4x4_neon,
1364                        aom_highbd_smooth_v_predictor_4x4_neon,
1365                        aom_highbd_smooth_h_predictor_4x4_neon)
1366 HIGHBD_INTRA_PRED_TEST(NEON, TX_4X8, aom_highbd_dc_predictor_4x8_neon,
1367                        aom_highbd_dc_left_predictor_4x8_neon,
1368                        aom_highbd_dc_top_predictor_4x8_neon,
1369                        aom_highbd_dc_128_predictor_4x8_neon,
1370                        aom_highbd_v_predictor_4x8_neon,
1371                        aom_highbd_h_predictor_4x8_neon,
1372                        aom_highbd_paeth_predictor_4x8_neon,
1373                        aom_highbd_smooth_predictor_4x8_neon,
1374                        aom_highbd_smooth_v_predictor_4x8_neon,
1375                        aom_highbd_smooth_h_predictor_4x8_neon)
1376 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1377 HIGHBD_INTRA_PRED_TEST(NEON, TX_4X16, aom_highbd_dc_predictor_4x16_neon,
1378                        aom_highbd_dc_left_predictor_4x16_neon,
1379                        aom_highbd_dc_top_predictor_4x16_neon,
1380                        aom_highbd_dc_128_predictor_4x16_neon,
1381                        aom_highbd_v_predictor_4x16_neon,
1382                        aom_highbd_h_predictor_4x16_neon,
1383                        aom_highbd_paeth_predictor_4x16_neon,
1384                        aom_highbd_smooth_predictor_4x16_neon,
1385                        aom_highbd_smooth_v_predictor_4x16_neon,
1386                        aom_highbd_smooth_h_predictor_4x16_neon)
1387 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1388 #endif  // HAVE_NEON
1389 
1390 // -----------------------------------------------------------------------------
1391 // 8x8, 8x4, 8x16, 8x32
1392 
1393 HIGHBD_INTRA_PRED_TEST(
1394     C, TX_8X8, aom_highbd_dc_predictor_8x8_c,
1395     aom_highbd_dc_left_predictor_8x8_c, aom_highbd_dc_top_predictor_8x8_c,
1396     aom_highbd_dc_128_predictor_8x8_c, aom_highbd_v_predictor_8x8_c,
1397     aom_highbd_h_predictor_8x8_c, aom_highbd_paeth_predictor_8x8_c,
1398     aom_highbd_smooth_predictor_8x8_c, aom_highbd_smooth_v_predictor_8x8_c,
1399     aom_highbd_smooth_h_predictor_8x8_c)
1400 HIGHBD_INTRA_PRED_TEST(
1401     C, TX_8X4, aom_highbd_dc_predictor_8x4_c,
1402     aom_highbd_dc_left_predictor_8x4_c, aom_highbd_dc_top_predictor_8x4_c,
1403     aom_highbd_dc_128_predictor_8x4_c, aom_highbd_v_predictor_8x4_c,
1404     aom_highbd_h_predictor_8x4_c, aom_highbd_paeth_predictor_8x4_c,
1405     aom_highbd_smooth_predictor_8x4_c, aom_highbd_smooth_v_predictor_8x4_c,
1406     aom_highbd_smooth_h_predictor_8x4_c)
1407 HIGHBD_INTRA_PRED_TEST(
1408     C, TX_8X16, aom_highbd_dc_predictor_8x16_c,
1409     aom_highbd_dc_left_predictor_8x16_c, aom_highbd_dc_top_predictor_8x16_c,
1410     aom_highbd_dc_128_predictor_8x16_c, aom_highbd_v_predictor_8x16_c,
1411     aom_highbd_h_predictor_8x16_c, aom_highbd_paeth_predictor_8x16_c,
1412     aom_highbd_smooth_predictor_8x16_c, aom_highbd_smooth_v_predictor_8x16_c,
1413     aom_highbd_smooth_h_predictor_8x16_c)
1414 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1415 HIGHBD_INTRA_PRED_TEST(
1416     C, TX_8X32, aom_highbd_dc_predictor_8x32_c,
1417     aom_highbd_dc_left_predictor_8x32_c, aom_highbd_dc_top_predictor_8x32_c,
1418     aom_highbd_dc_128_predictor_8x32_c, aom_highbd_v_predictor_8x32_c,
1419     aom_highbd_h_predictor_8x32_c, aom_highbd_paeth_predictor_8x32_c,
1420     aom_highbd_smooth_predictor_8x32_c, aom_highbd_smooth_v_predictor_8x32_c,
1421     aom_highbd_smooth_h_predictor_8x32_c)
1422 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1423 
1424 #if HAVE_SSE2
1425 HIGHBD_INTRA_PRED_TEST(SSE2, TX_8X8, aom_highbd_dc_predictor_8x8_sse2,
1426                        aom_highbd_dc_left_predictor_8x8_sse2,
1427                        aom_highbd_dc_top_predictor_8x8_sse2,
1428                        aom_highbd_dc_128_predictor_8x8_sse2,
1429                        aom_highbd_v_predictor_8x8_sse2,
1430                        aom_highbd_h_predictor_8x8_sse2, nullptr, nullptr,
1431                        nullptr, nullptr)
1432 HIGHBD_INTRA_PRED_TEST(SSE2, TX_8X4, aom_highbd_dc_predictor_8x4_sse2,
1433                        aom_highbd_dc_left_predictor_8x4_sse2,
1434                        aom_highbd_dc_top_predictor_8x4_sse2,
1435                        aom_highbd_dc_128_predictor_8x4_sse2,
1436                        aom_highbd_v_predictor_8x4_sse2,
1437                        aom_highbd_h_predictor_8x4_sse2, nullptr, nullptr,
1438                        nullptr, nullptr)
1439 HIGHBD_INTRA_PRED_TEST(SSE2, TX_8X16, aom_highbd_dc_predictor_8x16_sse2,
1440                        aom_highbd_dc_left_predictor_8x16_sse2,
1441                        aom_highbd_dc_top_predictor_8x16_sse2,
1442                        aom_highbd_dc_128_predictor_8x16_sse2,
1443                        aom_highbd_v_predictor_8x16_sse2,
1444                        aom_highbd_h_predictor_8x16_sse2, nullptr, nullptr,
1445                        nullptr, nullptr)
1446 #endif
1447 
1448 #if HAVE_SSSE3
1449 HIGHBD_INTRA_PRED_TEST(SSSE3, TX_8X8, nullptr, nullptr, nullptr, nullptr,
1450                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1451 #endif
1452 
1453 #if HAVE_NEON
1454 HIGHBD_INTRA_PRED_TEST(NEON, TX_8X8, aom_highbd_dc_predictor_8x8_neon,
1455                        aom_highbd_dc_left_predictor_8x8_neon,
1456                        aom_highbd_dc_top_predictor_8x8_neon,
1457                        aom_highbd_dc_128_predictor_8x8_neon,
1458                        aom_highbd_v_predictor_8x8_neon,
1459                        aom_highbd_h_predictor_8x8_neon,
1460                        aom_highbd_paeth_predictor_8x8_neon,
1461                        aom_highbd_smooth_predictor_8x8_neon,
1462                        aom_highbd_smooth_v_predictor_8x8_neon,
1463                        aom_highbd_smooth_h_predictor_8x8_neon)
1464 HIGHBD_INTRA_PRED_TEST(NEON, TX_8X4, aom_highbd_dc_predictor_8x4_neon,
1465                        aom_highbd_dc_left_predictor_8x4_neon,
1466                        aom_highbd_dc_top_predictor_8x4_neon,
1467                        aom_highbd_dc_128_predictor_8x4_neon,
1468                        aom_highbd_v_predictor_8x4_neon,
1469                        aom_highbd_h_predictor_8x4_neon,
1470                        aom_highbd_paeth_predictor_8x4_neon,
1471                        aom_highbd_smooth_predictor_8x4_neon,
1472                        aom_highbd_smooth_v_predictor_8x4_neon,
1473                        aom_highbd_smooth_h_predictor_8x4_neon)
1474 HIGHBD_INTRA_PRED_TEST(NEON, TX_8X16, aom_highbd_dc_predictor_8x16_neon,
1475                        aom_highbd_dc_left_predictor_8x16_neon,
1476                        aom_highbd_dc_top_predictor_8x16_neon,
1477                        aom_highbd_dc_128_predictor_8x16_neon,
1478                        aom_highbd_v_predictor_8x16_neon,
1479                        aom_highbd_h_predictor_8x16_neon,
1480                        aom_highbd_paeth_predictor_8x16_neon,
1481                        aom_highbd_smooth_predictor_8x16_neon,
1482                        aom_highbd_smooth_v_predictor_8x16_neon,
1483                        aom_highbd_smooth_h_predictor_8x16_neon)
1484 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1485 HIGHBD_INTRA_PRED_TEST(NEON, TX_8X32, aom_highbd_dc_predictor_8x32_neon,
1486                        aom_highbd_dc_left_predictor_8x32_neon,
1487                        aom_highbd_dc_top_predictor_8x32_neon,
1488                        aom_highbd_dc_128_predictor_8x32_neon,
1489                        aom_highbd_v_predictor_8x32_neon,
1490                        aom_highbd_h_predictor_8x32_neon,
1491                        aom_highbd_paeth_predictor_8x32_neon,
1492                        aom_highbd_smooth_predictor_8x32_neon,
1493                        aom_highbd_smooth_v_predictor_8x32_neon,
1494                        aom_highbd_smooth_h_predictor_8x32_neon)
1495 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1496 #endif  // HAVE_NEON
1497 
1498 // -----------------------------------------------------------------------------
1499 // 16x16, 16x8, 16x32, 16x4, 16x64
1500 
1501 HIGHBD_INTRA_PRED_TEST(
1502     C, TX_16X16, aom_highbd_dc_predictor_16x16_c,
1503     aom_highbd_dc_left_predictor_16x16_c, aom_highbd_dc_top_predictor_16x16_c,
1504     aom_highbd_dc_128_predictor_16x16_c, aom_highbd_v_predictor_16x16_c,
1505     aom_highbd_h_predictor_16x16_c, aom_highbd_paeth_predictor_16x16_c,
1506     aom_highbd_smooth_predictor_16x16_c, aom_highbd_smooth_v_predictor_16x16_c,
1507     aom_highbd_smooth_h_predictor_16x16_c)
1508 HIGHBD_INTRA_PRED_TEST(
1509     C, TX_16X8, aom_highbd_dc_predictor_16x8_c,
1510     aom_highbd_dc_left_predictor_16x8_c, aom_highbd_dc_top_predictor_16x8_c,
1511     aom_highbd_dc_128_predictor_16x8_c, aom_highbd_v_predictor_16x8_c,
1512     aom_highbd_h_predictor_16x8_c, aom_highbd_paeth_predictor_16x8_c,
1513     aom_highbd_smooth_predictor_16x8_c, aom_highbd_smooth_v_predictor_16x8_c,
1514     aom_highbd_smooth_h_predictor_16x8_c)
1515 HIGHBD_INTRA_PRED_TEST(
1516     C, TX_16X32, aom_highbd_dc_predictor_16x32_c,
1517     aom_highbd_dc_left_predictor_16x32_c, aom_highbd_dc_top_predictor_16x32_c,
1518     aom_highbd_dc_128_predictor_16x32_c, aom_highbd_v_predictor_16x32_c,
1519     aom_highbd_h_predictor_16x32_c, aom_highbd_paeth_predictor_16x32_c,
1520     aom_highbd_smooth_predictor_16x32_c, aom_highbd_smooth_v_predictor_16x32_c,
1521     aom_highbd_smooth_h_predictor_16x32_c)
1522 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1523 HIGHBD_INTRA_PRED_TEST(
1524     C, TX_16X4, aom_highbd_dc_predictor_16x4_c,
1525     aom_highbd_dc_left_predictor_16x4_c, aom_highbd_dc_top_predictor_16x4_c,
1526     aom_highbd_dc_128_predictor_16x4_c, aom_highbd_v_predictor_16x4_c,
1527     aom_highbd_h_predictor_16x4_c, aom_highbd_paeth_predictor_16x4_c,
1528     aom_highbd_smooth_predictor_16x4_c, aom_highbd_smooth_v_predictor_16x4_c,
1529     aom_highbd_smooth_h_predictor_16x4_c)
1530 HIGHBD_INTRA_PRED_TEST(
1531     C, TX_16X64, aom_highbd_dc_predictor_16x64_c,
1532     aom_highbd_dc_left_predictor_16x64_c, aom_highbd_dc_top_predictor_16x64_c,
1533     aom_highbd_dc_128_predictor_16x64_c, aom_highbd_v_predictor_16x64_c,
1534     aom_highbd_h_predictor_16x64_c, aom_highbd_paeth_predictor_16x64_c,
1535     aom_highbd_smooth_predictor_16x64_c, aom_highbd_smooth_v_predictor_16x64_c,
1536     aom_highbd_smooth_h_predictor_16x64_c)
1537 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1538 
1539 #if HAVE_SSE2
1540 HIGHBD_INTRA_PRED_TEST(SSE2, TX_16X16, aom_highbd_dc_predictor_16x16_sse2,
1541                        aom_highbd_dc_left_predictor_16x16_sse2,
1542                        aom_highbd_dc_top_predictor_16x16_sse2,
1543                        aom_highbd_dc_128_predictor_16x16_sse2,
1544                        aom_highbd_v_predictor_16x16_sse2,
1545                        aom_highbd_h_predictor_16x16_sse2, nullptr, nullptr,
1546                        nullptr, nullptr)
1547 HIGHBD_INTRA_PRED_TEST(SSE2, TX_16X8, aom_highbd_dc_predictor_16x8_sse2,
1548                        aom_highbd_dc_left_predictor_16x8_sse2,
1549                        aom_highbd_dc_top_predictor_16x8_sse2,
1550                        aom_highbd_dc_128_predictor_16x8_sse2,
1551                        aom_highbd_v_predictor_16x8_sse2,
1552                        aom_highbd_h_predictor_16x8_sse2, nullptr, nullptr,
1553                        nullptr, nullptr)
1554 HIGHBD_INTRA_PRED_TEST(SSE2, TX_16X32, aom_highbd_dc_predictor_16x32_sse2,
1555                        aom_highbd_dc_left_predictor_16x32_sse2,
1556                        aom_highbd_dc_top_predictor_16x32_sse2,
1557                        aom_highbd_dc_128_predictor_16x32_sse2,
1558                        aom_highbd_v_predictor_16x32_sse2,
1559                        aom_highbd_h_predictor_16x32_sse2, nullptr, nullptr,
1560                        nullptr, nullptr)
1561 #endif
1562 
1563 #if HAVE_SSSE3
1564 HIGHBD_INTRA_PRED_TEST(SSSE3, TX_16X16, nullptr, nullptr, nullptr, nullptr,
1565                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1566 #endif
1567 
1568 #if HAVE_AVX2
1569 HIGHBD_INTRA_PRED_TEST(AVX2, TX_16X16, nullptr, nullptr, nullptr, nullptr,
1570                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1571 
1572 HIGHBD_INTRA_PRED_TEST(AVX2, TX_16X8, nullptr, nullptr, nullptr, nullptr,
1573                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1574 
1575 HIGHBD_INTRA_PRED_TEST(AVX2, TX_16X32, nullptr, nullptr, nullptr, nullptr,
1576                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1577 #endif
1578 
1579 #if HAVE_NEON
1580 HIGHBD_INTRA_PRED_TEST(NEON, TX_16X16, aom_highbd_dc_predictor_16x16_neon,
1581                        aom_highbd_dc_left_predictor_16x16_neon,
1582                        aom_highbd_dc_top_predictor_16x16_neon,
1583                        aom_highbd_dc_128_predictor_16x16_neon,
1584                        aom_highbd_v_predictor_16x16_neon,
1585                        aom_highbd_h_predictor_16x16_neon,
1586                        aom_highbd_paeth_predictor_16x16_neon,
1587                        aom_highbd_smooth_predictor_16x16_neon,
1588                        aom_highbd_smooth_v_predictor_16x16_neon,
1589                        aom_highbd_smooth_h_predictor_16x16_neon)
1590 HIGHBD_INTRA_PRED_TEST(NEON, TX_16X8, aom_highbd_dc_predictor_16x8_neon,
1591                        aom_highbd_dc_left_predictor_16x8_neon,
1592                        aom_highbd_dc_top_predictor_16x8_neon,
1593                        aom_highbd_dc_128_predictor_16x8_neon,
1594                        aom_highbd_v_predictor_16x8_neon,
1595                        aom_highbd_h_predictor_16x8_neon,
1596                        aom_highbd_paeth_predictor_16x8_neon,
1597                        aom_highbd_smooth_predictor_16x8_neon,
1598                        aom_highbd_smooth_v_predictor_16x8_neon,
1599                        aom_highbd_smooth_h_predictor_16x8_neon)
1600 HIGHBD_INTRA_PRED_TEST(NEON, TX_16X32, aom_highbd_dc_predictor_16x32_neon,
1601                        aom_highbd_dc_left_predictor_16x32_neon,
1602                        aom_highbd_dc_top_predictor_16x32_neon,
1603                        aom_highbd_dc_128_predictor_16x32_neon,
1604                        aom_highbd_v_predictor_16x32_neon,
1605                        aom_highbd_h_predictor_16x32_neon,
1606                        aom_highbd_paeth_predictor_16x32_neon,
1607                        aom_highbd_smooth_predictor_16x32_neon,
1608                        aom_highbd_smooth_v_predictor_16x32_neon,
1609                        aom_highbd_smooth_h_predictor_16x32_neon)
1610 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1611 HIGHBD_INTRA_PRED_TEST(NEON, TX_16X4, aom_highbd_dc_predictor_16x4_neon,
1612                        aom_highbd_dc_left_predictor_16x4_neon,
1613                        aom_highbd_dc_top_predictor_16x4_neon,
1614                        aom_highbd_dc_128_predictor_16x4_neon,
1615                        aom_highbd_v_predictor_16x4_neon,
1616                        aom_highbd_h_predictor_16x4_neon,
1617                        aom_highbd_paeth_predictor_16x4_neon,
1618                        aom_highbd_smooth_predictor_16x4_neon,
1619                        aom_highbd_smooth_v_predictor_16x4_neon,
1620                        aom_highbd_smooth_h_predictor_16x4_neon)
1621 HIGHBD_INTRA_PRED_TEST(NEON, TX_16X64, aom_highbd_dc_predictor_16x64_neon,
1622                        aom_highbd_dc_left_predictor_16x64_neon,
1623                        aom_highbd_dc_top_predictor_16x64_neon,
1624                        aom_highbd_dc_128_predictor_16x64_neon,
1625                        aom_highbd_v_predictor_16x64_neon,
1626                        aom_highbd_h_predictor_16x64_neon,
1627                        aom_highbd_paeth_predictor_16x64_neon,
1628                        aom_highbd_smooth_predictor_16x64_neon,
1629                        aom_highbd_smooth_v_predictor_16x64_neon,
1630                        aom_highbd_smooth_h_predictor_16x64_neon)
1631 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1632 #endif  // HAVE_NEON
1633 
1634 // -----------------------------------------------------------------------------
1635 // 32x32, 32x16, 32x64, 32x8
1636 
1637 HIGHBD_INTRA_PRED_TEST(
1638     C, TX_32X32, aom_highbd_dc_predictor_32x32_c,
1639     aom_highbd_dc_left_predictor_32x32_c, aom_highbd_dc_top_predictor_32x32_c,
1640     aom_highbd_dc_128_predictor_32x32_c, aom_highbd_v_predictor_32x32_c,
1641     aom_highbd_h_predictor_32x32_c, aom_highbd_paeth_predictor_32x32_c,
1642     aom_highbd_smooth_predictor_32x32_c, aom_highbd_smooth_v_predictor_32x32_c,
1643     aom_highbd_smooth_h_predictor_32x32_c)
1644 HIGHBD_INTRA_PRED_TEST(
1645     C, TX_32X16, aom_highbd_dc_predictor_32x16_c,
1646     aom_highbd_dc_left_predictor_32x16_c, aom_highbd_dc_top_predictor_32x16_c,
1647     aom_highbd_dc_128_predictor_32x16_c, aom_highbd_v_predictor_32x16_c,
1648     aom_highbd_h_predictor_32x16_c, aom_highbd_paeth_predictor_32x16_c,
1649     aom_highbd_smooth_predictor_32x16_c, aom_highbd_smooth_v_predictor_32x16_c,
1650     aom_highbd_smooth_h_predictor_32x16_c)
1651 HIGHBD_INTRA_PRED_TEST(
1652     C, TX_32X64, aom_highbd_dc_predictor_32x64_c,
1653     aom_highbd_dc_left_predictor_32x64_c, aom_highbd_dc_top_predictor_32x64_c,
1654     aom_highbd_dc_128_predictor_32x64_c, aom_highbd_v_predictor_32x64_c,
1655     aom_highbd_h_predictor_32x64_c, aom_highbd_paeth_predictor_32x64_c,
1656     aom_highbd_smooth_predictor_32x64_c, aom_highbd_smooth_v_predictor_32x64_c,
1657     aom_highbd_smooth_h_predictor_32x64_c)
1658 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1659 HIGHBD_INTRA_PRED_TEST(
1660     C, TX_32X8, aom_highbd_dc_predictor_32x8_c,
1661     aom_highbd_dc_left_predictor_32x8_c, aom_highbd_dc_top_predictor_32x8_c,
1662     aom_highbd_dc_128_predictor_32x8_c, aom_highbd_v_predictor_32x8_c,
1663     aom_highbd_h_predictor_32x8_c, aom_highbd_paeth_predictor_32x8_c,
1664     aom_highbd_smooth_predictor_32x8_c, aom_highbd_smooth_v_predictor_32x8_c,
1665     aom_highbd_smooth_h_predictor_32x8_c)
1666 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1667 
1668 #if HAVE_SSE2
1669 HIGHBD_INTRA_PRED_TEST(SSE2, TX_32X32, aom_highbd_dc_predictor_32x32_sse2,
1670                        aom_highbd_dc_left_predictor_32x32_sse2,
1671                        aom_highbd_dc_top_predictor_32x32_sse2,
1672                        aom_highbd_dc_128_predictor_32x32_sse2,
1673                        aom_highbd_v_predictor_32x32_sse2,
1674                        aom_highbd_h_predictor_32x32_sse2, nullptr, nullptr,
1675                        nullptr, nullptr)
1676 HIGHBD_INTRA_PRED_TEST(SSE2, TX_32X16, aom_highbd_dc_predictor_32x16_sse2,
1677                        aom_highbd_dc_left_predictor_32x16_sse2,
1678                        aom_highbd_dc_top_predictor_32x16_sse2,
1679                        aom_highbd_dc_128_predictor_32x16_sse2,
1680                        aom_highbd_v_predictor_32x16_sse2,
1681                        aom_highbd_h_predictor_32x16_sse2, nullptr, nullptr,
1682                        nullptr, nullptr)
1683 #endif
1684 
1685 #if HAVE_SSSE3
1686 HIGHBD_INTRA_PRED_TEST(SSSE3, TX_32X32, nullptr, nullptr, nullptr, nullptr,
1687                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1688 #endif
1689 
1690 #if HAVE_AVX2
1691 HIGHBD_INTRA_PRED_TEST(AVX2, TX_32X32, nullptr, nullptr, nullptr, nullptr,
1692                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1693 
1694 HIGHBD_INTRA_PRED_TEST(AVX2, TX_32X16, nullptr, nullptr, nullptr, nullptr,
1695                        nullptr, nullptr, nullptr, nullptr, nullptr, nullptr)
1696 #endif
1697 
1698 #if HAVE_NEON
1699 HIGHBD_INTRA_PRED_TEST(NEON, TX_32X32, aom_highbd_dc_predictor_32x32_neon,
1700                        aom_highbd_dc_left_predictor_32x32_neon,
1701                        aom_highbd_dc_top_predictor_32x32_neon,
1702                        aom_highbd_dc_128_predictor_32x32_neon,
1703                        aom_highbd_v_predictor_32x32_neon,
1704                        aom_highbd_h_predictor_32x32_neon,
1705                        aom_highbd_paeth_predictor_32x32_neon,
1706                        aom_highbd_smooth_predictor_32x32_neon,
1707                        aom_highbd_smooth_v_predictor_32x32_neon,
1708                        aom_highbd_smooth_h_predictor_32x32_neon)
1709 HIGHBD_INTRA_PRED_TEST(NEON, TX_32X16, aom_highbd_dc_predictor_32x16_neon,
1710                        aom_highbd_dc_left_predictor_32x16_neon,
1711                        aom_highbd_dc_top_predictor_32x16_neon,
1712                        aom_highbd_dc_128_predictor_32x16_neon,
1713                        aom_highbd_v_predictor_32x16_neon,
1714                        aom_highbd_h_predictor_32x16_neon,
1715                        aom_highbd_paeth_predictor_32x16_neon,
1716                        aom_highbd_smooth_predictor_32x16_neon,
1717                        aom_highbd_smooth_v_predictor_32x16_neon,
1718                        aom_highbd_smooth_h_predictor_32x16_neon)
1719 HIGHBD_INTRA_PRED_TEST(NEON, TX_32X64, aom_highbd_dc_predictor_32x64_neon,
1720                        aom_highbd_dc_left_predictor_32x64_neon,
1721                        aom_highbd_dc_top_predictor_32x64_neon,
1722                        aom_highbd_dc_128_predictor_32x64_neon,
1723                        aom_highbd_v_predictor_32x64_neon,
1724                        aom_highbd_h_predictor_32x64_neon,
1725                        aom_highbd_paeth_predictor_32x64_neon,
1726                        aom_highbd_smooth_predictor_32x64_neon,
1727                        aom_highbd_smooth_v_predictor_32x64_neon,
1728                        aom_highbd_smooth_h_predictor_32x64_neon)
1729 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1730 HIGHBD_INTRA_PRED_TEST(NEON, TX_32X8, aom_highbd_dc_predictor_32x8_neon,
1731                        aom_highbd_dc_left_predictor_32x8_neon,
1732                        aom_highbd_dc_top_predictor_32x8_neon,
1733                        aom_highbd_dc_128_predictor_32x8_neon,
1734                        aom_highbd_v_predictor_32x8_neon,
1735                        aom_highbd_h_predictor_32x8_neon,
1736                        aom_highbd_paeth_predictor_32x8_neon,
1737                        aom_highbd_smooth_predictor_32x8_neon,
1738                        aom_highbd_smooth_v_predictor_32x8_neon,
1739                        aom_highbd_smooth_h_predictor_32x8_neon)
1740 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1741 #endif  // HAVE_NEON
1742 
1743 // -----------------------------------------------------------------------------
1744 // 64x64, 64x32, 64x16
1745 
1746 HIGHBD_INTRA_PRED_TEST(
1747     C, TX_64X64, aom_highbd_dc_predictor_64x64_c,
1748     aom_highbd_dc_left_predictor_64x64_c, aom_highbd_dc_top_predictor_64x64_c,
1749     aom_highbd_dc_128_predictor_64x64_c, aom_highbd_v_predictor_64x64_c,
1750     aom_highbd_h_predictor_64x64_c, aom_highbd_paeth_predictor_64x64_c,
1751     aom_highbd_smooth_predictor_64x64_c, aom_highbd_smooth_v_predictor_64x64_c,
1752     aom_highbd_smooth_h_predictor_64x64_c)
1753 HIGHBD_INTRA_PRED_TEST(
1754     C, TX_64X32, aom_highbd_dc_predictor_64x32_c,
1755     aom_highbd_dc_left_predictor_64x32_c, aom_highbd_dc_top_predictor_64x32_c,
1756     aom_highbd_dc_128_predictor_64x32_c, aom_highbd_v_predictor_64x32_c,
1757     aom_highbd_h_predictor_64x32_c, aom_highbd_paeth_predictor_64x32_c,
1758     aom_highbd_smooth_predictor_64x32_c, aom_highbd_smooth_v_predictor_64x32_c,
1759     aom_highbd_smooth_h_predictor_64x32_c)
1760 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1761 HIGHBD_INTRA_PRED_TEST(
1762     C, TX_64X16, aom_highbd_dc_predictor_64x16_c,
1763     aom_highbd_dc_left_predictor_64x16_c, aom_highbd_dc_top_predictor_64x16_c,
1764     aom_highbd_dc_128_predictor_64x16_c, aom_highbd_v_predictor_64x16_c,
1765     aom_highbd_h_predictor_64x16_c, aom_highbd_paeth_predictor_64x16_c,
1766     aom_highbd_smooth_predictor_64x16_c, aom_highbd_smooth_v_predictor_64x16_c,
1767     aom_highbd_smooth_h_predictor_64x16_c)
1768 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1769 
1770 #if HAVE_NEON
1771 HIGHBD_INTRA_PRED_TEST(NEON, TX_64X64, aom_highbd_dc_predictor_64x64_neon,
1772                        aom_highbd_dc_left_predictor_64x64_neon,
1773                        aom_highbd_dc_top_predictor_64x64_neon,
1774                        aom_highbd_dc_128_predictor_64x64_neon,
1775                        aom_highbd_v_predictor_64x64_neon,
1776                        aom_highbd_h_predictor_64x64_neon,
1777                        aom_highbd_paeth_predictor_64x64_neon,
1778                        aom_highbd_smooth_predictor_64x64_neon,
1779                        aom_highbd_smooth_v_predictor_64x64_neon,
1780                        aom_highbd_smooth_h_predictor_64x64_neon)
1781 HIGHBD_INTRA_PRED_TEST(NEON, TX_64X32, aom_highbd_dc_predictor_64x32_neon,
1782                        aom_highbd_dc_left_predictor_64x32_neon,
1783                        aom_highbd_dc_top_predictor_64x32_neon,
1784                        aom_highbd_dc_128_predictor_64x32_neon,
1785                        aom_highbd_v_predictor_64x32_neon,
1786                        aom_highbd_h_predictor_64x32_neon,
1787                        aom_highbd_paeth_predictor_64x32_neon,
1788                        aom_highbd_smooth_predictor_64x32_neon,
1789                        aom_highbd_smooth_v_predictor_64x32_neon,
1790                        aom_highbd_smooth_h_predictor_64x32_neon)
1791 #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1792 HIGHBD_INTRA_PRED_TEST(NEON, TX_64X16, aom_highbd_dc_predictor_64x16_neon,
1793                        aom_highbd_dc_left_predictor_64x16_neon,
1794                        aom_highbd_dc_top_predictor_64x16_neon,
1795                        aom_highbd_dc_128_predictor_64x16_neon,
1796                        aom_highbd_v_predictor_64x16_neon,
1797                        aom_highbd_h_predictor_64x16_neon,
1798                        aom_highbd_paeth_predictor_64x16_neon,
1799                        aom_highbd_smooth_predictor_64x16_neon,
1800                        aom_highbd_smooth_v_predictor_64x16_neon,
1801                        aom_highbd_smooth_h_predictor_64x16_neon)
1802 #endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1803 #endif  // HAVE_NEON
1804 
1805 // -----------------------------------------------------------------------------
1806 #endif  // CONFIG_AV1_HIGHBITDEPTH
1807 
1808 #include "test/test_libaom.cc"
1809