/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 | 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 | 0 | #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 | | } SubpelParams; |
83 | | |
84 | | struct build_prediction_ctxt { |
85 | | const AV1_COMMON *cm; |
86 | | uint8_t **tmp_buf; |
87 | | int *tmp_width; |
88 | | int *tmp_height; |
89 | | int *tmp_stride; |
90 | | int mb_to_far_edge; |
91 | | void *dcb; // Decoder-only coding block. |
92 | | }; |
93 | | |
94 | | typedef enum InterPredMode { |
95 | | TRANSLATION_PRED, |
96 | | WARP_PRED, |
97 | | } InterPredMode; |
98 | | |
99 | | typedef enum InterCompMode { |
100 | | UNIFORM_SINGLE, |
101 | | UNIFORM_COMP, |
102 | | MASK_COMP, |
103 | | } InterCompMode; |
104 | | |
105 | | typedef struct InterPredParams { |
106 | | InterPredMode mode; |
107 | | InterCompMode comp_mode; |
108 | | WarpedMotionParams warp_params; |
109 | | ConvolveParams conv_params; |
110 | | const InterpFilterParams *interp_filter_params[2]; |
111 | | int block_width; |
112 | | int block_height; |
113 | | int pix_row; |
114 | | int pix_col; |
115 | | struct buf_2d ref_frame_buf; |
116 | | int subsampling_x; |
117 | | int subsampling_y; |
118 | | const struct scale_factors *scale_factors; |
119 | | int bit_depth; |
120 | | int use_hbd_buf; |
121 | | INTERINTER_COMPOUND_DATA mask_comp; |
122 | | BLOCK_SIZE sb_type; |
123 | | int is_intrabc; |
124 | | } InterPredParams; |
125 | | |
126 | | void av1_init_inter_params(InterPredParams *inter_pred_params, int block_width, |
127 | | int block_height, int pix_row, int pix_col, |
128 | | int subsampling_x, int subsampling_y, int bit_depth, |
129 | | int use_hbd_buf, int is_intrabc, |
130 | | const struct scale_factors *sf, |
131 | | const struct buf_2d *ref_buf, |
132 | | int_interpfilters interp_filters); |
133 | | |
134 | | void av1_init_comp_mode(InterPredParams *inter_pred_params); |
135 | | |
136 | | void av1_init_warp_params(InterPredParams *inter_pred_params, |
137 | | const WarpTypesAllowed *warp_types, int ref, |
138 | | const MACROBLOCKD *xd, const MB_MODE_INFO *mi); |
139 | | |
140 | 0 | static INLINE int has_scale(int xs, int ys) { |
141 | 0 | return xs != SCALE_SUBPEL_SHIFTS || ys != SCALE_SUBPEL_SHIFTS; |
142 | 0 | } Unexecuted instantiation: decodeframe.c:has_scale Unexecuted instantiation: decodemv.c:has_scale Unexecuted instantiation: decoder.c:has_scale Unexecuted instantiation: bitstream.c:has_scale Unexecuted instantiation: encoder.c:has_scale Unexecuted instantiation: ethread.c:has_scale Unexecuted instantiation: firstpass.c:has_scale Unexecuted instantiation: mcomp.c:has_scale Unexecuted instantiation: pickcdef.c:has_scale Unexecuted instantiation: rd.c:has_scale Unexecuted instantiation: rdopt.c:has_scale Unexecuted instantiation: reconinter_enc.c:has_scale Unexecuted instantiation: temporal_filter.c:has_scale Unexecuted instantiation: tpl_model.c:has_scale Unexecuted instantiation: var_based_part.c:has_scale Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:has_scale Unexecuted instantiation: thread_common.c:has_scale Unexecuted instantiation: allintra_vis.c:has_scale Unexecuted instantiation: compound_type.c:has_scale Unexecuted instantiation: encodeframe.c:has_scale Unexecuted instantiation: encodeframe_utils.c:has_scale Unexecuted instantiation: encodemb.c:has_scale Unexecuted instantiation: encode_strategy.c:has_scale Unexecuted instantiation: interp_search.c:has_scale Unexecuted instantiation: motion_search_facade.c:has_scale Unexecuted instantiation: partition_search.c:has_scale Unexecuted instantiation: partition_strategy.c:has_scale Unexecuted instantiation: nonrd_pickmode.c:has_scale Unexecuted instantiation: wedge_utils.c:has_scale |
143 | | |
144 | 0 | static INLINE void revert_scale_extra_bits(SubpelParams *sp) { |
145 | 0 | sp->subpel_x >>= SCALE_EXTRA_BITS; |
146 | 0 | sp->subpel_y >>= SCALE_EXTRA_BITS; |
147 | 0 | sp->xs >>= SCALE_EXTRA_BITS; |
148 | 0 | sp->ys >>= SCALE_EXTRA_BITS; |
149 | 0 | assert(sp->subpel_x < SUBPEL_SHIFTS); |
150 | 0 | assert(sp->subpel_y < SUBPEL_SHIFTS); |
151 | 0 | assert(sp->xs <= SUBPEL_SHIFTS); |
152 | 0 | assert(sp->ys <= SUBPEL_SHIFTS); |
153 | 0 | } 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: bitstream.c:revert_scale_extra_bits Unexecuted instantiation: encoder.c:revert_scale_extra_bits Unexecuted instantiation: ethread.c:revert_scale_extra_bits Unexecuted instantiation: firstpass.c:revert_scale_extra_bits Unexecuted instantiation: mcomp.c:revert_scale_extra_bits Unexecuted instantiation: pickcdef.c:revert_scale_extra_bits Unexecuted instantiation: rd.c:revert_scale_extra_bits Unexecuted instantiation: rdopt.c:revert_scale_extra_bits Unexecuted instantiation: reconinter_enc.c:revert_scale_extra_bits Unexecuted instantiation: temporal_filter.c:revert_scale_extra_bits Unexecuted instantiation: tpl_model.c:revert_scale_extra_bits Unexecuted instantiation: var_based_part.c:revert_scale_extra_bits Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:revert_scale_extra_bits Unexecuted instantiation: thread_common.c:revert_scale_extra_bits Unexecuted instantiation: allintra_vis.c:revert_scale_extra_bits Unexecuted instantiation: compound_type.c:revert_scale_extra_bits Unexecuted instantiation: encodeframe.c:revert_scale_extra_bits Unexecuted instantiation: encodeframe_utils.c:revert_scale_extra_bits Unexecuted instantiation: encodemb.c:revert_scale_extra_bits Unexecuted instantiation: encode_strategy.c:revert_scale_extra_bits Unexecuted instantiation: interp_search.c:revert_scale_extra_bits Unexecuted instantiation: motion_search_facade.c:revert_scale_extra_bits Unexecuted instantiation: partition_search.c:revert_scale_extra_bits Unexecuted instantiation: partition_strategy.c:revert_scale_extra_bits Unexecuted instantiation: nonrd_pickmode.c:revert_scale_extra_bits Unexecuted instantiation: wedge_utils.c:revert_scale_extra_bits |
154 | | |
155 | | static INLINE void inter_predictor( |
156 | | const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, |
157 | | const SubpelParams *subpel_params, int w, int h, |
158 | 0 | ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2]) { |
159 | 0 | assert(conv_params->do_average == 0 || conv_params->do_average == 1); |
160 | 0 | const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys); |
161 | 0 | if (is_scaled) { |
162 | 0 | av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h, |
163 | 0 | interp_filters, subpel_params->subpel_x, |
164 | 0 | subpel_params->xs, subpel_params->subpel_y, |
165 | 0 | subpel_params->ys, 1, conv_params); |
166 | 0 | } else { |
167 | 0 | SubpelParams sp = *subpel_params; |
168 | 0 | revert_scale_extra_bits(&sp); |
169 | 0 | av1_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h, |
170 | 0 | interp_filters, sp.subpel_x, sp.xs, sp.subpel_y, |
171 | 0 | sp.ys, 0, conv_params); |
172 | 0 | } |
173 | 0 | } Unexecuted instantiation: decodeframe.c:inter_predictor Unexecuted instantiation: decodemv.c:inter_predictor Unexecuted instantiation: decoder.c:inter_predictor Unexecuted instantiation: bitstream.c:inter_predictor Unexecuted instantiation: encoder.c:inter_predictor Unexecuted instantiation: ethread.c:inter_predictor Unexecuted instantiation: firstpass.c:inter_predictor Unexecuted instantiation: mcomp.c:inter_predictor Unexecuted instantiation: pickcdef.c:inter_predictor Unexecuted instantiation: rd.c:inter_predictor Unexecuted instantiation: rdopt.c:inter_predictor Unexecuted instantiation: reconinter_enc.c:inter_predictor Unexecuted instantiation: temporal_filter.c:inter_predictor Unexecuted instantiation: tpl_model.c:inter_predictor Unexecuted instantiation: var_based_part.c:inter_predictor Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:inter_predictor Unexecuted instantiation: thread_common.c:inter_predictor Unexecuted instantiation: allintra_vis.c:inter_predictor Unexecuted instantiation: compound_type.c:inter_predictor Unexecuted instantiation: encodeframe.c:inter_predictor Unexecuted instantiation: encodeframe_utils.c:inter_predictor Unexecuted instantiation: encodemb.c:inter_predictor Unexecuted instantiation: encode_strategy.c:inter_predictor Unexecuted instantiation: interp_search.c:inter_predictor Unexecuted instantiation: motion_search_facade.c:inter_predictor Unexecuted instantiation: partition_search.c:inter_predictor Unexecuted instantiation: partition_strategy.c:inter_predictor Unexecuted instantiation: nonrd_pickmode.c:inter_predictor Unexecuted instantiation: wedge_utils.c:inter_predictor |
174 | | |
175 | | static INLINE void highbd_inter_predictor( |
176 | | const uint8_t *src, int src_stride, uint8_t *dst, int dst_stride, |
177 | | const SubpelParams *subpel_params, int w, int h, |
178 | | ConvolveParams *conv_params, const InterpFilterParams *interp_filters[2], |
179 | 0 | int bd) { |
180 | 0 | assert(conv_params->do_average == 0 || conv_params->do_average == 1); |
181 | 0 | const int is_scaled = has_scale(subpel_params->xs, subpel_params->ys); |
182 | 0 | if (is_scaled) { |
183 | 0 | av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h, |
184 | 0 | interp_filters, subpel_params->subpel_x, |
185 | 0 | subpel_params->xs, subpel_params->subpel_y, |
186 | 0 | subpel_params->ys, 1, conv_params, bd); |
187 | 0 | } else { |
188 | 0 | SubpelParams sp = *subpel_params; |
189 | 0 | revert_scale_extra_bits(&sp); |
190 | 0 | av1_highbd_convolve_2d_facade(src, src_stride, dst, dst_stride, w, h, |
191 | 0 | interp_filters, sp.subpel_x, sp.xs, |
192 | 0 | sp.subpel_y, sp.ys, 0, conv_params, bd); |
193 | 0 | } |
194 | 0 | } Unexecuted instantiation: decodeframe.c:highbd_inter_predictor Unexecuted instantiation: decodemv.c:highbd_inter_predictor Unexecuted instantiation: decoder.c:highbd_inter_predictor Unexecuted instantiation: bitstream.c:highbd_inter_predictor Unexecuted instantiation: encoder.c:highbd_inter_predictor Unexecuted instantiation: ethread.c:highbd_inter_predictor Unexecuted instantiation: firstpass.c:highbd_inter_predictor Unexecuted instantiation: mcomp.c:highbd_inter_predictor Unexecuted instantiation: pickcdef.c:highbd_inter_predictor Unexecuted instantiation: rd.c:highbd_inter_predictor Unexecuted instantiation: rdopt.c:highbd_inter_predictor Unexecuted instantiation: reconinter_enc.c:highbd_inter_predictor Unexecuted instantiation: temporal_filter.c:highbd_inter_predictor Unexecuted instantiation: tpl_model.c:highbd_inter_predictor Unexecuted instantiation: var_based_part.c:highbd_inter_predictor Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:highbd_inter_predictor Unexecuted instantiation: thread_common.c:highbd_inter_predictor Unexecuted instantiation: allintra_vis.c:highbd_inter_predictor Unexecuted instantiation: compound_type.c:highbd_inter_predictor Unexecuted instantiation: encodeframe.c:highbd_inter_predictor Unexecuted instantiation: encodeframe_utils.c:highbd_inter_predictor Unexecuted instantiation: encodemb.c:highbd_inter_predictor Unexecuted instantiation: encode_strategy.c:highbd_inter_predictor Unexecuted instantiation: interp_search.c:highbd_inter_predictor Unexecuted instantiation: motion_search_facade.c:highbd_inter_predictor Unexecuted instantiation: partition_search.c:highbd_inter_predictor Unexecuted instantiation: partition_strategy.c:highbd_inter_predictor Unexecuted instantiation: nonrd_pickmode.c:highbd_inter_predictor Unexecuted instantiation: wedge_utils.c:highbd_inter_predictor |
195 | | |
196 | | void av1_modify_neighbor_predictor_for_obmc(MB_MODE_INFO *mbmi); |
197 | | int av1_skip_u4x4_pred_in_obmc(BLOCK_SIZE bsize, |
198 | | const struct macroblockd_plane *pd, int dir); |
199 | | |
200 | | static INLINE int is_interinter_compound_used(COMPOUND_TYPE type, |
201 | 0 | BLOCK_SIZE sb_type) { |
202 | 0 | const int comp_allowed = is_comp_ref_allowed(sb_type); |
203 | 0 | switch (type) { |
204 | 0 | case COMPOUND_AVERAGE: |
205 | 0 | case COMPOUND_DISTWTD: |
206 | 0 | case COMPOUND_DIFFWTD: return comp_allowed; |
207 | 0 | case COMPOUND_WEDGE: |
208 | 0 | return comp_allowed && av1_wedge_params_lookup[sb_type].wedge_types > 0; |
209 | 0 | default: assert(0); return 0; |
210 | 0 | } |
211 | 0 | } 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: bitstream.c:is_interinter_compound_used Unexecuted instantiation: encoder.c:is_interinter_compound_used Unexecuted instantiation: ethread.c:is_interinter_compound_used Unexecuted instantiation: firstpass.c:is_interinter_compound_used Unexecuted instantiation: mcomp.c:is_interinter_compound_used Unexecuted instantiation: pickcdef.c:is_interinter_compound_used Unexecuted instantiation: rd.c:is_interinter_compound_used Unexecuted instantiation: rdopt.c:is_interinter_compound_used Unexecuted instantiation: reconinter_enc.c:is_interinter_compound_used Unexecuted instantiation: temporal_filter.c:is_interinter_compound_used Unexecuted instantiation: tpl_model.c:is_interinter_compound_used Unexecuted instantiation: var_based_part.c:is_interinter_compound_used Unexecuted instantiation: variance.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 Unexecuted instantiation: allintra_vis.c:is_interinter_compound_used Unexecuted instantiation: compound_type.c:is_interinter_compound_used Unexecuted instantiation: encodeframe.c:is_interinter_compound_used Unexecuted instantiation: encodeframe_utils.c:is_interinter_compound_used Unexecuted instantiation: encodemb.c:is_interinter_compound_used Unexecuted instantiation: encode_strategy.c:is_interinter_compound_used Unexecuted instantiation: interp_search.c:is_interinter_compound_used Unexecuted instantiation: motion_search_facade.c:is_interinter_compound_used Unexecuted instantiation: partition_search.c:is_interinter_compound_used Unexecuted instantiation: partition_strategy.c:is_interinter_compound_used Unexecuted instantiation: nonrd_pickmode.c:is_interinter_compound_used Unexecuted instantiation: wedge_utils.c:is_interinter_compound_used |
212 | | |
213 | 0 | static INLINE int is_any_masked_compound_used(BLOCK_SIZE sb_type) { |
214 | 0 | COMPOUND_TYPE comp_type; |
215 | 0 | int i; |
216 | 0 | if (!is_comp_ref_allowed(sb_type)) return 0; |
217 | 0 | for (i = 0; i < COMPOUND_TYPES; i++) { |
218 | 0 | comp_type = (COMPOUND_TYPE)i; |
219 | 0 | if (is_masked_compound_type(comp_type) && |
220 | 0 | is_interinter_compound_used(comp_type, sb_type)) |
221 | 0 | return 1; |
222 | 0 | } |
223 | 0 | return 0; |
224 | 0 | } 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: bitstream.c:is_any_masked_compound_used Unexecuted instantiation: encoder.c:is_any_masked_compound_used Unexecuted instantiation: ethread.c:is_any_masked_compound_used Unexecuted instantiation: firstpass.c:is_any_masked_compound_used Unexecuted instantiation: mcomp.c:is_any_masked_compound_used Unexecuted instantiation: pickcdef.c:is_any_masked_compound_used Unexecuted instantiation: rd.c:is_any_masked_compound_used Unexecuted instantiation: rdopt.c:is_any_masked_compound_used Unexecuted instantiation: reconinter_enc.c:is_any_masked_compound_used Unexecuted instantiation: temporal_filter.c:is_any_masked_compound_used Unexecuted instantiation: tpl_model.c:is_any_masked_compound_used Unexecuted instantiation: var_based_part.c:is_any_masked_compound_used Unexecuted instantiation: variance.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 Unexecuted instantiation: allintra_vis.c:is_any_masked_compound_used Unexecuted instantiation: compound_type.c:is_any_masked_compound_used Unexecuted instantiation: encodeframe.c:is_any_masked_compound_used Unexecuted instantiation: encodeframe_utils.c:is_any_masked_compound_used Unexecuted instantiation: encodemb.c:is_any_masked_compound_used Unexecuted instantiation: encode_strategy.c:is_any_masked_compound_used Unexecuted instantiation: interp_search.c:is_any_masked_compound_used Unexecuted instantiation: motion_search_facade.c:is_any_masked_compound_used Unexecuted instantiation: partition_search.c:is_any_masked_compound_used Unexecuted instantiation: partition_strategy.c:is_any_masked_compound_used Unexecuted instantiation: nonrd_pickmode.c:is_any_masked_compound_used Unexecuted instantiation: wedge_utils.c:is_any_masked_compound_used |
225 | | |
226 | 0 | static INLINE int get_wedge_types_lookup(BLOCK_SIZE sb_type) { |
227 | 0 | return av1_wedge_params_lookup[sb_type].wedge_types; |
228 | 0 | } 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: bitstream.c:get_wedge_types_lookup Unexecuted instantiation: encoder.c:get_wedge_types_lookup Unexecuted instantiation: ethread.c:get_wedge_types_lookup Unexecuted instantiation: firstpass.c:get_wedge_types_lookup Unexecuted instantiation: mcomp.c:get_wedge_types_lookup Unexecuted instantiation: pickcdef.c:get_wedge_types_lookup Unexecuted instantiation: rd.c:get_wedge_types_lookup Unexecuted instantiation: rdopt.c:get_wedge_types_lookup Unexecuted instantiation: reconinter_enc.c:get_wedge_types_lookup Unexecuted instantiation: temporal_filter.c:get_wedge_types_lookup Unexecuted instantiation: tpl_model.c:get_wedge_types_lookup Unexecuted instantiation: var_based_part.c:get_wedge_types_lookup Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:get_wedge_types_lookup Unexecuted instantiation: thread_common.c:get_wedge_types_lookup Unexecuted instantiation: allintra_vis.c:get_wedge_types_lookup Unexecuted instantiation: compound_type.c:get_wedge_types_lookup Unexecuted instantiation: encodeframe.c:get_wedge_types_lookup Unexecuted instantiation: encodeframe_utils.c:get_wedge_types_lookup Unexecuted instantiation: encodemb.c:get_wedge_types_lookup Unexecuted instantiation: encode_strategy.c:get_wedge_types_lookup Unexecuted instantiation: interp_search.c:get_wedge_types_lookup Unexecuted instantiation: motion_search_facade.c:get_wedge_types_lookup Unexecuted instantiation: partition_search.c:get_wedge_types_lookup Unexecuted instantiation: partition_strategy.c:get_wedge_types_lookup Unexecuted instantiation: nonrd_pickmode.c:get_wedge_types_lookup Unexecuted instantiation: wedge_utils.c:get_wedge_types_lookup |
229 | | |
230 | 0 | static INLINE int av1_is_wedge_used(BLOCK_SIZE sb_type) { |
231 | 0 | return av1_wedge_params_lookup[sb_type].wedge_types > 0; |
232 | 0 | } Unexecuted instantiation: decodeframe.c:av1_is_wedge_used Unexecuted instantiation: decodemv.c:av1_is_wedge_used Unexecuted instantiation: decoder.c:av1_is_wedge_used Unexecuted instantiation: bitstream.c:av1_is_wedge_used Unexecuted instantiation: encoder.c:av1_is_wedge_used Unexecuted instantiation: ethread.c:av1_is_wedge_used Unexecuted instantiation: firstpass.c:av1_is_wedge_used Unexecuted instantiation: mcomp.c:av1_is_wedge_used Unexecuted instantiation: pickcdef.c:av1_is_wedge_used Unexecuted instantiation: rd.c:av1_is_wedge_used Unexecuted instantiation: rdopt.c:av1_is_wedge_used Unexecuted instantiation: reconinter_enc.c:av1_is_wedge_used Unexecuted instantiation: temporal_filter.c:av1_is_wedge_used Unexecuted instantiation: tpl_model.c:av1_is_wedge_used Unexecuted instantiation: var_based_part.c:av1_is_wedge_used Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:av1_is_wedge_used Unexecuted instantiation: thread_common.c:av1_is_wedge_used Unexecuted instantiation: allintra_vis.c:av1_is_wedge_used Unexecuted instantiation: compound_type.c:av1_is_wedge_used Unexecuted instantiation: encodeframe.c:av1_is_wedge_used Unexecuted instantiation: encodeframe_utils.c:av1_is_wedge_used Unexecuted instantiation: encodemb.c:av1_is_wedge_used Unexecuted instantiation: encode_strategy.c:av1_is_wedge_used Unexecuted instantiation: interp_search.c:av1_is_wedge_used Unexecuted instantiation: motion_search_facade.c:av1_is_wedge_used Unexecuted instantiation: partition_search.c:av1_is_wedge_used Unexecuted instantiation: partition_strategy.c:av1_is_wedge_used Unexecuted instantiation: nonrd_pickmode.c:av1_is_wedge_used Unexecuted instantiation: wedge_utils.c:av1_is_wedge_used |
233 | | |
234 | | void av1_make_inter_predictor(const uint8_t *src, int src_stride, uint8_t *dst, |
235 | | int dst_stride, |
236 | | InterPredParams *inter_pred_params, |
237 | | const SubpelParams *subpel_params); |
238 | | |
239 | | typedef void (*CalcSubpelParamsFunc)(const MV *const src_mv, |
240 | | InterPredParams *const inter_pred_params, |
241 | | MACROBLOCKD *xd, int mi_x, int mi_y, |
242 | | int ref, uint8_t **mc_buf, uint8_t **pre, |
243 | | SubpelParams *subpel_params, |
244 | | int *src_stride); |
245 | | |
246 | | void av1_build_one_inter_predictor( |
247 | | uint8_t *dst, int dst_stride, const MV *const src_mv, |
248 | | InterPredParams *inter_pred_params, MACROBLOCKD *xd, int mi_x, int mi_y, |
249 | | int ref, uint8_t **mc_buf, CalcSubpelParamsFunc calc_subpel_params_func); |
250 | | |
251 | | void av1_build_inter_predictors(const AV1_COMMON *cm, MACROBLOCKD *xd, |
252 | | int plane, const MB_MODE_INFO *mi, |
253 | | int build_for_obmc, int bw, int bh, int mi_x, |
254 | | int mi_y, uint8_t **mc_buf, |
255 | | CalcSubpelParamsFunc calc_subpel_params_func); |
256 | | |
257 | | // TODO(jkoleszar): yet another mv clamping function :-( |
258 | | static INLINE MV clamp_mv_to_umv_border_sb(const MACROBLOCKD *xd, |
259 | | const MV *src_mv, int bw, int bh, |
260 | 0 | int ss_x, int ss_y) { |
261 | | // If the MV points so far into the UMV border that no visible pixels |
262 | | // are used for reconstruction, the subpel part of the MV can be |
263 | | // discarded and the MV limited to 16 pixels with equivalent results. |
264 | 0 | const int spel_left = (AOM_INTERP_EXTEND + bw) << SUBPEL_BITS; |
265 | 0 | const int spel_right = spel_left - SUBPEL_SHIFTS; |
266 | 0 | const int spel_top = (AOM_INTERP_EXTEND + bh) << SUBPEL_BITS; |
267 | 0 | const int spel_bottom = spel_top - SUBPEL_SHIFTS; |
268 | 0 | MV clamped_mv = { (int16_t)(src_mv->row * (1 << (1 - ss_y))), |
269 | 0 | (int16_t)(src_mv->col * (1 << (1 - ss_x))) }; |
270 | 0 | assert(ss_x <= 1); |
271 | 0 | assert(ss_y <= 1); |
272 | 0 | const SubpelMvLimits mv_limits = { |
273 | 0 | xd->mb_to_left_edge * (1 << (1 - ss_x)) - spel_left, |
274 | 0 | xd->mb_to_right_edge * (1 << (1 - ss_x)) + spel_right, |
275 | 0 | xd->mb_to_top_edge * (1 << (1 - ss_y)) - spel_top, |
276 | 0 | xd->mb_to_bottom_edge * (1 << (1 - ss_y)) + spel_bottom |
277 | 0 | }; |
278 | |
|
279 | 0 | clamp_mv(&clamped_mv, &mv_limits); |
280 | |
|
281 | 0 | return clamped_mv; |
282 | 0 | } 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: bitstream.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: encoder.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: ethread.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: firstpass.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: mcomp.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: pickcdef.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: rd.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: rdopt.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: reconinter_enc.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: temporal_filter.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: tpl_model.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: var_based_part.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: variance.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 Unexecuted instantiation: allintra_vis.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: compound_type.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: encodeframe.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: encodeframe_utils.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: encodemb.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: encode_strategy.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: interp_search.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: motion_search_facade.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: partition_search.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: partition_strategy.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: nonrd_pickmode.c:clamp_mv_to_umv_border_sb Unexecuted instantiation: wedge_utils.c:clamp_mv_to_umv_border_sb |
283 | | |
284 | | static INLINE int64_t scaled_buffer_offset(int x_offset, int y_offset, |
285 | | int stride, |
286 | 1.71M | const struct scale_factors *sf) { |
287 | 1.71M | const int x = |
288 | 1.71M | sf ? sf->scale_value_x(x_offset, sf) >> SCALE_EXTRA_BITS : x_offset; |
289 | 1.71M | const int y = |
290 | 1.71M | sf ? sf->scale_value_y(y_offset, sf) >> SCALE_EXTRA_BITS : y_offset; |
291 | 1.71M | return (int64_t)y * stride + x; |
292 | 1.71M | } Unexecuted instantiation: decodeframe.c:scaled_buffer_offset Unexecuted instantiation: decodemv.c:scaled_buffer_offset Unexecuted instantiation: decoder.c:scaled_buffer_offset Unexecuted instantiation: bitstream.c:scaled_buffer_offset Unexecuted instantiation: encoder.c:scaled_buffer_offset Unexecuted instantiation: ethread.c:scaled_buffer_offset Unexecuted instantiation: firstpass.c:scaled_buffer_offset Unexecuted instantiation: mcomp.c:scaled_buffer_offset Unexecuted instantiation: pickcdef.c:scaled_buffer_offset Unexecuted instantiation: rd.c:scaled_buffer_offset Unexecuted instantiation: rdopt.c:scaled_buffer_offset Unexecuted instantiation: reconinter_enc.c:scaled_buffer_offset Unexecuted instantiation: temporal_filter.c:scaled_buffer_offset Unexecuted instantiation: tpl_model.c:scaled_buffer_offset Unexecuted instantiation: var_based_part.c:scaled_buffer_offset Unexecuted instantiation: variance.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 | 286 | 830k | const struct scale_factors *sf) { | 287 | 830k | const int x = | 288 | 830k | sf ? sf->scale_value_x(x_offset, sf) >> SCALE_EXTRA_BITS : x_offset; | 289 | 830k | const int y = | 290 | 830k | sf ? sf->scale_value_y(y_offset, sf) >> SCALE_EXTRA_BITS : y_offset; | 291 | 830k | return (int64_t)y * stride + x; | 292 | 830k | } |
Unexecuted instantiation: thread_common.c:scaled_buffer_offset Unexecuted instantiation: allintra_vis.c:scaled_buffer_offset Unexecuted instantiation: compound_type.c:scaled_buffer_offset encodeframe.c:scaled_buffer_offset Line | Count | Source | 286 | 880k | const struct scale_factors *sf) { | 287 | 880k | const int x = | 288 | 880k | sf ? sf->scale_value_x(x_offset, sf) >> SCALE_EXTRA_BITS : x_offset; | 289 | 880k | const int y = | 290 | 880k | sf ? sf->scale_value_y(y_offset, sf) >> SCALE_EXTRA_BITS : y_offset; | 291 | 880k | return (int64_t)y * stride + x; | 292 | 880k | } |
Unexecuted instantiation: encodeframe_utils.c:scaled_buffer_offset Unexecuted instantiation: encodemb.c:scaled_buffer_offset Unexecuted instantiation: encode_strategy.c:scaled_buffer_offset Unexecuted instantiation: interp_search.c:scaled_buffer_offset Unexecuted instantiation: motion_search_facade.c:scaled_buffer_offset Unexecuted instantiation: partition_search.c:scaled_buffer_offset Unexecuted instantiation: partition_strategy.c:scaled_buffer_offset Unexecuted instantiation: nonrd_pickmode.c:scaled_buffer_offset Unexecuted instantiation: wedge_utils.c:scaled_buffer_offset |
293 | | |
294 | | static INLINE void setup_pred_plane(struct buf_2d *dst, BLOCK_SIZE bsize, |
295 | | uint8_t *src, int width, int height, |
296 | | int stride, int mi_row, int mi_col, |
297 | | const struct scale_factors *scale, |
298 | 1.71M | int subsampling_x, int subsampling_y) { |
299 | | // Offset the buffer pointer |
300 | 1.71M | if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1)) |
301 | 14.0k | mi_row -= 1; |
302 | 1.71M | if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1)) |
303 | 26.3k | mi_col -= 1; |
304 | | |
305 | 1.71M | const int x = (MI_SIZE * mi_col) >> subsampling_x; |
306 | 1.71M | const int y = (MI_SIZE * mi_row) >> subsampling_y; |
307 | 1.71M | dst->buf = src + scaled_buffer_offset(x, y, stride, scale); |
308 | 1.71M | dst->buf0 = src; |
309 | 1.71M | dst->width = width; |
310 | 1.71M | dst->height = height; |
311 | 1.71M | dst->stride = stride; |
312 | 1.71M | } Unexecuted instantiation: decodeframe.c:setup_pred_plane Unexecuted instantiation: decodemv.c:setup_pred_plane Unexecuted instantiation: decoder.c:setup_pred_plane Unexecuted instantiation: bitstream.c:setup_pred_plane Unexecuted instantiation: encoder.c:setup_pred_plane Unexecuted instantiation: ethread.c:setup_pred_plane Unexecuted instantiation: firstpass.c:setup_pred_plane Unexecuted instantiation: mcomp.c:setup_pred_plane Unexecuted instantiation: pickcdef.c:setup_pred_plane Unexecuted instantiation: rd.c:setup_pred_plane Unexecuted instantiation: rdopt.c:setup_pred_plane Unexecuted instantiation: reconinter_enc.c:setup_pred_plane Unexecuted instantiation: temporal_filter.c:setup_pred_plane Unexecuted instantiation: tpl_model.c:setup_pred_plane Unexecuted instantiation: var_based_part.c:setup_pred_plane Unexecuted instantiation: variance.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 | 298 | 830k | int subsampling_x, int subsampling_y) { | 299 | | // Offset the buffer pointer | 300 | 830k | if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1)) | 301 | 7.03k | mi_row -= 1; | 302 | 830k | if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1)) | 303 | 13.1k | mi_col -= 1; | 304 | | | 305 | 830k | const int x = (MI_SIZE * mi_col) >> subsampling_x; | 306 | 830k | const int y = (MI_SIZE * mi_row) >> subsampling_y; | 307 | 830k | dst->buf = src + scaled_buffer_offset(x, y, stride, scale); | 308 | 830k | dst->buf0 = src; | 309 | 830k | dst->width = width; | 310 | 830k | dst->height = height; | 311 | 830k | dst->stride = stride; | 312 | 830k | } |
Unexecuted instantiation: thread_common.c:setup_pred_plane Unexecuted instantiation: allintra_vis.c:setup_pred_plane Unexecuted instantiation: compound_type.c:setup_pred_plane encodeframe.c:setup_pred_plane Line | Count | Source | 298 | 880k | int subsampling_x, int subsampling_y) { | 299 | | // Offset the buffer pointer | 300 | 880k | if (subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1)) | 301 | 7.03k | mi_row -= 1; | 302 | 880k | if (subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1)) | 303 | 13.1k | mi_col -= 1; | 304 | | | 305 | 880k | const int x = (MI_SIZE * mi_col) >> subsampling_x; | 306 | 880k | const int y = (MI_SIZE * mi_row) >> subsampling_y; | 307 | 880k | dst->buf = src + scaled_buffer_offset(x, y, stride, scale); | 308 | 880k | dst->buf0 = src; | 309 | 880k | dst->width = width; | 310 | 880k | dst->height = height; | 311 | 880k | dst->stride = stride; | 312 | 880k | } |
Unexecuted instantiation: encodeframe_utils.c:setup_pred_plane Unexecuted instantiation: encodemb.c:setup_pred_plane Unexecuted instantiation: encode_strategy.c:setup_pred_plane Unexecuted instantiation: interp_search.c:setup_pred_plane Unexecuted instantiation: motion_search_facade.c:setup_pred_plane Unexecuted instantiation: partition_search.c:setup_pred_plane Unexecuted instantiation: partition_strategy.c:setup_pred_plane Unexecuted instantiation: nonrd_pickmode.c:setup_pred_plane Unexecuted instantiation: wedge_utils.c:setup_pred_plane |
313 | | |
314 | | void av1_setup_dst_planes(struct macroblockd_plane *planes, BLOCK_SIZE bsize, |
315 | | const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, |
316 | | const int plane_start, const int plane_end); |
317 | | |
318 | | void av1_setup_pre_planes(MACROBLOCKD *xd, int idx, |
319 | | const YV12_BUFFER_CONFIG *src, int mi_row, int mi_col, |
320 | | const struct scale_factors *sf, const int num_planes); |
321 | | |
322 | | static INLINE void set_default_interp_filters( |
323 | 0 | MB_MODE_INFO *const mbmi, InterpFilter frame_interp_filter) { |
324 | 0 | mbmi->interp_filters = |
325 | 0 | av1_broadcast_interp_filter(av1_unswitchable_filter(frame_interp_filter)); |
326 | 0 | } 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: bitstream.c:set_default_interp_filters Unexecuted instantiation: encoder.c:set_default_interp_filters Unexecuted instantiation: ethread.c:set_default_interp_filters Unexecuted instantiation: firstpass.c:set_default_interp_filters Unexecuted instantiation: mcomp.c:set_default_interp_filters Unexecuted instantiation: pickcdef.c:set_default_interp_filters Unexecuted instantiation: rd.c:set_default_interp_filters Unexecuted instantiation: rdopt.c:set_default_interp_filters Unexecuted instantiation: reconinter_enc.c:set_default_interp_filters Unexecuted instantiation: temporal_filter.c:set_default_interp_filters Unexecuted instantiation: tpl_model.c:set_default_interp_filters Unexecuted instantiation: var_based_part.c:set_default_interp_filters Unexecuted instantiation: variance.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 Unexecuted instantiation: allintra_vis.c:set_default_interp_filters Unexecuted instantiation: compound_type.c:set_default_interp_filters Unexecuted instantiation: encodeframe.c:set_default_interp_filters Unexecuted instantiation: encodeframe_utils.c:set_default_interp_filters Unexecuted instantiation: encodemb.c:set_default_interp_filters Unexecuted instantiation: encode_strategy.c:set_default_interp_filters Unexecuted instantiation: interp_search.c:set_default_interp_filters Unexecuted instantiation: motion_search_facade.c:set_default_interp_filters Unexecuted instantiation: partition_search.c:set_default_interp_filters Unexecuted instantiation: partition_strategy.c:set_default_interp_filters Unexecuted instantiation: nonrd_pickmode.c:set_default_interp_filters Unexecuted instantiation: wedge_utils.c:set_default_interp_filters |
327 | | |
328 | 0 | static INLINE int av1_is_interp_needed(const MACROBLOCKD *const xd) { |
329 | 0 | const MB_MODE_INFO *const mbmi = xd->mi[0]; |
330 | 0 | if (mbmi->skip_mode) return 0; |
331 | 0 | if (mbmi->motion_mode == WARPED_CAUSAL) return 0; |
332 | 0 | if (is_nontrans_global_motion(xd, xd->mi[0])) return 0; |
333 | 0 | return 1; |
334 | 0 | } 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: bitstream.c:av1_is_interp_needed Unexecuted instantiation: encoder.c:av1_is_interp_needed Unexecuted instantiation: ethread.c:av1_is_interp_needed Unexecuted instantiation: firstpass.c:av1_is_interp_needed Unexecuted instantiation: mcomp.c:av1_is_interp_needed Unexecuted instantiation: pickcdef.c:av1_is_interp_needed Unexecuted instantiation: rd.c:av1_is_interp_needed Unexecuted instantiation: rdopt.c:av1_is_interp_needed Unexecuted instantiation: reconinter_enc.c:av1_is_interp_needed Unexecuted instantiation: temporal_filter.c:av1_is_interp_needed Unexecuted instantiation: tpl_model.c:av1_is_interp_needed Unexecuted instantiation: var_based_part.c:av1_is_interp_needed Unexecuted instantiation: variance.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 Unexecuted instantiation: allintra_vis.c:av1_is_interp_needed Unexecuted instantiation: compound_type.c:av1_is_interp_needed Unexecuted instantiation: encodeframe.c:av1_is_interp_needed Unexecuted instantiation: encodeframe_utils.c:av1_is_interp_needed Unexecuted instantiation: encodemb.c:av1_is_interp_needed Unexecuted instantiation: encode_strategy.c:av1_is_interp_needed Unexecuted instantiation: interp_search.c:av1_is_interp_needed Unexecuted instantiation: motion_search_facade.c:av1_is_interp_needed Unexecuted instantiation: partition_search.c:av1_is_interp_needed Unexecuted instantiation: partition_strategy.c:av1_is_interp_needed Unexecuted instantiation: nonrd_pickmode.c:av1_is_interp_needed Unexecuted instantiation: wedge_utils.c:av1_is_interp_needed |
335 | | |
336 | | // Sets up buffers 'dst_buf1' and 'dst_buf2' from relevant buffers in 'xd' for |
337 | | // subsequent use in OBMC prediction. |
338 | | void av1_setup_obmc_dst_bufs(MACROBLOCKD *xd, uint8_t **dst_buf1, |
339 | | uint8_t **dst_buf2); |
340 | | |
341 | | void av1_setup_build_prediction_by_above_pred( |
342 | | MACROBLOCKD *xd, int rel_mi_col, uint8_t above_mi_width, |
343 | | MB_MODE_INFO *above_mbmi, struct build_prediction_ctxt *ctxt, |
344 | | const int num_planes); |
345 | | void av1_setup_build_prediction_by_left_pred(MACROBLOCKD *xd, int rel_mi_row, |
346 | | uint8_t left_mi_height, |
347 | | MB_MODE_INFO *left_mbmi, |
348 | | struct build_prediction_ctxt *ctxt, |
349 | | const int num_planes); |
350 | | void av1_build_obmc_inter_prediction(const AV1_COMMON *cm, MACROBLOCKD *xd, |
351 | | uint8_t *above[MAX_MB_PLANE], |
352 | | int above_stride[MAX_MB_PLANE], |
353 | | uint8_t *left[MAX_MB_PLANE], |
354 | | int left_stride[MAX_MB_PLANE]); |
355 | | |
356 | | const uint8_t *av1_get_obmc_mask(int length); |
357 | | void av1_count_overlappable_neighbors(const AV1_COMMON *cm, MACROBLOCKD *xd); |
358 | | |
359 | 1.28k | #define MASK_MASTER_SIZE ((MAX_WEDGE_SIZE) << 1) |
360 | 577 | #define MASK_MASTER_STRIDE (MASK_MASTER_SIZE) |
361 | | |
362 | | void av1_init_wedge_masks(); |
363 | | |
364 | | static INLINE const uint8_t *av1_get_contiguous_soft_mask(int8_t wedge_index, |
365 | | int8_t wedge_sign, |
366 | 0 | BLOCK_SIZE sb_type) { |
367 | 0 | return av1_wedge_params_lookup[sb_type].masks[wedge_sign][wedge_index]; |
368 | 0 | } 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: bitstream.c:av1_get_contiguous_soft_mask Unexecuted instantiation: encoder.c:av1_get_contiguous_soft_mask Unexecuted instantiation: ethread.c:av1_get_contiguous_soft_mask Unexecuted instantiation: firstpass.c:av1_get_contiguous_soft_mask Unexecuted instantiation: mcomp.c:av1_get_contiguous_soft_mask Unexecuted instantiation: pickcdef.c:av1_get_contiguous_soft_mask Unexecuted instantiation: rd.c:av1_get_contiguous_soft_mask Unexecuted instantiation: rdopt.c:av1_get_contiguous_soft_mask Unexecuted instantiation: reconinter_enc.c:av1_get_contiguous_soft_mask Unexecuted instantiation: temporal_filter.c:av1_get_contiguous_soft_mask Unexecuted instantiation: tpl_model.c:av1_get_contiguous_soft_mask Unexecuted instantiation: var_based_part.c:av1_get_contiguous_soft_mask Unexecuted instantiation: variance.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 Unexecuted instantiation: reconinter.c:av1_get_contiguous_soft_mask Unexecuted instantiation: thread_common.c:av1_get_contiguous_soft_mask Unexecuted instantiation: allintra_vis.c:av1_get_contiguous_soft_mask Unexecuted instantiation: compound_type.c:av1_get_contiguous_soft_mask Unexecuted instantiation: encodeframe.c:av1_get_contiguous_soft_mask Unexecuted instantiation: encodeframe_utils.c:av1_get_contiguous_soft_mask Unexecuted instantiation: encodemb.c:av1_get_contiguous_soft_mask Unexecuted instantiation: encode_strategy.c:av1_get_contiguous_soft_mask Unexecuted instantiation: interp_search.c:av1_get_contiguous_soft_mask Unexecuted instantiation: motion_search_facade.c:av1_get_contiguous_soft_mask Unexecuted instantiation: partition_search.c:av1_get_contiguous_soft_mask Unexecuted instantiation: partition_strategy.c:av1_get_contiguous_soft_mask Unexecuted instantiation: nonrd_pickmode.c:av1_get_contiguous_soft_mask Unexecuted instantiation: wedge_utils.c:av1_get_contiguous_soft_mask |
369 | | |
370 | | void av1_dist_wtd_comp_weight_assign(const AV1_COMMON *cm, |
371 | | const MB_MODE_INFO *mbmi, int *fwd_offset, |
372 | | int *bck_offset, |
373 | | int *use_dist_wtd_comp_avg, |
374 | | int is_compound); |
375 | | |
376 | | const uint8_t *av1_get_compound_type_mask( |
377 | | const INTERINTER_COMPOUND_DATA *const comp_data, BLOCK_SIZE sb_type); |
378 | | |
379 | | // build interintra_predictors for one plane |
380 | | void av1_build_interintra_predictor(const AV1_COMMON *cm, MACROBLOCKD *xd, |
381 | | uint8_t *pred, int stride, |
382 | | const BUFFER_SET *ctx, int plane, |
383 | | BLOCK_SIZE bsize); |
384 | | |
385 | | void av1_build_intra_predictors_for_interintra(const AV1_COMMON *cm, |
386 | | MACROBLOCKD *xd, |
387 | | BLOCK_SIZE bsize, int plane, |
388 | | const BUFFER_SET *ctx, |
389 | | uint8_t *dst, int dst_stride); |
390 | | |
391 | | void av1_combine_interintra(MACROBLOCKD *xd, BLOCK_SIZE bsize, int plane, |
392 | | const uint8_t *inter_pred, int inter_stride, |
393 | | const uint8_t *intra_pred, int intra_stride); |
394 | | |
395 | | int av1_allow_warp(const MB_MODE_INFO *const mbmi, |
396 | | const WarpTypesAllowed *const warp_types, |
397 | | const WarpedMotionParams *const gm_params, |
398 | | int build_for_obmc, const struct scale_factors *const sf, |
399 | | WarpedMotionParams *final_warp_params); |
400 | | |
401 | | #ifdef __cplusplus |
402 | | } // extern "C" |
403 | | #endif |
404 | | |
405 | | #endif // AOM_AV1_COMMON_RECONINTER_H_ |