Coverage Report

Created: 2022-08-24 06:15

/src/aom/aom_dsp/intrapred.c
Line
Count
Source (jump to first uncovered line)
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
#include <assert.h>
13
#include <math.h>
14
15
#include "config/aom_config.h"
16
#include "config/aom_dsp_rtcd.h"
17
18
#include "aom_dsp/aom_dsp_common.h"
19
#include "aom_dsp/intrapred_common.h"
20
#include "aom_mem/aom_mem.h"
21
#include "aom_ports/bitops.h"
22
23
static INLINE void v_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh,
24
1.08M
                               const uint8_t *above, const uint8_t *left) {
25
1.08M
  int r;
26
1.08M
  (void)left;
27
28
7.58M
  for (r = 0; r < bh; r++) {
29
6.50M
    memcpy(dst, above, bw);
30
6.50M
    dst += stride;
31
6.50M
  }
32
1.08M
}
33
34
static INLINE void h_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh,
35
1.10M
                               const uint8_t *above, const uint8_t *left) {
36
1.10M
  int r;
37
1.10M
  (void)above;
38
39
7.79M
  for (r = 0; r < bh; r++) {
40
6.68M
    memset(dst, left[r], bw);
41
6.68M
    dst += stride;
42
6.68M
  }
43
1.10M
}
44
45
366M
static INLINE int abs_diff(int a, int b) { return (a > b) ? a - b : b - a; }
46
47
static INLINE uint16_t paeth_predictor_single(uint16_t left, uint16_t top,
48
122M
                                              uint16_t top_left) {
49
122M
  const int base = top + left - top_left;
50
122M
  const int p_left = abs_diff(base, left);
51
122M
  const int p_top = abs_diff(base, top);
52
122M
  const int p_top_left = abs_diff(base, top_left);
53
54
  // Return nearest to base of left, top and top_left.
55
122M
  return (p_left <= p_top && p_left <= p_top_left)
56
122M
             ? left
57
122M
             : (p_top <= p_top_left) ? top : top_left;
58
122M
}
59
60
static INLINE void paeth_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
61
                                   int bh, const uint8_t *above,
62
1.27M
                                   const uint8_t *left) {
63
1.27M
  int r, c;
64
1.27M
  const uint8_t ytop_left = above[-1];
65
66
9.45M
  for (r = 0; r < bh; r++) {
67
130M
    for (c = 0; c < bw; c++)
68
122M
      dst[c] = (uint8_t)paeth_predictor_single(left[r], above[c], ytop_left);
69
8.18M
    dst += stride;
70
8.18M
  }
71
1.27M
}
72
73
// Some basic checks on weights for smooth predictor.
74
#define sm_weights_sanity_checks(weights_w, weights_h, weights_scale, \
75
                                 pred_scale)                          \
76
2.33M
  assert(weights_w[0] < weights_scale);                               \
77
2.33M
  assert(weights_h[0] < weights_scale);                               \
78
2.33M
  assert(weights_scale - weights_w[bw - 1] < weights_scale);          \
79
2.33M
  assert(weights_scale - weights_h[bh - 1] < weights_scale);          \
80
2.33M
  assert(pred_scale < 31)  // ensures no overflow when calculating predictor.
81
82
201M
#define divide_round(value, bits) (((value) + (1 << ((bits)-1))) >> (bits))
83
84
static INLINE void smooth_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
85
                                    int bh, const uint8_t *above,
86
2.33M
                                    const uint8_t *left) {
87
2.33M
  const uint8_t below_pred = left[bh - 1];   // estimated by bottom-left pixel
88
2.33M
  const uint8_t right_pred = above[bw - 1];  // estimated by top-right pixel
89
2.33M
  const uint8_t *const sm_weights_w = sm_weight_arrays + bw;
90
2.33M
  const uint8_t *const sm_weights_h = sm_weight_arrays + bh;
91
  // scale = 2 * 2^sm_weight_log2_scale
92
2.33M
  const int log2_scale = 1 + sm_weight_log2_scale;
93
2.33M
  const uint16_t scale = (1 << sm_weight_log2_scale);
94
2.33M
  sm_weights_sanity_checks(sm_weights_w, sm_weights_h, scale,
95
2.33M
                           log2_scale + sizeof(*dst));
96
2.33M
  int r;
97
16.5M
  for (r = 0; r < bh; ++r) {
98
14.2M
    int c;
99
215M
    for (c = 0; c < bw; ++c) {
100
201M
      const uint8_t pixels[] = { above[c], below_pred, left[r], right_pred };
101
201M
      const uint8_t weights[] = { sm_weights_h[r], scale - sm_weights_h[r],
102
201M
                                  sm_weights_w[c], scale - sm_weights_w[c] };
103
201M
      uint32_t this_pred = 0;
104
201M
      int i;
105
201M
      assert(scale >= sm_weights_h[r] && scale >= sm_weights_w[c]);
106
1.00G
      for (i = 0; i < 4; ++i) {
107
804M
        this_pred += weights[i] * pixels[i];
108
804M
      }
109
201M
      dst[c] = divide_round(this_pred, log2_scale);
110
201M
    }
111
14.2M
    dst += stride;
112
14.2M
  }
113
2.33M
}
114
115
static INLINE void smooth_v_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
116
                                      int bh, const uint8_t *above,
117
0
                                      const uint8_t *left) {
118
0
  const uint8_t below_pred = left[bh - 1];  // estimated by bottom-left pixel
119
0
  const uint8_t *const sm_weights = sm_weight_arrays + bh;
120
  // scale = 2^sm_weight_log2_scale
121
0
  const int log2_scale = sm_weight_log2_scale;
122
0
  const uint16_t scale = (1 << sm_weight_log2_scale);
123
0
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
124
0
                           log2_scale + sizeof(*dst));
125
126
0
  int r;
127
0
  for (r = 0; r < bh; r++) {
128
0
    int c;
129
0
    for (c = 0; c < bw; ++c) {
130
0
      const uint8_t pixels[] = { above[c], below_pred };
131
0
      const uint8_t weights[] = { sm_weights[r], scale - sm_weights[r] };
132
0
      uint32_t this_pred = 0;
133
0
      assert(scale >= sm_weights[r]);
134
0
      int i;
135
0
      for (i = 0; i < 2; ++i) {
136
0
        this_pred += weights[i] * pixels[i];
137
0
      }
138
0
      dst[c] = divide_round(this_pred, log2_scale);
139
0
    }
140
0
    dst += stride;
141
0
  }
142
0
}
143
144
static INLINE void smooth_h_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
145
                                      int bh, const uint8_t *above,
146
0
                                      const uint8_t *left) {
147
0
  const uint8_t right_pred = above[bw - 1];  // estimated by top-right pixel
148
0
  const uint8_t *const sm_weights = sm_weight_arrays + bw;
149
  // scale = 2^sm_weight_log2_scale
150
0
  const int log2_scale = sm_weight_log2_scale;
151
0
  const uint16_t scale = (1 << sm_weight_log2_scale);
152
0
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
153
0
                           log2_scale + sizeof(*dst));
154
155
0
  int r;
156
0
  for (r = 0; r < bh; r++) {
157
0
    int c;
158
0
    for (c = 0; c < bw; ++c) {
159
0
      const uint8_t pixels[] = { left[r], right_pred };
160
0
      const uint8_t weights[] = { sm_weights[c], scale - sm_weights[c] };
161
0
      uint32_t this_pred = 0;
162
0
      assert(scale >= sm_weights[c]);
163
0
      int i;
164
0
      for (i = 0; i < 2; ++i) {
165
0
        this_pred += weights[i] * pixels[i];
166
0
      }
167
0
      dst[c] = divide_round(this_pred, log2_scale);
168
0
    }
169
0
    dst += stride;
170
0
  }
171
0
}
172
173
static INLINE void dc_128_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
174
                                    int bh, const uint8_t *above,
175
74.6k
                                    const uint8_t *left) {
176
74.6k
  int r;
177
74.6k
  (void)above;
178
74.6k
  (void)left;
179
180
1.10M
  for (r = 0; r < bh; r++) {
181
1.02M
    memset(dst, 128, bw);
182
1.02M
    dst += stride;
183
1.02M
  }
184
74.6k
}
185
186
static INLINE void dc_left_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
187
                                     int bh, const uint8_t *above,
188
247k
                                     const uint8_t *left) {
189
247k
  int i, r, expected_dc, sum = 0;
190
247k
  (void)above;
191
192
2.60M
  for (i = 0; i < bh; i++) sum += left[i];
193
247k
  expected_dc = (sum + (bh >> 1)) / bh;
194
195
2.60M
  for (r = 0; r < bh; r++) {
196
2.35M
    memset(dst, expected_dc, bw);
197
2.35M
    dst += stride;
198
2.35M
  }
199
247k
}
200
201
static INLINE void dc_top_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
202
                                    int bh, const uint8_t *above,
