Coverage Report

Created: 2026-02-14 07:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aom/aom_dsp/intrapred.c
Line
Count
Source
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
0
                               const uint8_t *above, const uint8_t *left) {
25
0
  int r;
26
0
  (void)left;
27
28
0
  for (r = 0; r < bh; r++) {
29
0
    memcpy(dst, above, bw);
30
0
    dst += stride;
31
0
  }
32
0
}
33
34
static inline void h_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh,
35
0
                               const uint8_t *above, const uint8_t *left) {
36
0
  int r;
37
0
  (void)above;
38
39
0
  for (r = 0; r < bh; r++) {
40
0
    memset(dst, left[r], bw);
41
0
    dst += stride;
42
0
  }
43
0
}
44
45
3.37G
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
1.12G
                                              uint16_t top_left) {
49
1.12G
  const int base = top + left - top_left;
50
1.12G
  const int p_left = abs_diff(base, left);
51
1.12G
  const int p_top = abs_diff(base, top);
52
1.12G
  const int p_top_left = abs_diff(base, top_left);
53
54
  // Return nearest to base of left, top and top_left.
55
1.12G
  return (p_left <= p_top && p_left <= p_top_left) ? left
56
1.12G
         : (p_top <= p_top_left)                   ? top
57
94.1M
                                                   : top_left;
58
1.12G
}
59
60
static inline void paeth_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
61
                                   int bh, const uint8_t *above,
62
0
                                   const uint8_t *left) {
63
0
  int r, c;
64
0
  const uint8_t ytop_left = above[-1];
65
66
0
  for (r = 0; r < bh; r++) {
67
0
    for (c = 0; c < bw; c++)
68
0
      dst[c] = (uint8_t)paeth_predictor_single(left[r], above[c], ytop_left);
69
0
    dst += stride;
70
0
  }
71
0
}
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
1.92M
  assert(weights_w[0] < weights_scale);                               \
77
1.92M
  assert(weights_h[0] < weights_scale);                               \
78
1.92M
  assert(weights_scale - weights_w[bw - 1] < weights_scale);          \
79
1.92M
  assert(weights_scale - weights_h[bh - 1] < weights_scale);          \
80
1.92M
  assert(pred_scale < 31)  // ensures no overflow when calculating predictor.
81
82
688M
#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
0
                                    const uint8_t *left) {
87
0
  const uint8_t below_pred = left[bh - 1];   // estimated by bottom-left pixel
88
0
  const uint8_t right_pred = above[bw - 1];  // estimated by top-right pixel
89
0
  const uint8_t *const sm_weights_w = smooth_weights + bw - 4;
90
0
  const uint8_t *const sm_weights_h = smooth_weights + bh - 4;
91
  // scale = 2 * 2^SMOOTH_WEIGHT_LOG2_SCALE
92
0
  const int log2_scale = 1 + SMOOTH_WEIGHT_LOG2_SCALE;
93
0
  const uint16_t scale = (1 << SMOOTH_WEIGHT_LOG2_SCALE);
94
0
  sm_weights_sanity_checks(sm_weights_w, sm_weights_h, scale,
95
0
                           log2_scale + sizeof(*dst));
96
0
  int r;
97
0
  for (r = 0; r < bh; ++r) {
98
0
    int c;
99
0
    for (c = 0; c < bw; ++c) {
100
0
      const uint8_t pixels[] = { above[c], below_pred, left[r], right_pred };
101
0
      const uint8_t weights[] = { sm_weights_h[r], scale - sm_weights_h[r],
102
0
                                  sm_weights_w[c], scale - sm_weights_w[c] };
103
0
      uint32_t this_pred = 0;
104
0
      int i;
105
0
      assert(scale >= sm_weights_h[r] && scale >= sm_weights_w[c]);
106
0
      for (i = 0; i < 4; ++i) {
107
0
        this_pred += weights[i] * pixels[i];
108
0
      }
109
0
      dst[c] = divide_round(this_pred, log2_scale);
110
0
    }
111
0
    dst += stride;
112
0
  }
113
0
}
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 = smooth_weights + bh - 4;
120
  // scale = 2^SMOOTH_WEIGHT_LOG2_SCALE
121
0
  const int log2_scale = SMOOTH_WEIGHT_LOG2_SCALE;
