Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/third_party/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/filter.h"
16
#include "av1/common/onyxc_int.h"
17
#include "av1/common/convolve.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
0
  ((AOM_BORDER_IN_PIXELS >> subsampling) - AOM_INTERP_EXTEND)
31
#define AOM_LEFT_TOP_MARGIN_SCALED(subsampling) \
32
0
  (AOM_LEFT_TOP_MARGIN_PX(subsampling) << SCALE_SUBPEL_BITS)
33
34
#ifdef __cplusplus
35
extern "C" {
36
#endif
37
38
// Set to (1 << 5) if the 32-ary codebooks are used for any bock size
39
#define MAX_WEDGE_TYPES (1 << 4)
40
41
0
#define MAX_WEDGE_SIZE_LOG2 5  // 32x32
42
0
#define MAX_WEDGE_SIZE (1 << MAX_WEDGE_SIZE_LOG2)
43
#define MAX_WEDGE_SQUARE (MAX_WEDGE_SIZE * MAX_WEDGE_SIZE)
44
45
0
#define WEDGE_WEIGHT_BITS 6
46
47
#define WEDGE_NONE -1
48
49
// Angles are with respect to horizontal anti-clockwise
50
typedef enum {
51
  WEDGE_HORIZONTAL = 0,
52
  WEDGE_VERTICAL = 1,
53
  WEDGE_OBLIQUE27 = 2,
54
  WEDGE_OBLIQUE63 = 3,
55
  WEDGE_OBLIQUE117 = 4,
56
  WEDGE_OBLIQUE153 = 5,
57
  WEDGE_DIRECTIONS
58
} WedgeDirectionType;
59
60
// 3-tuple: {direction, x_offset, y_offset}
61
typedef struct {
62
  WedgeDirectionType direction;
63
  int x_offset;
64
  int y_offset;
65
} wedge_code_type;
66
67
typedef uint8_t *wedge_masks_type[MAX_WEDGE_TYPES];
68
69
typedef struct {
70
  int bits;
71
  const wedge_code_type *codebook;
72
  uint8_t *signflip;
73
  wedge_masks_type *masks;
74
} wedge_params_type;
75
76
extern const wedge_params_type wedge_params_lookup[BLOCK_SIZES_ALL];
77
78
typedef struct SubpelParams {
79
  int xs;
80
  int ys;
81
  int subpel_x;
82
  int subpel_y;
83
} SubpelParams;
84
85
struct build_prediction_ctxt {
86
  const AV1_COMMON *cm;
87
  int mi_row;
88
  int mi_col;
89
  uint8_t **tmp_buf;
90
  int *tmp_width;
91
  int *tmp_height;
92
  int *tmp_stride;
93
  int mb_to_far_edge;
94
};
95
96
0
static INLINE int has_scale(int xs, int ys) {
97
0
  return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS;
98
0
}
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
Unexecuted instantiation: reconinter.c:has_scale
Unexecuted instantiation: thread_common.c:has_scale
Unexecuted instantiation: decodeframe.c:has_scale
Unexecuted instantiation: decodemv.c:has_scale
Unexecuted instantiation: decoder.c:has_scale
Unexecuted instantiation: dthread.c:has_scale
99
100
0
static INLINE void revert_scale_extra_bits(SubpelParams *sp) {
101
0
  sp->subpel_x >>= SCALE_EXTRA_BITS;
102
0
  sp->subpel_y >>= SCALE_EXTRA_BITS;
103
0
  sp->xs >>= SCALE_EXTRA_BITS;
104
0
  sp->ys >>= SCALE_EXTRA_BITS;
105
0
  assert(sp->subpel_x < SUBPEL_SHIFTS);
106
0
  assert(sp->subpel_y < SUBPEL_SHIFTS);
107
0
  assert(sp->xs <= SUBPEL_SHIFTS);
108
0
  assert(sp->ys <= SUBPEL_SHIFTS);
109
0
}
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
Unexecuted instantiation: reconinter.c:revert_scale_extra_bits
Unexecuted instantiation: thread_common.c:revert_scale_extra_bits
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: dthread.c:revert_scale_extra_bits
110
111
static INLINE void inter_predictor(const uint8_t *src, int src_stride,
112
                                   uint8_t *dst, int dst_stride,
113
                                   const SubpelParams *subpel_params,
114
                                   const struct scale_factors *sf, int w, int h,
115
                                   ConvolveParams *conv_params,
116
                                   InterpFilters interp_filters,
117
0
                                   int is_intrabc) {
118
0
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
119
0
  assert(sf);
120
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
121
0
  assert(IMPLIES(is_intrabc, !is_scaled));
122
0
  if (is_scaled) {
123
0
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
124
0
                           interp_filters, subpel_params->subpel_x,
125
0
                           subpel_params->xs, subpel_params->subpel_y,
126
0
                           subpel_params->ys, 1, conv_params, sf, is_intrabc);
127
0
  } else {
128
0
    SubpelParams sp = *subpel_params;
129
0
    revert_scale_extra_bits(&sp);
130
0
    av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h,
131
0
                           interp_filters, sp.subpel_x, sp.xs, sp.subpel_y,
132
0
                           sp.ys, 0, conv_params, sf, is_intrabc);
133
0
  }
