Coverage Report

Created: 2023-06-07 06:31

/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
64.0M
  ((AOM_BORDER_IN_PIXELS >> subsampling) - AOM_INTERP_EXTEND)
31
#define AOM_LEFT_TOP_MARGIN_SCALED(subsampling) \
32
64.0M
  (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 AOM_INLINE void init_subpel_params(
132
    const MV *const src_mv, InterPredParams *const inter_pred_params,
133
0
    SubpelParams *subpel_params, int width, int height) {
134
0
  const struct scale_factors *sf = inter_pred_params->scale_factors;
135
0
  int ssx = inter_pred_params->subsampling_x;
136
0
  int ssy = inter_pred_params->subsampling_y;
137
0
  int orig_pos_y = inter_pred_params->pix_row << SUBPEL_BITS;
138
0
  orig_pos_y += src_mv->row * (1 << (1 - ssy));
139
0
  int orig_pos_x = inter_pred_params->pix_col << SUBPEL_BITS;
140
0
  orig_pos_x += src_mv->col * (1 << (1 - ssx));
141
0
  const int is_scaled = av1_is_scaled(sf);
142
0
  int pos_x, pos_y;
143
0
  if (LIKELY(!is_scaled)) {
144
0
    pos_y = av1_unscaled_value(orig_pos_y, sf);
145
0
    pos_x = av1_unscaled_value(orig_pos_x, sf);
146
0
  } else {
147
0
    pos_y = av1_scaled_y(orig_pos_y, sf);
148
0
    pos_x = av1_scaled_x(orig_pos_x, sf);
149
0
  }
150
0
151
0
  pos_x += SCALE_EXTRA_OFF;
152
0
  pos_y += SCALE_EXTRA_OFF;
153
0
154
0
  const int bottom = (height + AOM_INTERP_EXTEND) << SCALE_SUBPEL_BITS;
155
0
  const int right = (width + AOM_INTERP_EXTEND) << SCALE_SUBPEL_BITS;
156
0
  pos_y = clamp(pos_y, inter_pred_params->top, bottom);
157
0
  pos_x = clamp(pos_x, inter_pred_params->left, right);
158
0
159
0
  subpel_params->pos_x = pos_x;
160
0
  subpel_params->pos_y = pos_y;
161
0
  subpel_params->subpel_x = pos_x & SCALE_SUBPEL_MASK;
162
0
  subpel_params->subpel_y = pos_y & SCALE_SUBPEL_MASK;
163
0
  subpel_params->xs = sf->x_step_q4;
164
0
  subpel_params->ys = sf->y_step_q4;
165
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
166
167
// Initialize interp filter required for inter prediction.
168
static AOM_INLINE void init_interp_filter_params(
169
    const InterpFilterParams *interp_filter_params[2],
170
    const InterpFilters *filter, int block_width, int block_height,
171
24.7M
    int is_intrabc) {
172
24.7M
  if (UNLIKELY(is_intrabc)) {
173
81.6k
    interp_filter_params[0] = &av1_intrabc_filter_params;
174
81.6k
    interp_filter_params[1] = &av1_intrabc_filter_params;
175
24.6M
  } else {
176
24.6M
    interp_filter_params[0] = av1_get_interp_filter_params_with_block_size(
177
24.6M
        (InterpFilter)filter->x_filter, block_width);
178
24.6M
    interp_filter_params[1] = av1_get_interp_filter_params_with_block_size(
179
24.6M
        (InterpFilter)filter->y_filter, block_height);
180
24.6M
  }
181
24.7M
}
decodeframe.c:init_interp_filter_params
Line
Count
Source
171
24.7M
    int is_intrabc) {
172
24.7M
  if (UNLIKELY(is_intrabc)) {
173
81.6k
    interp_filter_params[0] = &av1_intrabc_filter_params;
174
81.6k
    interp_filter_params[1] = &av1_intrabc_filter_params;
175
24.6M
  } else {
176
24.6M
    interp_filter_params[0] = av1_get_interp_filter_params_with_block_size(
177
24.6M
        (InterpFilter)filter->x_filter, block_width);
178
24.6M
    interp_filter_params[1] = av1_get_interp_filter_params_with_block_size(
179
24.6M
        (InterpFilter)filter->y_filter, block_height);
180
24.6M
  }
181
24.7M
}
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
182
183
// Initialize parameters required for inter prediction at mode level.
184
static AOM_INLINE void init_inter_mode_params(
185
    const MV *const src_mv, InterPredParams *const inter_pred_params,
186
    SubpelParams *subpel_params, const struct scale_factors *sf, int width,
187
0
    int height) {
188
0
  inter_pred_params->scale_factors = sf;
189
0
  init_subpel_params(src_mv, inter_pred_params, subpel_params, width, height);
190
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
191
192
// Initialize parameters required for inter prediction at block level.
193
static AOM_INLINE void init_inter_block_params(
194
    InterPredParams *inter_pred_params, int block_width, int block_height,
195
    int pix_row, int pix_col, int subsampling_x, int subsampling_y,
196
24.7M
    int bit_depth, int use_hbd_buf, int is_intrabc) {
197
24.7M
  inter_pred_params->block_width = block_width;
198
24.7M
  inter_pred_params->block_height = block_height;
199
24.7M
  inter_pred_params->pix_row = pix_row;
200
24.7M
  inter_pred_params->pix_col = pix_col;
201
24.7M
  inter_pred_params->subsampling_x = subsampling_x;
202
24.7M
  inter_pred_params->subsampling_y = subsampling_y;
203
24.7M
  inter_pred_params->bit_depth = bit_depth;
204
24.7M
  inter_pred_params->use_hbd_buf = use_hbd_buf;
205
24.7M
  inter_pred_params->is_intrabc = is_intrabc;
206
24.7M
  inter_pred_params->mode = TRANSLATION_PRED;
207
24.7M
  inter_pred_params->comp_mode = UNIFORM_SINGLE;
208
24.7M
  inter_pred_params->top = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_y);
209
24.7M
  inter_pred_params->left = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_x);
210
24.7M
}
decodeframe.c:init_inter_block_params
Line
Count
Source
196
24.7M
    int bit_depth, int use_hbd_buf, int is_intrabc) {
197
24.7M
  inter_pred_params->block_width = block_width;
198
24.7M
  inter_pred_params->block_height = block_height;
199
24.7M
  inter_pred_params->pix_row = pix_row;
200
24.7M
  inter_pred_params->pix_col = pix_col;
201
24.7M
  inter_pred_params->subsampling_x = subsampling_x;
202
24.7M
  inter_pred_params->subsampling_y = subsampling_y;
203
24.7M
  inter_pred_params->bit_depth = bit_depth;
204
24.7M
  inter_pred_params->use_hbd_buf = use_hbd_buf;
205
24.7M
  inter_pred_params->is_intrabc = is_intrabc;
206
24.7M
  inter_pred_params->mode = TRANSLATION_PRED;
207
24.7M
  inter_pred_params->comp_mode = UNIFORM_SINGLE;
208
24.7M
  inter_pred_params->top = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_y);