122
0
  const uint16_t scale = (1 << SMOOTH_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 = smooth_weights + bw - 4;
149
  // scale = 2^SMOOTH_WEIGHT_LOG2_SCALE
150
0
  const int log2_scale = SMOOTH_WEIGHT_LOG2_SCALE;
151
0
  const uint16_t scale = (1 << SMOOTH_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
0
                                    const uint8_t *left) {
176
0
  int r;
177
0
  (void)above;
178
0
  (void)left;
179
180
0
  for (r = 0; r < bh; r++) {
181
0
    memset(dst, 128, bw);
182
0
    dst += stride;
183
0
  }
184
0
}
185
186
static inline void dc_left_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
187
                                     int bh, const uint8_t *above,
188
0
                                     const uint8_t *left) {
189
0
  int i, r, expected_dc, sum = 0;
190
0
  (void)above;
191
192
0
  for (i = 0; i < bh; i++) sum += left[i];
193
0
  expected_dc = (sum + (bh >> 1)) / bh;
194
195
0
  for (r = 0; r < bh; r++) {
196
0
    memset(dst, expected_dc, bw);
197
0
    dst += stride;
198
0
  }
199
0
}
200
201
static inline void dc_top_predictor(uint8_t *dst, ptrdiff_t stride, int bw,
202
                                    int bh, const uint8_t *above,
203
0
                                    const uint8_t *left) {
204
0
  int i, r, expected_dc, sum = 0;
205
0
  (void)left;
206
207
0
  for (i = 0; i < bw; i++) sum += above[i];
208
0
  expected_dc = (sum + (bw >> 1)) / bw;
209
210
0
  for (r = 0; r < bh; r++) {
211
0
    memset(dst, expected_dc, bw);
212
0
    dst += stride;
213
0
  }
214
0
}
215
216
static inline void dc_predictor(uint8_t *dst, ptrdiff_t stride, int bw, int bh,
217
0
                                const uint8_t *above, const uint8_t *left) {
218
0
  int i, r, expected_dc, sum = 0;
219
0
  const int count = bw + bh;
220
221
0
  for (i = 0; i < bw; i++) {
222
0
    sum += above[i];
223
0
  }
224
0
  for (i = 0; i < bh; i++) {
225
0
    sum += left[i];
226
0
  }
227
228
0
  expected_dc = (sum + (count >> 1)) / count;
229
230
0
  for (r = 0; r < bh; r++) {
231
0
    memset(dst, expected_dc, bw);
232
0
    dst += stride;
233
0
  }
234
0
}
235
236
static inline int divide_using_multiply_shift(int num, int shift1,
237
1.54M
                                              int multiplier, int shift2) {
238
1.54M
  const int interm = num >> shift1;
239
1.54M
  return interm * multiplier >> shift2;
240
1.54M
}
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
0
#define DC_MULTIPLIER_1X2 0x5556
261
0
#define DC_MULTIPLIER_1X4 0x3334
262
263
0
#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
0
                                     int multiplier) {
269
0
  int sum = 0;
270
271
0
  for (int i = 0; i < bw; i++) {
272
0
    sum += above[i];
273
0
  }
274
0
  for (int i = 0; i < bh; i++) {
275
0
    sum += left[i];
276
0
  }
277
278
0
  const int expected_dc = divide_using_multiply_shift(
279
0
      sum + ((bw + bh) >> 1), shift1, multiplier, DC_SHIFT2);
280
0
  assert(expected_dc < (1 << 8));
281
282
0
  for (int r = 0; r < bh; r++) {
283
0
    memset(dst, expected_dc, bw);
284
0
    dst += stride;
285
0
  }
286
0
}
287
288
#undef DC_SHIFT2
289
290
void aom_dc_predictor_4x8_c(uint8_t *dst, ptrdiff_t stride,
291
0
                            const uint8_t *above, const uint8_t *left) {
292
0
  dc_predictor_rect(dst, stride, 4, 8, above, left, 2, DC_MULTIPLIER_1X2);
293
0
}
294
295
void aom_dc_predictor_8x4_c(uint8_t *dst, ptrdiff_t stride,
296
0
                            const uint8_t *above, const uint8_t *left) {
297
0
  dc_predictor_rect(dst, stride, 8, 4, above, left, 2, DC_MULTIPLIER_1X2);
298
0
}
299
300
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
301
void aom_dc_predictor_4x16_c(uint8_t *dst, ptrdiff_t stride,
302
0
                             const uint8_t *above, const uint8_t *left) {
303
0
  dc_predictor_rect(dst, stride, 4, 16, above, left, 2, DC_MULTIPLIER_1X4);
304
0
}
305
306
void aom_dc_predictor_16x4_c(uint8_t *dst, ptrdiff_t stride,
307
0
                             const uint8_t *above, const uint8_t *left) {
308
0
  dc_predictor_rect(dst, stride, 16, 4, above, left, 2, DC_MULTIPLIER_1X4);
309
0
}
310
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
311
312
void aom_dc_predictor_8x16_c(uint8_t *dst, ptrdiff_t stride,
313
0
                             const uint8_t *above, const uint8_t *left) {
314
0
  dc_predictor_rect(dst, stride, 8, 16, above, left, 3, DC_MULTIPLIER_1X2);
315
0
}
316
317
void aom_dc_predictor_16x8_c(uint8_t *dst, ptrdiff_t stride,
318
0
                             const uint8_t *above, const uint8_t *left) {
319
0
  dc_predictor_rect(dst, stride, 16, 8, above, left, 3, DC_MULTIPLIER_1X2);
320
0
}
321
322
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
323
void aom_dc_predictor_8x32_c(uint8_t *dst, ptrdiff_t stride,
324
0
                             const uint8_t *above, const uint8_t *left) {
325
0
  dc_predictor_rect(dst, stride, 8, 32, above, left, 3, DC_MULTIPLIER_1X4);
326
0
}
327
328
void aom_dc_predictor_32x8_c(uint8_t *dst, ptrdiff_t stride,
329
0
                             const uint8_t *above, const uint8_t *left) {
330
0
  dc_predictor_rect(dst, stride, 32, 8, above, left, 3, DC_MULTIPLIER_1X4);
331
0
}
332
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
333
334
void aom_dc_predictor_16x32_c(uint8_t *dst, ptrdiff_t stride,
335
0
                              const uint8_t *above, const uint8_t *left) {
336
0
  dc_predictor_rect(dst, stride, 16, 32, above, left, 4, DC_MULTIPLIER_1X2);
337
0
}
338
339
void aom_dc_predictor_32x16_c(uint8_t *dst, ptrdiff_t stride,
340
0
                              const uint8_t *above, const uint8_t *left) {
341
0
  dc_predictor_rect(dst, stride, 32, 16, above, left, 4, DC_MULTIPLIER_1X2);
342
0
}
343
344
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
345
void aom_dc_predictor_16x64_c(uint8_t *dst, ptrdiff_t stride,
346
0
                              const uint8_t *above, const uint8_t *left) {
347
0
  dc_predictor_rect(dst, stride, 16, 64, above, left, 4, DC_MULTIPLIER_1X4);
348
0
}
349
350
void aom_dc_predictor_64x16_c(uint8_t *dst, ptrdiff_t stride,
351
0
                              const uint8_t *above, const uint8_t *left) {
352
0
  dc_predictor_rect(dst, stride, 64, 16, above, left, 4, DC_MULTIPLIER_1X4);
353
0
}
354
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
355
356
void aom_dc_predictor_32x64_c(uint8_t *dst, ptrdiff_t stride,
357
0
                              const uint8_t *above, const uint8_t *left) {
358
0
  dc_predictor_rect(dst, stride, 32, 64, above, left, 5, DC_MULTIPLIER_1X2);
359
0
}
360
361
void aom_dc_predictor_64x32_c(uint8_t *dst, ptrdiff_t stride,
362
0
                              const uint8_t *above, const uint8_t *left) {
363
0
  dc_predictor_rect(dst, stride, 64, 32, above, left, 5, DC_MULTIPLIER_1X2);
364
0
}
365
366
#undef DC_MULTIPLIER_1X2
367
#undef DC_MULTIPLIER_1X4
368
369
#if CONFIG_AV1_HIGHBITDEPTH
370
371
static inline void highbd_v_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
372
                                      int bh, const uint16_t *above,
373
92.9k
                                      const uint16_t *left, int bd) {
374
92.9k
  int r;
375
92.9k
  (void)left;
376
92.9k
  (void)bd;
377
1.50M
  for (r = 0; r < bh; r++) {
378
1.41M
    memcpy(dst, above, bw * sizeof(uint16_t));
379
1.41M
    dst += stride;
380
1.41M
  }
381
92.9k
}
382
383
static inline void highbd_h_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
384
                                      int bh, const uint16_t *above,
385
615k
                                      const uint16_t *left, int bd) {
386
615k
  int r;
387
615k
  (void)above;
388
615k
  (void)bd;
389
7.81M
  for (r = 0; r < bh; r++) {
390
7.19M
    aom_memset16(dst, left[r], bw);
391
7.19M
    dst += stride;
392
7.19M
  }
393
615k
}
394
395
static inline void highbd_paeth_predictor(uint16_t *dst, ptrdiff_t stride,
396
                                          int bw, int bh, const uint16_t *above,
397
2.20M
                                          const uint16_t *left, int bd) {
398
2.20M
  int r, c;
399
2.20M
  const uint16_t ytop_left = above[-1];
400
2.20M
  (void)bd;
401
402
61.1M
  for (r = 0; r < bh; r++) {
403
1.18G
    for (c = 0; c < bw; c++)
404
1.12G
      dst[c] = paeth_predictor_single(left[r], above[c], ytop_left);
405
58.9M
    dst += stride;
406
58.9M
  }
407
2.20M
}
408
409
static inline void highbd_smooth_predictor(uint16_t *dst, ptrdiff_t stride,
410
                                           int bw, int bh,
411
                                           const uint16_t *above,
412
1.13M
                                           const uint16_t *left, int bd) {
413
1.13M
  (void)bd;
414
1.13M
  const uint16_t below_pred = left[bh - 1];   // estimated by bottom-left pixel
415
1.13M
  const uint16_t right_pred = above[bw - 1];  // estimated by top-right pixel
416
1.13M
  const uint8_t *const sm_weights_w = smooth_weights + bw - 4;
417
1.13M
  const uint8_t *const sm_weights_h = smooth_weights + bh - 4;
418
  // scale = 2 * 2^SMOOTH_WEIGHT_LOG2_SCALE
419
1.13M
  const int log2_scale = 1 + SMOOTH_WEIGHT_LOG2_SCALE;
420
1.13M
  const uint16_t scale = (1 << SMOOTH_WEIGHT_LOG2_SCALE);
421
4.55M
  sm_weights_sanity_checks(sm_weights_w, sm_weights_h, scale,
422
1.13M
                           log2_scale + sizeof(*dst));
423
1.13M
  int r;
424
17.2M
  for (r = 0; r < bh; ++r) {
425
16.2M
    int c;
426
435M
    for (c = 0; c < bw; ++c) {
427
419M
      const uint16_t pixels[] = { above[c], below_pred, left[r], right_pred };
428
419M
      const uint8_t weights[] = { sm_weights_h[r], scale - sm_weights_h[r],
429
419M
                                  sm_weights_w[c], scale - sm_weights_w[c] };
430
419M
      uint32_t this_pred = 0;
431
419M
      int i;
432
419M
      assert(scale >= sm_weights_h[r] && scale >= sm_weights_w[c]);
433
2.09G
      for (i = 0; i < 4; ++i) {
434
1.67G
        this_pred += weights[i] * pixels[i];
435
1.67G
      }
436
419M
      dst[c] = divide_round(this_pred, log2_scale);
437
419M
    }
438
16.1M
    dst += stride;
439
16.1M
  }
440
1.13M
}
441
442
static inline void highbd_smooth_v_predictor(uint16_t *dst, ptrdiff_t stride,
443
                                             int bw, int bh,
444
                                             const uint16_t *above,
445
366k
                                             const uint16_t *left, int bd) {
446
366k
  (void)bd;
447
366k
  const uint16_t below_pred = left[bh - 1];  // estimated by bottom-left pixel
448
366k
  const uint8_t *const sm_weights = smooth_weights + bh - 4;
449
  // scale = 2^SMOOTH_WEIGHT_LOG2_SCALE
450
366k
  const int log2_scale = SMOOTH_WEIGHT_LOG2_SCALE;
451
366k
  const uint16_t scale = (1 << SMOOTH_WEIGHT_LOG2_SCALE);
452
1.46M
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
453
366k
                           log2_scale + sizeof(*dst));