203
210k
                                    const uint8_t *left) {
204
210k
  int i, r, expected_dc, sum = 0;
205
210k
  (void)left;
206
207
2.26M
  for (i = 0; i < bw; i++) sum += above[i];
208
210k
  expected_dc = (sum + (bw >> 1)) / bw;
209
210
2.20M
  for (r = 0; r < bh; r++) {
211
1.99M
    memset(dst, expected_dc, bw);
212
1.99M
    dst += stride;
213
1.99M
  }
214
210k
}
215
216
static INLINE void dc_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh,
217
3.44M
                                const uint8_t *above, const uint8_t *left) {
218
3.44M
  int i, r, expected_dc, sum = 0;
219
3.44M
  const int count = bw + bh;
220
221
20.7M
  for (i = 0; i < bw; i++) {
222
17.2M
    sum += above[i];
223
17.2M
  }
224
20.7M
  for (i = 0; i < bh; i++) {
225
17.2M
    sum += left[i];
226
17.2M
  }
227
228
3.44M
  expected_dc = (sum + (count >> 1)) / count;
229
230
20.7M
  for (r = 0; r < bh; r++) {
231
17.2M
    memset(dst, expected_dc, bw);
232
17.2M
    dst += stride;
233
17.2M
  }
234
3.44M
}
235
236
static INLINE int divide_using_multiply_shift(int num, int shift1,
237
93.5k
                                              int multiplier, int shift2) {
238
93.5k
  const int interm = num >> shift1;
239
93.5k
  return interm * multiplier >> shift2;
240
93.5k
}
241
242
// The constants (multiplier and shifts) for a given block size are obtained
243
// as follows:
244
// - Let sum_w_h =  block width + block height.
245
// - Shift 'sum_w_h' right until we reach an odd number. Let the number of
246
// shifts for that block size be called 'shift1' (see the parameter in
247
// dc_predictor_rect() function), and let the odd number be 'd'. [d has only 2
248
// possible values: d = 3 for a 1:2 rect block and d = 5 for a 1:4 rect
249
// block].
250
// - Find multipliers for (i) dividing by 3, and (ii) dividing by 5,
251
// using the "Algorithm 1" in:
252
// http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=1467632
253
// by ensuring that m + n = 16 (in that algorithm). This ensures that our 2nd
254
// shift will be 16, regardless of the block size.
255
256
// Note: For low bitdepth, assembly code may be optimized by using smaller
257
// constants for smaller block sizes, where the range of the 'sum' is
258
// restricted to fewer bits.
259
260
93.5k
#define DC_MULTIPLIER_1X2 0x5556
261
0
#define DC_MULTIPLIER_1X4 0x3334
262
263
93.5k
#define DC_SHIFT2 16
264
265
static INLINE void dc_predictor_rect(uint8_t *dst, ptrdiff_t stride, int bw,
266
                                     int bh, const uint8_t *above,
267
                                     const uint8_t *left, int shift1,
268
93.5k
                                     int multiplier) {
269
93.5k
  int sum = 0;
270
271
1.39M
  for (int i = 0; i < bw; i++) {
272
1.30M
    sum += above[i];
273
1.30M
  }
274
1.39M
  for (int i = 0; i < bh; i++) {
275
1.30M
    sum += left[i];
276
1.30M
  }
277
278
93.5k
  const int expected_dc = divide_using_multiply_shift(
279
93.5k
      sum + ((bw + bh) >> 1), shift1, multiplier, DC_SHIFT2);
280
93.5k
  assert(expected_dc < (1 << 8));
281
282
1.39M
  for (int r = 0; r < bh; r++) {
283
1.30M
    memset(dst, expected_dc, bw);
284
1.30M
    dst += stride;
285
1.30M
  }
286
93.5k
}
287
288
#undef DC_SHIFT2
289
290
void aom_dc_predictor_4x8_c(uint8_t *dst, ptrdiff_t stride,
291
17.1k
                            const uint8_t *above, const uint8_t *left) {
292
17.1k
  dc_predictor_rect(dst, stride, 4, 8, above, left, 2, DC_MULTIPLIER_1X2);
293
17.1k
}
294
295
void aom_dc_predictor_8x4_c(uint8_t *dst, ptrdiff_t stride,
296
18.6k
                            const uint8_t *above, const uint8_t *left) {
297
18.6k
  dc_predictor_rect(dst, stride, 8, 4, above, left, 2, DC_MULTIPLIER_1X2);
298
18.6k
}
299
300
void aom_dc_predictor_4x16_c(uint8_t *dst, ptrdiff_t stride,
301
0
                             const uint8_t *above, const uint8_t *left) {
302
0
  dc_predictor_rect(dst, stride, 4, 16, above, left, 2, DC_MULTIPLIER_1X4);
303
0
}
304
305
void aom_dc_predictor_16x4_c(uint8_t *dst, ptrdiff_t stride,
306
0
                             const uint8_t *above, const uint8_t *left) {
307
0
  dc_predictor_rect(dst, stride, 16, 4, above, left, 2, DC_MULTIPLIER_1X4);
308
0
}
309
310
void aom_dc_predictor_8x16_c(uint8_t *dst, ptrdiff_t stride,
311
16.2k
                             const uint8_t *above, const uint8_t *left) {
312
16.2k
  dc_predictor_rect(dst, stride, 8, 16, above, left, 3, DC_MULTIPLIER_1X2);
313
16.2k
}
314
315
void aom_dc_predictor_16x8_c(uint8_t *dst, ptrdiff_t stride,
316
16.1k
                             const uint8_t *above, const uint8_t *left) {
317
16.1k
  dc_predictor_rect(dst, stride, 16, 8, above, left, 3, DC_MULTIPLIER_1X2);
318
16.1k
}
319
320
void aom_dc_predictor_8x32_c(uint8_t *dst, ptrdiff_t stride,
321
0
                             const uint8_t *above, const uint8_t *left) {
322
0
  dc_predictor_rect(dst, stride, 8, 32, above, left, 3, DC_MULTIPLIER_1X4);
323
0
}
324
325
void aom_dc_predictor_32x8_c(uint8_t *dst, ptrdiff_t stride,
326
0
                             const uint8_t *above, const uint8_t *left) {
327
0
  dc_predictor_rect(dst, stride, 32, 8, above, left, 3, DC_MULTIPLIER_1X4);
328
0
}
329
330
void aom_dc_predictor_16x32_c(uint8_t *dst, ptrdiff_t stride,
331
10.8k
                              const uint8_t *above, const uint8_t *left) {
332
10.8k
  dc_predictor_rect(dst, stride, 16, 32, above, left, 4, DC_MULTIPLIER_1X2);
333
10.8k
}
334
335
void aom_dc_predictor_32x16_c(uint8_t *dst, ptrdiff_t stride,
336
10.6k
                              const uint8_t *above, const uint8_t *left) {
337
10.6k
  dc_predictor_rect(dst, stride, 32, 16, above, left, 4, DC_MULTIPLIER_1X2);
338
10.6k
}
339
340
void aom_dc_predictor_16x64_c(uint8_t *dst, ptrdiff_t stride,
341
0
                              const uint8_t *above, const uint8_t *left) {
342
0
  dc_predictor_rect(dst, stride, 16, 64, above, left, 4, DC_MULTIPLIER_1X4);
343
0
}
344
345
void aom_dc_predictor_64x16_c(uint8_t *dst, ptrdiff_t stride,
346
0
                              const uint8_t *above, const uint8_t *left) {
347
0
  dc_predictor_rect(dst, stride, 64, 16, above, left, 4, DC_MULTIPLIER_1X4);
348
0
}
349
350
void aom_dc_predictor_32x64_c(uint8_t *dst, ptrdiff_t stride,
351
1.95k
                              const uint8_t *above, const uint8_t *left) {
352
1.95k
  dc_predictor_rect(dst, stride, 32, 64, above, left, 5, DC_MULTIPLIER_1X2);
353
1.95k
}
354
355
void aom_dc_predictor_64x32_c(uint8_t *dst, ptrdiff_t stride,
356
1.84k
                              const uint8_t *above, const uint8_t *left) {
357
1.84k
  dc_predictor_rect(dst, stride, 64, 32, above, left, 5, DC_MULTIPLIER_1X2);
358
1.84k
}
359
360
#undef DC_MULTIPLIER_1X2
361
#undef DC_MULTIPLIER_1X4
362
363
static INLINE void highbd_v_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
364
                                      int bh, const uint16_t *above,
365
0
                                      const uint16_t *left, int bd) {
366
0
  int r;
367
0
  (void)left;
368
0
  (void)bd;
369
0
  for (r = 0; r < bh; r++) {
370
0
    memcpy(dst, above, bw * sizeof(uint16_t));
371
0
    dst += stride;
372
0
  }
373
0
}
374
375
static INLINE void highbd_h_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
376
                                      int bh, const uint16_t *above,
