Coverage Report

Created: 2025-06-13 07:07

/src/aom/av1/common/reconinter.h
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
#ifndef AOM_AV1_COMMON_RECONINTER_H_
13
#define AOM_AV1_COMMON_RECONINTER_H_
14
15
#include "av1/common/av1_common_int.h"
16
#include "av1/common/convolve.h"
17
#include "av1/common/filter.h"
18
#include "av1/common/warped_motion.h"
19
#include "aom/aom_integer.h"
20
21
// Work out how many pixels off the edge of a reference frame we're allowed
22
// to go when forming an inter prediction.
23
// The outermost row/col of each referernce frame is extended by
24
// (AOM_BORDER_IN_PIXELS >> subsampling) pixels, but we need to keep
25
// at least AOM_INTERP_EXTEND pixels within that to account for filtering.
26
//
27
// We have to break this up into two macros to keep both clang-format and
28
// tools/lint-hunks.py happy.
29
#define AOM_LEFT_TOP_MARGIN_PX(subsampling) \
30
38.6M
  ((AOM_BORDER_IN_PIXELS >> subsampling) - AOM_INTERP_EXTEND)
31
#define AOM_LEFT_TOP_MARGIN_SCALED(subsampling) \
32
38.6M
  (AOM_LEFT_TOP_MARGIN_PX(subsampling) << SCALE_SUBPEL_BITS)