454
455
366k
  int r;
456
5.68M
  for (r = 0; r < bh; r++) {
457
5.35M
    int c;
458
144M
    for (c = 0; c < bw; ++c) {
459
138M
      const uint16_t pixels[] = { above[c], below_pred };
460
138M
      const uint8_t weights[] = { sm_weights[r], scale - sm_weights[r] };
461
138M
      uint32_t this_pred = 0;
462
138M
      assert(scale >= sm_weights[r]);
463
138M
      int i;
464
416M
      for (i = 0; i < 2; ++i) {
465
277M
        this_pred += weights[i] * pixels[i];
466
277M
      }
467
138M
      dst[c] = divide_round(this_pred, log2_scale);
468
138M
    }
469
5.32M
    dst += stride;
470
5.32M
  }
471
366k
}
472
473
static inline void highbd_smooth_h_predictor(uint16_t *dst, ptrdiff_t stride,
474
                                             int bw, int bh,
475
                                             const uint16_t *above,
476
421k
                                             const uint16_t *left, int bd) {
477
421k
  (void)bd;
478
421k
  const uint16_t right_pred = above[bw - 1];  // estimated by top-right pixel
479
421k
  const uint8_t *const sm_weights = smooth_weights + bw - 4;
480
  // scale = 2^SMOOTH_WEIGHT_LOG2_SCALE
481
421k
  const int log2_scale = SMOOTH_WEIGHT_LOG2_SCALE;
482
421k
  const uint16_t scale = (1 << SMOOTH_WEIGHT_LOG2_SCALE);
483
1.68M
  sm_weights_sanity_checks(sm_weights, sm_weights, scale,
484
421k
                           log2_scale + sizeof(*dst));
485
486
421k
  int r;
487
6.19M
  for (r = 0; r < bh; r++) {
488
5.77M
    int c;
489
135M
    for (c = 0; c < bw; ++c) {
490
130M
      const uint16_t pixels[] = { left[r], right_pred };
491
130M
      const uint8_t weights[] = { sm_weights[c], scale - sm_weights[c] };
492
130M
      uint32_t this_pred = 0;
493
130M
      assert(scale >= sm_weights[c]);
494
130M
      int i;
495
390M
      for (i = 0; i < 2; ++i) {
496
260M
        this_pred += weights[i] * pixels[i];
497
260M
      }
498
130M
      dst[c] = divide_round(this_pred, log2_scale);
499
130M
    }
500
5.77M
    dst += stride;
501
5.77M
  }
502
421k
}
503
504
static inline void highbd_dc_128_predictor(uint16_t *dst, ptrdiff_t stride,
505
                                           int bw, int bh,
506
                                           const uint16_t *above,
507
17.4k
                                           const uint16_t *left, int bd) {
508
17.4k
  int r;
509
17.4k
  (void)above;
510
17.4k
  (void)left;
511
512
934k
  for (r = 0; r < bh; r++) {
513
917k
    aom_memset16(dst, 128 << (bd - 8), bw);
514
917k
    dst += stride;
515
917k
  }
516
17.4k
}
517
518
static inline void highbd_dc_left_predictor(uint16_t *dst, ptrdiff_t stride,
519
                                            int bw, int bh,
520
                                            const uint16_t *above,
521
50.4k
                                            const uint16_t *left, int bd) {
522
50.4k
  int i, r, expected_dc, sum = 0;
523
50.4k
  (void)above;
524
50.4k
  (void)bd;
525
526
2.31M
  for (i = 0; i < bh; i++) sum += left[i];
527
50.4k
  expected_dc = (sum + (bh >> 1)) / bh;
528
529
2.31M
  for (r = 0; r < bh; r++) {
530
2.26M
    aom_memset16(dst, expected_dc, bw);
531
2.26M
    dst += stride;
532
2.26M
  }
533
50.4k
}
534
535
static inline void highbd_dc_top_predictor(uint16_t *dst, ptrdiff_t stride,
536
                                           int bw, int bh,
537
                                           const uint16_t *above,
538
51.9k
                                           const uint16_t *left, int bd) {
539
51.9k
  int i, r, expected_dc, sum = 0;
540
51.9k
  (void)left;
541
51.9k
  (void)bd;
542
543
2.38M
  for (i = 0; i < bw; i++) sum += above[i];
544
51.9k
  expected_dc = (sum + (bw >> 1)) / bw;
545
546
2.04M
  for (r = 0; r < bh; r++) {
547
1.98M
    aom_memset16(dst, expected_dc, bw);
548
1.98M
    dst += stride;
549
1.98M
  }
550
51.9k
}
551
552
static inline void highbd_dc_predictor(uint16_t *dst, ptrdiff_t stride, int bw,
553
                                       int bh, const uint16_t *above,
554
115k
                                       const uint16_t *left, int bd) {
555
115k
  int i, r, expected_dc, sum = 0;
556
115k
  const int count = bw + bh;
557
115k
  (void)bd;
558
559
7.52M
  for (i = 0; i < bw; i++) {
560
7.40M
    sum += above[i];
561
7.40M
  }
562
7.52M
  for (i = 0; i < bh; i++) {
563
7.40M
    sum += left[i];
564
7.40M
  }
565
566
115k
  expected_dc = (sum + (count >> 1)) / count;
567
568
7.49M
  for (r = 0; r < bh; r++) {
569
7.38M
    aom_memset16(dst, expected_dc, bw);
570
7.38M
    dst += stride;
571
7.38M
  }
572
115k
}
573
574
// Obtained similarly as DC_MULTIPLIER_1X2 and DC_MULTIPLIER_1X4 above, but
575
// assume 2nd shift of 17 bits instead of 16.
576
// Note: Strictly speaking, 2nd shift needs to be 17 only when:
577
// - bit depth == 12, and
578
// - bw + bh is divisible by 5 (as opposed to divisible by 3).
579
// All other cases can use half the multipliers with a shift of 16 instead.
580
// This special optimization can be used when writing assembly code.
581
24.8k
#define HIGHBD_DC_MULTIPLIER_1X2 0xAAAB
582
// Note: This constant is odd, but a smaller even constant (0x199a) with the
583
// appropriate shift should work for neon in 8/10-bit.
584
1.51M
#define HIGHBD_DC_MULTIPLIER_1X4 0x6667
585
586
1.54M
#define HIGHBD_DC_SHIFT2 17
587
588
static inline void highbd_dc_predictor_rect(uint16_t *dst, ptrdiff_t stride,
589
                                            int bw, int bh,
590
                                            const uint16_t *above,
591
                                            const uint16_t *left, int bd,
592
1.54M
                                            int shift1, uint32_t multiplier) {
593
1.54M
  int sum = 0;
594
1.54M
  (void)bd;
595
596
34.6M
  for (int i = 0; i < bw; i++) {
597
33.1M
    sum += above[i];
598
33.1M
  }
599
17.6M
  for (int i = 0; i < bh; i++) {
600
16.1M
    sum += left[i];
601
16.1M
  }
602
603
1.54M
  const int expected_dc = divide_using_multiply_shift(
604
1.54M
      sum + ((bw + bh) >> 1), shift1, multiplier, HIGHBD_DC_SHIFT2);
605
1.54M
  assert(expected_dc < (1 << bd));
606
607
17.6M
  for (int r = 0; r < bh; r++) {
608
16.0M
    aom_memset16(dst, expected_dc, bw);
609
16.0M
    dst += stride;
610
16.0M
  }
611
1.54M
}
612
613
#undef HIGHBD_DC_SHIFT2
614
615
void aom_highbd_dc_predictor_4x8_c(uint16_t *dst, ptrdiff_t stride,
616
                                   const uint16_t *above, const uint16_t *left,
617
0
                                   int bd) {
618
0
  highbd_dc_predictor_rect(dst, stride, 4, 8, above, left, bd, 2,
619
0
                           HIGHBD_DC_MULTIPLIER_1X2);
620
0
}
621
622
void aom_highbd_dc_predictor_8x4_c(uint16_t *dst, ptrdiff_t stride,
623
                                   const uint16_t *above, const uint16_t *left,
624
0
                                   int bd) {
625
0
  highbd_dc_predictor_rect(dst, stride, 8, 4, above, left, bd, 2,
626
0
                           HIGHBD_DC_MULTIPLIER_1X2);
627
0
}
628
629
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
630
void aom_highbd_dc_predictor_4x16_c(uint16_t *dst, ptrdiff_t stride,
631
                                    const uint16_t *above, const uint16_t *left,
632
187k
                                    int bd) {
633
187k
  highbd_dc_predictor_rect(dst, stride, 4, 16, above, left, bd, 2,
634
187k
                           HIGHBD_DC_MULTIPLIER_1X4);
635
187k
}
636
637
void aom_highbd_dc_predictor_16x4_c(uint16_t *dst, ptrdiff_t stride,
638
                                    const uint16_t *above, const uint16_t *left,
639
689k
                                    int bd) {
640
689k
  highbd_dc_predictor_rect(dst, stride, 16, 4, above, left, bd, 2,
641
689k
                           HIGHBD_DC_MULTIPLIER_1X4);
642
689k
}
643
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
644
645
void aom_highbd_dc_predictor_8x16_c(uint16_t *dst, ptrdiff_t stride,
646
                                    const uint16_t *above, const uint16_t *left,
647
0
                                    int bd) {
648
0
  highbd_dc_predictor_rect(dst, stride, 8, 16, above, left, bd, 3,
649
0
                           HIGHBD_DC_MULTIPLIER_1X2);
650
0
}
651
652
void aom_highbd_dc_predictor_16x8_c(uint16_t *dst, ptrdiff_t stride,
653
                                    const uint16_t *above, const uint16_t *left,
654
0
                                    int bd) {
655
0
  highbd_dc_predictor_rect(dst, stride, 16, 8, above, left, bd, 3,
656
0
                           HIGHBD_DC_MULTIPLIER_1X2);
657
0
}
658
659
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
660
void aom_highbd_dc_predictor_8x32_c(uint16_t *dst, ptrdiff_t stride,
661
                                    const uint16_t *above, const uint16_t *left,
662
98.3k
                                    int bd) {
663
98.3k
  highbd_dc_predictor_rect(dst, stride, 8, 32, above, left, bd, 3,
664
98.3k
                           HIGHBD_DC_MULTIPLIER_1X4);
665
98.3k
}
666
667
void aom_highbd_dc_predictor_32x8_c(uint16_t *dst, ptrdiff_t stride,
668
                                    const uint16_t *above, const uint16_t *left,
669
451k
                                    int bd) {
670
451k
  highbd_dc_predictor_rect(dst, stride, 32, 8, above, left, bd, 3,
671
451k
                           HIGHBD_DC_MULTIPLIER_1X4);
672
451k
}
673
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
674
675
void aom_highbd_dc_predictor_16x32_c(uint16_t *dst, ptrdiff_t stride,
676
                                     const uint16_t *above,
677
0
                                     const uint16_t *left, int bd) {
678
0
  highbd_dc_predictor_rect(dst, stride, 16, 32, above, left, bd, 4,
679
0
                           HIGHBD_DC_MULTIPLIER_1X2);
680
0
}
681
682
void aom_highbd_dc_predictor_32x16_c(uint16_t *dst, ptrdiff_t stride,
683
                                     const uint16_t *above,
684
0
                                     const uint16_t *left, int bd) {
685
0
  highbd_dc_predictor_rect(dst, stride, 32, 16, above, left, bd, 4,
686
0
                           HIGHBD_DC_MULTIPLIER_1X2);
687
0
}
688
689
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
690
void aom_highbd_dc_predictor_16x64_c(uint16_t *dst, ptrdiff_t stride,
691
                                     const uint16_t *above,
692
21.2k
                                     const uint16_t *left, int bd) {
693
21.2k
  highbd_dc_predictor_rect(dst, stride, 16, 64, above, left, bd, 4,
694
21.2k
                           HIGHBD_DC_MULTIPLIER_1X4);
695
21.2k
}
696
697
void aom_highbd_dc_predictor_64x16_c(uint16_t *dst, ptrdiff_t stride,
698
                                     const uint16_t *above,
699
70.1k
                                     const uint16_t *left, int bd) {
700
70.1k
  highbd_dc_predictor_rect(dst, stride, 64, 16, above, left, bd, 4,
701
70.1k
                           HIGHBD_DC_MULTIPLIER_1X4);
702
70.1k
}
703
#endif  // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
704
705
void aom_highbd_dc_predictor_32x64_c(uint16_t *dst, ptrdiff_t stride,
706
                                     const uint16_t *above,
707
9.62k
                                     const uint16_t *left, int bd) {
708
9.62k
  highbd_dc_predictor_rect(dst, stride, 32, 64, above, left, bd, 5,
709
9.62k
                           HIGHBD_DC_MULTIPLIER_1X2);
710
9.62k
}
711
712
void aom_highbd_dc_predictor_64x32_c(uint16_t *dst, ptrdiff_t stride,
713
                                     const uint16_t *above,
714
15.2k
                                     const uint16_t *left, int bd) {
715
15.2k
  highbd_dc_predictor_rect(dst, stride, 64, 32, above, left, bd, 5,
716
15.2k
                           HIGHBD_DC_MULTIPLIER_1X2);
717
15.2k
}
718
719
#undef HIGHBD_DC_MULTIPLIER_1X2
720
#undef HIGHBD_DC_MULTIPLIER_1X4
721
#endif  // CONFIG_AV1_HIGHBITDEPTH
722
723
// This serves as a wrapper function, so that all the prediction functions
724
// can be unified and accessed as a pointer array. Note that the boundary
725
// above and left are not necessarily used all the time.
726
#define intra_pred_sized(type, width, height)                  \
727
  void aom_##type##_predictor_##width##x##height##_c(          \