134
0
}
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
Unexecuted instantiation: reconinter.c:inter_predictor
Unexecuted instantiation: thread_common.c:inter_predictor
Unexecuted instantiation: decodeframe.c:inter_predictor
Unexecuted instantiation: decodemv.c:inter_predictor
Unexecuted instantiation: decoder.c:inter_predictor
Unexecuted instantiation: dthread.c:inter_predictor
135
136
static INLINE void highbd_inter_predictor(const uint8_t *src, int src_stride,
137
                                          uint8_t *dst, int dst_stride,
138
                                          const SubpelParams *subpel_params,
139
                                          const struct scale_factors *sf, int w,
140
                                          int h, ConvolveParams *conv_params,
141
                                          InterpFilters interp_filters,
142
0
                                          int is_intrabc, int bd) {
143
0
  assert(conv_params->do_average == 0 || conv_params->do_average == 1);
144
0
  assert(sf);
145
0
  const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys);
146
0
  assert(IMPLIES(is_intrabc, !is_scaled));
147
0
  if (is_scaled) {
148
0
    av1_highbd_convolve_2d_facade(
149
0
        src, src_stride, dst, dst_stride, w, h, interp_filters,
150
0
        subpel_params->subpel_x, subpel_params->xs, subpel_params->subpel_y,
151
0
        subpel_params->ys, 1, conv_params, sf, is_intrabc, bd);
152
0
  } else {
153
0
    SubpelParams sp = *subpel_params;
154
0
    revert_scale_extra_bits(&sp);
155
0
    av1_highbd_convolve_2d_facade(
156
0
        src, src_stride, dst, dst_stride, w, h, interp_filters, sp.subpel_x,
157
0
        sp.xs, sp.subpel_y, sp.ys, 0, conv_params, sf, is_intrabc, bd);
158
0
  }
159
0
}
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
Unexecuted instantiation: reconinter.c:highbd_inter_predictor
Unexecuted instantiation: thread_common.c:highbd_inter_predictor
Unexecuted instantiation: decodeframe.c:highbd_inter_predictor
Unexecuted instantiation: decodemv.c:highbd_inter_predictor
Unexecuted instantiation: decoder.c:highbd_inter_predictor
Unexecuted instantiation: dthread.c:highbd_inter_predictor
160
161
void av1_modify_neighbor_predictor_for_obmc(MB_MODE_INFO *mbmi);
162
int av1_skip_u4x4_pred_in_obmc(BLOCK_SIZE bsize,
163
                               const struct macroblockd_plane *pd, int dir);