33
34
#ifdef __cplusplus
35
extern "C" {
36
#endif
37
38
#define MAX_WEDGE_TYPES 16
39
40
1.43k
#define MAX_WEDGE_SIZE_LOG2 5  // 32x32
41
1.52k
#define MAX_WEDGE_SIZE (1 << MAX_WEDGE_SIZE_LOG2)
42
#define MAX_WEDGE_SQUARE (MAX_WEDGE_SIZE * MAX_WEDGE_SIZE)
43
44
12.2k
#define WEDGE_WEIGHT_BITS 6
45
46
#define WEDGE_NONE -1
47
48
// Angles are with respect to horizontal anti-clockwise
49
enum {
50
  WEDGE_HORIZONTAL = 0,
51
  WEDGE_VERTICAL = 1,
52
  WEDGE_OBLIQUE27 = 2,
53
  WEDGE_OBLIQUE63 = 3,
54
  WEDGE_OBLIQUE117 = 4,
55
  WEDGE_OBLIQUE153 = 5,
56
  WEDGE_DIRECTIONS
57
} UENUM1BYTE(WedgeDirectionType);
58
59
// 3-tuple: {direction, x_offset, y_offset}
60
typedef struct {
61
  WedgeDirectionType direction;
62
  int x_offset;
63
  int y_offset;
64
} wedge_code_type;
65
66
typedef uint8_t *wedge_masks_type[MAX_WEDGE_TYPES];
67
68
typedef struct {
69
  int wedge_types;
70
  const wedge_code_type *codebook;
71
  uint8_t *signflip;
72
  wedge_masks_type *masks;
73
} wedge_params_type;
74
75
extern const wedge_params_type av1_wedge_params_lookup[BLOCK_SIZES_ALL];
76
77
typedef struct SubpelParams {
78
  int xs;
79
  int ys;
80
  int subpel_x;
81
  int subpel_y;
82
  int pos_x;
83
  int pos_y;
84
} SubpelParams;
85
86
struct build_prediction_ctxt {
87
  const AV1_COMMON *cm;
88
  uint8_t **tmp_buf;
89
  int *tmp_width;
90
  int *tmp_height;
91
  int *tmp_stride;
92
  int mb_to_far_edge;
93
  void *dcb;  // Decoder-only coding block.
94
};
95
96
typedef enum InterPredMode {
97
  TRANSLATION_PRED,
98
  WARP_PRED,
99
} InterPredMode;
100
101
typedef enum InterCompMode {
102
  UNIFORM_SINGLE,
103
  UNIFORM_COMP,
104
  MASK_COMP,
105
} InterCompMode;
106
107
typedef struct InterPredParams {
108
  InterPredMode mode;
109
  InterCompMode comp_mode;
110
  WarpedMotionParams warp_params;
111
  ConvolveParams conv_params;
112
  const InterpFilterParams *interp_filter_params[2];
113
  int block_width;
114
  int block_height;
115
  int pix_row;
116
  int pix_col;
117
  struct buf_2d ref_frame_buf;
118
  int subsampling_x;
119
  int subsampling_y;
120
  const struct scale_factors *scale_factors;
121
  int bit_depth;
122
  int use_hbd_buf;
123
  INTERINTER_COMPOUND_DATA mask_comp;
124
  BLOCK_SIZE sb_type;
125
  int is_intrabc;
126
  int top;
127
  int left;
128
} InterPredParams;
129
130
// Initialize sub-pel params required for inter prediction.
131
static inline void init_subpel_params(const MV *const src_mv,
132
                                      InterPredParams *const inter_pred_params,
133
                                      SubpelParams *subpel_params, int width,
134
0
                                      int height) {
135
0
  const struct scale_factors *sf = inter_pred_params->scale_factors;
136
0
  int ssx = inter_pred_params->subsampling_x;
137
0
  int ssy = inter_pred_params->subsampling_y;
138
0
  int orig_pos_y = inter_pred_params->pix_row << SUBPEL_BITS;
139
0
  orig_pos_y += src_mv->row * (1 << (1 - ssy));
140
0
  int orig_pos_x = inter_pred_params->pix_col << SUBPEL_BITS;
141
0
  orig_pos_x += src_mv->col * (1 << (1 - ssx));
142
0
  const int is_scaled = av1_is_scaled(sf);
143
0
  int pos_x, pos_y;
144
0
  if (LIKELY(!is_scaled)) {
145
0
    pos_y = av1_unscaled_value(orig_pos_y, sf);
146
0
    pos_x = av1_unscaled_value(orig_pos_x, sf);
147
0
  } else {
148
0
    pos_y = av1_scaled_y(orig_pos_y, sf);
149
0
    pos_x = av1_scaled_x(orig_pos_x, sf);
150
0
  }
151
0
152
0
  pos_x += SCALE_EXTRA_OFF;
153
0
  pos_y += SCALE_EXTRA_OFF;
154
0
155
0
  const int bottom = (height + AOM_INTERP_EXTEND) << SCALE_SUBPEL_BITS;
156
0
  const int right = (width + AOM_INTERP_EXTEND) << SCALE_SUBPEL_BITS;
157
0
  pos_y = clamp(pos_y, inter_pred_params->top, bottom);
158
0
  pos_x = clamp(pos_x, inter_pred_params->left, right);
159
0
160
0
  subpel_params->pos_x = pos_x;
161
0
  subpel_params->pos_y = pos_y;
162
0
  subpel_params->subpel_x = pos_x & SCALE_SUBPEL_MASK;
163
0
  subpel_params->subpel_y = pos_y & SCALE_SUBPEL_MASK;
164
0
  subpel_params->xs = sf->x_step_q4;
165
0
  subpel_params->ys = sf->y_step_q4;
166
0
}
Unexecuted instantiation: decodeframe.c:init_subpel_params
Unexecuted instantiation: decodemv.c:init_subpel_params
Unexecuted instantiation: decoder.c:init_subpel_params
Unexecuted instantiation: av1_loopfilter.c:init_subpel_params
Unexecuted instantiation: cdef.c:init_subpel_params
Unexecuted instantiation: entropymode.c:init_subpel_params
Unexecuted instantiation: pred_common.c:init_subpel_params
Unexecuted instantiation: reconinter.c:init_subpel_params
Unexecuted instantiation: thread_common.c:init_subpel_params
167
168
// Initialize interp filter required for inter prediction.
169
static inline void init_interp_filter_params(
170
    const InterpFilterParams *interp_filter_params[2],
171
    const InterpFilters *filter, int block_width, int block_height,
172
17.0M
    int is_intrabc) {
173
17.0M
  if (UNLIKELY(is_intrabc)) {
174
147k
    interp_filter_params[0] = &av1_intrabc_filter_params;
175
147k
    interp_filter_params[1] = &av1_intrabc_filter_params;
176
16.8M
  } else {
177
16.8M
    interp_filter_params[0] = av1_get_interp_filter_params_with_block_size(
178
16.8M
        (InterpFilter)filter->x_filter, block_width);
179
16.8M
    interp_filter_params[1] = av1_get_interp_filter_params_with_block_size(
180
16.8M
        (InterpFilter)filter->y_filter, block_height);
181
16.8M
  }
182
17.0M
}
decodeframe.c:init_interp_filter_params
Line
Count
Source
172
17.0M
    int is_intrabc) {
173
17.0M
  if (UNLIKELY(is_intrabc)) {
174
147k
    interp_filter_params[0] = &av1_intrabc_filter_params;
175
147k
    interp_filter_params[1] = &av1_intrabc_filter_params;
176
16.8M
  } else {
177
16.8M
    interp_filter_params[0] = av1_get_interp_filter_params_with_block_size(
178
16.8M
        (InterpFilter)filter->x_filter, block_width);
179
16.8M
    interp_filter_params[1] = av1_get_interp_filter_params_with_block_size(
180
16.8M
        (InterpFilter)filter->y_filter, block_height);
181
16.8M
  }
182
17.0M
}
Unexecuted instantiation: decodemv.c:init_interp_filter_params
Unexecuted instantiation: decoder.c:init_interp_filter_params
Unexecuted instantiation: av1_loopfilter.c:init_interp_filter_params
Unexecuted instantiation: cdef.c:init_interp_filter_params
Unexecuted instantiation: entropymode.c:init_interp_filter_params
Unexecuted instantiation: pred_common.c:init_interp_filter_params
Unexecuted instantiation: reconinter.c:init_interp_filter_params
Unexecuted instantiation: thread_common.c:init_interp_filter_params
183
184
// Initialize parameters required for inter prediction at mode level.
185
static inline void init_inter_mode_params(
186
    const MV *const src_mv, InterPredParams *const inter_pred_params,
187
    SubpelParams *subpel_params, const struct scale_factors *sf, int width,
188
0
    int height) {
189
0
  inter_pred_params->scale_factors = sf;
190
0
  init_subpel_params(src_mv, inter_pred_params, subpel_params, width, height);
191
0
}
Unexecuted instantiation: decodeframe.c:init_inter_mode_params
Unexecuted instantiation: decodemv.c:init_inter_mode_params
Unexecuted instantiation: decoder.c:init_inter_mode_params
Unexecuted instantiation: av1_loopfilter.c:init_inter_mode_params
Unexecuted instantiation: cdef.c:init_inter_mode_params
Unexecuted instantiation: entropymode.c:init_inter_mode_params
Unexecuted instantiation: pred_common.c:init_inter_mode_params
Unexecuted instantiation: reconinter.c:init_inter_mode_params
Unexecuted instantiation: thread_common.c:init_inter_mode_params
192
193
// Initialize parameters required for inter prediction at block level.
194
static inline void init_inter_block_params(InterPredParams *inter_pred_params,
195
                                           int block_width, int block_height,
196
                                           int pix_row, int pix_col,
197
                                           int subsampling_x, int subsampling_y,
198
                                           int bit_depth, int use_hbd_buf,
199
17.0M
                                           int is_intrabc) {
200
17.0M
  inter_pred_params->block_width = block_width;
201
17.0M
  inter_pred_params->block_height = block_height;
202
17.0M
  inter_pred_params->pix_row = pix_row;
203
17.0M
  inter_pred_params->pix_col = pix_col;
204
17.0M
  inter_pred_params->subsampling_x = subsampling_x;
205
17.0M
  inter_pred_params->subsampling_y = subsampling_y;
206
17.0M
  inter_pred_params->bit_depth = bit_depth;
207
17.0M
  inter_pred_params->use_hbd_buf = use_hbd_buf;
208
17.0M
  inter_pred_params->is_intrabc = is_intrabc;
209
17.0M
  inter_pred_params->mode = TRANSLATION_PRED;
210
17.0M
  inter_pred_params->comp_mode = UNIFORM_SINGLE;
211
17.0M
  inter_pred_params->top = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_y);