728
      uint8_t *dst, ptrdiff_t stride, const uint8_t *above,    \
729
0
      const uint8_t *left) {                                   \
730
0
    type##_predictor(dst, stride, width, height, above, left); \
731
0
  }
Unexecuted instantiation: aom_v_predictor_4x4_c
Unexecuted instantiation: aom_v_predictor_8x8_c
Unexecuted instantiation: aom_v_predictor_16x16_c
Unexecuted instantiation: aom_v_predictor_32x32_c
Unexecuted instantiation: aom_v_predictor_64x64_c
Unexecuted instantiation: aom_v_predictor_4x8_c
Unexecuted instantiation: aom_v_predictor_8x4_c
Unexecuted instantiation: aom_v_predictor_8x16_c
Unexecuted instantiation: aom_v_predictor_16x8_c
Unexecuted instantiation: aom_v_predictor_16x32_c
Unexecuted instantiation: aom_v_predictor_32x16_c
Unexecuted instantiation: aom_v_predictor_32x64_c
Unexecuted instantiation: aom_v_predictor_64x32_c
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
Unexecuted instantiation: aom_h_predictor_4x4_c
Unexecuted instantiation: aom_h_predictor_8x8_c
Unexecuted instantiation: aom_h_predictor_16x16_c
Unexecuted instantiation: aom_h_predictor_32x32_c
Unexecuted instantiation: aom_h_predictor_64x64_c
Unexecuted instantiation: aom_h_predictor_4x8_c
Unexecuted instantiation: aom_h_predictor_8x4_c
Unexecuted instantiation: aom_h_predictor_8x16_c
Unexecuted instantiation: aom_h_predictor_16x8_c
Unexecuted instantiation: aom_h_predictor_16x32_c
Unexecuted instantiation: aom_h_predictor_32x16_c
Unexecuted instantiation: aom_h_predictor_32x64_c
Unexecuted instantiation: aom_h_predictor_64x32_c
Unexecuted instantiation: aom_h_predictor_4x16_c
Unexecuted instantiation: aom_h_predictor_16x4_c
Unexecuted instantiation: aom_h_predictor_8x32_c
Unexecuted instantiation: aom_h_predictor_32x8_c
Unexecuted instantiation: aom_h_predictor_16x64_c
Unexecuted instantiation: aom_h_predictor_64x16_c
Unexecuted instantiation: aom_smooth_predictor_4x4_c
Unexecuted instantiation: aom_smooth_predictor_8x8_c
Unexecuted instantiation: aom_smooth_predictor_16x16_c
Unexecuted instantiation: aom_smooth_predictor_32x32_c
Unexecuted instantiation: aom_smooth_predictor_64x64_c
Unexecuted instantiation: aom_smooth_predictor_4x8_c
Unexecuted instantiation: aom_smooth_predictor_8x4_c
Unexecuted instantiation: aom_smooth_predictor_8x16_c
Unexecuted instantiation: aom_smooth_predictor_16x8_c
Unexecuted instantiation: aom_smooth_predictor_16x32_c
Unexecuted instantiation: aom_smooth_predictor_32x16_c
Unexecuted instantiation: aom_smooth_predictor_32x64_c
Unexecuted instantiation: aom_smooth_predictor_64x32_c
Unexecuted instantiation: aom_smooth_predictor_4x16_c
Unexecuted instantiation: aom_smooth_predictor_16x4_c
Unexecuted instantiation: aom_smooth_predictor_8x32_c
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
Unexecuted instantiation: aom_paeth_predictor_4x4_c
Unexecuted instantiation: aom_paeth_predictor_8x8_c
Unexecuted instantiation: aom_paeth_predictor_16x16_c
Unexecuted instantiation: aom_paeth_predictor_32x32_c
Unexecuted instantiation: aom_paeth_predictor_64x64_c
Unexecuted instantiation: aom_paeth_predictor_4x8_c
Unexecuted instantiation: aom_paeth_predictor_8x4_c
Unexecuted instantiation: aom_paeth_predictor_8x16_c
Unexecuted instantiation: aom_paeth_predictor_16x8_c
Unexecuted instantiation: aom_paeth_predictor_16x32_c
Unexecuted instantiation: aom_paeth_predictor_32x16_c
Unexecuted instantiation: aom_paeth_predictor_32x64_c
Unexecuted instantiation: aom_paeth_predictor_64x32_c
Unexecuted instantiation: aom_paeth_predictor_4x16_c
Unexecuted instantiation: aom_paeth_predictor_16x4_c
Unexecuted instantiation: aom_paeth_predictor_8x32_c
Unexecuted instantiation: aom_paeth_predictor_32x8_c
Unexecuted instantiation: aom_paeth_predictor_16x64_c
Unexecuted instantiation: aom_paeth_predictor_64x16_c
Unexecuted instantiation: aom_dc_128_predictor_4x4_c
Unexecuted instantiation: aom_dc_128_predictor_8x8_c
Unexecuted instantiation: aom_dc_128_predictor_16x16_c
Unexecuted instantiation: aom_dc_128_predictor_32x32_c
Unexecuted instantiation: aom_dc_128_predictor_64x64_c
Unexecuted instantiation: aom_dc_128_predictor_4x8_c
Unexecuted instantiation: aom_dc_128_predictor_8x4_c
Unexecuted instantiation: aom_dc_128_predictor_8x16_c
Unexecuted instantiation: aom_dc_128_predictor_16x8_c
Unexecuted instantiation: aom_dc_128_predictor_16x32_c
Unexecuted instantiation: aom_dc_128_predictor_32x16_c
Unexecuted instantiation: aom_dc_128_predictor_32x64_c
Unexecuted instantiation: aom_dc_128_predictor_64x32_c
Unexecuted instantiation: aom_dc_128_predictor_4x16_c
Unexecuted instantiation: aom_dc_128_predictor_16x4_c
Unexecuted instantiation: aom_dc_128_predictor_8x32_c
Unexecuted instantiation: aom_dc_128_predictor_32x8_c
Unexecuted instantiation: aom_dc_128_predictor_16x64_c
Unexecuted instantiation: aom_dc_128_predictor_64x16_c
Unexecuted instantiation: aom_dc_left_predictor_4x4_c
Unexecuted instantiation: aom_dc_left_predictor_8x8_c
Unexecuted instantiation: aom_dc_left_predictor_16x16_c
Unexecuted instantiation: aom_dc_left_predictor_32x32_c
Unexecuted instantiation: aom_dc_left_predictor_64x64_c
Unexecuted instantiation: aom_dc_left_predictor_4x8_c
Unexecuted instantiation: aom_dc_left_predictor_8x4_c
Unexecuted instantiation: aom_dc_left_predictor_8x16_c
Unexecuted instantiation: aom_dc_left_predictor_16x8_c
Unexecuted instantiation: aom_dc_left_predictor_16x32_c
Unexecuted instantiation: aom_dc_left_predictor_32x16_c
Unexecuted instantiation: aom_dc_left_predictor_32x64_c
Unexecuted instantiation: aom_dc_left_predictor_64x32_c
Unexecuted instantiation: aom_dc_left_predictor_4x16_c
Unexecuted instantiation: aom_dc_left_predictor_16x4_c
Unexecuted instantiation: aom_dc_left_predictor_8x32_c
Unexecuted instantiation: aom_dc_left_predictor_32x8_c
Unexecuted instantiation: aom_dc_left_predictor_16x64_c
Unexecuted instantiation: aom_dc_left_predictor_64x16_c
Unexecuted instantiation: aom_dc_top_predictor_4x4_c
Unexecuted instantiation: aom_dc_top_predictor_8x8_c
Unexecuted instantiation: aom_dc_top_predictor_16x16_c
Unexecuted instantiation: aom_dc_top_predictor_32x32_c
Unexecuted instantiation: aom_dc_top_predictor_64x64_c
Unexecuted instantiation: aom_dc_top_predictor_4x8_c
Unexecuted instantiation: aom_dc_top_predictor_8x4_c
Unexecuted instantiation: aom_dc_top_predictor_8x16_c
Unexecuted instantiation: aom_dc_top_predictor_16x8_c
Unexecuted instantiation: aom_dc_top_predictor_16x32_c
Unexecuted instantiation: aom_dc_top_predictor_32x16_c
Unexecuted instantiation: aom_dc_top_predictor_32x64_c
Unexecuted instantiation: aom_dc_top_predictor_64x32_c
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
Unexecuted instantiation: aom_dc_predictor_4x4_c
Unexecuted instantiation: aom_dc_predictor_8x8_c
Unexecuted instantiation: aom_dc_predictor_16x16_c
Unexecuted instantiation: aom_dc_predictor_32x32_c
Unexecuted instantiation: aom_dc_predictor_64x64_c
732
733
#if CONFIG_AV1_HIGHBITDEPTH
734
#define intra_pred_highbd_sized(type, width, height)                        \
735
  void aom_highbd_##type##_predictor_##width##x##height##_c(                \