377
0
                                      const uint16_t *left, int bd) {
378
0
  int r;
379
0
  (void)above;
380
0
  (void)bd;
381
0
  for (r = 0; r < bh; r++) {
382
0
    aom_memset16(dst, left[r], bw);
383
0
    dst += stride;
384
0
  }
385
0
}
386
387
static INLINE void highbd_paeth_predictor(uint16_t *dst, ptrdiff_t stride,
388
                                          int bw, int bh, const uint16_t *above,
389
0
                                          const uint16_t *left, int bd) {
390
0
  int r, c;
391
0
  const uint16_t ytop_left = above[-1];
392
0
  (void)bd;
393
394
0
  for (r = 0; r < bh; r++) {
395
0
    for (c = 0; c < bw; c++)
396
0
      dst[c] = paeth_predictor_single(left[r], above[c], ytop_left);
397
0
    dst += stride;
398
0
  }
399
0
}
400
401
static INLINE void highbd_smooth_predictor(uint16_t *dst, ptrdiff_t stride,
402
                                           int bw, int bh,
403
                                           const uint16_t *above,
404
0
                                           const uint16_t *left, int bd) {
405
0
  (void)bd;
406
0
  const uint16_t below_pred = left[bh - 1];   // estimated by bottom-left pixel
407
0
  const uint16_t right_pred = above[bw - 1];  // estimated by top-right pixel
408
0
  const uint8_t *const sm_weights_w = sm_weight_arrays + bw;
409
0
  const uint8_t *const sm_weights_h = sm_weight_arrays + bh;
410
  // scale = 2 * 2^sm_weight_log2_scale
411
0
  const int log2_scale = 1 + sm_weight_log2_scale;
412
0
  const uint16_t scale = (1 << sm_weight_log2_scale);
413
0
  sm_weights_sanity_checks(sm_weights_w, sm_weights_h, scale,
414
0
                           log2_scale + sizeof(*dst));
415
0
  int r;
416
0
  for (r = 0; r < bh; ++r) {
417
0
    int c;
418
0
    for (c = 0; c < bw; ++c) {
419
0
      const uint16_t pixels[] = { above[c], below_pred, left[r], right_pred };
420
0
      const uint8_t weights[] = { sm_weights_h[r], scale - sm_weights_h[r],
421
0
                                  sm_weights_w[c], scale - sm_weights_w[c] };
422
0
      uint32_t this_pred = 0;
423
0
      int i;
424
0
      assert(scale >= sm_weights_h[r] && scale >= sm_weights_w[c]);
425
0
      for (i = 0; i < 4; ++i) {
426
0
        this_pred += weights[i] * pixels[i];
427
0
      }
428
0
      dst[c] = divide_round(this_pred, log2_scale);
429
0
    }
430
0
    dst += stride;
431
0
  }
432
0
}
433
434
static INLINE void highbd_smooth_v_predictor(uint16_t *dst, ptrdiff_t stride,
435
                                             int bw, int bh,
436
                                             const uint16_t *above,
437
0
                                             const uint16_t *left, int bd) {
438
0
  (void)bd;
439
0
  const uint16_t below_pred = left[bh - 1];  // estimated by bottom-left pixel
440
0
  const uint8_t *const sm_weights = sm_weight_arrays + bh;
441
  // scale = 2^sm_weight_log2_scale
442
0
  const int log2_scale = sm_weight_log2_scale;
443
0
  const uint16_t scale = (1 << sm_weight_log2_scale);
444
0
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
445
0
                           log2_scale + sizeof(*dst));
446
447
0
  int r;
448
0
  for (r = 0; r < bh; r++) {
449
0
    int c;
450
0
    for (c = 0; c < bw; ++c) {
451
0
      const uint16_t pixels[] = { above[c], below_pred };
452
0
      const uint8_t weights[] = { sm_weights[r], scale - sm_weights[r] };
453
0
      uint32_t this_pred = 0;
454
0
      assert(scale >= sm_weights[r]);
455
0
      int i;
456
0
      for (i = 0; i < 2; ++i) {
457
0
        this_pred += weights[i] * pixels[i];
458
0
      }
459
0
      dst[c] = divide_round(this_pred, log2_scale);
460
0
    }
461
0
    dst += stride;
462
0
  }
463
0
}
464
465
static INLINE void highbd_smooth_h_predictor(uint16_t *dst, ptrdiff_t stride,
466
                                             int bw, int bh,
467
                                             const uint16_t *above,
468
0
                                             const uint16_t *left, int bd) {
469
0
  (void)bd;
470
0
  const uint16_t right_pred = above[bw - 1];  // estimated by top-right pixel
471
0
  const uint8_t *const sm_weights = sm_weight_arrays + bw;
472
  // scale = 2^sm_weight_log2_scale
473
0
  const int log2_scale = sm_weight_log2_scale;
474
0
  const uint16_t scale = (1 << sm_weight_log2_scale);
475
0
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
476
0
                           log2_scale + sizeof(*dst));
477
478
0
  int r;
479
0
  for (r = 0; r < bh; r++) {
480
0
    int c;
481
0
    for (c = 0; c < bw; ++c) {
482
0
      const uint16_t pixels[] = { left[r], right_pred };
483
0
      const uint8_t weights[] = { sm_weights[c], scale - sm_weights[c] };
484
0
      uint32_t this_pred = 0;
485
0
      assert(scale >= sm_weights[c]);
486
0
      int i;
487
0
      for (i = 0; i < 2; ++i) {
488
0
        this_pred += weights[i] * pixels[i];
489
0
      }
490
0
      dst[c] = divide_round(this_pred, log2_scale);
491
0
    }
492
0
    dst += stride;
493
0
  }
494
0
}
495
496
static INLINE void highbd_dc_128_predictor(uint16_t *dst, ptrdiff_t stride,
497
                                           int bw, int bh,
498
                                           const uint16_t *above,
499
0
                                           const uint16_t *left, int bd) {
500
0
  int r;
501
0
  (void)above;
502
0
  (void)left;
503
504
0
  for (r = 0; r < bh; r++) {
505
0
    aom_memset16(dst, 128 << (bd - 8), bw);
506
0
    dst += stride;
507
0
  }
508
0
}
509
510
static INLINE void highbd_dc_left_predictor(uint16_t *dst, ptrdiff_t stride,
511
                                            int bw, int bh,
512
                                            const uint16_t *above,
513
0
                                            const uint16_t *left, int bd) {
514
0
  int i, r, expected_dc, sum = 0;
515
0
  (void)above;
516
0
  (void)bd;
517
518
0
  for (i = 0; i < bh; i++) sum += left[i];
519
0
  expected_dc = (sum + (bh >> 1)) / bh;
520
521
0
  for (r = 0; r < bh; r++) {
522
0
    aom_memset16(dst, expected_dc, bw);
523
0
    dst += stride;
524
0
  }
525
0
}
526
527
static INLINE void highbd_dc_top_predictor(uint16_t *dst, ptrdiff_t stride,
528
                                           int bw, int bh,
529
                                           const uint16_t *above,
530
0
                                           const uint16_t *left, int bd) {
531
0
  int i, r, expected_dc, sum = 0;
532
0
  (void)left;
533
0
  (void)bd;
534
535
0
  for (i = 0; i < bw; i++) sum += above[i];
536
0
  expected_dc = (sum + (bw >> 1)) / bw;
537
538
0
  for (r = 0; r < bh; r++) {
539
0
    aom_memset16(dst, expected_dc, bw);
540
0
    dst += stride;
541
0
  }
542
0
}
543
544
static INLINE void highbd_dc_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
545
                                       int bh, const uint16_t *above,