209
24.7M
  inter_pred_params->left = -AOM_LEFT_TOP_MARGIN_SCALED(subsampling_x);
210
24.7M
}
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
211
212
// Initialize params required for inter prediction.
213
static AOM_INLINE void av1_init_inter_params(
214
    InterPredParams *inter_pred_params, int block_width, int block_height,
215
    int pix_row, int pix_col, int subsampling_x, int subsampling_y,
216
    int bit_depth, int use_hbd_buf, int is_intrabc,
217
    const struct scale_factors *sf, const struct buf_2d *ref_buf,
218
24.7M
    int_interpfilters interp_filters) {
219
24.7M
  init_inter_block_params(inter_pred_params, block_width, block_height, pix_row,
220
24.7M
                          pix_col, subsampling_x, subsampling_y, bit_depth,
221
24.7M
                          use_hbd_buf, is_intrabc);
222
24.7M
  init_interp_filter_params(inter_pred_params->interp_filter_params,
223
24.7M
                            &interp_filters.as_filters, block_width,
224
24.7M
                            block_height, is_intrabc);
225
24.7M
  inter_pred_params->scale_factors = sf;
226
24.7M
  inter_pred_params->ref_frame_buf = *ref_buf;
227
24.7M
}
decodeframe.c:av1_init_inter_params
Line
Count
Source
218
24.7M
    int_interpfilters interp_filters) {
219
24.7M
  init_inter_block_params(inter_pred_params, block_width, block_height, pix_row,
220
24.7M
                          pix_col, subsampling_x, subsampling_y, bit_depth,
221
24.7M
                          use_hbd_buf, is_intrabc);
222
24.7M
  init_interp_filter_params(inter_pred_params->interp_filter_params,
223
24.7M
                            &interp_filters.as_filters, block_width,
224
24.7M
                            block_height, is_intrabc);
225
24.7M
  inter_pred_params->scale_factors = sf;
226
24.7M
  inter_pred_params->ref_frame_buf = *ref_buf;
227
24.7M
}
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
228
229
3.68M
static AOM_INLINE void av1_init_comp_mode(InterPredParams *inter_pred_params) {
230
3.68M
  inter_pred_params->comp_mode = UNIFORM_COMP;
231
3.68M
}
decodeframe.c:av1_init_comp_mode
Line
Count
Source
229
3.68M
static AOM_INLINE void av1_init_comp_mode(InterPredParams *inter_pred_params) {
230
3.68M
  inter_pred_params->comp_mode = UNIFORM_COMP;
231
3.68M
}
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
232
233
void av1_init_warp_params(InterPredParams *inter_pred_params,
234
                          const WarpTypesAllowed *warp_types, int ref,
235
                          const MACROBLOCKD *xd, const MB_MODE_INFO *mi);