212
17.0M
  inter_pred_params->left = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_x);
213
17.0M
}
decodeframe.c:init_inter_block_params
Line
Count
Source
199
17.0M
                                           int is_intrabc) {
200
17.0M
  inter_pred_params->block_width = block_width;
201
17.0M
  inter_pred_params->block_height = block_height;
202
17.0M
  inter_pred_params->pix_row = pix_row;
203
17.0M
  inter_pred_params->pix_col = pix_col;
204
17.0M
  inter_pred_params->subsampling_x = subsampling_x;
205
17.0M
  inter_pred_params->subsampling_y = subsampling_y;
206
17.0M
  inter_pred_params->bit_depth = bit_depth;
207
17.0M
  inter_pred_params->use_hbd_buf = use_hbd_buf;
208
17.0M
  inter_pred_params->is_intrabc = is_intrabc;
209
17.0M
  inter_pred_params->mode = TRANSLATION_PRED;
210
17.0M
  inter_pred_params->comp_mode = UNIFORM_SINGLE;
211
17.0M
  inter_pred_params->top = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_y);
212
17.0M
  inter_pred_params->left = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_x);
213
17.0M
}
Unexecuted instantiation: decodemv.c:init_inter_block_params
Unexecuted instantiation: decoder.c:init_inter_block_params
Unexecuted instantiation: av1_loopfilter.c:init_inter_block_params
Unexecuted instantiation: cdef.c:init_inter_block_params
Unexecuted instantiation: entropymode.c:init_inter_block_params
Unexecuted instantiation: pred_common.c:init_inter_block_params
Unexecuted instantiation: reconinter.c:init_inter_block_params
Unexecuted instantiation: thread_common.c:init_inter_block_params
214
215
// Initialize params required for inter prediction.
216
static inline void av1_init_inter_params(
217
    InterPredParams *inter_pred_params, int block_width, int block_height,
218
    int pix_row, int pix_col, int subsampling_x, int subsampling_y,
219
    int bit_depth, int use_hbd_buf, int is_intrabc,
220
    const struct scale_factors *sf, const struct buf_2d *ref_buf,
221
17.0M
    int_interpfilters interp_filters) {
222
17.0M
  init_inter_block_params(inter_pred_params, block_width, block_height, pix_row,
223
17.0M
                          pix_col, subsampling_x, subsampling_y, bit_depth,
224
17.0M
                          use_hbd_buf, is_intrabc);
225
17.0M
  init_interp_filter_params(inter_pred_params->interp_filter_params,
226
17.0M
                            &interp_filters.as_filters, block_width,
227
17.0M
                            block_height, is_intrabc);
228
17.0M
  inter_pred_params->scale_factors = sf;
229
17.0M
  inter_pred_params->ref_frame_buf = *ref_buf;
230
17.0M
}
decodeframe.c:av1_init_inter_params
Line
Count
Source
221
17.0M
    int_interpfilters interp_filters) {
222
17.0M
  init_inter_block_params(inter_pred_params, block_width, block_height, pix_row,
223
17.0M
                          pix_col, subsampling_x, subsampling_y, bit_depth,
224
17.0M
                          use_hbd_buf, is_intrabc);
225
17.0M
  init_interp_filter_params(inter_pred_params->interp_filter_params,
226
17.0M
                            &interp_filters.as_filters, block_width,
227
17.0M
                            block_height, is_intrabc);
228
17.0M
  inter_pred_params->scale_factors = sf;
229
17.0M
  inter_pred_params->ref_frame_buf = *ref_buf;
230
17.0M
}
Unexecuted instantiation: decodemv.c:av1_init_inter_params
Unexecuted instantiation: decoder.c:av1_init_inter_params
Unexecuted instantiation: av1_loopfilter.c:av1_init_inter_params
Unexecuted instantiation: cdef.c:av1_init_inter_params
Unexecuted instantiation: entropymode.c:av1_init_inter_params
Unexecuted instantiation: pred_common.c:av1_init_inter_params
Unexecuted instantiation: reconinter.c:av1_init_inter_params
Unexecuted instantiation: thread_common.c:av1_init_inter_params
231
232
3.36M
static inline void av1_init_comp_mode(InterPredParams *inter_pred_params) {
233
3.36M
  inter_pred_params->comp_mode = UNIFORM_COMP;
234
3.36M
}
decodeframe.c:av1_init_comp_mode
Line
Count
Source
232
3.36M
static inline void av1_init_comp_mode(InterPredParams *inter_pred_params) {
233
3.36M
  inter_pred_params->comp_mode = UNIFORM_COMP;
234
3.36M
}
Unexecuted instantiation: decodemv.c:av1_init_comp_mode
Unexecuted instantiation: decoder.c:av1_init_comp_mode
Unexecuted instantiation: av1_loopfilter.c:av1_init_comp_mode
Unexecuted instantiation: cdef.c:av1_init_comp_mode
Unexecuted instantiation: entropymode.c:av1_init_comp_mode
Unexecuted instantiation: pred_common.c:av1_init_comp_mode
Unexecuted instantiation: reconinter.c:av1_init_comp_mode
Unexecuted instantiation: thread_common.c:av1_init_comp_mode
235
236
void av1_init_warp_params(InterPredParams *inter_pred_params,
237
                          const WarpTypesAllowed *warp_types, int ref,
238
                          const MACROBLOCKD *xd, const MB_MODE_INFO *mi);