546
0
                                       const uint16_t *left, int bd) {
547
0
  int i, r, expected_dc, sum = 0;
548
0
  const int count = bw + bh;
549
0
  (void)bd;
550
551
0
  for (i = 0; i < bw; i++) {
552
0
    sum += above[i];
553
0
  }
554
0
  for (i = 0; i < bh; i++) {
555
0
    sum += left[i];
556
0
  }
557
558
0
  expected_dc = (sum + (count >> 1)) / count;
559
560
0
  for (r = 0; r < bh; r++) {
561
0
    aom_memset16(dst, expected_dc, bw);
562
0
    dst += stride;
563
0
  }
564
0
}
565
566
// Obtained similarly as DC_MULTIPLIER_1X2 and DC_MULTIPLIER_1X4 above, but
567
// assume 2nd shift of 17 bits instead of 16.
568
// Note: Strictly speaking, 2nd shift needs to be 17 only when:
569
// - bit depth == 12, and
570
// - bw + bh is divisible by 5 (as opposed to divisible by 3).
571
// All other cases can use half the multipliers with a shift of 16 instead.
572
// This special optimization can be used when writing assembly code.
573
0
#define HIGHBD_DC_MULTIPLIER_1X2 0xAAAB
574
// Note: This constant is odd, but a smaller even constant (0x199a) with the
575
// appropriate shift should work for neon in 8/10-bit.
576
0
#define HIGHBD_DC_MULTIPLIER_1X4 0x6667
577
578
0
#define HIGHBD_DC_SHIFT2 17
579
580
static INLINE void highbd_dc_predictor_rect(uint16_t *dst, ptrdiff_t stride,
581
                                            int bw, int bh,
582
                                            const uint16_t *above,
583
                                            const uint16_t *left, int bd,
584
0
                                            int shift1, uint32_t multiplier) {
585
0
  int sum = 0;
586
0
  (void)bd;
587
588
0
  for (int i = 0; i < bw; i++) {
589
0
    sum += above[i];
590
0
  }
591
0
  for (int i = 0; i < bh; i++) {
592
0
    sum += left[i];
593
0
  }
594
595
0
  const int expected_dc = divide_using_multiply_shift(
596
0
      sum + ((bw + bh) >> 1), shift1, multiplier, HIGHBD_DC_SHIFT2);
597
0
  assert(expected_dc < (1 << bd));
598
599
0
  for (int r = 0; r < bh; r++) {
600
0
    aom_memset16(dst, expected_dc, bw);
601
0
    dst += stride;
602
0
  }
603
0
}
604
605
#undef HIGHBD_DC_SHIFT2
606
607
void aom_highbd_dc_predictor_4x8_c(uint16_t *dst, ptrdiff_t stride,
608
                                   const uint16_t *above, const uint16_t *left,
609
0
                                   int bd) {
610
0
  highbd_dc_predictor_rect(dst, stride, 4, 8, above, left, bd, 2,
611
0
                           HIGHBD_DC_MULTIPLIER_1X2);
612
0
}
613
614
void aom_highbd_dc_predictor_8x4_c(uint16_t *dst, ptrdiff_t stride,
615
                                   const uint16_t *above, const uint16_t *left,
616
0
                                   int bd) {
617
0
  highbd_dc_predictor_rect(dst, stride, 8, 4, above, left, bd, 2,
618
0
                           HIGHBD_DC_MULTIPLIER_1X2);
619
0
}
620
621
void aom_highbd_dc_predictor_4x16_c(uint16_t *dst, ptrdiff_t stride,
622
                                    const uint16_t *above, const uint16_t *left,
623
0
                                    int bd) {
624
0
  highbd_dc_predictor_rect(dst, stride, 4, 16, above, left, bd, 2,
625
0
                           HIGHBD_DC_MULTIPLIER_1X4);
626
0
}
627
628
void aom_highbd_dc_predictor_16x4_c(uint16_t *dst, ptrdiff_t stride,
629
                                    const uint16_t *above, const uint16_t *left,
630
0
                                    int bd) {
631
0
  highbd_dc_predictor_rect(dst, stride, 16, 4, above, left, bd, 2,
632
0
                           HIGHBD_DC_MULTIPLIER_1X4);
633
0
}
634
635
void aom_highbd_dc_predictor_8x16_c(uint16_t *dst, ptrdiff_t stride,
636
                                    const uint16_t *above, const uint16_t *left,
637
0
                                    int bd) {
638
0
  highbd_dc_predictor_rect(dst, stride, 8, 16, above, left, bd, 3,
639
0
                           HIGHBD_DC_MULTIPLIER_1X2);
640
0
}
641
642
void aom_highbd_dc_predictor_16x8_c(uint16_t *dst, ptrdiff_t stride,
643
                                    const uint16_t *above, const uint16_t *left,
644
0
                                    int bd) {
645
0
  highbd_dc_predictor_rect(dst, stride, 16, 8, above, left, bd, 3,
646
0
                           HIGHBD_DC_MULTIPLIER_1X2);
647
0
}
648
649
void aom_highbd_dc_predictor_8x32_c(uint16_t *dst, ptrdiff_t stride,
650
                                    const uint16_t *above, const uint16_t *left,
651
0
                                    int bd) {
652
0
  highbd_dc_predictor_rect(dst, stride, 8, 32, above, left, bd, 3,
653
0
                           HIGHBD_DC_MULTIPLIER_1X4);
654
0
}
655
656
void aom_highbd_dc_predictor_32x8_c(uint16_t *dst, ptrdiff_t stride,
657
                                    const uint16_t *above, const uint16_t *left,
658
0
                                    int bd) {
659
0
  highbd_dc_predictor_rect(dst, stride, 32, 8, above, left, bd, 3,
660
0
                           HIGHBD_DC_MULTIPLIER_1X4);
661
0
}
662
663
void aom_highbd_dc_predictor_16x32_c(uint16_t *dst, ptrdiff_t stride,
664
                                     const uint16_t *above,
665
0
                                     const uint16_t *left, int bd) {
666
0
  highbd_dc_predictor_rect(dst, stride, 16, 32, above, left, bd, 4,
667
0
                           HIGHBD_DC_MULTIPLIER_1X2);
668
0
}
669
670
void aom_highbd_dc_predictor_32x16_c(uint16_t *dst, ptrdiff_t stride,
671
                                     const uint16_t *above,
672
0
                                     const uint16_t *left, int bd) {
673
0
  highbd_dc_predictor_rect(dst, stride, 32, 16, above, left, bd, 4,
674
0
                           HIGHBD_DC_MULTIPLIER_1X2);
675
0
}
676
677
void aom_highbd_dc_predictor_16x64_c(uint16_t *dst, ptrdiff_t stride,
678
                                     const uint16_t *above,
679
0
                                     const uint16_t *left, int bd) {
680
0
  highbd_dc_predictor_rect(dst, stride, 16, 64, above, left, bd, 4,
681
0
                           HIGHBD_DC_MULTIPLIER_1X4);
682
0
}
683
684
void aom_highbd_dc_predictor_64x16_c(uint16_t *dst, ptrdiff_t stride,
685
                                     const uint16_t *above,
686
0
                                     const uint16_t *left, int bd) {
687
0
  highbd_dc_predictor_rect(dst, stride, 64, 16, above, left, bd, 4,
688
0
                           HIGHBD_DC_MULTIPLIER_1X4);
689
0
}
690
691
void aom_highbd_dc_predictor_32x64_c(uint16_t *dst, ptrdiff_t stride,
692
                                     const uint16_t *above,
693
0
                                     const uint16_t *left, int bd) {
694
0
  highbd_dc_predictor_rect(dst, stride, 32, 64, above, left, bd, 5,
695
0
                           HIGHBD_DC_MULTIPLIER_1X2);
696
0
}
697
698
void aom_highbd_dc_predictor_64x32_c(uint16_t *dst, ptrdiff_t stride,
699
                                     const uint16_t *above,
700
0
                                     const uint16_t *left, int bd) {
701
0
  highbd_dc_predictor_rect(dst, stride, 64, 32, above, left, bd, 5,
702
0
                           HIGHBD_DC_MULTIPLIER_1X2);
703
0
}
704
705
#undef HIGHBD_DC_MULTIPLIER_1X2
706
#undef HIGHBD_DC_MULTIPLIER_1X4
707
708
// This serves as a wrapper function, so that all the prediction functions
709
// can be unified and accessed as a pointer array. Note that the boundary
710
// above and left are not necessarily used all the time.
711
#define intra_pred_sized(type, width, height)                  \
712
  void aom_##type##_predictor_##width##x##height##_c(          \
713
      uint8_t *dst, ptrdiff_t stride, const uint8_t *above,    \
714
9.78M
      const uint8_t *left) {                                   \
715
9.78M
    type##_predictor(dst, stride, width, height, above, left); \
716
9.78M
  }
aom_v_predictor_4x4_c
Line
Count
Source
714
931k
      const uint8_t *left) {                                   \
715
931k
    type##_predictor(dst, stride, width, height, above, left); \
716
931k
  }
aom_v_predictor_8x8_c
Line
Count
Source
714
64.5k
      const uint8_t *left) {                                   \
715
64.5k
    type##_predictor(dst, stride, width, height, above, left); \
716
64.5k
  }
aom_v_predictor_16x16_c
Line
Count
Source
714
29.5k
      const uint8_t *left) {                                   \
715
29.5k
    type##_predictor(dst, stride, width, height, above, left); \
716
29.5k
  }
aom_v_predictor_32x32_c
Line
Count
Source
714
38.2k
      const uint8_t *left) {                                   \
715
38.2k
    type##_predictor(dst, stride, width, height, above, left); \
716
38.2k
  }
aom_v_predictor_64x64_c
Line
Count
Source
714
3.38k
      const uint8_t *left) {                                   \
715
3.38k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.38k
  }
aom_v_predictor_4x8_c
Line
Count
Source
714
2.56k
      const uint8_t *left) {                                   \
715
2.56k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.56k
  }
aom_v_predictor_8x4_c
Line
Count
Source
714
4.61k
      const uint8_t *left) {                                   \
715
4.61k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.61k
  }
aom_v_predictor_8x16_c
Line
Count
Source
714
3.39k
      const uint8_t *left) {                                   \
715
3.39k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.39k
  }
aom_v_predictor_16x8_c
Line
Count
Source
714
3.36k
      const uint8_t *left) {                                   \
715
3.36k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.36k
  }
aom_v_predictor_16x32_c
Line
Count
Source
714
2.58k
      const uint8_t *left) {                                   \
715
2.58k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.58k
  }
aom_v_predictor_32x16_c
Line
Count
Source
714
2.79k
      const uint8_t *left) {                                   \
715
2.79k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.79k
  }