236
237
23.9M
static INLINE int has_scale(int xs, int ys) {
238
23.9M
  return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS;
239
23.9M
}
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
237
23.9M
static INLINE int has_scale(int xs, int ys) {
238
23.9M
  return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS;
239
23.9M
}
Unexecuted instantiation: thread_common.c:has_scale
240
241
16.7M
static INLINE void revert_scale_extra_bits(SubpelParams *sp) {
242
16.7M
  sp->subpel_x >>= SCALE_EXTRA_BITS;
243
16.7M
  sp->subpel_y >>= SCALE_EXTRA_BITS;
244
16.7M
  sp->xs >>= SCALE_EXTRA_BITS;
245
16.7M
  sp->ys >>= SCALE_EXTRA_BITS;
246
16.7M
  assert(sp->subpel_x < SUBPEL_SHIFTS);
247
0
  assert(sp->subpel_y < SUBPEL_SHIFTS);
248
0
  assert(sp->xs <= SUBPEL_SHIFTS);
249
0
  assert(sp->ys <= SUBPEL_SHIFTS);
250
16.7M
}
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
241
16.7M
static INLINE void revert_scale_extra_bits(SubpelParams *sp) {
242
16.7M
  sp->subpel_x >>= SCALE_EXTRA_BITS;
243
16.7M
  sp->subpel_y >>= SCALE_EXTRA_BITS;
244
16.7M
  sp->xs >>= SCALE_EXTRA_BITS;
245
16.7M
  sp->ys >>= SCALE_EXTRA_BITS;
246
16.7M
  assert(sp->subpel_x < SUBPEL_SHIFTS);
247
0
  assert(sp->subpel_y < SUBPEL_SHIFTS);
248
0
  assert(sp->xs <= SUBPEL_SHIFTS);
249
0
  assert(sp->ys <= SUBPEL_SHIFTS);
250
16.7M
}
Unexecuted instantiation: thread_common.c:revert_scale_extra_bits
251
252
static INLINE void inter_predictor(
253
    const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride,
254
    const SubpelParams *subpel_params, int w, int h,
255
18.2M
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2]) {
256
18.2M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
257
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
258
18.2M
  if (is_scaled) {
259
6.30M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
260
6.30M
                           interp_filters, subpel_params->subpel_x,
261
6.30M
                           subpel_params->xs, subpel_params->subpel_y,
262
6.30M
                           subpel_params->ys, 1, conv_params);
263
11.9M
  } else {
264
11.9M
    SubpelParams sp = *subpel_params;
265
11.9M
    revert_scale_extra_bits(&sp);
266
11.9M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
267
11.9M
                           interp_filters, sp.subpel_x, sp.xs, sp.subpel_y,
268
11.9M
                           sp.ys, 0, conv_params);