736
      uint16_t *dst, ptrdiff_t stride, const uint16_t *above,               \
737
5.07M
      const uint16_t *left, int bd) {                                       \
738
5.07M
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
5.07M
  }
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
aom_highbd_v_predictor_64x64_c
Line
Count
Source
737
4.17k
      const uint16_t *left, int bd) {                                       \
738
4.17k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.17k
  }
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
aom_highbd_v_predictor_32x64_c
Line
Count
Source
737
1.78k
      const uint16_t *left, int bd) {                                       \
738
1.78k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.78k
  }
aom_highbd_v_predictor_64x32_c
Line
Count
Source
737
666
      const uint16_t *left, int bd) {                                       \
738
666
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
666
  }
aom_highbd_v_predictor_4x16_c
Line
Count
Source
737
10.6k
      const uint16_t *left, int bd) {                                       \
738
10.6k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
10.6k
  }
aom_highbd_v_predictor_16x4_c
Line
Count
Source
737
37.9k
      const uint16_t *left, int bd) {                                       \
738
37.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
37.9k
  }
aom_highbd_v_predictor_8x32_c
Line
Count
Source
737
8.81k
      const uint16_t *left, int bd) {                                       \
738
8.81k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
8.81k
  }
aom_highbd_v_predictor_32x8_c
Line
Count
Source
737
24.3k
      const uint16_t *left, int bd) {                                       \
738
24.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
24.3k
  }
aom_highbd_v_predictor_16x64_c
Line
Count
Source
737
2.86k
      const uint16_t *left, int bd) {                                       \
738
2.86k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
2.86k
  }
aom_highbd_v_predictor_64x16_c
Line
Count
Source
737
1.79k
      const uint16_t *left, int bd) {                                       \
738
1.79k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.79k
  }
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
aom_highbd_h_predictor_64x64_c
Line
Count
Source
737
22.1k
      const uint16_t *left, int bd) {                                       \
738
22.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
22.1k
  }
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
aom_highbd_h_predictor_32x64_c
Line
Count
Source
737
4.26k
      const uint16_t *left, int bd) {                                       \
738
4.26k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.26k
  }