239
240
16.5M
static inline int has_scale(int xs, int ys) {
241
16.5M
  return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS;
242
16.5M
}
Unexecuted instantiation: decodeframe.c:has_scale
Unexecuted instantiation: decodemv.c:has_scale
Unexecuted instantiation: decoder.c:has_scale
Unexecuted instantiation: av1_loopfilter.c:has_scale
Unexecuted instantiation: cdef.c:has_scale
Unexecuted instantiation: entropymode.c:has_scale
Unexecuted instantiation: pred_common.c:has_scale
reconinter.c:has_scale
Line
Count
Source
240
16.5M
static inline int has_scale(int xs, int ys) {
241
16.5M
  return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS;
242
16.5M
}
Unexecuted instantiation: thread_common.c:has_scale
243
244
14.2M
static inline void revert_scale_extra_bits(SubpelParams *sp) {
245
14.2M
  sp->subpel_x >>= SCALE_EXTRA_BITS;
246
14.2M
  sp->subpel_y >>= SCALE_EXTRA_BITS;
247
14.2M
  sp->xs >>= SCALE_EXTRA_BITS;
248
14.2M
  sp->ys >>= SCALE_EXTRA_BITS;
249
14.2M
  assert(sp->subpel_x < SUBPEL_SHIFTS);
250
14.2M
  assert(sp->subpel_y < SUBPEL_SHIFTS);
251
14.2M
  assert(sp->xs <= SUBPEL_SHIFTS);
252
14.2M
  assert(sp->ys <= SUBPEL_SHIFTS);
253
14.2M
}
Unexecuted instantiation: decodeframe.c:revert_scale_extra_bits
Unexecuted instantiation: decodemv.c:revert_scale_extra_bits
Unexecuted instantiation: decoder.c:revert_scale_extra_bits
Unexecuted instantiation: av1_loopfilter.c:revert_scale_extra_bits
Unexecuted instantiation: cdef.c:revert_scale_extra_bits
Unexecuted instantiation: entropymode.c:revert_scale_extra_bits
Unexecuted instantiation: pred_common.c:revert_scale_extra_bits
reconinter.c:revert_scale_extra_bits
Line
Count
Source
244
14.2M
static inline void revert_scale_extra_bits(SubpelParams *sp) {
245
14.2M
  sp->subpel_x >>= SCALE_EXTRA_BITS;
246
14.2M
  sp->subpel_y >>= SCALE_EXTRA_BITS;
247
14.2M
  sp->xs >>= SCALE_EXTRA_BITS;
248
14.2M
  sp->ys >>= SCALE_EXTRA_BITS;
249
14.2M
  assert(sp->subpel_x < SUBPEL_SHIFTS);
250
14.2M
  assert(sp->subpel_y < SUBPEL_SHIFTS);
251
14.2M
  assert(sp->xs <= SUBPEL_SHIFTS);
252
14.2M
  assert(sp->ys <= SUBPEL_SHIFTS);
253
14.2M
}
Unexecuted instantiation: thread_common.c:revert_scale_extra_bits
254
255
static inline void inter_predictor(
256
    const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride,
257
    const SubpelParams *subpel_params, int w, int h,
258
8.14M
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2]) {
259
8.14M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
260
8.14M
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
261
8.14M
  if (is_scaled) {
262
1.59M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
263
1.59M
                           interp_filters, subpel_params->subpel_x,
264
1.59M
                           subpel_params->xs, subpel_params->subpel_y,
265
1.59M
                           subpel_params->ys, 1, conv_params);
266
6.55M
  } else {
267
6.55M
    SubpelParams sp = *subpel_params;
268
6.55M
    revert_scale_extra_bits(&sp);
269
6.55M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
270
6.55M
                           interp_filters, sp.subpel_x, sp.xs, sp.subpel_y,
271
6.55M
                           sp.ys, 0, conv_params);
272
6.55M
  }
273
8.14M
}
Unexecuted instantiation: decodeframe.c:inter_predictor
Unexecuted instantiation: decodemv.c:inter_predictor
Unexecuted instantiation: decoder.c:inter_predictor
Unexecuted instantiation: av1_loopfilter.c:inter_predictor
Unexecuted instantiation: cdef.c:inter_predictor
Unexecuted instantiation: entropymode.c:inter_predictor
Unexecuted instantiation: pred_common.c:inter_predictor
reconinter.c:inter_predictor
Line
Count
Source
258
8.14M
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2]) {
259
8.14M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
260
8.14M
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
261
8.14M
  if (is_scaled) {
262
1.59M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
263
1.59M
                           interp_filters, subpel_params->subpel_x,
264
1.59M
                           subpel_params->xs, subpel_params->subpel_y,
265
1.59M
                           subpel_params->ys, 1, conv_params);
266
6.55M
  } else {
267
6.55M
    SubpelParams sp = *subpel_params;
268
6.55M
    revert_scale_extra_bits(&sp);
269
6.55M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
270
6.55M
                           interp_filters, sp.subpel_x, sp.xs, sp.subpel_y,
271
6.55M
                           sp.ys, 0, conv_params);
272
6.55M
  }