aom_v_predictor_32x64_c
Line
Count
Source
714
992
      const uint8_t *left) {                                   \
715
992
    type##_predictor(dst, stride, width, height, above, left); \
716
992
  }
aom_v_predictor_64x32_c
Line
Count
Source
714
1.27k
      const uint8_t *left) {                                   \
715
1.27k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.27k
  }
Unexecuted instantiation: aom_v_predictor_4x16_c
Unexecuted instantiation: aom_v_predictor_16x4_c
Unexecuted instantiation: aom_v_predictor_8x32_c
Unexecuted instantiation: aom_v_predictor_32x8_c
Unexecuted instantiation: aom_v_predictor_16x64_c
Unexecuted instantiation: aom_v_predictor_64x16_c
aom_h_predictor_4x4_c
Line
Count
Source
714
941k
      const uint8_t *left) {                                   \
715
941k
    type##_predictor(dst, stride, width, height, above, left); \
716
941k
  }
aom_h_predictor_8x8_c
Line
Count
Source
714
67.1k
      const uint8_t *left) {                                   \
715
67.1k
    type##_predictor(dst, stride, width, height, above, left); \
716
67.1k
  }
aom_h_predictor_16x16_c
Line
Count
Source
714
32.1k
      const uint8_t *left) {                                   \
715
32.1k
    type##_predictor(dst, stride, width, height, above, left); \
716
32.1k
  }
aom_h_predictor_32x32_c
Line
Count
Source
714
39.4k
      const uint8_t *left) {                                   \
715
39.4k
    type##_predictor(dst, stride, width, height, above, left); \
716
39.4k
  }
aom_h_predictor_64x64_c
Line
Count
Source
714
3.44k
      const uint8_t *left) {                                   \
715
3.44k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.44k
  }
aom_h_predictor_4x8_c
Line
Count
Source
714
2.89k
      const uint8_t *left) {                                   \
715
2.89k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.89k
  }
aom_h_predictor_8x4_c
Line
Count
Source
714
4.68k
      const uint8_t *left) {                                   \
715
4.68k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.68k
  }
aom_h_predictor_8x16_c
Line
Count
Source
714
3.42k
      const uint8_t *left) {                                   \
715
3.42k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.42k
  }
aom_h_predictor_16x8_c
Line
Count
Source
714
3.61k
      const uint8_t *left) {                                   \
715
3.61k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.61k
  }
aom_h_predictor_16x32_c
Line
Count
Source
714
3.01k
      const uint8_t *left) {                                   \
715
3.01k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.01k
  }
aom_h_predictor_32x16_c
Line
Count
Source
714
2.88k
      const uint8_t *left) {                                   \
715
2.88k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.88k
  }
aom_h_predictor_32x64_c
Line
Count
Source
714
1.36k
      const uint8_t *left) {                                   \
715
1.36k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.36k
  }
aom_h_predictor_64x32_c
Line
Count
Source
714
1.01k
      const uint8_t *left) {                                   \
715
1.01k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.01k
  }
Unexecuted instantiation: aom_h_predictor_4x16_c
Unexecuted instantiation: aom_h_predictor_16x4_c
aom_h_predictor_8x32_c
Line
Count
Source
714
38
      const uint8_t *left) {                                   \
715
38
    type##_predictor(dst, stride, width, height, above, left); \
716
38
  }
Unexecuted instantiation: aom_h_predictor_32x8_c
Unexecuted instantiation: aom_h_predictor_16x64_c
Unexecuted instantiation: aom_h_predictor_64x16_c
aom_smooth_predictor_4x4_c
Line
Count
Source
714
2.00M
      const uint8_t *left) {                                   \
715
2.00M
    type##_predictor(dst, stride, width, height, above, left); \
716
2.00M
  }
aom_smooth_predictor_8x8_c
Line
Count
Source
714
107k
      const uint8_t *left) {                                   \
715
107k
    type##_predictor(dst, stride, width, height, above, left); \
716
107k
  }
aom_smooth_predictor_16x16_c
Line
Count
Source
714
62.6k
      const uint8_t *left) {                                   \
715
62.6k
    type##_predictor(dst, stride, width, height, above, left); \
716
62.6k
  }
aom_smooth_predictor_32x32_c
Line
Count
Source
714
83.8k
      const uint8_t *left) {                                   \
715
83.8k
    type##_predictor(dst, stride, width, height, above, left); \
716
83.8k
  }
aom_smooth_predictor_64x64_c
Line
Count
Source
714
8.95k
      const uint8_t *left) {                                   \
715
8.95k
    type##_predictor(dst, stride, width, height, above, left); \
716
8.95k
  }
aom_smooth_predictor_4x8_c
Line
Count
Source
714
10.0k
      const uint8_t *left) {                                   \
715
10.0k
    type##_predictor(dst, stride, width, height, above, left); \
716
10.0k
  }
aom_smooth_predictor_8x4_c
Line
Count
Source
714
12.4k
      const uint8_t *left) {                                   \
715
12.4k
    type##_predictor(dst, stride, width, height, above, left); \
716
12.4k
  }
aom_smooth_predictor_8x16_c
Line
Count
Source
714
12.5k
      const uint8_t *left) {                                   \
715
12.5k
    type##_predictor(dst, stride, width, height, above, left); \
716
12.5k
  }
aom_smooth_predictor_16x8_c
Line
Count
Source
714
11.2k
      const uint8_t *left) {                                   \
715
11.2k
    type##_predictor(dst, stride, width, height, above, left); \
716
11.2k
  }
aom_smooth_predictor_16x32_c
Line
Count
Source
714
9.30k
      const uint8_t *left) {                                   \
715
9.30k
    type##_predictor(dst, stride, width, height, above, left); \
716
9.30k
  }
aom_smooth_predictor_32x16_c
Line
Count
Source
714
8.47k
      const uint8_t *left) {                                   \
715
8.47k
    type##_predictor(dst, stride, width, height, above, left); \
716
8.47k
  }
aom_smooth_predictor_32x64_c
Line
Count
Source
714
2.94k
      const uint8_t *left) {                                   \
715
2.94k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.94k
  }
aom_smooth_predictor_64x32_c
Line
Count
Source
714
2.83k
      const uint8_t *left) {                                   \
715
2.83k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.83k
  }
aom_smooth_predictor_4x16_c
Line
Count
Source
714
38
      const uint8_t *left) {                                   \
715
38
    type##_predictor(dst, stride, width, height, above, left); \
716
38
  }
Unexecuted instantiation: aom_smooth_predictor_16x4_c
aom_smooth_predictor_8x32_c
Line
Count
Source
714
38
      const uint8_t *left) {                                   \
715
38
    type##_predictor(dst, stride, width, height, above, left); \
716
38
  }
Unexecuted instantiation: aom_smooth_predictor_32x8_c
Unexecuted instantiation: aom_smooth_predictor_16x64_c
Unexecuted instantiation: aom_smooth_predictor_64x16_c
Unexecuted instantiation: aom_smooth_v_predictor_4x4_c
Unexecuted instantiation: aom_smooth_v_predictor_8x8_c
Unexecuted instantiation: aom_smooth_v_predictor_16x16_c
Unexecuted instantiation: aom_smooth_v_predictor_32x32_c
Unexecuted instantiation: aom_smooth_v_predictor_64x64_c
Unexecuted instantiation: aom_smooth_v_predictor_4x8_c
Unexecuted instantiation: aom_smooth_v_predictor_8x4_c
Unexecuted instantiation: aom_smooth_v_predictor_8x16_c
Unexecuted instantiation: aom_smooth_v_predictor_16x8_c
Unexecuted instantiation: aom_smooth_v_predictor_16x32_c
Unexecuted instantiation: aom_smooth_v_predictor_32x16_c
Unexecuted instantiation: aom_smooth_v_predictor_32x64_c
Unexecuted instantiation: aom_smooth_v_predictor_64x32_c
Unexecuted instantiation: aom_smooth_v_predictor_4x16_c
Unexecuted instantiation: aom_smooth_v_predictor_16x4_c
Unexecuted instantiation: aom_smooth_v_predictor_8x32_c
Unexecuted instantiation: aom_smooth_v_predictor_32x8_c
Unexecuted instantiation: aom_smooth_v_predictor_16x64_c
Unexecuted instantiation: aom_smooth_v_predictor_64x16_c
Unexecuted instantiation: aom_smooth_h_predictor_4x4_c
Unexecuted instantiation: aom_smooth_h_predictor_8x8_c
Unexecuted instantiation: aom_smooth_h_predictor_16x16_c
Unexecuted instantiation: aom_smooth_h_predictor_32x32_c
Unexecuted instantiation: aom_smooth_h_predictor_64x64_c
Unexecuted instantiation: aom_smooth_h_predictor_4x8_c
Unexecuted instantiation: aom_smooth_h_predictor_8x4_c
Unexecuted instantiation: aom_smooth_h_predictor_8x16_c
Unexecuted instantiation: aom_smooth_h_predictor_16x8_c
Unexecuted instantiation: aom_smooth_h_predictor_16x32_c
Unexecuted instantiation: aom_smooth_h_predictor_32x16_c
Unexecuted instantiation: aom_smooth_h_predictor_32x64_c
Unexecuted instantiation: aom_smooth_h_predictor_64x32_c
Unexecuted instantiation: aom_smooth_h_predictor_4x16_c
Unexecuted instantiation: aom_smooth_h_predictor_16x4_c
Unexecuted instantiation: aom_smooth_h_predictor_8x32_c
Unexecuted instantiation: aom_smooth_h_predictor_32x8_c
Unexecuted instantiation: aom_smooth_h_predictor_16x64_c
Unexecuted instantiation: aom_smooth_h_predictor_64x16_c
aom_paeth_predictor_4x4_c
Line
Count
Source
714
1.06M
      const uint8_t *left) {                                   \
715
1.06M
    type##_predictor(dst, stride, width, height, above, left); \
716
1.06M
  }