aom_highbd_h_predictor_64x32_c
Line
Count
Source
737
15.3k
      const uint16_t *left, int bd) {                                       \
738
15.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
15.3k
  }
aom_highbd_h_predictor_4x16_c
Line
Count
Source
737
20.3k
      const uint16_t *left, int bd) {                                       \
738
20.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
20.3k
  }
aom_highbd_h_predictor_16x4_c
Line
Count
Source
737
210k
      const uint16_t *left, int bd) {                                       \
738
210k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
210k
  }
aom_highbd_h_predictor_8x32_c
Line
Count
Source
737
11.1k
      const uint16_t *left, int bd) {                                       \
738
11.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.1k
  }
aom_highbd_h_predictor_32x8_c
Line
Count
Source
737
248k
      const uint16_t *left, int bd) {                                       \
738
248k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
248k
  }
aom_highbd_h_predictor_16x64_c
Line
Count
Source
737
4.10k
      const uint16_t *left, int bd) {                                       \
738
4.10k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.10k
  }
aom_highbd_h_predictor_64x16_c
Line
Count
Source
737
79.4k
      const uint16_t *left, int bd) {                                       \
738
79.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
79.4k
  }
aom_highbd_smooth_predictor_4x4_c
Line
Count
Source
737
126k
      const uint16_t *left, int bd) {                                       \
738
126k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
126k
  }
aom_highbd_smooth_predictor_8x8_c
Line
Count
Source
737
190k
      const uint16_t *left, int bd) {                                       \
738
190k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
190k
  }
aom_highbd_smooth_predictor_16x16_c
Line
Count
Source
737
126k
      const uint16_t *left, int bd) {                                       \
738
126k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
126k
  }
aom_highbd_smooth_predictor_32x32_c
Line
Count
Source
737
93.2k
      const uint16_t *left, int bd) {                                       \
738
93.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
93.2k
  }
aom_highbd_smooth_predictor_64x64_c
Line
Count
Source
737
33.8k
      const uint16_t *left, int bd) {                                       \
738
33.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
33.8k
  }
aom_highbd_smooth_predictor_4x8_c
Line
Count
Source
737
49.4k
      const uint16_t *left, int bd) {                                       \
738
49.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
49.4k
  }
aom_highbd_smooth_predictor_8x4_c
Line
Count
Source
737
91.8k
      const uint16_t *left, int bd) {                                       \
738
91.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
91.8k
  }
aom_highbd_smooth_predictor_8x16_c
Line
Count
Source
737
49.6k
      const uint16_t *left, int bd) {                                       \
738
49.6k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
49.6k
  }
aom_highbd_smooth_predictor_16x8_c
Line
Count
Source
737
86.5k
      const uint16_t *left, int bd) {                                       \
738
86.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
86.5k
  }
aom_highbd_smooth_predictor_16x32_c
Line
Count
Source
737
29.0k
      const uint16_t *left, int bd) {                                       \
738
29.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
29.0k
  }
aom_highbd_smooth_predictor_32x16_c
Line
Count
Source
737
33.5k
      const uint16_t *left, int bd) {                                       \
738
33.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
33.5k
  }
aom_highbd_smooth_predictor_32x64_c
Line
Count
Source
737
3.22k
      const uint16_t *left, int bd) {                                       \
738
3.22k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
3.22k
  }
aom_highbd_smooth_predictor_64x32_c
Line
Count
Source
737
8.92k
      const uint16_t *left, int bd) {                                       \
738
8.92k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
8.92k
  }
aom_highbd_smooth_predictor_4x16_c
Line
Count
Source
737
38.9k
      const uint16_t *left, int bd) {                                       \
738
38.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
38.9k
  }
aom_highbd_smooth_predictor_16x4_c
Line
Count
Source
737
66.9k
      const uint16_t *left, int bd) {                                       \
738
66.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
66.9k
  }
aom_highbd_smooth_predictor_8x32_c
Line
Count
Source
737
20.7k
      const uint16_t *left, int bd) {                                       \
738
20.7k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
20.7k
  }
aom_highbd_smooth_predictor_32x8_c
Line
Count
Source
737
54.9k
      const uint16_t *left, int bd) {                                       \
738
54.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
54.9k
  }
aom_highbd_smooth_predictor_16x64_c
Line
Count
Source
737
6.18k
      const uint16_t *left, int bd) {                                       \
738
6.18k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
6.18k
  }
aom_highbd_smooth_predictor_64x16_c
Line
Count
Source
737
28.2k
      const uint16_t *left, int bd) {                                       \
738
28.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
28.2k
  }
aom_highbd_smooth_v_predictor_4x4_c
Line
Count
Source
737
30.7k
      const uint16_t *left, int bd) {                                       \
738
30.7k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
30.7k
  }
aom_highbd_smooth_v_predictor_8x8_c
Line
Count
Source
737
55.8k
      const uint16_t *left, int bd) {                                       \
738
55.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
55.8k
  }
aom_highbd_smooth_v_predictor_16x16_c
Line
Count
Source
737
42.3k
      const uint16_t *left, int bd) {                                       \
738
42.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
42.3k
  }
aom_highbd_smooth_v_predictor_32x32_c
Line
Count
Source
737
32.8k
      const uint16_t *left, int bd) {                                       \
738
32.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
32.8k
  }
aom_highbd_smooth_v_predictor_64x64_c
Line
Count
Source
737
7.23k
      const uint16_t *left, int bd) {                                       \
738
7.23k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
7.23k
  }
aom_highbd_smooth_v_predictor_4x8_c
Line
Count
Source
737
11.8k
      const uint16_t *left, int bd) {                                       \
738
11.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.8k
  }
aom_highbd_smooth_v_predictor_8x4_c
Line
Count
Source
737
29.9k
      const uint16_t *left, int bd) {                                       \
738
29.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
29.9k
  }
aom_highbd_smooth_v_predictor_8x16_c
Line
Count
Source
737
18.5k
      const uint16_t *left, int bd) {                                       \
738
18.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
18.5k
  }
aom_highbd_smooth_v_predictor_16x8_c
Line
Count
Source
737
24.3k
      const uint16_t *left, int bd) {                                       \
738
24.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
24.3k
  }
aom_highbd_smooth_v_predictor_16x32_c
Line
Count
Source
737
9.99k
      const uint16_t *left, int bd) {                                       \
738
9.99k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
9.99k
  }
aom_highbd_smooth_v_predictor_32x16_c
Line
Count
Source
737
11.1k
      const uint16_t *left, int bd) {                                       \
738
11.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.1k
  }
aom_highbd_smooth_v_predictor_32x64_c
Line
Count
Source
737
1.41k
      const uint16_t *left, int bd) {                                       \
738
1.41k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.41k
  }
aom_highbd_smooth_v_predictor_64x32_c
Line
Count
Source
737
5.08k
      const uint16_t *left, int bd) {                                       \
738
5.08k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
5.08k
  }
aom_highbd_smooth_v_predictor_4x16_c
Line
Count
Source
737
11.2k
      const uint16_t *left, int bd) {                                       \
738
11.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.2k
  }
aom_highbd_smooth_v_predictor_16x4_c
Line
Count
Source
737
21.4k
      const uint16_t *left, int bd) {                                       \
738
21.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
21.4k
  }
aom_highbd_smooth_v_predictor_8x32_c
Line
Count
Source
737
7.54k
      const uint16_t *left, int bd) {                                       \
738
7.54k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
7.54k
  }
aom_highbd_smooth_v_predictor_32x8_c
Line
Count
Source
737
25.5k
      const uint16_t *left, int bd) {                                       \
738
25.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
25.5k
  }
aom_highbd_smooth_v_predictor_16x64_c
Line
Count
Source
737
2.46k
      const uint16_t *left, int bd) {                                       \
738
2.46k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
2.46k
  }
aom_highbd_smooth_v_predictor_64x16_c
Line
Count
Source
737
16.4k
      const uint16_t *left, int bd) {                                       \
738
16.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
16.4k
  }
aom_highbd_smooth_h_predictor_4x4_c
Line
Count
Source
737
54.5k
      const uint16_t *left, int bd) {                                       \
738
54.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
54.5k
  }