273
8.14M
}
Unexecuted instantiation: thread_common.c:inter_predictor
274
275
static inline void highbd_inter_predictor(
276
    const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride,
277
    const SubpelParams *subpel_params, int w, int h,
278
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2],
279
8.38M
    int bd) {
280
8.38M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
281
8.38M
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
282
8.38M
  if (is_scaled) {
283
724k
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
284
724k
                                  interp_filters, subpel_params->subpel_x,
285
724k
                                  subpel_params->xs, subpel_params->subpel_y,
286
724k
                                  subpel_params->ys, 1, conv_params, bd);
287
7.65M
  } else {
288
7.65M
    SubpelParams sp = *subpel_params;
289
7.65M
    revert_scale_extra_bits(&sp);
290
7.65M
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
291
7.65M
                                  interp_filters, sp.subpel_x, sp.xs,
292
7.65M
                                  sp.subpel_y, sp.ys, 0, conv_params, bd);
293
7.65M
  }
294
8.38M
}
Unexecuted instantiation: decodeframe.c:highbd_inter_predictor
Unexecuted instantiation: decodemv.c:highbd_inter_predictor
Unexecuted instantiation: decoder.c:highbd_inter_predictor
Unexecuted instantiation: av1_loopfilter.c:highbd_inter_predictor
Unexecuted instantiation: cdef.c:highbd_inter_predictor
Unexecuted instantiation: entropymode.c:highbd_inter_predictor
Unexecuted instantiation: pred_common.c:highbd_inter_predictor
reconinter.c:highbd_inter_predictor
Line
Count
Source
279
8.38M
    int bd) {
280
8.38M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
281
8.38M
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
282
8.38M
  if (is_scaled) {
283
724k
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
284
724k
                                  interp_filters, subpel_params->subpel_x,
285
724k
                                  subpel_params->xs, subpel_params->subpel_y,
286
724k
                                  subpel_params->ys, 1, conv_params, bd);
287
7.65M
  } else {
288
7.65M
    SubpelParams sp = *subpel_params;
289
7.65M
    revert_scale_extra_bits(&sp);
290
7.65M
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
291
7.65M
                                  interp_filters, sp.subpel_x, sp.xs,
292
7.65M
                                  sp.subpel_y, sp.ys, 0, conv_params, bd);
293
7.65M
  }
294
8.38M
}
Unexecuted instantiation: thread_common.c:highbd_inter_predictor
295
296
int av1_skip_u4x4_pred_in_obmc(BLOCK_SIZE bsize,
297
                               const struct macroblockd_plane *pd, int dir);
298
299
static inline int is_interinter_compound_used(COMPOUND_TYPE type,
300
782k
                                              BLOCK_SIZE sb_type) {
301
782k
  const int comp_allowed = is_comp_ref_allowed(sb_type);
302
782k
  switch (type) {
303
0
    case COMPOUND_AVERAGE:
304
0
    case COMPOUND_DISTWTD:
305
50.9k
    case COMPOUND_DIFFWTD: return comp_allowed;
306
731k
    case COMPOUND_WEDGE:
307
731k
      return comp_allowed && av1_wedge_params_lookup[sb_type].wedge_types > 0;
308
0
    default: assert(0); return 0;
309
782k
  }
310
782k
}
Unexecuted instantiation: decodeframe.c:is_interinter_compound_used
decodemv.c:is_interinter_compound_used
Line
Count
Source
300
782k
                                              BLOCK_SIZE sb_type) {
301
782k
  const int comp_allowed = is_comp_ref_allowed(sb_type);
302
782k
  switch (type) {
303
0
    case COMPOUND_AVERAGE:
304
0
    case COMPOUND_DISTWTD:
305
50.9k
    case COMPOUND_DIFFWTD: return comp_allowed;
306
731k
    case COMPOUND_WEDGE:
307
731k
      return comp_allowed && av1_wedge_params_lookup[sb_type].wedge_types > 0;
308
0
    default: assert(0); return 0;
309
782k
  }
310
782k
}
Unexecuted instantiation: decoder.c:is_interinter_compound_used
Unexecuted instantiation: av1_loopfilter.c:is_interinter_compound_used
Unexecuted instantiation: cdef.c:is_interinter_compound_used
Unexecuted instantiation: entropymode.c:is_interinter_compound_used
Unexecuted instantiation: pred_common.c:is_interinter_compound_used
Unexecuted instantiation: reconinter.c:is_interinter_compound_used
Unexecuted instantiation: thread_common.c:is_interinter_compound_used
311
312
524k
static inline int is_any_masked_compound_used(BLOCK_SIZE sb_type) {
313
524k
  COMPOUND_TYPE comp_type;
314
524k
  int i;
315
524k
  if (!is_comp_ref_allowed(sb_type)) return 0;
316
1.61M
  for (i = 0; i < COMPOUND_TYPES; i++) {
317
1.61M
    comp_type = (COMPOUND_TYPE)i;
318
1.61M
    if (is_masked_compound_type(comp_type) &&
319
1.61M
        is_interinter_compound_used(comp_type, sb_type))
320
523k
      return 1;
321
1.61M
  }
322
1.34k
  return 0;
323
524k
}
Unexecuted instantiation: decodeframe.c:is_any_masked_compound_used
decodemv.c:is_any_masked_compound_used
Line
Count
Source
312
524k
static inline int is_any_masked_compound_used(BLOCK_SIZE sb_type) {
313
524k
  COMPOUND_TYPE comp_type;
314
524k
  int i;
315
524k
  if (!is_comp_ref_allowed(sb_type)) return 0;
316
1.61M
  for (i = 0; i < COMPOUND_TYPES; i++) {
317
1.61M
    comp_type = (COMPOUND_TYPE)i;
318
1.61M
    if (is_masked_compound_type(comp_type) &&
319
1.61M
        is_interinter_compound_used(comp_type, sb_type))
320
523k
      return 1;
321
1.61M
  }
322
1.34k
  return 0;
323
524k
}
Unexecuted instantiation: decoder.c:is_any_masked_compound_used
Unexecuted instantiation: av1_loopfilter.c:is_any_masked_compound_used
Unexecuted instantiation: cdef.c:is_any_masked_compound_used
Unexecuted instantiation: entropymode.c:is_any_masked_compound_used
Unexecuted instantiation: pred_common.c:is_any_masked_compound_used
Unexecuted instantiation: reconinter.c:is_any_masked_compound_used
Unexecuted instantiation: thread_common.c:is_any_masked_compound_used
324
325
288
static inline int get_wedge_types_lookup(BLOCK_SIZE sb_type) {
326
288
  return av1_wedge_params_lookup[sb_type].wedge_types;
327
288
}
Unexecuted instantiation: decodeframe.c:get_wedge_types_lookup
Unexecuted instantiation: decodemv.c:get_wedge_types_lookup
Unexecuted instantiation: decoder.c:get_wedge_types_lookup
Unexecuted instantiation: av1_loopfilter.c:get_wedge_types_lookup
Unexecuted instantiation: cdef.c:get_wedge_types_lookup
Unexecuted instantiation: entropymode.c:get_wedge_types_lookup
Unexecuted instantiation: pred_common.c:get_wedge_types_lookup
reconinter.c:get_wedge_types_lookup
Line
Count
Source
325
288
static inline int get_wedge_types_lookup(BLOCK_SIZE sb_type) {
326
288
  return av1_wedge_params_lookup[sb_type].wedge_types;
327
288
}
Unexecuted instantiation: thread_common.c:get_wedge_types_lookup
328
329
617k
static inline int av1_is_wedge_used(BLOCK_SIZE sb_type) {
330
617k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
331
617k
}
Unexecuted instantiation: decodeframe.c:av1_is_wedge_used
decodemv.c:av1_is_wedge_used
Line
Count
Source
329
339k
static inline int av1_is_wedge_used(BLOCK_SIZE sb_type) {
330
339k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
331
339k
}
Unexecuted instantiation: decoder.c:av1_is_wedge_used
Unexecuted instantiation: av1_loopfilter.c:av1_is_wedge_used
Unexecuted instantiation: cdef.c:av1_is_wedge_used
Unexecuted instantiation: entropymode.c:av1_is_wedge_used
Unexecuted instantiation: pred_common.c:av1_is_wedge_used
reconinter.c:av1_is_wedge_used
Line
Count
Source
329
277k
static inline int av1_is_wedge_used(BLOCK_SIZE sb_type) {
330
277k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
331
277k
}
Unexecuted instantiation: thread_common.c:av1_is_wedge_used
332
333
void av1_make_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst,
334
                              int dst_stride,