269
11.9M
  }
270
18.2M
}
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
255
18.2M
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2]) {
256
18.2M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
257
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
258
18.2M
  if (is_scaled) {
259
6.30M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
260
6.30M
                           interp_filters, subpel_params->subpel_x,
261
6.30M
                           subpel_params->xs, subpel_params->subpel_y,
262
6.30M
                           subpel_params->ys, 1, conv_params);
263
11.9M
  } else {
264
11.9M
    SubpelParams sp = *subpel_params;
265
11.9M
    revert_scale_extra_bits(&sp);
266
11.9M
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
267
11.9M
                           interp_filters, sp.subpel_x, sp.xs, sp.subpel_y,
268
11.9M
                           sp.ys, 0, conv_params);
269
11.9M
  }
270
18.2M
}
Unexecuted instantiation: thread_common.c:inter_predictor
271
272
static INLINE void highbd_inter_predictor(
273
    const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride,
274
    const SubpelParams *subpel_params, int w, int h,
275
    ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2],
276
5.71M
    int bd) {
277
5.71M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
278
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
279
5.71M
  if (is_scaled) {
280
898k
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
281
898k
                                  interp_filters, subpel_params->subpel_x,
282
898k
                                  subpel_params->xs, subpel_params->subpel_y,
283
898k
                                  subpel_params->ys, 1, conv_params, bd);
284
4.81M
  } else {
285
4.81M
    SubpelParams sp = *subpel_params;
286
4.81M
    revert_scale_extra_bits(&sp);
287
4.81M
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
288
4.81M
                                  interp_filters, sp.subpel_x, sp.xs,
289
4.81M
                                  sp.subpel_y, sp.ys, 0, conv_params, bd);
290
4.81M
  }
291
5.71M
}
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
276
5.71M
    int bd) {
277
5.71M
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
278
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
279
5.71M
  if (is_scaled) {
280
898k
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
281
898k
                                  interp_filters, subpel_params->subpel_x,
282
898k
                                  subpel_params->xs, subpel_params->subpel_y,
283
898k
                                  subpel_params->ys, 1, conv_params, bd);
284
4.81M
  } else {
285
4.81M
    SubpelParams sp = *subpel_params;
286
4.81M
    revert_scale_extra_bits(&sp);
287
4.81M
    av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
288
4.81M
                                  interp_filters, sp.subpel_x, sp.xs,
289
4.81M
                                  sp.subpel_y, sp.ys, 0, conv_params, bd);
290
4.81M
  }
291
5.71M
}
Unexecuted instantiation: thread_common.c:highbd_inter_predictor
292
293
void av1_modify_neighbor_predictor_for_obmc(MB_MODE_INFO *mbmi);
294
int av1_skip_u4x4_pred_in_obmc(BLOCK_SIZE bsize,
295
                               const struct macroblockd_plane *pd, int dir);