164
165
static INLINE int is_interinter_compound_used(COMPOUND_TYPE type,
166
0
                                              BLOCK_SIZE sb_type) {
167
0
  const int comp_allowed = is_comp_ref_allowed(sb_type);
168
0
  switch (type) {
169
0
    case COMPOUND_AVERAGE:
170
0
    case COMPOUND_DIFFWTD: return comp_allowed;
171
0
    case COMPOUND_WEDGE:
172
0
      return comp_allowed && wedge_params_lookup[sb_type].bits > 0;
173
0
    default: assert(0); return 0;
174
0
  }
175
0
}
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
Unexecuted instantiation: decodeframe.c:is_interinter_compound_used
Unexecuted instantiation: decodemv.c:is_interinter_compound_used
Unexecuted instantiation: decoder.c:is_interinter_compound_used
Unexecuted instantiation: dthread.c:is_interinter_compound_used
176
177
0
static INLINE int is_any_masked_compound_used(BLOCK_SIZE sb_type) {
178
0
  COMPOUND_TYPE comp_type;
179
0
  int i;
180
0
  if (!is_comp_ref_allowed(sb_type)) return 0;
181
0
  for (i = 0; i < COMPOUND_TYPES; i++) {
182
0
    comp_type = (COMPOUND_TYPE)i;
183
0
    if (is_masked_compound_type(comp_type) &&
184
0
        is_interinter_compound_used(comp_type, sb_type))
185
0
      return 1;
186
0
  }
187
0
  return 0;
188
0
}
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
Unexecuted instantiation: decodeframe.c:is_any_masked_compound_used
Unexecuted instantiation: decodemv.c:is_any_masked_compound_used
Unexecuted instantiation: decoder.c:is_any_masked_compound_used
Unexecuted instantiation: dthread.c:is_any_masked_compound_used
189
190
0
static INLINE int get_wedge_bits_lookup(BLOCK_SIZE sb_type) {
191
0
  return wedge_params_lookup[sb_type].bits;
192
0
}
Unexecuted instantiation: av1_loopfilter.c:get_wedge_bits_lookup
Unexecuted instantiation: cdef.c:get_wedge_bits_lookup
Unexecuted instantiation: entropymode.c:get_wedge_bits_lookup
Unexecuted instantiation: pred_common.c:get_wedge_bits_lookup
Unexecuted instantiation: reconinter.c:get_wedge_bits_lookup
Unexecuted instantiation: thread_common.c:get_wedge_bits_lookup
Unexecuted instantiation: decodeframe.c:get_wedge_bits_lookup
Unexecuted instantiation: decodemv.c:get_wedge_bits_lookup
Unexecuted instantiation: decoder.c:get_wedge_bits_lookup
Unexecuted instantiation: dthread.c:get_wedge_bits_lookup
193
194
0
static INLINE int get_interinter_wedge_bits(BLOCK_SIZE sb_type) {
195
0
  const int wbits = wedge_params_lookup[sb_type].bits;
196
0
  return (wbits > 0) ? wbits + 1 : 0;
197
0
}
Unexecuted instantiation: av1_loopfilter.c:get_interinter_wedge_bits
Unexecuted instantiation: cdef.c:get_interinter_wedge_bits
Unexecuted instantiation: entropymode.c:get_interinter_wedge_bits
Unexecuted instantiation: pred_common.c:get_interinter_wedge_bits
Unexecuted instantiation: reconinter.c:get_interinter_wedge_bits
Unexecuted instantiation: thread_common.c:get_interinter_wedge_bits
Unexecuted instantiation: decodeframe.c:get_interinter_wedge_bits
Unexecuted instantiation: decodemv.c:get_interinter_wedge_bits
Unexecuted instantiation: decoder.c:get_interinter_wedge_bits
Unexecuted instantiation: dthread.c:get_interinter_wedge_bits
198
199
0
static INLINE int is_interintra_wedge_used(BLOCK_SIZE sb_type) {
200
0
  return wedge_params_lookup[sb_type].bits > 0;
201
0
}
Unexecuted instantiation: av1_loopfilter.c:is_interintra_wedge_used
Unexecuted instantiation: cdef.c:is_interintra_wedge_used
Unexecuted instantiation: entropymode.c:is_interintra_wedge_used
Unexecuted instantiation: pred_common.c:is_interintra_wedge_used
Unexecuted instantiation: reconinter.c:is_interintra_wedge_used
Unexecuted instantiation: thread_common.c:is_interintra_wedge_used
Unexecuted instantiation: decodeframe.c:is_interintra_wedge_used
Unexecuted instantiation: decodemv.c:is_interintra_wedge_used
Unexecuted instantiation: decoder.c:is_interintra_wedge_used
Unexecuted instantiation: dthread.c:is_interintra_wedge_used
202
203
0
static INLINE int get_interintra_wedge_bits(BLOCK_SIZE sb_type) {
204
0
  return wedge_params_lookup[sb_type].bits;
205
0
}
Unexecuted instantiation: av1_loopfilter.c:get_interintra_wedge_bits
Unexecuted instantiation: cdef.c:get_interintra_wedge_bits
Unexecuted instantiation: entropymode.c:get_interintra_wedge_bits
Unexecuted instantiation: pred_common.c:get_interintra_wedge_bits
Unexecuted instantiation: reconinter.c:get_interintra_wedge_bits
Unexecuted instantiation: thread_common.c:get_interintra_wedge_bits
Unexecuted instantiation: decodeframe.c:get_interintra_wedge_bits
Unexecuted instantiation: decodemv.c:get_interintra_wedge_bits
Unexecuted instantiation: decoder.c:get_interintra_wedge_bits
Unexecuted instantiation: dthread.c:get_interintra_wedge_bits
206
207
void av1_make_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst,
208
                              int dst_stride, const SubpelParams *subpel_params,