aom_paeth_predictor_8x8_c
Line
Count
Source
714
76.1k
      const uint8_t *left) {                                   \
715
76.1k
    type##_predictor(dst, stride, width, height, above, left); \
716
76.1k
  }
aom_paeth_predictor_16x16_c
Line
Count
Source
714
45.4k
      const uint8_t *left) {                                   \
715
45.4k
    type##_predictor(dst, stride, width, height, above, left); \
716
45.4k
  }
aom_paeth_predictor_32x32_c
Line
Count
Source
714
51.8k
      const uint8_t *left) {                                   \
715
51.8k
    type##_predictor(dst, stride, width, height, above, left); \
716
51.8k
  }
aom_paeth_predictor_64x64_c
Line
Count
Source
714
5.64k
      const uint8_t *left) {                                   \
715
5.64k
    type##_predictor(dst, stride, width, height, above, left); \
716
5.64k
  }
aom_paeth_predictor_4x8_c
Line
Count
Source
714
3.81k
      const uint8_t *left) {                                   \
715
3.81k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.81k
  }
aom_paeth_predictor_8x4_c
Line
Count
Source
714
6.21k
      const uint8_t *left) {                                   \
715
6.21k
    type##_predictor(dst, stride, width, height, above, left); \
716
6.21k
  }
aom_paeth_predictor_8x16_c
Line
Count
Source
714
4.60k
      const uint8_t *left) {                                   \
715
4.60k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.60k
  }
aom_paeth_predictor_16x8_c
Line
Count
Source
714
4.60k
      const uint8_t *left) {                                   \
715
4.60k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.60k
  }
aom_paeth_predictor_16x32_c
Line
Count
Source
714
4.84k
      const uint8_t *left) {                                   \
715
4.84k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.84k
  }
aom_paeth_predictor_32x16_c
Line
Count
Source
714
4.98k
      const uint8_t *left) {                                   \
715
4.98k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.98k
  }
aom_paeth_predictor_32x64_c
Line
Count
Source
714
1.71k
      const uint8_t *left) {                                   \
715
1.71k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.71k
  }
aom_paeth_predictor_64x32_c
Line
Count
Source
714
1.69k
      const uint8_t *left) {                                   \
715
1.69k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.69k
  }
Unexecuted instantiation: aom_paeth_predictor_4x16_c
Unexecuted instantiation: aom_paeth_predictor_16x4_c
aom_paeth_predictor_8x32_c
Line
Count
Source
714
114
      const uint8_t *left) {                                   \
715
114
    type##_predictor(dst, stride, width, height, above, left); \
716
114
  }
Unexecuted instantiation: aom_paeth_predictor_32x8_c
Unexecuted instantiation: aom_paeth_predictor_16x64_c
Unexecuted instantiation: aom_paeth_predictor_64x16_c
aom_dc_128_predictor_4x4_c
Line
Count
Source
714
23.3k
      const uint8_t *left) {                                   \
715
23.3k
    type##_predictor(dst, stride, width, height, above, left); \
716
23.3k
  }
aom_dc_128_predictor_8x8_c
Line
Count
Source
714
7.27k
      const uint8_t *left) {                                   \
715
7.27k
    type##_predictor(dst, stride, width, height, above, left); \
716
7.27k
  }
aom_dc_128_predictor_16x16_c
Line
Count
Source
714
9.65k
      const uint8_t *left) {                                   \
715
9.65k
    type##_predictor(dst, stride, width, height, above, left); \
716
9.65k
  }
aom_dc_128_predictor_32x32_c
Line
Count
Source
714
7.62k
      const uint8_t *left) {                                   \
715
7.62k
    type##_predictor(dst, stride, width, height, above, left); \
716
7.62k
  }
aom_dc_128_predictor_64x64_c
Line
Count
Source
714
1.85k
      const uint8_t *left) {                                   \
715
1.85k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.85k
  }
aom_dc_128_predictor_4x8_c
Line
Count
Source
714
3.59k
      const uint8_t *left) {                                   \
715
3.59k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.59k
  }
aom_dc_128_predictor_8x4_c
Line
Count
Source
714
3.41k
      const uint8_t *left) {                                   \
715
3.41k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.41k
  }
aom_dc_128_predictor_8x16_c
Line
Count
Source
714
5.34k
      const uint8_t *left) {                                   \
715
5.34k
    type##_predictor(dst, stride, width, height, above, left); \
716
5.34k
  }
aom_dc_128_predictor_16x8_c
Line
Count
Source
714
5.39k
      const uint8_t *left) {                                   \
715
5.39k
    type##_predictor(dst, stride, width, height, above, left); \
716
5.39k
  }
aom_dc_128_predictor_16x32_c
Line
Count
Source
714
2.93k
      const uint8_t *left) {                                   \
715
2.93k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.93k
  }
aom_dc_128_predictor_32x16_c
Line
Count
Source
714
3.07k
      const uint8_t *left) {                                   \
715
3.07k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.07k
  }
aom_dc_128_predictor_32x64_c
Line
Count
Source
714
341
      const uint8_t *left) {                                   \
715
341
    type##_predictor(dst, stride, width, height, above, left); \
716
341
  }
aom_dc_128_predictor_64x32_c
Line
Count
Source
714
399
      const uint8_t *left) {                                   \
715
399
    type##_predictor(dst, stride, width, height, above, left); \
716
399
  }
aom_dc_128_predictor_4x16_c
Line
Count
Source
714
228
      const uint8_t *left) {                                   \
715
228
    type##_predictor(dst, stride, width, height, above, left); \
716
228
  }
Unexecuted instantiation: aom_dc_128_predictor_16x4_c
aom_dc_128_predictor_8x32_c
Line
Count
Source
714
152
      const uint8_t *left) {                                   \
715
152
    type##_predictor(dst, stride, width, height, above, left); \
716
152
  }
Unexecuted instantiation: aom_dc_128_predictor_32x8_c
Unexecuted instantiation: aom_dc_128_predictor_16x64_c
Unexecuted instantiation: aom_dc_128_predictor_64x16_c
aom_dc_left_predictor_4x4_c
Line
Count
Source
714
162k
      const uint8_t *left) {                                   \
715
162k
    type##_predictor(dst, stride, width, height, above, left); \
716
162k
  }
aom_dc_left_predictor_8x8_c
Line
Count
Source
714
22.6k
      const uint8_t *left) {                                   \
715
22.6k
    type##_predictor(dst, stride, width, height, above, left); \
716
22.6k
  }
aom_dc_left_predictor_16x16_c
Line
Count
Source
714
17.9k
      const uint8_t *left) {                                   \
715
17.9k
    type##_predictor(dst, stride, width, height, above, left); \
716
17.9k
  }
aom_dc_left_predictor_32x32_c
Line
Count
Source
714
20.9k
      const uint8_t *left) {                                   \
715
20.9k
    type##_predictor(dst, stride, width, height, above, left); \
716
20.9k
  }
aom_dc_left_predictor_64x64_c
Line
Count
Source
714
2.83k
      const uint8_t *left) {                                   \
715
2.83k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.83k
  }
aom_dc_left_predictor_4x8_c
Line
Count
Source
714
2.94k
      const uint8_t *left) {                                   \
715
2.94k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.94k
  }
aom_dc_left_predictor_8x4_c
Line
Count
Source
714
1.39k
      const uint8_t *left) {                                   \
715
1.39k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.39k
  }
aom_dc_left_predictor_8x16_c
Line
Count
Source
714
4.27k
      const uint8_t *left) {                                   \
715
4.27k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.27k
  }
aom_dc_left_predictor_16x8_c
Line
Count
Source
714
3.18k
      const uint8_t *left) {                                   \
715
3.18k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.18k
  }
aom_dc_left_predictor_16x32_c
Line
Count
Source
714
4.12k
      const uint8_t *left) {                                   \
715
4.12k
    type##_predictor(dst, stride, width, height, above, left); \
716
4.12k
  }
aom_dc_left_predictor_32x16_c
Line
Count
Source
714
2.65k
      const uint8_t *left) {                                   \
715
2.65k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.65k
  }