296
297
static INLINE int is_interinter_compound_used(COMPOUND_TYPE type,
298
906k
                                              BLOCK_SIZE sb_type) {
299
906k
  const int comp_allowed = is_comp_ref_allowed(sb_type);
300
906k
  switch (type) {
301
0
    case COMPOUND_AVERAGE:
302
0
    case COMPOUND_DISTWTD:
303
50.9k
    case COMPOUND_DIFFWTD: return comp_allowed;
304
855k
    case COMPOUND_WEDGE:
305
855k
      return comp_allowed && av1_wedge_params_lookup[sb_type].wedge_types > 0;
306
0
    default: assert(0); return 0;
307
906k
  }
308
906k
}
Unexecuted instantiation: decodeframe.c:is_interinter_compound_used
decodemv.c:is_interinter_compound_used
Line
Count
Source
298
906k
                                              BLOCK_SIZE sb_type) {
299
906k
  const int comp_allowed = is_comp_ref_allowed(sb_type);
300
906k
  switch (type) {
301
0
    case COMPOUND_AVERAGE:
302
0
    case COMPOUND_DISTWTD:
303
50.9k
    case COMPOUND_DIFFWTD: return comp_allowed;
304
855k
    case COMPOUND_WEDGE:
305
855k
      return comp_allowed && av1_wedge_params_lookup[sb_type].wedge_types > 0;
306
0
    default: assert(0); return 0;
307
906k
  }
308
906k
}
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
309
310
575k
static INLINE int is_any_masked_compound_used(BLOCK_SIZE sb_type) {
311
575k
  COMPOUND_TYPE comp_type;
312
575k
  int i;
313
575k
  if (!is_comp_ref_allowed(sb_type)) return 0;
314
1.77M
  for (i = 0; i < COMPOUND_TYPES; i++) {
315
1.77M
    comp_type = (COMPOUND_TYPE)i;
316
1.77M
    if (is_masked_compound_type(comp_type) &&
317
1.77M
        is_interinter_compound_used(comp_type, sb_type))
318
575k
      return 1;
319
1.77M
  }
320
56
  return 0;
321
575k
}
Unexecuted instantiation: decodeframe.c:is_any_masked_compound_used
decodemv.c:is_any_masked_compound_used
Line
Count
Source
310
575k
static INLINE int is_any_masked_compound_used(BLOCK_SIZE sb_type) {
311
575k
  COMPOUND_TYPE comp_type;
312
575k
  int i;
313
575k
  if (!is_comp_ref_allowed(sb_type)) return 0;
314
1.77M
  for (i = 0; i < COMPOUND_TYPES; i++) {
315
1.77M
    comp_type = (COMPOUND_TYPE)i;
316
1.77M
    if (is_masked_compound_type(comp_type) &&
317
1.77M
        is_interinter_compound_used(comp_type, sb_type))
318
575k
      return 1;
319
1.77M
  }
320
56
  return 0;
321
575k
}
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
322
323
288
static INLINE int get_wedge_types_lookup(BLOCK_SIZE sb_type) {
324
288
  return av1_wedge_params_lookup[sb_type].wedge_types;
325
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
323
288
static INLINE int get_wedge_types_lookup(BLOCK_SIZE sb_type) {
324
288
  return av1_wedge_params_lookup[sb_type].wedge_types;
325
288
}
Unexecuted instantiation: thread_common.c:get_wedge_types_lookup
326
327
801k
static INLINE int av1_is_wedge_used(BLOCK_SIZE sb_type) {
328
801k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
329
801k
}
Unexecuted instantiation: decodeframe.c:av1_is_wedge_used
decodemv.c:av1_is_wedge_used
Line
Count
Source
327
440k
static INLINE int av1_is_wedge_used(BLOCK_SIZE sb_type) {
328
440k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
329
440k
}
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
327
360k
static INLINE int av1_is_wedge_used(BLOCK_SIZE sb_type) {
328
360k
  return av1_wedge_params_lookup[sb_type].wedge_types > 0;
329
360k
}
Unexecuted instantiation: thread_common.c:av1_is_wedge_used
330
331
void av1_make_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst,
332
                              int dst_stride,
333
                              InterPredParams *inter_pred_params,
334
                              const SubpelParams *subpel_params);