209
                              const struct scale_factors *sf, int w, int h,
210
                              ConvolveParams *conv_params,
211
                              InterpFilters interp_filters,
212
                              const WarpTypesAllowed *warp_types, int p_col,
213
                              int p_row, int plane, int ref,
214
                              const MB_MODE_INFO *mi, int build_for_obmc,
215
                              const MACROBLOCKD *xd, int can_use_previous);
216
217
void av1_make_masked_inter_predictor(
218
    const uint8_t *pre, int pre_stride, uint8_t *dst, int dst_stride,
219
    const SubpelParams *subpel_params, const struct scale_factors *sf, int w,
220
    int h, ConvolveParams *conv_params, InterpFilters interp_filters, int plane,
221
    const WarpTypesAllowed *warp_types, int p_col, int p_row, int ref,
222
    MACROBLOCKD *xd, int can_use_previous);
223
224
// TODO(jkoleszar): yet another mv clamping function :-(
225
static INLINE MV clamp_mv_to_umv_border_sb(const MACROBLOCKD *xd,
226
                                           const MV *src_mv, int bw, int bh,
227
0
                                           int ss_x, int ss_y) {
228
0
  // If the MV points so far into the UMV border that no visible pixels
229
0
  // are used for reconstruction, the subpel part of the MV can be
230
0
  // discarded and the MV limited to 16 pixels with equivalent results.
231
0
  const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS;
232
0
  const int spel_right = spel_left - SUBPEL_SHIFTS;
233
0
  const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS;
234
0
  const int spel_bottom = spel_top - SUBPEL_SHIFTS;
235
0
  MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))),
236
0
                    (int16_t)(src_mv->col * (1 << (1 - ss_x))) };
237
0
  assert(ss_x <= 1);
238
0
  assert(ss_y <= 1);
239
0
240
0
  clamp_mv(&clamped_mv, xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left,
241
0
           xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right,
242
0
           xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top,
243
0
           xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom);
244
0
245
0
  return clamped_mv;