335
                              InterPredParams *inter_pred_params,
336
                              const SubpelParams *subpel_params);
337
void av1_make_masked_inter_predictor(const uint8_t *pre, int pre_stride,
338
                                     uint8_t *dst, int dst_stride,
339
                                     InterPredParams *inter_pred_params,
340
                                     const SubpelParams *subpel_params);
341
342
// TODO(jkoleszar): yet another mv clamping function :-(
343
static inline MV clamp_mv_to_umv_border_sb(const MACROBLOCKD *xd,
344
                                           const MV *src_mv, int bw, int bh,
345
17.0M
                                           int ss_x, int ss_y) {
346
  // If the MV points so far into the UMV border that no visible pixels
347
  // are used for reconstruction, the subpel part of the MV can be
348
  // discarded and the MV limited to 16 pixels with equivalent results.
349
17.0M
  const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS;
350
17.0M
  const int spel_right = spel_left - SUBPEL_SHIFTS;
351
17.0M
  const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS;
352
17.0M
  const int spel_bottom = spel_top - SUBPEL_SHIFTS;
353
17.0M
  MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
354
17.0M
                    (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
355
17.0M
  assert(ss_x <= 1);
356
17.0M
  assert(ss_y <= 1);
357
17.0M
  const SubpelMvLimits mv_limits = {
358
17.0M
    xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left,
359
17.0M
    xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right,
360
17.0M
    xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top,
361
17.0M
    xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom
362
17.0M
  };
363
364
17.0M
  clamp_mv(&clamped_mv, &mv_limits);
365
366
17.0M
  return clamped_mv;
367
17.0M
}
decodeframe.c:clamp_mv_to_umv_border_sb
Line
Count
Source
345
17.0M
                                           int ss_x, int ss_y) {
346
  // If the MV points so far into the UMV border that no visible pixels
347
  // are used for reconstruction, the subpel part of the MV can be
348
  // discarded and the MV limited to 16 pixels with equivalent results.
349
17.0M
  const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS;
350
17.0M
  const int spel_right = spel_left - SUBPEL_SHIFTS;
351
17.0M
  const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS;
352
17.0M
  const int spel_bottom = spel_top - SUBPEL_SHIFTS;
353
17.0M
  MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
354
17.0M
                    (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
355
17.0M
  assert(ss_x <= 1);
356
17.0M
  assert(ss_y <= 1);
357
17.0M
  const SubpelMvLimits mv_limits = {
358
17.0M
    xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left,
359
17.0M
    xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right,
360
17.0M
    xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top,
361
17.0M
    xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom
362
17.0M
  };
363
364
17.0M
  clamp_mv(&clamped_mv, &mv_limits);
365
366
17.0M
  return clamped_mv;
367
17.0M
}
Unexecuted instantiation: decodemv.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: decoder.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: av1_loopfilter.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: cdef.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: entropymode.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: pred_common.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: reconinter.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: thread_common.c:clamp_mv_to_umv_border_sb
368
369
static inline int64_t scaled_buffer_offset(int x_offset, int y_offset,
370
                                           int stride,
371
91.6M
                                           const struct scale_factors *sf) {
372
91.6M
  int x, y;
373
91.6M
  if (!sf) {
374
73.8M
    x = x_offset;
375
73.8M
    y = y_offset;
376
73.8M
  } else if (av1_is_scaled(sf)) {
377
2.47M
    x = av1_scaled_x(x_offset, sf) >> SCALE_EXTRA_BITS;
378
2.47M
    y = av1_scaled_y(y_offset, sf) >> SCALE_EXTRA_BITS;
379
15.3M
  } else {
380
15.3M
    x = av1_unscaled_value(x_offset, sf) >> SCALE_EXTRA_BITS;
381
15.3M
    y = av1_unscaled_value(y_offset, sf) >> SCALE_EXTRA_BITS;
382
15.3M
  }
383
91.6M
  return (int64_t)y * stride + x;
384
91.6M
}
Unexecuted instantiation: decodeframe.c:scaled_buffer_offset
Unexecuted instantiation: decodemv.c:scaled_buffer_offset
Unexecuted instantiation: decoder.c:scaled_buffer_offset
Unexecuted instantiation: av1_loopfilter.c:scaled_buffer_offset
Unexecuted instantiation: cdef.c:scaled_buffer_offset
Unexecuted instantiation: entropymode.c:scaled_buffer_offset
Unexecuted instantiation: pred_common.c:scaled_buffer_offset
reconinter.c:scaled_buffer_offset
Line
Count
Source
371
91.6M
                                           const struct scale_factors *sf) {
372
91.6M
  int x, y;
373
91.6M
  if (!sf) {
374
73.8M
    x = x_offset;
375
73.8M
    y = y_offset;
376
73.8M
  } else if (av1_is_scaled(sf)) {
377
2.47M
    x = av1_scaled_x(x_offset, sf) >> SCALE_EXTRA_BITS;
378
2.47M
    y = av1_scaled_y(y_offset, sf) >> SCALE_EXTRA_BITS;
379
15.3M
  } else {
380
15.3M
    x = av1_unscaled_value(x_offset, sf) >> SCALE_EXTRA_BITS;
381
15.3M
    y = av1_unscaled_value(y_offset, sf) >> SCALE_EXTRA_BITS;
382
15.3M
  }
383
91.6M
  return (int64_t)y * stride + x;
384
91.6M
}
Unexecuted instantiation: thread_common.c:scaled_buffer_offset
385
386
static inline void setup_pred_plane(struct buf_2d *dst, BLOCK_SIZE bsize,
387
                                    uint8_t *src, int width, int height,
388
                                    int stride, int mi_row, int mi_col,
389
                                    const struct scale_factors *scale,
390
91.6M
                                    int subsampling_x, int subsampling_y) {
391
  // Offset the buffer pointer
392
91.6M
  if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
393
3.48M
    mi_row -= 1;
394
91.6M
  if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
395
2.95M
    mi_col -= 1;
396
397
91.6M
  const int x = (MI_SIZE * mi_col) >> subsampling_x;
398
91.6M
  const int y = (MI_SIZE * mi_row) >> subsampling_y;
399
91.6M
  dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
400
91.6M
  dst->buf0 = src;
401
91.6M
  dst->width = width;
402
91.6M
  dst->height = height;
403
91.6M
  dst->stride = stride;
404
91.6M
}
Unexecuted instantiation: decodeframe.c:setup_pred_plane
Unexecuted instantiation: decodemv.c:setup_pred_plane
Unexecuted instantiation: decoder.c:setup_pred_plane
Unexecuted instantiation: av1_loopfilter.c:setup_pred_plane
Unexecuted instantiation: cdef.c:setup_pred_plane
Unexecuted instantiation: entropymode.c:setup_pred_plane
Unexecuted instantiation: pred_common.c:setup_pred_plane
reconinter.c:setup_pred_plane
Line
Count
Source
390
91.6M
                                    int subsampling_x, int subsampling_y) {
391
  // Offset the buffer pointer
392
91.6M
  if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
393
3.48M
    mi_row -= 1;
394
91.6M
  if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
395
2.95M
    mi_col -= 1;
396
397
91.6M
  const int x = (MI_SIZE * mi_col) >> subsampling_x;
398
91.6M
  const int y = (MI_SIZE * mi_row) >> subsampling_y;
399
91.6M
  dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
400
91.6M
  dst->buf0 = src;
401
91.6M
  dst->width = width;
402
91.6M
  dst->height = height;
403
91.6M
  dst->stride = stride;
404
91.6M
}
Unexecuted instantiation: thread_common.c:setup_pred_plane
405
406
void av1_setup_dst_planes(struct macroblockd_plane *planes, BLOCK_SIZE bsize,
407
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
408
                          const int plane_start, const int plane_end);