335
void av1_make_masked_inter_predictor(const uint8_t *pre, int pre_stride,
336
                                     uint8_t *dst, int dst_stride,
337
                                     InterPredParams *inter_pred_params,
338
                                     const SubpelParams *subpel_params);
339
340
// TODO(jkoleszar): yet another mv clamping function :-(
341
static INLINE MV clamp_mv_to_umv_border_sb(const MACROBLOCKD *xd,
342
                                           const MV *src_mv, int bw, int bh,
343
24.7M
                                           int ss_x, int ss_y) {
344
  // If the MV points so far into the UMV border that no visible pixels
345
  // are used for reconstruction, the subpel part of the MV can be
346
  // discarded and the MV limited to 16 pixels with equivalent results.
347
24.7M
  const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS;
348
24.7M
  const int spel_right = spel_left - SUBPEL_SHIFTS;
349
24.7M
  const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS;
350
24.7M
  const int spel_bottom = spel_top - SUBPEL_SHIFTS;
351
24.7M
  MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
352
24.7M
                    (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
353
24.7M
  assert(ss_x <= 1);
354
0
  assert(ss_y <= 1);
355
0
  const SubpelMvLimits mv_limits = {
356
24.7M
    xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left,
357
24.7M
    xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right,
358
24.7M
    xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top,
359
24.7M
    xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom
360
24.7M
  };
361
362
24.7M
  clamp_mv(&clamped_mv, &mv_limits);
363
364
24.7M
  return clamped_mv;
365
24.7M
}
decodeframe.c:clamp_mv_to_umv_border_sb
Line
Count
Source
343
24.7M
                                           int ss_x, int ss_y) {
344
  // If the MV points so far into the UMV border that no visible pixels
345
  // are used for reconstruction, the subpel part of the MV can be
346
  // discarded and the MV limited to 16 pixels with equivalent results.
347
24.7M
  const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS;
348
24.7M
  const int spel_right = spel_left - SUBPEL_SHIFTS;
349
24.7M
  const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS;
350
24.7M
  const int spel_bottom = spel_top - SUBPEL_SHIFTS;
351
24.7M
  MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
352
24.7M
                    (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
353
24.7M
  assert(ss_x <= 1);
354
0
  assert(ss_y <= 1);
355
0
  const SubpelMvLimits mv_limits = {
356
24.7M
    xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left,
357
24.7M
    xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right,
358
24.7M
    xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top,
359
24.7M
    xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom
360
24.7M
  };
361
362
24.7M
  clamp_mv(&clamped_mv, &mv_limits);
363
364
24.7M
  return clamped_mv;
365
24.7M
}
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
366
367
static INLINE int64_t scaled_buffer_offset(int x_offset, int y_offset,
368
                                           int stride,
369
112M
                                           const struct scale_factors *sf) {
370
112M
  int x, y;
371
112M
  if (!sf) {
372
86.4M
    x = x_offset;
373
86.4M
    y = y_offset;
374
86.4M
  } else if (av1_is_scaled(sf)) {
375
7.99M
    x = av1_scaled_x(x_offset, sf) >> SCALE_EXTRA_BITS;
376
7.99M
    y = av1_scaled_y(y_offset, sf) >> SCALE_EXTRA_BITS;
377
18.0M
  } else {
378
18.0M
    x = av1_unscaled_value(x_offset, sf) >> SCALE_EXTRA_BITS;
379
18.0M
    y = av1_unscaled_value(y_offset, sf) >> SCALE_EXTRA_BITS;
380
18.0M
  }
381
112M
  return (int64_t)y * stride + x;
382
112M
}
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
369
112M
                                           const struct scale_factors *sf) {
370
112M
  int x, y;
371
112M
  if (!sf) {
372
86.4M
    x = x_offset;
373
86.4M
    y = y_offset;
374
86.4M
  } else if (av1_is_scaled(sf)) {
375
7.99M
    x = av1_scaled_x(x_offset, sf) >> SCALE_EXTRA_BITS;
376
7.99M
    y = av1_scaled_y(y_offset, sf) >> SCALE_EXTRA_BITS;
377
18.0M
  } else {
378
18.0M
    x = av1_unscaled_value(x_offset, sf) >> SCALE_EXTRA_BITS;
379
18.0M
    y = av1_unscaled_value(y_offset, sf) >> SCALE_EXTRA_BITS;
380
18.0M
  }
381
112M
  return (int64_t)y * stride + x;
382
112M
}
Unexecuted instantiation: thread_common.c:scaled_buffer_offset
383
384
static INLINE void setup_pred_plane(struct buf_2d *dst, BLOCK_SIZE bsize,
385
                                    uint8_t *src, int width, int height,
386
                                    int stride, int mi_row, int mi_col,
387
                                    const struct scale_factors *scale,
388
112M
                                    int subsampling_x, int subsampling_y) {
389
  // Offset the buffer pointer
390
112M
  if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
391
5.05M
    mi_row -= 1;
392
112M
  if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
393
4.57M
    mi_col -= 1;
394
395
112M
  const int x = (MI_SIZE * mi_col) >> subsampling_x;
396
112M
  const int y = (MI_SIZE * mi_row) >> subsampling_y;
397
112M
  dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
398
112M
  dst->buf0 = src;
399
112M
  dst->width = width;
400
112M
  dst->height = height;
401
112M
  dst->stride = stride;
402
112M
}
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
388
112M
                                    int subsampling_x, int subsampling_y) {
389
  // Offset the buffer pointer
390
112M
  if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
391
5.05M
    mi_row -= 1;
392
112M
  if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
393
4.57M
    mi_col -= 1;
394
395
112M
  const int x = (MI_SIZE * mi_col) >> subsampling_x;
396
112M
  const int y = (MI_SIZE * mi_row) >> subsampling_y;
397
112M
  dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
398
112M
  dst->buf0 = src;
399
112M
  dst->width = width;
400
112M
  dst->height = height;
401
112M
  dst->stride = stride;
402
112M
}
Unexecuted instantiation: thread_common.c:setup_pred_plane
403
404
void av1_setup_dst_planes(struct macroblockd_plane *planes, BLOCK_SIZE bsize,
405
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
406
                          const int plane_start, const int plane_end);