246
0
}
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
Unexecuted instantiation: decodeframe.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: decodemv.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: decoder.c:clamp_mv_to_umv_border_sb
Unexecuted instantiation: dthread.c:clamp_mv_to_umv_border_sb
247
248
static INLINE int scaled_buffer_offset(int x_offset, int y_offset, int stride,
249
0
                                       const struct scale_factors *sf) {
250
0
  const int x =
251
0
      sf ? sf->scale_value_x(x_offset, sf) >> SCALE_EXTRA_BITS : x_offset;
252
0
  const int y =
253
0
      sf ? sf->scale_value_y(y_offset, sf) >> SCALE_EXTRA_BITS : y_offset;
254
0
  return y * stride + x;
255
0
}
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
Unexecuted instantiation: reconinter.c:scaled_buffer_offset
Unexecuted instantiation: thread_common.c:scaled_buffer_offset
Unexecuted instantiation: decodeframe.c:scaled_buffer_offset
Unexecuted instantiation: decodemv.c:scaled_buffer_offset
Unexecuted instantiation: decoder.c:scaled_buffer_offset
Unexecuted instantiation: dthread.c:scaled_buffer_offset
256
257
static INLINE void setup_pred_plane(struct buf_2d *dst, BLOCK_SIZE bsize,
258
                                    uint8_t *src, int width, int height,
259
                                    int stride, int mi_row, int mi_col,
260
                                    const struct scale_factors *scale,
261
0
                                    int subsampling_x, int subsampling_y) {
262
0
  // Offset the buffer pointer
263
0
  if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
264
0
    mi_row -= 1;
265
0
  if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
266
0
    mi_col -= 1;
267
0
268
0
  const int x = (MI_SIZE * mi_col) >> subsampling_x;
269
0
  const int y = (MI_SIZE * mi_row) >> subsampling_y;
270
0
  dst->buf = src + scaled_buffer_offset(x, y, stride, scale);
271
0
  dst->buf0 = src;
272
0
  dst->width = width;
273
0
  dst->height = height;
274
0
  dst->stride = stride;
275
0
}
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
Unexecuted instantiation: reconinter.c:setup_pred_plane
Unexecuted instantiation: thread_common.c:setup_pred_plane
Unexecuted instantiation: decodeframe.c:setup_pred_plane
Unexecuted instantiation: decodemv.c:setup_pred_plane
Unexecuted instantiation: decoder.c:setup_pred_plane
Unexecuted instantiation: dthread.c:setup_pred_plane
276
277
void av1_setup_dst_planes(struct macroblockd_plane *planes, BLOCK_SIZE bsize,
278
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
279
                          const int plane_start, const int plane_end);
280
281
void av1_setup_pre_planes(MACROBLOCKD *xd, int idx,
282
                          const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col,
283
                          const struct scale_factors *sf, const int num_planes);
284
285
static INLINE void set_default_interp_filters(
286
0
    MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) {
287
0
  mbmi->interp_filters =
288
0
      av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter));
289
0
}
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
Unexecuted instantiation: decodeframe.c:set_default_interp_filters
Unexecuted instantiation: decodemv.c:set_default_interp_filters
Unexecuted instantiation: decoder.c:set_default_interp_filters
Unexecuted instantiation: dthread.c:set_default_interp_filters
290
291
0
static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) {
292
0
  const MB_MODE_INFO *const mbmi = xd->mi[0];
293
0
  if (mbmi->skip_mode) return 0;
294
0
  if (mbmi->motion_mode == WARPED_CAUSAL) return 0;
295
0
  if (is_nontrans_global_motion(xd, xd->mi[0])) return 0;
296
0
  return 1;
297
0
}
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
Unexecuted instantiation: decodeframe.c:av1_is_interp_needed
Unexecuted instantiation: decodemv.c:av1_is_interp_needed
Unexecuted instantiation: decoder.c:av1_is_interp_needed
Unexecuted instantiation: dthread.c:av1_is_interp_needed
298
299
void av1_setup_build_prediction_by_above_pred(
300
    MACROBLOCKD *xd, int rel_mi_col, uint8_t above_mi_width,
301
    MB_MODE_INFO *above_mbmi, struct build_prediction_ctxt *ctxt,
302
    const int num_planes);