aom_dc_left_predictor_32x64_c
Line
Count
Source
714
1.15k
      const uint8_t *left) {                                   \
715
1.15k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.15k
  }
aom_dc_left_predictor_64x32_c
Line
Count
Source
714
470
      const uint8_t *left) {                                   \
715
470
    type##_predictor(dst, stride, width, height, above, left); \
716
470
  }
Unexecuted instantiation: aom_dc_left_predictor_4x16_c
Unexecuted instantiation: aom_dc_left_predictor_16x4_c
aom_dc_left_predictor_8x32_c
Line
Count
Source
714
38
      const uint8_t *left) {                                   \
715
38
    type##_predictor(dst, stride, width, height, above, left); \
716
38
  }
Unexecuted instantiation: aom_dc_left_predictor_32x8_c
Unexecuted instantiation: aom_dc_left_predictor_16x64_c
Unexecuted instantiation: aom_dc_left_predictor_64x16_c
aom_dc_top_predictor_4x4_c
Line
Count
Source
714
137k
      const uint8_t *left) {                                   \
715
137k
    type##_predictor(dst, stride, width, height, above, left); \
716
137k
  }
aom_dc_top_predictor_8x8_c
Line
Count
Source
714
19.6k
      const uint8_t *left) {                                   \
715
19.6k
    type##_predictor(dst, stride, width, height, above, left); \
716
19.6k
  }
aom_dc_top_predictor_16x16_c
Line
Count
Source
714
13.9k
      const uint8_t *left) {                                   \
715
13.9k
    type##_predictor(dst, stride, width, height, above, left); \
716
13.9k
  }
aom_dc_top_predictor_32x32_c
Line
Count
Source
714
18.6k
      const uint8_t *left) {                                   \
715
18.6k
    type##_predictor(dst, stride, width, height, above, left); \
716
18.6k
  }
aom_dc_top_predictor_64x64_c
Line
Count
Source
714
2.82k
      const uint8_t *left) {                                   \
715
2.82k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.82k
  }
aom_dc_top_predictor_4x8_c
Line
Count
Source
714
891
      const uint8_t *left) {                                   \
715
891
    type##_predictor(dst, stride, width, height, above, left); \
716
891
  }
aom_dc_top_predictor_8x4_c
Line
Count
Source
714
3.27k
      const uint8_t *left) {                                   \
715
3.27k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.27k
  }
aom_dc_top_predictor_8x16_c
Line
Count
Source
714
2.77k
      const uint8_t *left) {                                   \
715
2.77k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.77k
  }
aom_dc_top_predictor_16x8_c
Line
Count
Source
714
3.82k
      const uint8_t *left) {                                   \
715
3.82k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.82k
  }
aom_dc_top_predictor_16x32_c
Line
Count
Source
714
2.09k
      const uint8_t *left) {                                   \
715
2.09k
    type##_predictor(dst, stride, width, height, above, left); \
716
2.09k
  }
aom_dc_top_predictor_32x16_c
Line
Count
Source
714
3.65k
      const uint8_t *left) {                                   \
715
3.65k
    type##_predictor(dst, stride, width, height, above, left); \
716
3.65k
  }
aom_dc_top_predictor_32x64_c
Line
Count
Source
714
396
      const uint8_t *left) {                                   \
715
396
    type##_predictor(dst, stride, width, height, above, left); \
716
396
  }
aom_dc_top_predictor_64x32_c
Line
Count
Source
714
1.07k
      const uint8_t *left) {                                   \
715
1.07k
    type##_predictor(dst, stride, width, height, above, left); \
716
1.07k
  }
Unexecuted instantiation: aom_dc_top_predictor_4x16_c
Unexecuted instantiation: aom_dc_top_predictor_16x4_c
Unexecuted instantiation: aom_dc_top_predictor_8x32_c
Unexecuted instantiation: aom_dc_top_predictor_32x8_c
Unexecuted instantiation: aom_dc_top_predictor_16x64_c
Unexecuted instantiation: aom_dc_top_predictor_64x16_c
aom_dc_predictor_4x4_c
Line
Count
Source
714
3.15M
      const uint8_t *left) {                                   \
715
3.15M
    type##_predictor(dst, stride, width, height, above, left); \
716
3.15M
  }
aom_dc_predictor_8x8_c
Line
Count
Source
714
169k
      const uint8_t *left) {                                   \
715
169k
    type##_predictor(dst, stride, width, height, above, left); \
716
169k
  }
aom_dc_predictor_16x16_c
Line
Count
Source
714
44.1k
      const uint8_t *left) {                                   \
715
44.1k
    type##_predictor(dst, stride, width, height, above, left); \
716
44.1k
  }
aom_dc_predictor_32x32_c
Line
Count
Source
714
70.0k
      const uint8_t *left) {                                   \
715
70.0k
    type##_predictor(dst, stride, width, height, above, left); \
716
70.0k
  }
aom_dc_predictor_64x64_c
Line
Count
Source
714
5.27k
      const uint8_t *left) {                                   \
715
5.27k
    type##_predictor(dst, stride, width, height, above, left); \
716
5.27k
  }
717
718
#define intra_pred_highbd_sized(type, width, height)                        \
719
  void aom_highbd_##type##_predictor_##width##x##height##_c(                \
720
      uint16_t *dst, ptrdiff_t stride, const uint16_t *above,               \
721
0
      const uint16_t *left, int bd) {                                       \
722
0
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
723
0
  }