407
408
void av1_setup_pre_planes(MACROBLOCKD *xd, int idx,
409
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
410
                          const struct scale_factors *sf, const int num_planes);
411
412
static INLINE void set_default_interp_filters(
413
1.72M
    MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) {
414
1.72M
  mbmi->interp_filters =
415
1.72M
      av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter));
416
1.72M
}
Unexecuted instantiation: decodeframe.c:set_default_interp_filters
decodemv.c:set_default_interp_filters
Line
Count
Source
413
1.72M
    MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) {
414
1.72M
  mbmi->interp_filters =
415
1.72M
      av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter));
416
1.72M
}
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
417
418
6.47M
static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) {
419
6.47M
  const MB_MODE_INFO *const mbmi = xd->mi[0];
420
6.47M
  if (mbmi->skip_mode) return 0;
421
6.37M
  if (mbmi->motion_mode == WARPED_CAUSAL) return 0;
422
5.93M
  if (is_nontrans_global_motion(xd, xd->mi[0])) return 0;
423
4.74M
  return 1;
424
5.93M
}
Unexecuted instantiation: decodeframe.c:av1_is_interp_needed
decodemv.c:av1_is_interp_needed
Line
Count
Source
418
6.47M
static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) {
419
6.47M
  const MB_MODE_INFO *const mbmi = xd->mi[0];
420
6.47M
  if (mbmi->skip_mode) return 0;
421
6.37M
  if (mbmi->motion_mode == WARPED_CAUSAL) return 0;
422
5.93M
  if (is_nontrans_global_motion(xd, xd->mi[0])) return 0;
423
4.74M
  return 1;
424
5.93M
}
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
425
426
// Sets up buffers 'dst_buf1' and 'dst_buf2' from relevant buffers in 'xd' for
427
// subsequent use in OBMC prediction.
428
void av1_setup_obmc_dst_bufs(MACROBLOCKD *xd, uint8_t **dst_buf1,
429
                             uint8_t **dst_buf2);