303
void av1_setup_build_prediction_by_left_pred(MACROBLOCKD *xd, int rel_mi_row,
304
                                             uint8_t left_mi_height,
305
                                             MB_MODE_INFO *left_mbmi,
306
                                             struct build_prediction_ctxt *ctxt,
307
                                             const int num_planes);
308
void av1_build_obmc_inter_prediction(const AV1_COMMON *cm, MACROBLOCKD *xd,
309
                                     int mi_row, int mi_col,
310
                                     uint8_t *above[MAX_MB_PLANE],
311
                                     int above_stride[MAX_MB_PLANE],
312
                                     uint8_t *left[MAX_MB_PLANE],
313
                                     int left_stride[MAX_MB_PLANE]);
314
315
const uint8_t *av1_get_obmc_mask(int length);
316
void av1_count_overlappable_neighbors(const AV1_COMMON *cm, MACROBLOCKD *xd,
317
                                      int mi_row, int mi_col);
318
319
0
#define MASK_MASTER_SIZE ((MAX_WEDGE_SIZE) << 1)
320
0
#define MASK_MASTER_STRIDE (MASK_MASTER_SIZE)
321
322
void av1_init_wedge_masks();
323
324
static INLINE const uint8_t *av1_get_contiguous_soft_mask(int wedge_index,
325
                                                          int wedge_sign,
326
0
                                                          BLOCK_SIZE sb_type) {
327
0
  return wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index];
328
0
}
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
Unexecuted instantiation: reconinter.c:av1_get_contiguous_soft_mask
Unexecuted instantiation: thread_common.c:av1_get_contiguous_soft_mask
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: dthread.c:av1_get_contiguous_soft_mask
329
330
const uint8_t *av1_get_compound_type_mask(
331
    const INTERINTER_COMPOUND_DATA *const comp_data, BLOCK_SIZE sb_type);
332
333
// build interintra_predictors for one plane
334
void av1_build_interintra_predictors_sbp(const AV1_COMMON *cm, MACROBLOCKD *xd,
335
                                         uint8_t *pred, int stride,
336
                                         BUFFER_SET *ctx, int plane,
337
                                         BLOCK_SIZE bsize);
338
339
void av1_build_interintra_predictors_sbuv(const AV1_COMMON *cm, MACROBLOCKD *xd,
340
                                          uint8_t *upred, uint8_t *vpred,
341
                                          int ustride, int vstride,
342
                                          BUFFER_SET *ctx, BLOCK_SIZE bsize);
343
344
void av1_build_intra_predictors_for_interintra(
345
    const AV1_COMMON *cm, MACROBLOCKD *xd, BLOCK_SIZE bsize, int plane,
346
    BUFFER_SET *ctx, uint8_t *intra_pred, int intra_stride);
347
348
void av1_combine_interintra(MACROBLOCKD *xd, BLOCK_SIZE bsize, int plane,
349
                            const uint8_t *inter_pred, int inter_stride,
350
                            const uint8_t *intra_pred, int intra_stride);
351
352
void av1_jnt_comp_weight_assign(const AV1_COMMON *cm, const MB_MODE_INFO *mbmi,
353
                                int order_idx, int *fwd_offset, int *bck_offset,
354
                                int *use_jnt_comp_avg, int is_compound);
355
int av1_allow_warp(const MB_MODE_INFO *const mbmi,
356
                   const WarpTypesAllowed *const warp_types,
357
                   const WarpedMotionParams *const gm_params,
358
                   int build_for_obmc, int x_scale, int y_scale,
359
                   WarpedMotionParams *final_warp_params);
360
361
#ifdef __cplusplus
362
}  // extern "C"
363
#endif
364
365
#endif  // AOM_AV1_COMMON_RECONINTER_H_