aom_highbd_smooth_h_predictor_8x8_c
Line
Count
Source
737
69.0k
      const uint16_t *left, int bd) {                                       \
738
69.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
69.0k
  }
aom_highbd_smooth_h_predictor_16x16_c
Line
Count
Source
737
47.0k
      const uint16_t *left, int bd) {                                       \
738
47.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
47.0k
  }
aom_highbd_smooth_h_predictor_32x32_c
Line
Count
Source
737
34.9k
      const uint16_t *left, int bd) {                                       \
738
34.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
34.9k
  }
aom_highbd_smooth_h_predictor_64x64_c
Line
Count
Source
737
6.77k
      const uint16_t *left, int bd) {                                       \
738
6.77k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
6.77k
  }
aom_highbd_smooth_h_predictor_4x8_c
Line
Count
Source
737
17.1k
      const uint16_t *left, int bd) {                                       \
738
17.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
17.1k
  }
aom_highbd_smooth_h_predictor_8x4_c
Line
Count
Source
737
31.7k
      const uint16_t *left, int bd) {                                       \
738
31.7k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
31.7k
  }
aom_highbd_smooth_h_predictor_8x16_c
Line
Count
Source
737
19.0k
      const uint16_t *left, int bd) {                                       \
738
19.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
19.0k
  }
aom_highbd_smooth_h_predictor_16x8_c
Line
Count
Source
737
33.0k
      const uint16_t *left, int bd) {                                       \
738
33.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
33.0k
  }
aom_highbd_smooth_h_predictor_16x32_c
Line
Count
Source
737
12.9k
      const uint16_t *left, int bd) {                                       \
738
12.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
12.9k
  }
aom_highbd_smooth_h_predictor_32x16_c
Line
Count
Source
737
11.9k
      const uint16_t *left, int bd) {                                       \
738
11.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.9k
  }
aom_highbd_smooth_h_predictor_32x64_c
Line
Count
Source
737
1.44k
      const uint16_t *left, int bd) {                                       \
738
1.44k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.44k
  }
aom_highbd_smooth_h_predictor_64x32_c
Line
Count
Source
737
1.24k
      const uint16_t *left, int bd) {                                       \
738
1.24k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.24k
  }
aom_highbd_smooth_h_predictor_4x16_c
Line
Count
Source
737
13.2k
      const uint16_t *left, int bd) {                                       \
738
13.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
13.2k
  }
aom_highbd_smooth_h_predictor_16x4_c
Line
Count
Source
737
20.6k
      const uint16_t *left, int bd) {                                       \
738
20.6k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
20.6k
  }
aom_highbd_smooth_h_predictor_8x32_c
Line
Count
Source
737
8.12k
      const uint16_t *left, int bd) {                                       \
738
8.12k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
8.12k
  }
aom_highbd_smooth_h_predictor_32x8_c
Line
Count
Source
737
26.4k
      const uint16_t *left, int bd) {                                       \
738
26.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
26.4k
  }
aom_highbd_smooth_h_predictor_16x64_c
Line
Count
Source
737
3.78k
      const uint16_t *left, int bd) {                                       \
738
3.78k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
3.78k
  }
aom_highbd_smooth_h_predictor_64x16_c
Line
Count
Source
737
7.69k
      const uint16_t *left, int bd) {                                       \
738
7.69k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
7.69k
  }
aom_highbd_paeth_predictor_4x4_c
Line
Count
Source
737
173k
      const uint16_t *left, int bd) {                                       \
738
173k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
173k
  }
aom_highbd_paeth_predictor_8x8_c
Line
Count
Source
737
160k
      const uint16_t *left, int bd) {                                       \
738
160k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
160k
  }
aom_highbd_paeth_predictor_16x16_c
Line
Count
Source
737
92.9k
      const uint16_t *left, int bd) {                                       \
738
92.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
92.9k
  }
aom_highbd_paeth_predictor_32x32_c
Line
Count
Source
737
156k
      const uint16_t *left, int bd) {                                       \
738
156k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
156k
  }
aom_highbd_paeth_predictor_64x64_c
Line
Count
Source
737
40.0k
      const uint16_t *left, int bd) {                                       \
738
40.0k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
40.0k
  }
aom_highbd_paeth_predictor_4x8_c
Line
Count
Source
737
49.2k
      const uint16_t *left, int bd) {                                       \
738
49.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
49.2k
  }
aom_highbd_paeth_predictor_8x4_c
Line
Count
Source
737
86.3k
      const uint16_t *left, int bd) {                                       \
738
86.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
86.3k
  }
aom_highbd_paeth_predictor_8x16_c
Line
Count
Source
737
45.4k
      const uint16_t *left, int bd) {                                       \
738
45.4k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
45.4k
  }
aom_highbd_paeth_predictor_16x8_c
Line
Count
Source
737
68.6k
      const uint16_t *left, int bd) {                                       \
738
68.6k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
68.6k
  }
aom_highbd_paeth_predictor_16x32_c
Line
Count
Source
737
887k
      const uint16_t *left, int bd) {                                       \
738
887k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
887k
  }
aom_highbd_paeth_predictor_32x16_c
Line
Count
Source
737
24.1k
      const uint16_t *left, int bd) {                                       \
738
24.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
24.1k
  }
aom_highbd_paeth_predictor_32x64_c
Line
Count
Source
737
4.49k
      const uint16_t *left, int bd) {                                       \
738
4.49k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.49k
  }
aom_highbd_paeth_predictor_64x32_c
Line
Count
Source
737
3.75k
      const uint16_t *left, int bd) {                                       \
738
3.75k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
3.75k
  }
aom_highbd_paeth_predictor_4x16_c
Line
Count
Source
737
58.1k
      const uint16_t *left, int bd) {                                       \
738
58.1k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
58.1k
  }
aom_highbd_paeth_predictor_16x4_c
Line
Count
Source
737
64.3k
      const uint16_t *left, int bd) {                                       \
738
64.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
64.3k
  }
aom_highbd_paeth_predictor_8x32_c
Line
Count
Source
737
24.8k
      const uint16_t *left, int bd) {                                       \
738
24.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
24.8k
  }
aom_highbd_paeth_predictor_32x8_c
Line
Count
Source
737
34.5k
      const uint16_t *left, int bd) {                                       \
738
34.5k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
34.5k
  }
aom_highbd_paeth_predictor_16x64_c
Line
Count
Source
737
224k
      const uint16_t *left, int bd) {                                       \
738
224k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
224k
  }
aom_highbd_paeth_predictor_64x16_c
Line
Count
Source
737
8.82k
      const uint16_t *left, int bd) {                                       \
738
8.82k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
8.82k
  }
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
aom_highbd_dc_128_predictor_64x64_c
Line
Count
Source
737
11.2k
      const uint16_t *left, int bd) {                                       \
738
11.2k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.2k
  }
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
aom_highbd_dc_128_predictor_32x64_c
Line
Count
Source
737
504
      const uint16_t *left, int bd) {                                       \
738
504
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
504
  }
aom_highbd_dc_128_predictor_64x32_c
Line
Count
Source
737
3.44k
      const uint16_t *left, int bd) {                                       \
738
3.44k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
3.44k
  }
aom_highbd_dc_128_predictor_4x16_c
Line
Count
Source
737
458
      const uint16_t *left, int bd) {                                       \
738
458
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
458
  }
aom_highbd_dc_128_predictor_16x4_c
Line
Count
Source
737
357
      const uint16_t *left, int bd) {                                       \
738
357
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
357
  }
aom_highbd_dc_128_predictor_8x32_c
Line
Count
Source
737
120
      const uint16_t *left, int bd) {                                       \
738
120
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
120
  }
aom_highbd_dc_128_predictor_32x8_c
Line
Count
Source
737
271
      const uint16_t *left, int bd) {                                       \
738
271
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
271
  }
aom_highbd_dc_128_predictor_16x64_c
Line
Count
Source
737
468
      const uint16_t *left, int bd) {                                       \
738
468
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
468
  }
aom_highbd_dc_128_predictor_64x16_c
Line
Count
Source
737
585
      const uint16_t *left, int bd) {                                       \
738
585
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
585
  }
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
aom_highbd_dc_left_predictor_64x64_c
Line
Count
Source
737
28.8k
      const uint16_t *left, int bd) {                                       \
738
28.8k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
28.8k
  }
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
aom_highbd_dc_left_predictor_32x64_c
Line
Count
Source
737
798
      const uint16_t *left, int bd) {                                       \
738
798
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
798
  }
