/src/aom/av1/common/thread_common.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_THREAD_COMMON_H_ |
13 | | #define AOM_AV1_COMMON_THREAD_COMMON_H_ |
14 | | |
15 | | #include "config/aom_config.h" |
16 | | |
17 | | #include "av1/common/av1_loopfilter.h" |
18 | | #include "av1/common/cdef.h" |
19 | | #include "aom_util/aom_pthread.h" |
20 | | #include "aom_util/aom_thread.h" |
21 | | |
22 | | #ifdef __cplusplus |
23 | | extern "C" { |
24 | | #endif |
25 | | |
26 | | struct AV1Common; |
27 | | |
28 | | typedef struct AV1LfMTInfo { |
29 | | int mi_row; |
30 | | int plane; |
31 | | int dir; |
32 | | int lpf_opt_level; |
33 | | } AV1LfMTInfo; |
34 | | |
35 | | // Loopfilter row synchronization |
36 | | typedef struct AV1LfSyncData { |
37 | | #if CONFIG_MULTITHREAD |
38 | | pthread_mutex_t *mutex_[MAX_MB_PLANE]; |
39 | | pthread_cond_t *cond_[MAX_MB_PLANE]; |
40 | | #endif |
41 | | // Allocate memory to store the loop-filtered superblock index in each row. |
42 | | int *cur_sb_col[MAX_MB_PLANE]; |
43 | | // The optimal sync_range for different resolution and platform should be |
44 | | // determined by testing. Currently, it is chosen to be a power-of-2 number. |
45 | | int sync_range; |
46 | | int rows; |
47 | | |
48 | | // Row-based parallel loopfilter data |
49 | | LFWorkerData *lfdata; |
50 | | int num_workers; |
51 | | |
52 | | #if CONFIG_MULTITHREAD |
53 | | pthread_mutex_t *job_mutex; |
54 | | #endif |
55 | | AV1LfMTInfo *job_queue; |
56 | | int jobs_enqueued; |
57 | | int jobs_dequeued; |
58 | | |
59 | | // Initialized to false, set to true by the worker thread that encounters an |
60 | | // error in order to abort the processing of other worker threads. |
61 | | bool lf_mt_exit; |
62 | | } AV1LfSync; |
63 | | |
64 | | typedef struct AV1LrMTInfo { |
65 | | int v_start; |
66 | | int v_end; |
67 | | int lr_unit_row; |
68 | | int plane; |
69 | | int sync_mode; |
70 | | int v_copy_start; |
71 | | int v_copy_end; |
72 | | } AV1LrMTInfo; |
73 | | |
74 | | typedef struct LoopRestorationWorkerData { |
75 | | int32_t *rst_tmpbuf; |
76 | | void *rlbs; |
77 | | void *lr_ctxt; |
78 | | int do_extend_border; |
79 | | struct aom_internal_error_info error_info; |
80 | | } LRWorkerData; |
81 | | |
82 | | // Looprestoration row synchronization |
83 | | typedef struct AV1LrSyncData { |
84 | | #if CONFIG_MULTITHREAD |
85 | | pthread_mutex_t *mutex_[MAX_MB_PLANE]; |
86 | | pthread_cond_t *cond_[MAX_MB_PLANE]; |
87 | | #endif |
88 | | // Allocate memory to store the loop-restoration block index in each row. |
89 | | int *cur_sb_col[MAX_MB_PLANE]; |
90 | | // The optimal sync_range for different resolution and platform should be |
91 | | // determined by testing. Currently, it is chosen to be a power-of-2 number. |
92 | | int sync_range; |
93 | | int rows; |
94 | | int num_planes; |
95 | | |
96 | | int num_workers; |
97 | | |
98 | | #if CONFIG_MULTITHREAD |
99 | | pthread_mutex_t *job_mutex; |
100 | | #endif |
101 | | // Row-based parallel loopfilter data |
102 | | LRWorkerData *lrworkerdata; |
103 | | |
104 | | AV1LrMTInfo *job_queue; |
105 | | int jobs_enqueued; |
106 | | int jobs_dequeued; |
107 | | // Initialized to false, set to true by the worker thread that encounters |
108 | | // an error in order to abort the processing of other worker threads. |
109 | | bool lr_mt_exit; |
110 | | } AV1LrSync; |
111 | | |
112 | | typedef struct AV1CdefWorker { |
113 | | AV1_COMMON *cm; |
114 | | MACROBLOCKD *xd; |
115 | | uint16_t *colbuf[MAX_MB_PLANE]; |
116 | | uint16_t *srcbuf; |
117 | | uint16_t *linebuf[MAX_MB_PLANE]; |
118 | | cdef_init_fb_row_t cdef_init_fb_row_fn; |
119 | | int do_extend_border; |
120 | | struct aom_internal_error_info error_info; |
121 | | } AV1CdefWorkerData; |
122 | | |
123 | | typedef struct AV1CdefRowSync { |
124 | | #if CONFIG_MULTITHREAD |
125 | | pthread_mutex_t *row_mutex_; |
126 | | pthread_cond_t *row_cond_; |
127 | | #endif // CONFIG_MULTITHREAD |
128 | | int is_row_done; |
129 | | } AV1CdefRowSync; |
130 | | |
131 | | // Data related to CDEF search multi-thread synchronization. |
132 | | typedef struct AV1CdefSyncData { |
133 | | #if CONFIG_MULTITHREAD |
134 | | // Mutex lock used while dispatching jobs. |
135 | | pthread_mutex_t *mutex_; |
136 | | #endif // CONFIG_MULTITHREAD |
137 | | // Data related to CDEF row mt sync information |
138 | | AV1CdefRowSync *cdef_row_mt; |
139 | | // Flag to indicate all blocks are processed and end of frame is reached |
140 | | int end_of_frame; |
141 | | // Row index in units of 64x64 block |
142 | | int fbr; |
143 | | // Column index in units of 64x64 block |
144 | | int fbc; |
145 | | // Initialized to false, set to true by the worker thread that encounters |
146 | | // an error in order to abort the processing of other worker threads. |
147 | | bool cdef_mt_exit; |
148 | | } AV1CdefSync; |
149 | | |
150 | | void av1_cdef_frame_mt(AV1_COMMON *const cm, MACROBLOCKD *const xd, |
151 | | AV1CdefWorkerData *const cdef_worker, |
152 | | AVxWorker *const workers, AV1CdefSync *const cdef_sync, |
153 | | int num_workers, cdef_init_fb_row_t cdef_init_fb_row_fn, |
154 | | int do_extend_border); |
155 | | void av1_cdef_init_fb_row_mt(const AV1_COMMON *const cm, |
156 | | const MACROBLOCKD *const xd, |
157 | | CdefBlockInfo *const fb_info, |
158 | | uint16_t **const linebuf, uint16_t *const src, |
159 | | struct AV1CdefSyncData *const cdef_sync, int fbr); |
160 | | void av1_cdef_copy_sb8_16(const AV1_COMMON *const cm, uint16_t *const dst, |
161 | | int dstride, const uint8_t *src, int src_voffset, |
162 | | int src_hoffset, int sstride, int vsize, int hsize); |
163 | | void av1_cdef_copy_sb8_16_lowbd(uint16_t *const dst, int dstride, |
164 | | const uint8_t *src, int src_voffset, |
165 | | int src_hoffset, int sstride, int vsize, |
166 | | int hsize); |
167 | | #if CONFIG_AV1_HIGHBITDEPTH |
168 | | void av1_cdef_copy_sb8_16_highbd(uint16_t *const dst, int dstride, |
169 | | const uint8_t *src, int src_voffset, |
170 | | int src_hoffset, int sstride, int vsize, |
171 | | int hsize); |
172 | | #endif // CONFIG_AV1_HIGHBITDEPTH |
173 | | void av1_alloc_cdef_sync(AV1_COMMON *const cm, AV1CdefSync *cdef_sync, |
174 | | int num_workers); |
175 | | void av1_free_cdef_sync(AV1CdefSync *cdef_sync); |
176 | | |
177 | | // Deallocate loopfilter synchronization related mutex and data. |
178 | | void av1_loop_filter_dealloc(AV1LfSync *lf_sync); |
179 | | void av1_loop_filter_alloc(AV1LfSync *lf_sync, AV1_COMMON *cm, int rows, |
180 | | int width, int num_workers); |
181 | | |
182 | | void av1_set_vert_loop_filter_done(AV1_COMMON *cm, AV1LfSync *lf_sync, |
183 | | int num_mis_in_lpf_unit_height_log2); |
184 | | |
185 | | void av1_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame, struct AV1Common *cm, |
186 | | struct macroblockd *xd, int plane_start, |
187 | | int plane_end, int partial_frame, |
188 | | AVxWorker *workers, int num_workers, |
189 | | AV1LfSync *lf_sync, int lpf_opt_level); |
190 | | |
191 | | #if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER |
192 | | void av1_loop_restoration_filter_frame_mt(YV12_BUFFER_CONFIG *frame, |
193 | | struct AV1Common *cm, |
194 | | int optimized_lr, AVxWorker *workers, |
195 | | int num_workers, AV1LrSync *lr_sync, |
196 | | void *lr_ctxt, int do_extend_border); |
197 | | void av1_loop_restoration_dealloc(AV1LrSync *lr_sync); |
198 | | void av1_loop_restoration_alloc(AV1LrSync *lr_sync, AV1_COMMON *cm, |
199 | | int num_workers, int num_rows_lr, |
200 | | int num_planes, int width); |
201 | | #endif // !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER |
202 | | |
203 | | int av1_get_intrabc_extra_top_right_sb_delay(const AV1_COMMON *cm); |
204 | | |
205 | | void av1_thread_loop_filter_rows( |
206 | | const YV12_BUFFER_CONFIG *const frame_buffer, AV1_COMMON *const cm, |
207 | | struct macroblockd_plane *planes, MACROBLOCKD *xd, int mi_row, int plane, |
208 | | int dir, int lpf_opt_level, AV1LfSync *const lf_sync, |
209 | | struct aom_internal_error_info *error_info, |
210 | | AV1_DEBLOCKING_PARAMETERS *params_buf, TX_SIZE *tx_buf, int mib_size_log2); |
211 | | |
212 | | static AOM_FORCE_INLINE bool skip_loop_filter_plane( |
213 | 280k | const int planes_to_lf[MAX_MB_PLANE], int plane, int lpf_opt_level) { |
214 | | // If LPF_PICK_METHOD is LPF_PICK_FROM_Q, we have the option to filter both |
215 | | // chroma planes together |
216 | 280k | if (lpf_opt_level == 2) { |
217 | 0 | if (plane == AOM_PLANE_Y) { |
218 | 0 | return !planes_to_lf[plane]; |
219 | 0 | } |
220 | 0 | if (plane == AOM_PLANE_U) { |
221 | | // U and V are handled together |
222 | 0 | return !planes_to_lf[1] && !planes_to_lf[2]; |
223 | 0 | } |
224 | 0 | assert(plane == AOM_PLANE_V); |
225 | 0 | if (plane == AOM_PLANE_V) { |
226 | | // V is handled when u is filtered |
227 | 0 | return true; |
228 | 0 | } |
229 | 0 | } |
230 | | |
231 | | // Normal operation mode |
232 | 280k | return !planes_to_lf[plane]; |
233 | 280k | } Unexecuted instantiation: av1_dx_iface.c:skip_loop_filter_plane Unexecuted instantiation: decodeframe.c:skip_loop_filter_plane Unexecuted instantiation: decodemv.c:skip_loop_filter_plane Unexecuted instantiation: decoder.c:skip_loop_filter_plane Unexecuted instantiation: decodetxb.c:skip_loop_filter_plane Unexecuted instantiation: detokenize.c:skip_loop_filter_plane Unexecuted instantiation: obu.c:skip_loop_filter_plane Unexecuted instantiation: av1_cx_iface.c:skip_loop_filter_plane Unexecuted instantiation: allintra_vis.c:skip_loop_filter_plane Unexecuted instantiation: av1_quantize.c:skip_loop_filter_plane Unexecuted instantiation: bitstream.c:skip_loop_filter_plane Unexecuted instantiation: context_tree.c:skip_loop_filter_plane Unexecuted instantiation: encodeframe.c:skip_loop_filter_plane Unexecuted instantiation: encodeframe_utils.c:skip_loop_filter_plane Unexecuted instantiation: encodemb.c:skip_loop_filter_plane Unexecuted instantiation: encodemv.c:skip_loop_filter_plane Unexecuted instantiation: encoder.c:skip_loop_filter_plane Unexecuted instantiation: encoder_utils.c:skip_loop_filter_plane Unexecuted instantiation: encodetxb.c:skip_loop_filter_plane Unexecuted instantiation: ethread.c:skip_loop_filter_plane Unexecuted instantiation: firstpass.c:skip_loop_filter_plane Unexecuted instantiation: global_motion_facade.c:skip_loop_filter_plane Unexecuted instantiation: level.c:skip_loop_filter_plane Unexecuted instantiation: lookahead.c:skip_loop_filter_plane Unexecuted instantiation: mcomp.c:skip_loop_filter_plane Unexecuted instantiation: mv_prec.c:skip_loop_filter_plane Unexecuted instantiation: palette.c:skip_loop_filter_plane Unexecuted instantiation: partition_search.c:skip_loop_filter_plane Unexecuted instantiation: partition_strategy.c:skip_loop_filter_plane Unexecuted instantiation: pass2_strategy.c:skip_loop_filter_plane Unexecuted instantiation: pickcdef.c:skip_loop_filter_plane Unexecuted instantiation: picklpf.c:skip_loop_filter_plane Unexecuted instantiation: pickrst.c:skip_loop_filter_plane Unexecuted instantiation: ratectrl.c:skip_loop_filter_plane Unexecuted instantiation: rd.c:skip_loop_filter_plane Unexecuted instantiation: rdopt.c:skip_loop_filter_plane Unexecuted instantiation: nonrd_pickmode.c:skip_loop_filter_plane Unexecuted instantiation: nonrd_opt.c:skip_loop_filter_plane Unexecuted instantiation: segmentation.c:skip_loop_filter_plane Unexecuted instantiation: speed_features.c:skip_loop_filter_plane Unexecuted instantiation: superres_scale.c:skip_loop_filter_plane Unexecuted instantiation: svc_layercontext.c:skip_loop_filter_plane Unexecuted instantiation: temporal_filter.c:skip_loop_filter_plane Unexecuted instantiation: tokenize.c:skip_loop_filter_plane Unexecuted instantiation: tpl_model.c:skip_loop_filter_plane Unexecuted instantiation: tx_search.c:skip_loop_filter_plane Unexecuted instantiation: txb_rdopt.c:skip_loop_filter_plane Unexecuted instantiation: intra_mode_search.c:skip_loop_filter_plane Unexecuted instantiation: var_based_part.c:skip_loop_filter_plane Unexecuted instantiation: av1_noise_estimate.c:skip_loop_filter_plane Unexecuted instantiation: alloccommon.c:skip_loop_filter_plane Unexecuted instantiation: cdef.c:skip_loop_filter_plane Unexecuted instantiation: restoration.c:skip_loop_filter_plane thread_common.c:skip_loop_filter_plane Line | Count | Source | 213 | 280k | const int planes_to_lf[MAX_MB_PLANE], int plane, int lpf_opt_level) { | 214 | | // If LPF_PICK_METHOD is LPF_PICK_FROM_Q, we have the option to filter both | 215 | | // chroma planes together | 216 | 280k | if (lpf_opt_level == 2) { | 217 | 0 | if (plane == AOM_PLANE_Y) { | 218 | 0 | return !planes_to_lf[plane]; | 219 | 0 | } | 220 | 0 | if (plane == AOM_PLANE_U) { | 221 | | // U and V are handled together | 222 | 0 | return !planes_to_lf[1] && !planes_to_lf[2]; | 223 | 0 | } | 224 | 0 | assert(plane == AOM_PLANE_V); | 225 | 0 | if (plane == AOM_PLANE_V) { | 226 | | // V is handled when u is filtered | 227 | 0 | return true; | 228 | 0 | } | 229 | 0 | } | 230 | | | 231 | | // Normal operation mode | 232 | 280k | return !planes_to_lf[plane]; | 233 | 280k | } |
Unexecuted instantiation: aq_complexity.c:skip_loop_filter_plane Unexecuted instantiation: aq_cyclicrefresh.c:skip_loop_filter_plane Unexecuted instantiation: aq_variance.c:skip_loop_filter_plane Unexecuted instantiation: compound_type.c:skip_loop_filter_plane Unexecuted instantiation: encode_strategy.c:skip_loop_filter_plane Unexecuted instantiation: global_motion.c:skip_loop_filter_plane Unexecuted instantiation: gop_structure.c:skip_loop_filter_plane Unexecuted instantiation: interp_search.c:skip_loop_filter_plane Unexecuted instantiation: motion_search_facade.c:skip_loop_filter_plane |
234 | | |
235 | | static inline void enqueue_lf_jobs(AV1LfSync *lf_sync, int start, int stop, |
236 | | const int planes_to_lf[MAX_MB_PLANE], |
237 | | int lpf_opt_level, |
238 | 19.3k | int num_mis_in_lpf_unit_height) { |
239 | 19.3k | int mi_row, plane, dir; |
240 | 19.3k | AV1LfMTInfo *lf_job_queue = lf_sync->job_queue; |
241 | 19.3k | lf_sync->jobs_enqueued = 0; |
242 | 19.3k | lf_sync->jobs_dequeued = 0; |
243 | | |
244 | | // Launch all vertical jobs first, as they are blocking the horizontal ones. |
245 | | // Launch top row jobs for all planes first, in case the output can be |
246 | | // partially reconstructed row by row. |
247 | 57.9k | for (dir = 0; dir < 2; ++dir) { |
248 | 126k | for (mi_row = start; mi_row < stop; mi_row += num_mis_in_lpf_unit_height) { |
249 | 351k | for (plane = 0; plane < MAX_MB_PLANE; ++plane) { |
250 | 263k | if (skip_loop_filter_plane(planes_to_lf, plane, lpf_opt_level)) { |
251 | 54.2k | continue; |
252 | 54.2k | } |
253 | 209k | if (!planes_to_lf[plane]) continue; |
254 | 209k | lf_job_queue->mi_row = mi_row; |
255 | 209k | lf_job_queue->plane = plane; |
256 | 209k | lf_job_queue->dir = dir; |
257 | 209k | lf_job_queue->lpf_opt_level = lpf_opt_level; |
258 | 209k | lf_job_queue++; |
259 | 209k | lf_sync->jobs_enqueued++; |
260 | 209k | } |
261 | 87.7k | } |
262 | 38.6k | } |
263 | 19.3k | } Unexecuted instantiation: av1_dx_iface.c:enqueue_lf_jobs Unexecuted instantiation: decodeframe.c:enqueue_lf_jobs Unexecuted instantiation: decodemv.c:enqueue_lf_jobs Unexecuted instantiation: decoder.c:enqueue_lf_jobs Unexecuted instantiation: decodetxb.c:enqueue_lf_jobs Unexecuted instantiation: detokenize.c:enqueue_lf_jobs Unexecuted instantiation: obu.c:enqueue_lf_jobs Unexecuted instantiation: av1_cx_iface.c:enqueue_lf_jobs Unexecuted instantiation: allintra_vis.c:enqueue_lf_jobs Unexecuted instantiation: av1_quantize.c:enqueue_lf_jobs Unexecuted instantiation: bitstream.c:enqueue_lf_jobs Unexecuted instantiation: context_tree.c:enqueue_lf_jobs Unexecuted instantiation: encodeframe.c:enqueue_lf_jobs Unexecuted instantiation: encodeframe_utils.c:enqueue_lf_jobs Unexecuted instantiation: encodemb.c:enqueue_lf_jobs Unexecuted instantiation: encodemv.c:enqueue_lf_jobs Unexecuted instantiation: encoder.c:enqueue_lf_jobs Unexecuted instantiation: encoder_utils.c:enqueue_lf_jobs Unexecuted instantiation: encodetxb.c:enqueue_lf_jobs Unexecuted instantiation: ethread.c:enqueue_lf_jobs Unexecuted instantiation: firstpass.c:enqueue_lf_jobs Unexecuted instantiation: global_motion_facade.c:enqueue_lf_jobs Unexecuted instantiation: level.c:enqueue_lf_jobs Unexecuted instantiation: lookahead.c:enqueue_lf_jobs Unexecuted instantiation: mcomp.c:enqueue_lf_jobs Unexecuted instantiation: mv_prec.c:enqueue_lf_jobs Unexecuted instantiation: palette.c:enqueue_lf_jobs Unexecuted instantiation: partition_search.c:enqueue_lf_jobs Unexecuted instantiation: partition_strategy.c:enqueue_lf_jobs Unexecuted instantiation: pass2_strategy.c:enqueue_lf_jobs Unexecuted instantiation: pickcdef.c:enqueue_lf_jobs Unexecuted instantiation: picklpf.c:enqueue_lf_jobs Unexecuted instantiation: pickrst.c:enqueue_lf_jobs Unexecuted instantiation: ratectrl.c:enqueue_lf_jobs Unexecuted instantiation: rd.c:enqueue_lf_jobs Unexecuted instantiation: rdopt.c:enqueue_lf_jobs Unexecuted instantiation: nonrd_pickmode.c:enqueue_lf_jobs Unexecuted instantiation: nonrd_opt.c:enqueue_lf_jobs Unexecuted instantiation: segmentation.c:enqueue_lf_jobs Unexecuted instantiation: speed_features.c:enqueue_lf_jobs Unexecuted instantiation: superres_scale.c:enqueue_lf_jobs Unexecuted instantiation: svc_layercontext.c:enqueue_lf_jobs Unexecuted instantiation: temporal_filter.c:enqueue_lf_jobs Unexecuted instantiation: tokenize.c:enqueue_lf_jobs Unexecuted instantiation: tpl_model.c:enqueue_lf_jobs Unexecuted instantiation: tx_search.c:enqueue_lf_jobs Unexecuted instantiation: txb_rdopt.c:enqueue_lf_jobs Unexecuted instantiation: intra_mode_search.c:enqueue_lf_jobs Unexecuted instantiation: var_based_part.c:enqueue_lf_jobs Unexecuted instantiation: av1_noise_estimate.c:enqueue_lf_jobs Unexecuted instantiation: alloccommon.c:enqueue_lf_jobs Unexecuted instantiation: cdef.c:enqueue_lf_jobs Unexecuted instantiation: restoration.c:enqueue_lf_jobs thread_common.c:enqueue_lf_jobs Line | Count | Source | 238 | 19.3k | int num_mis_in_lpf_unit_height) { | 239 | 19.3k | int mi_row, plane, dir; | 240 | 19.3k | AV1LfMTInfo *lf_job_queue = lf_sync->job_queue; | 241 | 19.3k | lf_sync->jobs_enqueued = 0; | 242 | 19.3k | lf_sync->jobs_dequeued = 0; | 243 | | | 244 | | // Launch all vertical jobs first, as they are blocking the horizontal ones. | 245 | | // Launch top row jobs for all planes first, in case the output can be | 246 | | // partially reconstructed row by row. | 247 | 57.9k | for (dir = 0; dir < 2; ++dir) { | 248 | 126k | for (mi_row = start; mi_row < stop; mi_row += num_mis_in_lpf_unit_height) { | 249 | 351k | for (plane = 0; plane < MAX_MB_PLANE; ++plane) { | 250 | 263k | if (skip_loop_filter_plane(planes_to_lf, plane, lpf_opt_level)) { | 251 | 54.2k | continue; | 252 | 54.2k | } | 253 | 209k | if (!planes_to_lf[plane]) continue; | 254 | 209k | lf_job_queue->mi_row = mi_row; | 255 | 209k | lf_job_queue->plane = plane; | 256 | 209k | lf_job_queue->dir = dir; | 257 | 209k | lf_job_queue->lpf_opt_level = lpf_opt_level; | 258 | 209k | lf_job_queue++; | 259 | 209k | lf_sync->jobs_enqueued++; | 260 | 209k | } | 261 | 87.7k | } | 262 | 38.6k | } | 263 | 19.3k | } |
Unexecuted instantiation: aq_complexity.c:enqueue_lf_jobs Unexecuted instantiation: aq_cyclicrefresh.c:enqueue_lf_jobs Unexecuted instantiation: aq_variance.c:enqueue_lf_jobs Unexecuted instantiation: compound_type.c:enqueue_lf_jobs Unexecuted instantiation: encode_strategy.c:enqueue_lf_jobs Unexecuted instantiation: global_motion.c:enqueue_lf_jobs Unexecuted instantiation: gop_structure.c:enqueue_lf_jobs Unexecuted instantiation: interp_search.c:enqueue_lf_jobs Unexecuted instantiation: motion_search_facade.c:enqueue_lf_jobs |
264 | | |
265 | | static inline void loop_filter_frame_mt_init( |
266 | | AV1_COMMON *cm, int start_mi_row, int end_mi_row, |
267 | | const int planes_to_lf[MAX_MB_PLANE], int num_workers, AV1LfSync *lf_sync, |
268 | 19.3k | int lpf_opt_level, int num_mis_in_lpf_unit_height_log2) { |
269 | | // Number of superblock rows |
270 | 19.3k | const int sb_rows = |
271 | 19.3k | CEIL_POWER_OF_TWO(cm->mi_params.mi_rows, num_mis_in_lpf_unit_height_log2); |
272 | | |
273 | 19.3k | if (!lf_sync->sync_range || sb_rows != lf_sync->rows || |
274 | 19.3k | num_workers > lf_sync->num_workers) { |
275 | 4.27k | av1_loop_filter_dealloc(lf_sync); |
276 | 4.27k | av1_loop_filter_alloc(lf_sync, cm, sb_rows, cm->width, num_workers); |
277 | 4.27k | } |
278 | 19.3k | lf_sync->lf_mt_exit = false; |
279 | | |
280 | | // Initialize cur_sb_col to -1 for all SB rows. |
281 | 77.2k | for (int i = 0; i < MAX_MB_PLANE; i++) { |
282 | 57.9k | memset(lf_sync->cur_sb_col[i], -1, |
283 | 57.9k | sizeof(*(lf_sync->cur_sb_col[i])) * sb_rows); |
284 | 57.9k | } |
285 | | |
286 | 19.3k | enqueue_lf_jobs(lf_sync, start_mi_row, end_mi_row, planes_to_lf, |
287 | 19.3k | lpf_opt_level, (1 << num_mis_in_lpf_unit_height_log2)); |
288 | 19.3k | } Unexecuted instantiation: av1_dx_iface.c:loop_filter_frame_mt_init Unexecuted instantiation: decodeframe.c:loop_filter_frame_mt_init Unexecuted instantiation: decodemv.c:loop_filter_frame_mt_init Unexecuted instantiation: decoder.c:loop_filter_frame_mt_init Unexecuted instantiation: decodetxb.c:loop_filter_frame_mt_init Unexecuted instantiation: detokenize.c:loop_filter_frame_mt_init Unexecuted instantiation: obu.c:loop_filter_frame_mt_init Unexecuted instantiation: av1_cx_iface.c:loop_filter_frame_mt_init Unexecuted instantiation: allintra_vis.c:loop_filter_frame_mt_init Unexecuted instantiation: av1_quantize.c:loop_filter_frame_mt_init Unexecuted instantiation: bitstream.c:loop_filter_frame_mt_init Unexecuted instantiation: context_tree.c:loop_filter_frame_mt_init Unexecuted instantiation: encodeframe.c:loop_filter_frame_mt_init Unexecuted instantiation: encodeframe_utils.c:loop_filter_frame_mt_init Unexecuted instantiation: encodemb.c:loop_filter_frame_mt_init Unexecuted instantiation: encodemv.c:loop_filter_frame_mt_init Unexecuted instantiation: encoder.c:loop_filter_frame_mt_init Unexecuted instantiation: encoder_utils.c:loop_filter_frame_mt_init Unexecuted instantiation: encodetxb.c:loop_filter_frame_mt_init Unexecuted instantiation: ethread.c:loop_filter_frame_mt_init Unexecuted instantiation: firstpass.c:loop_filter_frame_mt_init Unexecuted instantiation: global_motion_facade.c:loop_filter_frame_mt_init Unexecuted instantiation: level.c:loop_filter_frame_mt_init Unexecuted instantiation: lookahead.c:loop_filter_frame_mt_init Unexecuted instantiation: mcomp.c:loop_filter_frame_mt_init Unexecuted instantiation: mv_prec.c:loop_filter_frame_mt_init Unexecuted instantiation: palette.c:loop_filter_frame_mt_init Unexecuted instantiation: partition_search.c:loop_filter_frame_mt_init Unexecuted instantiation: partition_strategy.c:loop_filter_frame_mt_init Unexecuted instantiation: pass2_strategy.c:loop_filter_frame_mt_init Unexecuted instantiation: pickcdef.c:loop_filter_frame_mt_init Unexecuted instantiation: picklpf.c:loop_filter_frame_mt_init Unexecuted instantiation: pickrst.c:loop_filter_frame_mt_init Unexecuted instantiation: ratectrl.c:loop_filter_frame_mt_init Unexecuted instantiation: rd.c:loop_filter_frame_mt_init Unexecuted instantiation: rdopt.c:loop_filter_frame_mt_init Unexecuted instantiation: nonrd_pickmode.c:loop_filter_frame_mt_init Unexecuted instantiation: nonrd_opt.c:loop_filter_frame_mt_init Unexecuted instantiation: segmentation.c:loop_filter_frame_mt_init Unexecuted instantiation: speed_features.c:loop_filter_frame_mt_init Unexecuted instantiation: superres_scale.c:loop_filter_frame_mt_init Unexecuted instantiation: svc_layercontext.c:loop_filter_frame_mt_init Unexecuted instantiation: temporal_filter.c:loop_filter_frame_mt_init Unexecuted instantiation: tokenize.c:loop_filter_frame_mt_init Unexecuted instantiation: tpl_model.c:loop_filter_frame_mt_init Unexecuted instantiation: tx_search.c:loop_filter_frame_mt_init Unexecuted instantiation: txb_rdopt.c:loop_filter_frame_mt_init Unexecuted instantiation: intra_mode_search.c:loop_filter_frame_mt_init Unexecuted instantiation: var_based_part.c:loop_filter_frame_mt_init Unexecuted instantiation: av1_noise_estimate.c:loop_filter_frame_mt_init Unexecuted instantiation: alloccommon.c:loop_filter_frame_mt_init Unexecuted instantiation: cdef.c:loop_filter_frame_mt_init Unexecuted instantiation: restoration.c:loop_filter_frame_mt_init thread_common.c:loop_filter_frame_mt_init Line | Count | Source | 268 | 19.3k | int lpf_opt_level, int num_mis_in_lpf_unit_height_log2) { | 269 | | // Number of superblock rows | 270 | 19.3k | const int sb_rows = | 271 | 19.3k | CEIL_POWER_OF_TWO(cm->mi_params.mi_rows, num_mis_in_lpf_unit_height_log2); | 272 | | | 273 | 19.3k | if (!lf_sync->sync_range || sb_rows != lf_sync->rows || | 274 | 19.3k | num_workers > lf_sync->num_workers) { | 275 | 4.27k | av1_loop_filter_dealloc(lf_sync); | 276 | 4.27k | av1_loop_filter_alloc(lf_sync, cm, sb_rows, cm->width, num_workers); | 277 | 4.27k | } | 278 | 19.3k | lf_sync->lf_mt_exit = false; | 279 | | | 280 | | // Initialize cur_sb_col to -1 for all SB rows. | 281 | 77.2k | for (int i = 0; i < MAX_MB_PLANE; i++) { | 282 | 57.9k | memset(lf_sync->cur_sb_col[i], -1, | 283 | 57.9k | sizeof(*(lf_sync->cur_sb_col[i])) * sb_rows); | 284 | 57.9k | } | 285 | | | 286 | 19.3k | enqueue_lf_jobs(lf_sync, start_mi_row, end_mi_row, planes_to_lf, | 287 | 19.3k | lpf_opt_level, (1 << num_mis_in_lpf_unit_height_log2)); | 288 | 19.3k | } |
Unexecuted instantiation: aq_complexity.c:loop_filter_frame_mt_init Unexecuted instantiation: aq_cyclicrefresh.c:loop_filter_frame_mt_init Unexecuted instantiation: aq_variance.c:loop_filter_frame_mt_init Unexecuted instantiation: compound_type.c:loop_filter_frame_mt_init Unexecuted instantiation: encode_strategy.c:loop_filter_frame_mt_init Unexecuted instantiation: global_motion.c:loop_filter_frame_mt_init Unexecuted instantiation: gop_structure.c:loop_filter_frame_mt_init Unexecuted instantiation: interp_search.c:loop_filter_frame_mt_init Unexecuted instantiation: motion_search_facade.c:loop_filter_frame_mt_init |
289 | | |
290 | 812k | static inline AV1LfMTInfo *get_lf_job_info(AV1LfSync *lf_sync) { |
291 | 812k | AV1LfMTInfo *cur_job_info = NULL; |
292 | | |
293 | 812k | #if CONFIG_MULTITHREAD |
294 | 812k | pthread_mutex_lock(lf_sync->job_mutex); |
295 | | |
296 | 827k | if (!lf_sync->lf_mt_exit && lf_sync->jobs_dequeued < lf_sync->jobs_enqueued) { |
297 | 209k | cur_job_info = lf_sync->job_queue + lf_sync->jobs_dequeued; |
298 | 209k | lf_sync->jobs_dequeued++; |
299 | 209k | } |
300 | | |
301 | 812k | pthread_mutex_unlock(lf_sync->job_mutex); |
302 | | #else |
303 | | (void)lf_sync; |
304 | | #endif |
305 | | |
306 | 812k | return cur_job_info; |
307 | 812k | } Unexecuted instantiation: av1_dx_iface.c:get_lf_job_info Unexecuted instantiation: decodeframe.c:get_lf_job_info Unexecuted instantiation: decodemv.c:get_lf_job_info Unexecuted instantiation: decoder.c:get_lf_job_info Unexecuted instantiation: decodetxb.c:get_lf_job_info Unexecuted instantiation: detokenize.c:get_lf_job_info Unexecuted instantiation: obu.c:get_lf_job_info Unexecuted instantiation: av1_cx_iface.c:get_lf_job_info Unexecuted instantiation: allintra_vis.c:get_lf_job_info Unexecuted instantiation: av1_quantize.c:get_lf_job_info Unexecuted instantiation: bitstream.c:get_lf_job_info Unexecuted instantiation: context_tree.c:get_lf_job_info Unexecuted instantiation: encodeframe.c:get_lf_job_info Unexecuted instantiation: encodeframe_utils.c:get_lf_job_info Unexecuted instantiation: encodemb.c:get_lf_job_info Unexecuted instantiation: encodemv.c:get_lf_job_info Unexecuted instantiation: encoder.c:get_lf_job_info Unexecuted instantiation: encoder_utils.c:get_lf_job_info Unexecuted instantiation: encodetxb.c:get_lf_job_info Unexecuted instantiation: ethread.c:get_lf_job_info Unexecuted instantiation: firstpass.c:get_lf_job_info Unexecuted instantiation: global_motion_facade.c:get_lf_job_info Unexecuted instantiation: level.c:get_lf_job_info Unexecuted instantiation: lookahead.c:get_lf_job_info Unexecuted instantiation: mcomp.c:get_lf_job_info Unexecuted instantiation: mv_prec.c:get_lf_job_info Unexecuted instantiation: palette.c:get_lf_job_info Unexecuted instantiation: partition_search.c:get_lf_job_info Unexecuted instantiation: partition_strategy.c:get_lf_job_info Unexecuted instantiation: pass2_strategy.c:get_lf_job_info Unexecuted instantiation: pickcdef.c:get_lf_job_info Unexecuted instantiation: picklpf.c:get_lf_job_info Unexecuted instantiation: pickrst.c:get_lf_job_info Unexecuted instantiation: ratectrl.c:get_lf_job_info Unexecuted instantiation: rd.c:get_lf_job_info Unexecuted instantiation: rdopt.c:get_lf_job_info Unexecuted instantiation: nonrd_pickmode.c:get_lf_job_info Unexecuted instantiation: nonrd_opt.c:get_lf_job_info Unexecuted instantiation: segmentation.c:get_lf_job_info Unexecuted instantiation: speed_features.c:get_lf_job_info Unexecuted instantiation: superres_scale.c:get_lf_job_info Unexecuted instantiation: svc_layercontext.c:get_lf_job_info Unexecuted instantiation: temporal_filter.c:get_lf_job_info Unexecuted instantiation: tokenize.c:get_lf_job_info Unexecuted instantiation: tpl_model.c:get_lf_job_info Unexecuted instantiation: tx_search.c:get_lf_job_info Unexecuted instantiation: txb_rdopt.c:get_lf_job_info Unexecuted instantiation: intra_mode_search.c:get_lf_job_info Unexecuted instantiation: var_based_part.c:get_lf_job_info Unexecuted instantiation: av1_noise_estimate.c:get_lf_job_info Unexecuted instantiation: alloccommon.c:get_lf_job_info Unexecuted instantiation: cdef.c:get_lf_job_info Unexecuted instantiation: restoration.c:get_lf_job_info thread_common.c:get_lf_job_info Line | Count | Source | 290 | 812k | static inline AV1LfMTInfo *get_lf_job_info(AV1LfSync *lf_sync) { | 291 | 812k | AV1LfMTInfo *cur_job_info = NULL; | 292 | | | 293 | 812k | #if CONFIG_MULTITHREAD | 294 | 812k | pthread_mutex_lock(lf_sync->job_mutex); | 295 | | | 296 | 827k | if (!lf_sync->lf_mt_exit && lf_sync->jobs_dequeued < lf_sync->jobs_enqueued) { | 297 | 209k | cur_job_info = lf_sync->job_queue + lf_sync->jobs_dequeued; | 298 | 209k | lf_sync->jobs_dequeued++; | 299 | 209k | } | 300 | | | 301 | 812k | pthread_mutex_unlock(lf_sync->job_mutex); | 302 | | #else | 303 | | (void)lf_sync; | 304 | | #endif | 305 | | | 306 | 812k | return cur_job_info; | 307 | 812k | } |
Unexecuted instantiation: aq_complexity.c:get_lf_job_info Unexecuted instantiation: aq_cyclicrefresh.c:get_lf_job_info Unexecuted instantiation: aq_variance.c:get_lf_job_info Unexecuted instantiation: compound_type.c:get_lf_job_info Unexecuted instantiation: encode_strategy.c:get_lf_job_info Unexecuted instantiation: global_motion.c:get_lf_job_info Unexecuted instantiation: gop_structure.c:get_lf_job_info Unexecuted instantiation: interp_search.c:get_lf_job_info Unexecuted instantiation: motion_search_facade.c:get_lf_job_info |
308 | | |
309 | | static inline void loop_filter_data_reset(LFWorkerData *lf_data, |
310 | | YV12_BUFFER_CONFIG *frame_buffer, |
311 | | struct AV1Common *cm, |
312 | 618k | MACROBLOCKD *xd) { |
313 | 618k | struct macroblockd_plane *pd = xd->plane; |
314 | 618k | lf_data->frame_buffer = frame_buffer; |
315 | 618k | lf_data->cm = cm; |
316 | 618k | lf_data->xd = xd; |
317 | 2.47M | for (int i = 0; i < MAX_MB_PLANE; i++) { |
318 | 1.85M | memcpy(&lf_data->planes[i].dst, &pd[i].dst, sizeof(lf_data->planes[i].dst)); |
319 | 1.85M | lf_data->planes[i].subsampling_x = pd[i].subsampling_x; |
320 | 1.85M | lf_data->planes[i].subsampling_y = pd[i].subsampling_y; |
321 | 1.85M | } |
322 | 618k | } Unexecuted instantiation: av1_dx_iface.c:loop_filter_data_reset Unexecuted instantiation: decodeframe.c:loop_filter_data_reset Unexecuted instantiation: decodemv.c:loop_filter_data_reset Unexecuted instantiation: decoder.c:loop_filter_data_reset Unexecuted instantiation: decodetxb.c:loop_filter_data_reset Unexecuted instantiation: detokenize.c:loop_filter_data_reset Unexecuted instantiation: obu.c:loop_filter_data_reset Unexecuted instantiation: av1_cx_iface.c:loop_filter_data_reset Unexecuted instantiation: allintra_vis.c:loop_filter_data_reset Unexecuted instantiation: av1_quantize.c:loop_filter_data_reset Unexecuted instantiation: bitstream.c:loop_filter_data_reset Unexecuted instantiation: context_tree.c:loop_filter_data_reset Unexecuted instantiation: encodeframe.c:loop_filter_data_reset Unexecuted instantiation: encodeframe_utils.c:loop_filter_data_reset Unexecuted instantiation: encodemb.c:loop_filter_data_reset Unexecuted instantiation: encodemv.c:loop_filter_data_reset Unexecuted instantiation: encoder.c:loop_filter_data_reset Unexecuted instantiation: encoder_utils.c:loop_filter_data_reset Unexecuted instantiation: encodetxb.c:loop_filter_data_reset Unexecuted instantiation: ethread.c:loop_filter_data_reset Unexecuted instantiation: firstpass.c:loop_filter_data_reset Unexecuted instantiation: global_motion_facade.c:loop_filter_data_reset Unexecuted instantiation: level.c:loop_filter_data_reset Unexecuted instantiation: lookahead.c:loop_filter_data_reset Unexecuted instantiation: mcomp.c:loop_filter_data_reset Unexecuted instantiation: mv_prec.c:loop_filter_data_reset Unexecuted instantiation: palette.c:loop_filter_data_reset Unexecuted instantiation: partition_search.c:loop_filter_data_reset Unexecuted instantiation: partition_strategy.c:loop_filter_data_reset Unexecuted instantiation: pass2_strategy.c:loop_filter_data_reset Unexecuted instantiation: pickcdef.c:loop_filter_data_reset Unexecuted instantiation: picklpf.c:loop_filter_data_reset Unexecuted instantiation: pickrst.c:loop_filter_data_reset Unexecuted instantiation: ratectrl.c:loop_filter_data_reset Unexecuted instantiation: rd.c:loop_filter_data_reset Unexecuted instantiation: rdopt.c:loop_filter_data_reset Unexecuted instantiation: nonrd_pickmode.c:loop_filter_data_reset Unexecuted instantiation: nonrd_opt.c:loop_filter_data_reset Unexecuted instantiation: segmentation.c:loop_filter_data_reset Unexecuted instantiation: speed_features.c:loop_filter_data_reset Unexecuted instantiation: superres_scale.c:loop_filter_data_reset Unexecuted instantiation: svc_layercontext.c:loop_filter_data_reset Unexecuted instantiation: temporal_filter.c:loop_filter_data_reset Unexecuted instantiation: tokenize.c:loop_filter_data_reset Unexecuted instantiation: tpl_model.c:loop_filter_data_reset Unexecuted instantiation: tx_search.c:loop_filter_data_reset Unexecuted instantiation: txb_rdopt.c:loop_filter_data_reset Unexecuted instantiation: intra_mode_search.c:loop_filter_data_reset Unexecuted instantiation: var_based_part.c:loop_filter_data_reset Unexecuted instantiation: av1_noise_estimate.c:loop_filter_data_reset Unexecuted instantiation: alloccommon.c:loop_filter_data_reset Unexecuted instantiation: cdef.c:loop_filter_data_reset Unexecuted instantiation: restoration.c:loop_filter_data_reset thread_common.c:loop_filter_data_reset Line | Count | Source | 312 | 618k | MACROBLOCKD *xd) { | 313 | 618k | struct macroblockd_plane *pd = xd->plane; | 314 | 618k | lf_data->frame_buffer = frame_buffer; | 315 | 618k | lf_data->cm = cm; | 316 | 618k | lf_data->xd = xd; | 317 | 2.47M | for (int i = 0; i < MAX_MB_PLANE; i++) { | 318 | 1.85M | memcpy(&lf_data->planes[i].dst, &pd[i].dst, sizeof(lf_data->planes[i].dst)); | 319 | 1.85M | lf_data->planes[i].subsampling_x = pd[i].subsampling_x; | 320 | 1.85M | lf_data->planes[i].subsampling_y = pd[i].subsampling_y; | 321 | 1.85M | } | 322 | 618k | } |
Unexecuted instantiation: aq_complexity.c:loop_filter_data_reset Unexecuted instantiation: aq_cyclicrefresh.c:loop_filter_data_reset Unexecuted instantiation: aq_variance.c:loop_filter_data_reset Unexecuted instantiation: compound_type.c:loop_filter_data_reset Unexecuted instantiation: encode_strategy.c:loop_filter_data_reset Unexecuted instantiation: global_motion.c:loop_filter_data_reset Unexecuted instantiation: gop_structure.c:loop_filter_data_reset Unexecuted instantiation: interp_search.c:loop_filter_data_reset Unexecuted instantiation: motion_search_facade.c:loop_filter_data_reset |
323 | | |
324 | | static inline void set_planes_to_loop_filter(const struct loopfilter *lf, |
325 | | int planes_to_lf[MAX_MB_PLANE], |
326 | 21.5k | int plane_start, int plane_end) { |
327 | | // For each luma and chroma plane, whether to filter it or not. |
328 | 21.5k | planes_to_lf[0] = (lf->filter_level[0] || lf->filter_level[1]) && |
329 | 21.5k | plane_start <= 0 && 0 < plane_end; |
330 | 21.5k | planes_to_lf[1] = lf->filter_level_u && plane_start <= 1 && 1 < plane_end; |
331 | 21.5k | planes_to_lf[2] = lf->filter_level_v && plane_start <= 2 && 2 < plane_end; |
332 | 21.5k | } Unexecuted instantiation: av1_dx_iface.c:set_planes_to_loop_filter Unexecuted instantiation: decodeframe.c:set_planes_to_loop_filter Unexecuted instantiation: decodemv.c:set_planes_to_loop_filter Unexecuted instantiation: decoder.c:set_planes_to_loop_filter Unexecuted instantiation: decodetxb.c:set_planes_to_loop_filter Unexecuted instantiation: detokenize.c:set_planes_to_loop_filter Unexecuted instantiation: obu.c:set_planes_to_loop_filter Unexecuted instantiation: av1_cx_iface.c:set_planes_to_loop_filter Unexecuted instantiation: allintra_vis.c:set_planes_to_loop_filter Unexecuted instantiation: av1_quantize.c:set_planes_to_loop_filter Unexecuted instantiation: bitstream.c:set_planes_to_loop_filter Unexecuted instantiation: context_tree.c:set_planes_to_loop_filter Unexecuted instantiation: encodeframe.c:set_planes_to_loop_filter Unexecuted instantiation: encodeframe_utils.c:set_planes_to_loop_filter Unexecuted instantiation: encodemb.c:set_planes_to_loop_filter Unexecuted instantiation: encodemv.c:set_planes_to_loop_filter Unexecuted instantiation: encoder.c:set_planes_to_loop_filter Unexecuted instantiation: encoder_utils.c:set_planes_to_loop_filter Unexecuted instantiation: encodetxb.c:set_planes_to_loop_filter Unexecuted instantiation: ethread.c:set_planes_to_loop_filter Unexecuted instantiation: firstpass.c:set_planes_to_loop_filter Unexecuted instantiation: global_motion_facade.c:set_planes_to_loop_filter Unexecuted instantiation: level.c:set_planes_to_loop_filter Unexecuted instantiation: lookahead.c:set_planes_to_loop_filter Unexecuted instantiation: mcomp.c:set_planes_to_loop_filter Unexecuted instantiation: mv_prec.c:set_planes_to_loop_filter Unexecuted instantiation: palette.c:set_planes_to_loop_filter Unexecuted instantiation: partition_search.c:set_planes_to_loop_filter Unexecuted instantiation: partition_strategy.c:set_planes_to_loop_filter Unexecuted instantiation: pass2_strategy.c:set_planes_to_loop_filter Unexecuted instantiation: pickcdef.c:set_planes_to_loop_filter Unexecuted instantiation: picklpf.c:set_planes_to_loop_filter Unexecuted instantiation: pickrst.c:set_planes_to_loop_filter Unexecuted instantiation: ratectrl.c:set_planes_to_loop_filter Unexecuted instantiation: rd.c:set_planes_to_loop_filter Unexecuted instantiation: rdopt.c:set_planes_to_loop_filter Unexecuted instantiation: nonrd_pickmode.c:set_planes_to_loop_filter Unexecuted instantiation: nonrd_opt.c:set_planes_to_loop_filter Unexecuted instantiation: segmentation.c:set_planes_to_loop_filter Unexecuted instantiation: speed_features.c:set_planes_to_loop_filter Unexecuted instantiation: superres_scale.c:set_planes_to_loop_filter Unexecuted instantiation: svc_layercontext.c:set_planes_to_loop_filter Unexecuted instantiation: temporal_filter.c:set_planes_to_loop_filter Unexecuted instantiation: tokenize.c:set_planes_to_loop_filter Unexecuted instantiation: tpl_model.c:set_planes_to_loop_filter Unexecuted instantiation: tx_search.c:set_planes_to_loop_filter Unexecuted instantiation: txb_rdopt.c:set_planes_to_loop_filter Unexecuted instantiation: intra_mode_search.c:set_planes_to_loop_filter Unexecuted instantiation: var_based_part.c:set_planes_to_loop_filter Unexecuted instantiation: av1_noise_estimate.c:set_planes_to_loop_filter Unexecuted instantiation: alloccommon.c:set_planes_to_loop_filter Unexecuted instantiation: cdef.c:set_planes_to_loop_filter Unexecuted instantiation: restoration.c:set_planes_to_loop_filter thread_common.c:set_planes_to_loop_filter Line | Count | Source | 326 | 21.5k | int plane_start, int plane_end) { | 327 | | // For each luma and chroma plane, whether to filter it or not. | 328 | 21.5k | planes_to_lf[0] = (lf->filter_level[0] || lf->filter_level[1]) && | 329 | 21.5k | plane_start <= 0 && 0 < plane_end; | 330 | 21.5k | planes_to_lf[1] = lf->filter_level_u && plane_start <= 1 && 1 < plane_end; | 331 | 21.5k | planes_to_lf[2] = lf->filter_level_v && plane_start <= 2 && 2 < plane_end; | 332 | 21.5k | } |
Unexecuted instantiation: aq_complexity.c:set_planes_to_loop_filter Unexecuted instantiation: aq_cyclicrefresh.c:set_planes_to_loop_filter Unexecuted instantiation: aq_variance.c:set_planes_to_loop_filter Unexecuted instantiation: compound_type.c:set_planes_to_loop_filter Unexecuted instantiation: encode_strategy.c:set_planes_to_loop_filter Unexecuted instantiation: global_motion.c:set_planes_to_loop_filter Unexecuted instantiation: gop_structure.c:set_planes_to_loop_filter Unexecuted instantiation: interp_search.c:set_planes_to_loop_filter Unexecuted instantiation: motion_search_facade.c:set_planes_to_loop_filter |
333 | | |
334 | | static inline int check_planes_to_loop_filter(const struct loopfilter *lf, |
335 | | int planes_to_lf[MAX_MB_PLANE], |
336 | 21.5k | int plane_start, int plane_end) { |
337 | 21.5k | set_planes_to_loop_filter(lf, planes_to_lf, plane_start, plane_end); |
338 | | // If the luma plane is purposely not filtered, neither are the chroma |
339 | | // planes. |
340 | 21.5k | if (!planes_to_lf[0] && plane_start <= 0 && 0 < plane_end) return 0; |
341 | | // Early exit. |
342 | 21.5k | if (!planes_to_lf[0] && !planes_to_lf[1] && !planes_to_lf[2]) return 0; |
343 | 21.5k | return 1; |
344 | 21.5k | } Unexecuted instantiation: av1_dx_iface.c:check_planes_to_loop_filter Unexecuted instantiation: decodeframe.c:check_planes_to_loop_filter Unexecuted instantiation: decodemv.c:check_planes_to_loop_filter Unexecuted instantiation: decoder.c:check_planes_to_loop_filter Unexecuted instantiation: decodetxb.c:check_planes_to_loop_filter Unexecuted instantiation: detokenize.c:check_planes_to_loop_filter Unexecuted instantiation: obu.c:check_planes_to_loop_filter Unexecuted instantiation: av1_cx_iface.c:check_planes_to_loop_filter Unexecuted instantiation: allintra_vis.c:check_planes_to_loop_filter Unexecuted instantiation: av1_quantize.c:check_planes_to_loop_filter Unexecuted instantiation: bitstream.c:check_planes_to_loop_filter Unexecuted instantiation: context_tree.c:check_planes_to_loop_filter Unexecuted instantiation: encodeframe.c:check_planes_to_loop_filter Unexecuted instantiation: encodeframe_utils.c:check_planes_to_loop_filter Unexecuted instantiation: encodemb.c:check_planes_to_loop_filter Unexecuted instantiation: encodemv.c:check_planes_to_loop_filter Unexecuted instantiation: encoder.c:check_planes_to_loop_filter Unexecuted instantiation: encoder_utils.c:check_planes_to_loop_filter Unexecuted instantiation: encodetxb.c:check_planes_to_loop_filter Unexecuted instantiation: ethread.c:check_planes_to_loop_filter Unexecuted instantiation: firstpass.c:check_planes_to_loop_filter Unexecuted instantiation: global_motion_facade.c:check_planes_to_loop_filter Unexecuted instantiation: level.c:check_planes_to_loop_filter Unexecuted instantiation: lookahead.c:check_planes_to_loop_filter Unexecuted instantiation: mcomp.c:check_planes_to_loop_filter Unexecuted instantiation: mv_prec.c:check_planes_to_loop_filter Unexecuted instantiation: palette.c:check_planes_to_loop_filter Unexecuted instantiation: partition_search.c:check_planes_to_loop_filter Unexecuted instantiation: partition_strategy.c:check_planes_to_loop_filter Unexecuted instantiation: pass2_strategy.c:check_planes_to_loop_filter Unexecuted instantiation: pickcdef.c:check_planes_to_loop_filter Unexecuted instantiation: picklpf.c:check_planes_to_loop_filter Unexecuted instantiation: pickrst.c:check_planes_to_loop_filter Unexecuted instantiation: ratectrl.c:check_planes_to_loop_filter Unexecuted instantiation: rd.c:check_planes_to_loop_filter Unexecuted instantiation: rdopt.c:check_planes_to_loop_filter Unexecuted instantiation: nonrd_pickmode.c:check_planes_to_loop_filter Unexecuted instantiation: nonrd_opt.c:check_planes_to_loop_filter Unexecuted instantiation: segmentation.c:check_planes_to_loop_filter Unexecuted instantiation: speed_features.c:check_planes_to_loop_filter Unexecuted instantiation: superres_scale.c:check_planes_to_loop_filter Unexecuted instantiation: svc_layercontext.c:check_planes_to_loop_filter Unexecuted instantiation: temporal_filter.c:check_planes_to_loop_filter Unexecuted instantiation: tokenize.c:check_planes_to_loop_filter Unexecuted instantiation: tpl_model.c:check_planes_to_loop_filter Unexecuted instantiation: tx_search.c:check_planes_to_loop_filter Unexecuted instantiation: txb_rdopt.c:check_planes_to_loop_filter Unexecuted instantiation: intra_mode_search.c:check_planes_to_loop_filter Unexecuted instantiation: var_based_part.c:check_planes_to_loop_filter Unexecuted instantiation: av1_noise_estimate.c:check_planes_to_loop_filter Unexecuted instantiation: alloccommon.c:check_planes_to_loop_filter Unexecuted instantiation: cdef.c:check_planes_to_loop_filter Unexecuted instantiation: restoration.c:check_planes_to_loop_filter thread_common.c:check_planes_to_loop_filter Line | Count | Source | 336 | 21.5k | int plane_start, int plane_end) { | 337 | 21.5k | set_planes_to_loop_filter(lf, planes_to_lf, plane_start, plane_end); | 338 | | // If the luma plane is purposely not filtered, neither are the chroma | 339 | | // planes. | 340 | 21.5k | if (!planes_to_lf[0] && plane_start <= 0 && 0 < plane_end) return 0; | 341 | | // Early exit. | 342 | 21.5k | if (!planes_to_lf[0] && !planes_to_lf[1] && !planes_to_lf[2]) return 0; | 343 | 21.5k | return 1; | 344 | 21.5k | } |
Unexecuted instantiation: aq_complexity.c:check_planes_to_loop_filter Unexecuted instantiation: aq_cyclicrefresh.c:check_planes_to_loop_filter Unexecuted instantiation: aq_variance.c:check_planes_to_loop_filter Unexecuted instantiation: compound_type.c:check_planes_to_loop_filter Unexecuted instantiation: encode_strategy.c:check_planes_to_loop_filter Unexecuted instantiation: global_motion.c:check_planes_to_loop_filter Unexecuted instantiation: gop_structure.c:check_planes_to_loop_filter Unexecuted instantiation: interp_search.c:check_planes_to_loop_filter Unexecuted instantiation: motion_search_facade.c:check_planes_to_loop_filter |
345 | | |
346 | | #ifdef __cplusplus |
347 | | } // extern "C" |
348 | | #endif |
349 | | |
350 | | #endif // AOM_AV1_COMMON_THREAD_COMMON_H_ |