409
410
void av1_setup_pre_planes(MACROBLOCKD *xd, int idx,
411
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
412
                          const struct scale_factors *sf, const int num_planes);
413
414
static inline void set_default_interp_filters(
415
897k
    MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) {
416
897k
  mbmi->interp_filters =
417
897k
      av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter));
418
897k
}
Unexecuted instantiation: decodeframe.c:set_default_interp_filters
decodemv.c:set_default_interp_filters
Line
Count
Source
415
897k
    MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) {
416
897k
  mbmi->interp_filters =
417
897k
      av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter));
418
897k
}
Unexecuted instantiation: decoder.c:set_default_interp_filters
Unexecuted instantiation: av1_loopfilter.c:set_default_interp_filters
Unexecuted instantiation: cdef.c:set_default_interp_filters
Unexecuted instantiation: entropymode.c:set_default_interp_filters
Unexecuted instantiation: pred_common.c:set_default_interp_filters
Unexecuted instantiation: reconinter.c:set_default_interp_filters
Unexecuted instantiation: thread_common.c:set_default_interp_filters
419
420
4.55M
static inline int av1_is_interp_needed(const MACROBLOCKD *const xd) {
421
4.55M
  const MB_MODE_INFO *const mbmi = xd->mi[0];
422
4.55M
  if (mbmi->skip_mode) return 0;
423
4.44M
  if (mbmi->motion_mode == WARPED_CAUSAL) return 0;
424
4.13M
  if (is_nontrans_global_motion(xd, xd->mi[0])) return 0;
425
3.65M
  return 1;
426
4.13M
}
Unexecuted instantiation: decodeframe.c:av1_is_interp_needed
decodemv.c:av1_is_interp_needed
Line
Count
Source
420
4.55M
static inline int av1_is_interp_needed(const MACROBLOCKD *const xd) {
421
4.55M
  const MB_MODE_INFO *const mbmi = xd->mi[0];
422
4.55M
  if (mbmi->skip_mode) return 0;
423
4.44M
  if (mbmi->motion_mode == WARPED_CAUSAL) return 0;
424
4.13M
  if (is_nontrans_global_motion(xd, xd->mi[0])) return 0;
425
3.65M
  return 1;
426
4.13M
}
Unexecuted instantiation: decoder.c:av1_is_interp_needed
Unexecuted instantiation: av1_loopfilter.c:av1_is_interp_needed
Unexecuted instantiation: cdef.c:av1_is_interp_needed
Unexecuted instantiation: entropymode.c:av1_is_interp_needed
Unexecuted instantiation: pred_common.c:av1_is_interp_needed
Unexecuted instantiation: reconinter.c:av1_is_interp_needed
Unexecuted instantiation: thread_common.c:av1_is_interp_needed
427
428
// Sets up buffers 'dst_buf1' and 'dst_buf2' from relevant buffers in 'xd' for
429
// subsequent use in OBMC prediction.
430
void av1_setup_obmc_dst_bufs(MACROBLOCKD *xd, uint8_t **dst_buf1,
431
                             uint8_t **dst_buf2);