aom_highbd_dc_left_predictor_64x32_c
Line
Count
Source
737
1.27k
      const uint16_t *left, int bd) {                                       \
738
1.27k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.27k
  }
aom_highbd_dc_left_predictor_4x16_c
Line
Count
Source
737
4.07k
      const uint16_t *left, int bd) {                                       \
738
4.07k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.07k
  }
aom_highbd_dc_left_predictor_16x4_c
Line
Count
Source
737
5.10k
      const uint16_t *left, int bd) {                                       \
738
5.10k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
5.10k
  }
aom_highbd_dc_left_predictor_8x32_c
Line
Count
Source
737
2.70k
      const uint16_t *left, int bd) {                                       \
738
2.70k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
2.70k
  }
aom_highbd_dc_left_predictor_32x8_c
Line
Count
Source
737
5.56k
      const uint16_t *left, int bd) {                                       \
738
5.56k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
5.56k
  }
aom_highbd_dc_left_predictor_16x64_c
Line
Count
Source
737
1.57k
      const uint16_t *left, int bd) {                                       \
738
1.57k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.57k
  }
aom_highbd_dc_left_predictor_64x16_c
Line
Count
Source
737
505
      const uint16_t *left, int bd) {                                       \
738
505
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
505
  }
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
aom_highbd_dc_top_predictor_64x64_c
Line
Count
Source
737
23.3k
      const uint16_t *left, int bd) {                                       \
738
23.3k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
23.3k
  }
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
aom_highbd_dc_top_predictor_32x64_c
Line
Count
Source
737
1.67k
      const uint16_t *left, int bd) {                                       \
738
1.67k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.67k
  }
aom_highbd_dc_top_predictor_64x32_c
Line
Count
Source
737
1.01k
      const uint16_t *left, int bd) {                                       \
738
1.01k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
1.01k
  }
aom_highbd_dc_top_predictor_4x16_c
Line
Count
Source
737
4.43k
      const uint16_t *left, int bd) {                                       \
738
4.43k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
4.43k
  }
aom_highbd_dc_top_predictor_16x4_c
Line
Count
Source
737
2.82k
      const uint16_t *left, int bd) {                                       \
738
2.82k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
2.82k
  }
aom_highbd_dc_top_predictor_8x32_c
Line
Count
Source
737
2.22k
      const uint16_t *left, int bd) {                                       \
738
2.22k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
2.22k
  }
aom_highbd_dc_top_predictor_32x8_c
Line
Count
Source
737
11.9k
      const uint16_t *left, int bd) {                                       \
738
11.9k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
11.9k
  }
aom_highbd_dc_top_predictor_16x64_c
Line
Count
Source
737
686
      const uint16_t *left, int bd) {                                       \
738
686
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
686
  }
aom_highbd_dc_top_predictor_64x16_c
Line
Count
Source
737
3.76k
      const uint16_t *left, int bd) {                                       \
738
3.76k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
3.76k
  }
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
aom_highbd_dc_predictor_64x64_c
Line
Count
Source
737
115k
      const uint16_t *left, int bd) {                                       \
738
115k
    highbd_##type##_predictor(dst, stride, width, height, above, left, bd); \
739
115k
  }
740
#else  // !CONFIG_AV1_HIGHBITDEPTH
741
#define intra_pred_highbd_sized(type, width, height)
742
#endif  // CONFIG_AV1_HIGHBITDEPTH
743
744
/* clang-format off */
745
#if CONFIG_REALTIME_ONLY && !CONFIG_AV1_DECODER
746
#define intra_pred_rectangular(type) \
747
  intra_pred_sized(type, 4, 8) \
748
  intra_pred_sized(type, 8, 4) \
749
  intra_pred_sized(type, 8, 16) \
750
  intra_pred_sized(type, 16, 8) \
751
  intra_pred_sized(type, 16, 32) \
752
  intra_pred_sized(type, 32, 16) \
753
  intra_pred_sized(type, 32, 64) \
754
  intra_pred_sized(type, 64, 32) \
755
  intra_pred_highbd_sized(type, 4, 8) \
756
  intra_pred_highbd_sized(type, 8, 4) \
757
  intra_pred_highbd_sized(type, 8, 16) \
758
  intra_pred_highbd_sized(type, 16, 8) \
759
  intra_pred_highbd_sized(type, 16, 32) \
760
  intra_pred_highbd_sized(type, 32, 16) \
761
  intra_pred_highbd_sized(type, 32, 64) \
762
  intra_pred_highbd_sized(type, 64, 32)
763
#else
764
#define intra_pred_rectangular(type) \
765
  intra_pred_sized(type, 4, 8) \
766
  intra_pred_sized(type, 8, 4) \
767
  intra_pred_sized(type, 8, 16) \
768
  intra_pred_sized(type, 16, 8) \
769
  intra_pred_sized(type, 16, 32) \
770
  intra_pred_sized(type, 32, 16) \
771
  intra_pred_sized(type, 32, 64) \
772
  intra_pred_sized(type, 64, 32) \
773
  intra_pred_sized(type, 4, 16) \
774
  intra_pred_sized(type, 16, 4) \
775
  intra_pred_sized(type, 8, 32) \
776
  intra_pred_sized(type, 32, 8) \
777
  intra_pred_sized(type, 16, 64) \
778
  intra_pred_sized(type, 64, 16) \
779
  intra_pred_highbd_sized(type, 4, 8) \
780
  intra_pred_highbd_sized(type, 8, 4) \
781
  intra_pred_highbd_sized(type, 8, 16) \
782
  intra_pred_highbd_sized(type, 16, 8) \
783
  intra_pred_highbd_sized(type, 16, 32) \
784
  intra_pred_highbd_sized(type, 32, 16) \
785
  intra_pred_highbd_sized(type, 32, 64) \
786
  intra_pred_highbd_sized(type, 64, 32) \
787
  intra_pred_highbd_sized(type, 4, 16) \
788
  intra_pred_highbd_sized(type, 16, 4) \
789
  intra_pred_highbd_sized(type, 8, 32) \
790
  intra_pred_highbd_sized(type, 32, 8) \
791
  intra_pred_highbd_sized(type, 16, 64) \
792
  intra_pred_highbd_sized(type, 64, 16)
793
#endif // CONFIG_REALTIME_ONLY && !CONFIG_AV1_DECODER
794
795
#define intra_pred_above_4x4(type) \
796
  intra_pred_sized(type, 8, 8) \
797
  intra_pred_sized(type, 16, 16) \
798
  intra_pred_sized(type, 32, 32) \
799
  intra_pred_sized(type, 64, 64) \
800
  intra_pred_highbd_sized(type, 4, 4) \
801
  intra_pred_highbd_sized(type, 8, 8) \
802
  intra_pred_highbd_sized(type, 16, 16) \
803
  intra_pred_highbd_sized(type, 32, 32) \
804
  intra_pred_highbd_sized(type, 64, 64) \
805
  intra_pred_rectangular(type)
806
#define intra_pred_allsizes(type) \
807
  intra_pred_sized(type, 4, 4) \
808
  intra_pred_above_4x4(type)
809
#define intra_pred_square(type) \
810
  intra_pred_sized(type, 4, 4) \
811
  intra_pred_sized(type, 8, 8) \
812
  intra_pred_sized(type, 16, 16) \
813
  intra_pred_sized(type, 32, 32) \
814
  intra_pred_sized(type, 64, 64) \
815
  intra_pred_highbd_sized(type, 4, 4) \
816
  intra_pred_highbd_sized(type, 8, 8) \
817
  intra_pred_highbd_sized(type, 16, 16) \
818
  intra_pred_highbd_sized(type, 32, 32) \
819
  intra_pred_highbd_sized(type, 64, 64)
820
821
intra_pred_allsizes(v)
822
intra_pred_allsizes(h)
823
intra_pred_allsizes(smooth)
824
intra_pred_allsizes(smooth_v)
825
intra_pred_allsizes(smooth_h)
826
intra_pred_allsizes(paeth)
827
intra_pred_allsizes(dc_128)
828
intra_pred_allsizes(dc_left)
829
intra_pred_allsizes(dc_top)
830
intra_pred_square(dc)
831
/* clang-format on */
832
#undef intra_pred_allsizes