Unexecuted instantiation: aom_highbd_v_predictor_4x4_c
Unexecuted instantiation: aom_highbd_v_predictor_8x8_c
Unexecuted instantiation: aom_highbd_v_predictor_16x16_c
Unexecuted instantiation: aom_highbd_v_predictor_32x32_c
Unexecuted instantiation: aom_highbd_v_predictor_64x64_c
Unexecuted instantiation: aom_highbd_v_predictor_4x8_c
Unexecuted instantiation: aom_highbd_v_predictor_8x4_c
Unexecuted instantiation: aom_highbd_v_predictor_8x16_c
Unexecuted instantiation: aom_highbd_v_predictor_16x8_c
Unexecuted instantiation: aom_highbd_v_predictor_16x32_c
Unexecuted instantiation: aom_highbd_v_predictor_32x16_c
Unexecuted instantiation: aom_highbd_v_predictor_32x64_c
Unexecuted instantiation: aom_highbd_v_predictor_64x32_c
Unexecuted instantiation: aom_highbd_v_predictor_4x16_c
Unexecuted instantiation: aom_highbd_v_predictor_16x4_c
Unexecuted instantiation: aom_highbd_v_predictor_8x32_c
Unexecuted instantiation: aom_highbd_v_predictor_32x8_c
Unexecuted instantiation: aom_highbd_v_predictor_16x64_c
Unexecuted instantiation: aom_highbd_v_predictor_64x16_c
Unexecuted instantiation: aom_highbd_h_predictor_4x4_c
Unexecuted instantiation: aom_highbd_h_predictor_8x8_c
Unexecuted instantiation: aom_highbd_h_predictor_16x16_c
Unexecuted instantiation: aom_highbd_h_predictor_32x32_c
Unexecuted instantiation: aom_highbd_h_predictor_64x64_c
Unexecuted instantiation: aom_highbd_h_predictor_4x8_c
Unexecuted instantiation: aom_highbd_h_predictor_8x4_c
Unexecuted instantiation: aom_highbd_h_predictor_8x16_c
Unexecuted instantiation: aom_highbd_h_predictor_16x8_c
Unexecuted instantiation: aom_highbd_h_predictor_16x32_c
Unexecuted instantiation: aom_highbd_h_predictor_32x16_c
Unexecuted instantiation: aom_highbd_h_predictor_32x64_c
Unexecuted instantiation: aom_highbd_h_predictor_64x32_c
Unexecuted instantiation: aom_highbd_h_predictor_4x16_c
Unexecuted instantiation: aom_highbd_h_predictor_16x4_c
Unexecuted instantiation: aom_highbd_h_predictor_8x32_c
Unexecuted instantiation: aom_highbd_h_predictor_32x8_c
Unexecuted instantiation: aom_highbd_h_predictor_16x64_c
Unexecuted instantiation: aom_highbd_h_predictor_64x16_c
Unexecuted instantiation: aom_highbd_smooth_predictor_4x4_c
Unexecuted instantiation: aom_highbd_smooth_predictor_8x8_c
Unexecuted instantiation: aom_highbd_smooth_predictor_16x16_c
Unexecuted instantiation: aom_highbd_smooth_predictor_32x32_c
Unexecuted instantiation: aom_highbd_smooth_predictor_64x64_c
Unexecuted instantiation: aom_highbd_smooth_predictor_4x8_c
Unexecuted instantiation: aom_highbd_smooth_predictor_8x4_c
Unexecuted instantiation: aom_highbd_smooth_predictor_8x16_c
Unexecuted instantiation: aom_highbd_smooth_predictor_16x8_c
Unexecuted instantiation: aom_highbd_smooth_predictor_16x32_c
Unexecuted instantiation: aom_highbd_smooth_predictor_32x16_c
Unexecuted instantiation: aom_highbd_smooth_predictor_32x64_c
Unexecuted instantiation: aom_highbd_smooth_predictor_64x32_c
Unexecuted instantiation: aom_highbd_smooth_predictor_4x16_c
Unexecuted instantiation: aom_highbd_smooth_predictor_16x4_c
Unexecuted instantiation: aom_highbd_smooth_predictor_8x32_c
Unexecuted instantiation: aom_highbd_smooth_predictor_32x8_c
Unexecuted instantiation: aom_highbd_smooth_predictor_16x64_c
Unexecuted instantiation: aom_highbd_smooth_predictor_64x16_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_4x4_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_8x8_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_16x16_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_32x32_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_64x64_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_4x8_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_8x4_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_8x16_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_16x8_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_16x32_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_32x16_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_32x64_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_64x32_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_4x16_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_16x4_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_8x32_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_32x8_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_16x64_c
Unexecuted instantiation: aom_highbd_smooth_v_predictor_64x16_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_4x4_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_8x8_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_16x16_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_32x32_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_64x64_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_4x8_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_8x4_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_8x16_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_16x8_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_16x32_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_32x16_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_32x64_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_64x32_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_4x16_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_16x4_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_8x32_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_32x8_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_16x64_c
Unexecuted instantiation: aom_highbd_smooth_h_predictor_64x16_c
Unexecuted instantiation: aom_highbd_paeth_predictor_4x4_c
Unexecuted instantiation: aom_highbd_paeth_predictor_8x8_c
Unexecuted instantiation: aom_highbd_paeth_predictor_16x16_c
Unexecuted instantiation: aom_highbd_paeth_predictor_32x32_c
Unexecuted instantiation: aom_highbd_paeth_predictor_64x64_c
Unexecuted instantiation: aom_highbd_paeth_predictor_4x8_c
Unexecuted instantiation: aom_highbd_paeth_predictor_8x4_c
Unexecuted instantiation: aom_highbd_paeth_predictor_8x16_c
Unexecuted instantiation: aom_highbd_paeth_predictor_16x8_c
Unexecuted instantiation: aom_highbd_paeth_predictor_16x32_c
Unexecuted instantiation: aom_highbd_paeth_predictor_32x16_c
Unexecuted instantiation: aom_highbd_paeth_predictor_32x64_c
Unexecuted instantiation: aom_highbd_paeth_predictor_64x32_c
Unexecuted instantiation: aom_highbd_paeth_predictor_4x16_c
Unexecuted instantiation: aom_highbd_paeth_predictor_16x4_c
Unexecuted instantiation: aom_highbd_paeth_predictor_8x32_c
Unexecuted instantiation: aom_highbd_paeth_predictor_32x8_c
Unexecuted instantiation: aom_highbd_paeth_predictor_16x64_c
Unexecuted instantiation: aom_highbd_paeth_predictor_64x16_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_4x4_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_8x8_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_16x16_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_32x32_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_64x64_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_4x8_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_8x4_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_8x16_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_16x8_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_16x32_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_32x16_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_32x64_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_64x32_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_4x16_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_16x4_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_8x32_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_32x8_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_16x64_c
Unexecuted instantiation: aom_highbd_dc_128_predictor_64x16_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_4x4_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_8x8_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_16x16_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_32x32_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_64x64_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_4x8_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_8x4_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_8x16_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_16x8_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_16x32_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_32x16_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_32x64_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_64x32_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_4x16_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_16x4_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_8x32_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_32x8_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_16x64_c
Unexecuted instantiation: aom_highbd_dc_left_predictor_64x16_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_4x4_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_8x8_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_16x16_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_32x32_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_64x64_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_4x8_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_8x4_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_8x16_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_16x8_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_16x32_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_32x16_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_32x64_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_64x32_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_4x16_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_16x4_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_8x32_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_32x8_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_16x64_c
Unexecuted instantiation: aom_highbd_dc_top_predictor_64x16_c
Unexecuted instantiation: aom_highbd_dc_predictor_4x4_c
Unexecuted instantiation: aom_highbd_dc_predictor_8x8_c
Unexecuted instantiation: aom_highbd_dc_predictor_16x16_c
Unexecuted instantiation: aom_highbd_dc_predictor_32x32_c
Unexecuted instantiation: aom_highbd_dc_predictor_64x64_c
724
725
/* clang-format off */
726
#if CONFIG_REALTIME_ONLY
727
#define intra_pred_rectangular(type) \
728
  intra_pred_sized(type, 4, 8) \
729
  intra_pred_sized(type, 8, 4) \
730
  intra_pred_sized(type, 8, 16) \
731
  intra_pred_sized(type, 16, 8) \
732
  intra_pred_sized(type, 16, 32) \
733
  intra_pred_sized(type, 32, 16) \
734
  intra_pred_sized(type, 32, 64) \
735
  intra_pred_sized(type, 64, 32) \
736
  intra_pred_highbd_sized(type, 4, 8) \
737
  intra_pred_highbd_sized(type, 8, 4) \
738
  intra_pred_highbd_sized(type, 8, 16) \
739
  intra_pred_highbd_sized(type, 16, 8) \
740
  intra_pred_highbd_sized(type, 16, 32) \
741
  intra_pred_highbd_sized(type, 32, 16) \
742
  intra_pred_highbd_sized(type, 32, 64) \
743
  intra_pred_highbd_sized(type, 64, 32)
744
#else
745
#define intra_pred_rectangular(type) \
746
  intra_pred_sized(type, 4, 8) \
747
  intra_pred_sized(type, 8, 4) \
748
  intra_pred_sized(type, 8, 16) \
749
  intra_pred_sized(type, 16, 8) \
750
  intra_pred_sized(type, 16, 32) \
751
  intra_pred_sized(type, 32, 16) \
752
  intra_pred_sized(type, 32, 64) \
753
  intra_pred_sized(type, 64, 32) \
754
  intra_pred_sized(type, 4, 16) \
755
  intra_pred_sized(type, 16, 4) \
756
  intra_pred_sized(type, 8, 32) \
757
  intra_pred_sized(type, 32, 8) \
758
  intra_pred_sized(type, 16, 64) \
759
  intra_pred_sized(type, 64, 16) \
760
  intra_pred_highbd_sized(type, 4, 8) \
761
  intra_pred_highbd_sized(type, 8, 4) \
762
  intra_pred_highbd_sized(type, 8, 16) \
763
  intra_pred_highbd_sized(type, 16, 8) \
764
  intra_pred_highbd_sized(type, 16, 32) \
765
  intra_pred_highbd_sized(type, 32, 16) \
766
  intra_pred_highbd_sized(type, 32, 64) \
767
  intra_pred_highbd_sized(type, 64, 32) \
768
  intra_pred_highbd_sized(type, 4, 16) \
769
  intra_pred_highbd_sized(type, 16, 4) \
770
  intra_pred_highbd_sized(type, 8, 32) \
771
  intra_pred_highbd_sized(type, 32, 8) \
772
  intra_pred_highbd_sized(type, 16, 64) \
773
  intra_pred_highbd_sized(type, 64, 16)
774
#endif
775
776
#define intra_pred_above_4x4(type) \
777
  intra_pred_sized(type, 8, 8) \
778
  intra_pred_sized(type, 16, 16) \
779
  intra_pred_sized(type, 32, 32) \
780
  intra_pred_sized(type, 64, 64) \
781
  intra_pred_highbd_sized(type, 4, 4) \
782
  intra_pred_highbd_sized(type, 8, 8) \
783
  intra_pred_highbd_sized(type, 16, 16) \
784
  intra_pred_highbd_sized(type, 32, 32) \
785
  intra_pred_highbd_sized(type, 64, 64) \
786
  intra_pred_rectangular(type)
787
#define intra_pred_allsizes(type) \
788
  intra_pred_sized(type, 4, 4) \
789
  intra_pred_above_4x4(type)
790
#define intra_pred_square(type) \
791
  intra_pred_sized(type, 4, 4) \
792
  intra_pred_sized(type, 8, 8) \
793
  intra_pred_sized(type, 16, 16) \
794
  intra_pred_sized(type, 32, 32) \
795
  intra_pred_sized(type, 64, 64) \
796
  intra_pred_highbd_sized(type, 4, 4) \
797
  intra_pred_highbd_sized(type, 8, 8) \
798
  intra_pred_highbd_sized(type, 16, 16) \
799
  intra_pred_highbd_sized(type, 32, 32) \
800
  intra_pred_highbd_sized(type, 64, 64)
801
802
intra_pred_allsizes(v)
803
intra_pred_allsizes(h)
804
intra_pred_allsizes(smooth)
805
intra_pred_allsizes(smooth_v)
806
intra_pred_allsizes(smooth_h)
807
intra_pred_allsizes(paeth)
808
intra_pred_allsizes(dc_128)
809
intra_pred_allsizes(dc_left)
810
intra_pred_allsizes(dc_top)
811
intra_pred_square(dc)
812
/* clang-format on */
813
#undef intra_pred_allsizes