432
433
void av1_setup_build_prediction_by_above_pred(
434
    MACROBLOCKD *xd, int rel_mi_col, uint8_t above_mi_width,
435
    MB_MODE_INFO *above_mbmi, struct build_prediction_ctxt *ctxt,
436
    const int num_planes);
437
void av1_setup_build_prediction_by_left_pred(MACROBLOCKD *xd, int rel_mi_row,
438
                                             uint8_t left_mi_height,
439
                                             MB_MODE_INFO *left_mbmi,
440
                                             struct build_prediction_ctxt *ctxt,
441
                                             const int num_planes);
442
void av1_build_obmc_inter_prediction(const AV1_COMMON *cm, MACROBLOCKD *xd,
443
                                     uint8_t *above[MAX_MB_PLANE],
444
                                     int above_stride[MAX_MB_PLANE],
445
                                     uint8_t *left[MAX_MB_PLANE],
446
                                     int left_stride[MAX_MB_PLANE]);
447
448
const uint8_t *av1_get_obmc_mask(int length);
449
void av1_count_overlappable_neighbors(const AV1_COMMON *cm, MACROBLOCKD *xd);
450
451
1.28k
#define MASK_MASTER_SIZE ((MAX_WEDGE_SIZE) << 1)
452
577
#define MASK_MASTER_STRIDE (MASK_MASTER_SIZE)
453
454
void av1_init_wedge_masks(void);
455
456
static inline const uint8_t *av1_get_contiguous_soft_mask(int8_t wedge_index,
457
                                                          int8_t wedge_sign,
458
442k
                                                          BLOCK_SIZE sb_type) {
459
442k
  return av1_wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index];
460
442k
}
Unexecuted instantiation: decodeframe.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: decodemv.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: decoder.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: av1_loopfilter.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: cdef.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: entropymode.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: pred_common.c:av1_get_contiguous_soft_mask
reconinter.c:av1_get_contiguous_soft_mask
Line
Count
Source
458
442k
                                                          BLOCK_SIZE sb_type) {
459
442k
  return av1_wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index];
460
442k
}
Unexecuted instantiation: thread_common.c:av1_get_contiguous_soft_mask
461
462
void av1_dist_wtd_comp_weight_assign(const AV1_COMMON *cm,
463
                                     const MB_MODE_INFO *mbmi, int *fwd_offset,
464
                                     int *bck_offset,
465
                                     int *use_dist_wtd_comp_avg,
466
                                     int is_compound);
467
468
const uint8_t *av1_get_compound_type_mask(
469
    const INTERINTER_COMPOUND_DATA *const comp_data, BLOCK_SIZE sb_type);
470
471
// build interintra_predictors for one plane
472
void av1_build_interintra_predictor(const AV1_COMMON *cm, MACROBLOCKD *xd,
473
                                    uint8_t *pred, int stride,
474
                                    const BUFFER_SET *ctx, int plane,
475
                                    BLOCK_SIZE bsize);
476
477
void av1_build_intra_predictors_for_interintra(const AV1_COMMON *cm,
478
                                               MACROBLOCKD *xd,
479
                                               BLOCK_SIZE bsize, int plane,
480
                                               const BUFFER_SET *ctx,
481
                                               uint8_t *dst, int dst_stride);
482
483
void av1_combine_interintra(MACROBLOCKD *xd, BLOCK_SIZE bsize, int plane,
484
                            const uint8_t *inter_pred, int inter_stride,
485
                            const uint8_t *intra_pred, int intra_stride);
486
487
#ifdef __cplusplus
488
}  // extern "C"
489
#endif
490
491
#endif  // AOM_AV1_COMMON_RECONINTER_H_