430
431
void av1_setup_build_prediction_by_above_pred(
432
    MACROBLOCKD *xd, int rel_mi_col, uint8_t above_mi_width,
433
    MB_MODE_INFO *above_mbmi, struct build_prediction_ctxt *ctxt,
434
    const int num_planes);
435
void av1_setup_build_prediction_by_left_pred(MACROBLOCKD *xd, int rel_mi_row,
436
                                             uint8_t left_mi_height,
437
                                             MB_MODE_INFO *left_mbmi,
438
                                             struct build_prediction_ctxt *ctxt,
439
                                             const int num_planes);
440
void av1_build_obmc_inter_prediction(const AV1_COMMON *cm, MACROBLOCKD *xd,
441
                                     uint8_t *above[MAX_MB_PLANE],
442
                                     int above_stride[MAX_MB_PLANE],
443
                                     uint8_t *left[MAX_MB_PLANE],
444
                                     int left_stride[MAX_MB_PLANE]);
445
446
const uint8_t *av1_get_obmc_mask(int length);
447
void av1_count_overlappable_neighbors(const AV1_COMMON *cm, MACROBLOCKD *xd);
448
449
1.28k
#define MASK_MASTER_SIZE ((MAX_WEDGE_SIZE) << 1)
450
577
#define MASK_MASTER_STRIDE (MASK_MASTER_SIZE)
451
452
void av1_init_wedge_masks();
453
454
static INLINE const uint8_t *av1_get_contiguous_soft_mask(int8_t wedge_index,
455
                                                          int8_t wedge_sign,
456
580k
                                                          BLOCK_SIZE sb_type) {
457
580k
  return av1_wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index];
458
580k
}
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
456
580k
                                                          BLOCK_SIZE sb_type) {
457
580k
  return av1_wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index];
458
580k
}
Unexecuted instantiation: thread_common.c:av1_get_contiguous_soft_mask
459
460
void av1_dist_wtd_comp_weight_assign(const AV1_COMMON *cm,
461
                                     const MB_MODE_INFO *mbmi, int *fwd_offset,
462
                                     int *bck_offset,
463
                                     int *use_dist_wtd_comp_avg,
464
                                     int is_compound);
465
466
const uint8_t *av1_get_compound_type_mask(
467
    const INTERINTER_COMPOUND_DATA *const comp_data, BLOCK_SIZE sb_type);
468
469
// build interintra_predictors for one plane
470
void av1_build_interintra_predictor(const AV1_COMMON *cm, MACROBLOCKD *xd,
471
                                    uint8_t *pred, int stride,
472
                                    const BUFFER_SET *ctx, int plane,
473
                                    BLOCK_SIZE bsize);
474
475
void av1_build_intra_predictors_for_interintra(const AV1_COMMON *cm,
476
                                               MACROBLOCKD *xd,
477
                                               BLOCK_SIZE bsize, int plane,
478
                                               const BUFFER_SET *ctx,
479
                                               uint8_t *dst, int dst_stride);
480
481
void av1_combine_interintra(MACROBLOCKD *xd, BLOCK_SIZE bsize, int plane,
482
                            const uint8_t *inter_pred, int inter_stride,
483
                            const uint8_t *intra_pred, int intra_stride);
484
485
#ifdef __cplusplus
486
}  // extern "C"
487
#endif
488
489
#endif  // AOM_AV1_COMMON_RECONINTER_H_