Coverage Report

Created: 2025-12-31 06:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aom/av1/common/av1_common_int.h
Line
Count
Source
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_AV1_COMMON_INT_H_
13
#define AOM_AV1_COMMON_AV1_COMMON_INT_H_
14
15
#include <stdbool.h>
16
17
#include "config/aom_config.h"
18
#include "config/av1_rtcd.h"
19
20
#include "aom/internal/aom_codec_internal.h"
21
#include "aom_dsp/flow_estimation/corner_detect.h"
22
#include "aom_util/aom_pthread.h"
23
#include "av1/common/alloccommon.h"
24
#include "av1/common/av1_loopfilter.h"
25
#include "av1/common/entropy.h"
26
#include "av1/common/entropymode.h"
27
#include "av1/common/entropymv.h"
28
#include "av1/common/enums.h"
29
#include "av1/common/frame_buffers.h"
30
#include "av1/common/mv.h"
31
#include "av1/common/quant_common.h"
32
#include "av1/common/restoration.h"
33
#include "av1/common/tile_common.h"
34
#include "av1/common/timing.h"
35
#include "aom_dsp/grain_params.h"
36
#include "aom_dsp/grain_table.h"
37
#include "aom_dsp/odintrin.h"
38
#ifdef __cplusplus
39
extern "C" {
40
#endif
41
42
#if defined(__clang__) && defined(__has_warning)
43
#if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")
44
#define AOM_FALLTHROUGH_INTENDED [[clang::fallthrough]]  // NOLINT
45
#endif
46
#elif defined(__GNUC__) && __GNUC__ >= 7
47
#define AOM_FALLTHROUGH_INTENDED __attribute__((fallthrough))  // NOLINT
48
#endif
49
50
#ifndef AOM_FALLTHROUGH_INTENDED
51
#define AOM_FALLTHROUGH_INTENDED \
52
579k
  do {                           \
53
579k
  } while (0)
54
#endif
55
56
#define CDEF_MAX_STRENGTHS 16
57
58
/* Constant values while waiting for the sequence header */
59
#define FRAME_ID_LENGTH 15
60
#define DELTA_FRAME_ID_LENGTH 14
61
62
#define FRAME_CONTEXTS (FRAME_BUFFERS + 1)
63
// Extra frame context which is always kept at default values
64
#define FRAME_CONTEXT_DEFAULTS (FRAME_CONTEXTS - 1)
65
35.0k
#define PRIMARY_REF_BITS 3
66
521k
#define PRIMARY_REF_NONE 7
67
68
#define NUM_PING_PONG_BUFFERS 2
69
70
264k
#define MAX_NUM_TEMPORAL_LAYERS 8
71
111k
#define MAX_NUM_SPATIAL_LAYERS 4
72
/* clang-format off */
73
// clang-format seems to think this is a pointer dereference and not a
74
// multiplication.
75
#define MAX_NUM_OPERATING_POINTS \
76
  (MAX_NUM_TEMPORAL_LAYERS * MAX_NUM_SPATIAL_LAYERS)
77
/* clang-format on */
78
79
// TODO(jingning): Turning this on to set up transform coefficient
80
// processing timer.
81
#define TXCOEFF_TIMER 0
82
#define TXCOEFF_COST_TIMER 0
83
84
/*!\cond */
85
86
enum {
87
  SINGLE_REFERENCE = 0,
88
  COMPOUND_REFERENCE = 1,
89
  REFERENCE_MODE_SELECT = 2,
90
  REFERENCE_MODES = 3,
91
} UENUM1BYTE(REFERENCE_MODE);
92
93
enum {
94
  /**
95
   * Frame context updates are disabled
96
   */
97
  REFRESH_FRAME_CONTEXT_DISABLED,
98
  /**
99
   * Update frame context to values resulting from backward probability
100
   * updates based on entropy/counts in the decoded frame
101
   */
102
  REFRESH_FRAME_CONTEXT_BACKWARD,
103
} UENUM1BYTE(REFRESH_FRAME_CONTEXT_MODE);
104
105
6.62k
#define MFMV_STACK_SIZE 3
106
typedef struct {
107
  int_mv mfmv0;
108
  uint8_t ref_frame_offset;
109
} TPL_MV_REF;
110
111
typedef struct {
112
  int_mv mv;
113
  MV_REFERENCE_FRAME ref_frame;
114
} MV_REF;
115
116
typedef struct RefCntBuffer {
117
  // For a RefCntBuffer, the following are reference-holding variables:
118
  // - cm->ref_frame_map[]
119
  // - cm->cur_frame
120
  // - cm->scaled_ref_buf[] (encoder only)
121
  // - pbi->output_frame_index[] (decoder only)
122
  // With that definition, 'ref_count' is the number of reference-holding
123
  // variables that are currently referencing this buffer.
124
  // For example:
125
  // - suppose this buffer is at index 'k' in the buffer pool, and
126
  // - Total 'n' of the variables / array elements above have value 'k' (that
127
  // is, they are pointing to buffer at index 'k').
128
  // Then, pool->frame_bufs[k].ref_count = n.
129
  int ref_count;
130
131
  unsigned int order_hint;
132
  unsigned int ref_order_hints[INTER_REFS_PER_FRAME];
133
134
  // These variables are used only in encoder and compare the absolute
135
  // display order hint to compute the relative distance and overcome
136
  // the limitation of get_relative_dist() which returns incorrect
137
  // distance when a very old frame is used as a reference.
138
  unsigned int display_order_hint;
139
  unsigned int ref_display_order_hint[INTER_REFS_PER_FRAME];
140
  // Frame's level within the hierarchical structure.
141
  unsigned int pyramid_level;
142
  MV_REF *mvs;
143
  uint8_t *seg_map;
144
  struct segmentation seg;
145
  int mi_rows;
146
  int mi_cols;
147
  // Width and height give the size of the buffer (before any upscaling, unlike
148
  // the sizes that can be derived from the buf structure)
149
  int width;
150
  int height;
151
  WarpedMotionParams global_motion[REF_FRAMES];
152
  int showable_frame;  // frame can be used as show existing frame in future
153
  uint8_t film_grain_params_present;
154
  aom_film_grain_t film_grain_params;
155
  aom_codec_frame_buffer_t raw_frame_buffer;
156
  YV12_BUFFER_CONFIG buf;
157
  int temporal_id;  // Temporal layer ID of the frame
158
  int spatial_id;   // Spatial layer ID of the frame
159
  FRAME_TYPE frame_type;
160
161
  // This is only used in the encoder but needs to be indexed per ref frame
162
  // so it's extremely convenient to keep it here.
163
  int interp_filter_selected[SWITCHABLE];
164
165
  // Inter frame reference frame delta for loop filter
166
  int8_t ref_deltas[REF_FRAMES];
167
168
  // 0 = ZERO_MV, MV
169
  int8_t mode_deltas[MAX_MODE_LF_DELTAS];
170
171
  FRAME_CONTEXT frame_context;
172
173
  int filter_level[2];
174
} RefCntBuffer;
175
176
typedef struct BufferPool {
177
// Protect BufferPool from being accessed by several FrameWorkers at
178
// the same time during frame parallel decode.
179
// TODO(hkuang): Try to use atomic variable instead of locking the whole pool.
180
// TODO(wtc): Remove this. See
181
// https://chromium-review.googlesource.com/c/webm/libvpx/+/560630.
182
#if CONFIG_MULTITHREAD
183
  pthread_mutex_t pool_mutex;
184
#endif
185
186
  // Private data associated with the frame buffer callbacks.
187
  void *cb_priv;
188
189
  aom_get_frame_buffer_cb_fn_t get_fb_cb;
190
  aom_release_frame_buffer_cb_fn_t release_fb_cb;
191
192
  RefCntBuffer *frame_bufs;
193
  uint8_t num_frame_bufs;
194
195
  // Frame buffers allocated internally by the codec.
196
  InternalFrameBufferList int_frame_buffers;
197
} BufferPool;
198
199
/*!\endcond */
200
201
/*!\brief Parameters related to CDEF */
202
typedef struct {
203
  //! CDEF column line buffer
204
  uint16_t *colbuf[MAX_MB_PLANE];
205
  //! CDEF top & bottom line buffer
206
  uint16_t *linebuf[MAX_MB_PLANE];
207
  //! CDEF intermediate buffer
208
  uint16_t *srcbuf;
209
  //! CDEF column line buffer sizes
210
  size_t allocated_colbuf_size[MAX_MB_PLANE];
211
  //! CDEF top and bottom line buffer sizes
212
  size_t allocated_linebuf_size[MAX_MB_PLANE];
213
  //! CDEF intermediate buffer size
214
  size_t allocated_srcbuf_size;
215
  //! CDEF damping factor
216
  int cdef_damping;
217
  //! Number of CDEF strength values
218
  int nb_cdef_strengths;
219
  //! CDEF strength values for luma
220
  int cdef_strengths[CDEF_MAX_STRENGTHS];
221
  //! CDEF strength values for chroma
222
  int cdef_uv_strengths[CDEF_MAX_STRENGTHS];
223
  //! Number of CDEF strength values in bits
224
  int cdef_bits;
225
  //! Number of rows in the frame in 4 pixel
226
  int allocated_mi_rows;
227
  //! Number of CDEF workers
228
  int allocated_num_workers;
229
} CdefInfo;
230
231
/*!\cond */
232
233
typedef struct {
234
  int delta_q_present_flag;
235
  // Resolution of delta quant
236
  int delta_q_res;
237
  int delta_lf_present_flag;
238
  // Resolution of delta lf level
239
  int delta_lf_res;
240
  // This is a flag for number of deltas of loop filter level
241
  // 0: use 1 delta, for y_vertical, y_horizontal, u, and v
242
  // 1: use separate deltas for each filter level
243
  int delta_lf_multi;
244
} DeltaQInfo;
245
246
typedef struct {
247
  int enable_order_hint;        // 0 - disable order hint, and related tools
248
  int order_hint_bits_minus_1;  // dist_wtd_comp, ref_frame_mvs,
249
                                // frame_sign_bias
250
                                // if 0, enable_dist_wtd_comp and
251
                                // enable_ref_frame_mvs must be set as 0.
252
  int enable_dist_wtd_comp;     // 0 - disable dist-wtd compound modes
253
                                // 1 - enable it
254
  int enable_ref_frame_mvs;     // 0 - disable ref frame mvs
255
                                // 1 - enable it
256
} OrderHintInfo;
257
258
// Sequence header structure.
259
// Note: All syntax elements of sequence_header_obu that need to be
260
// bit-identical across multiple sequence headers must be part of this struct,
261
// so that consistency is checked by are_seq_headers_consistent() function.
262
// One exception is the last member 'op_params' that is ignored by
263
// are_seq_headers_consistent() function.
264
typedef struct SequenceHeader {
265
  int num_bits_width;
266
  int num_bits_height;
267
  int max_frame_width;
268
  int max_frame_height;
269
  // Whether current and reference frame IDs are signaled in the bitstream.
270
  // Frame id numbers are additional information that do not affect the
271
  // decoding process, but provide decoders with a way of detecting missing
272
  // reference frames so that appropriate action can be taken.
273
  uint8_t frame_id_numbers_present_flag;
274
  int frame_id_length;
275
  int delta_frame_id_length;
276
  BLOCK_SIZE sb_size;  // Size of the superblock used for this frame
277
  int mib_size;        // Size of the superblock in units of MI blocks
278
  int mib_size_log2;   // Log 2 of above.
279
280
  OrderHintInfo order_hint_info;
281
282
  uint8_t force_screen_content_tools;  // 0 - force off
283
                                       // 1 - force on
284
                                       // 2 - adaptive
285
  uint8_t still_picture;               // Video is a single frame still picture
286
  uint8_t reduced_still_picture_hdr;   // Use reduced header for still picture
287
  uint8_t force_integer_mv;            // 0 - Don't force. MV can use subpel
288
                                       // 1 - force to integer
289
                                       // 2 - adaptive
290
  uint8_t enable_filter_intra;         // enables/disables filterintra
291
  uint8_t enable_intra_edge_filter;    // enables/disables edge upsampling
292
  uint8_t enable_interintra_compound;  // enables/disables interintra_compound
293
  uint8_t enable_masked_compound;      // enables/disables masked compound
294
  uint8_t enable_dual_filter;          // 0 - disable dual interpolation filter
295
                                       // 1 - enable vert/horz filter selection
296
  uint8_t enable_warped_motion;        // 0 - disable warp for the sequence
297
                                       // 1 - enable warp for the sequence
298
  uint8_t enable_superres;             // 0 - Disable superres for the sequence
299
                                       //     and no frame level superres flag
300
                                       // 1 - Enable superres for the sequence
301
                                       //     enable per-frame superres flag
302
  uint8_t enable_cdef;                 // To turn on/off CDEF
303
  uint8_t enable_restoration;          // To turn on/off loop restoration
304
  BITSTREAM_PROFILE profile;
305
306
  // Color config.
307
  aom_bit_depth_t bit_depth;  // AOM_BITS_8 in profile 0 or 1,
308
                              // AOM_BITS_10 or AOM_BITS_12 in profile 2 or 3.
309
  uint8_t use_highbitdepth;   // If true, we need to use 16bit frame buffers.
310
  uint8_t monochrome;         // Monochrome video
311
  aom_color_primaries_t color_primaries;
312
  aom_transfer_characteristics_t transfer_characteristics;
313
  aom_matrix_coefficients_t matrix_coefficients;
314
  int color_range;
315
  int subsampling_x;  // Chroma subsampling for x
316
  int subsampling_y;  // Chroma subsampling for y
317
  aom_chroma_sample_position_t chroma_sample_position;
318
  uint8_t separate_uv_delta_q;
319
  uint8_t film_grain_params_present;
320
321
  // Operating point info.
322
  int operating_points_cnt_minus_1;
323
  int operating_point_idc[MAX_NUM_OPERATING_POINTS];
324
  // True if operating_point_idc[op] is not equal to 0 for any value of op from
325
  // 0 to operating_points_cnt_minus_1.
326
  bool has_nonzero_operating_point_idc;
327
  int timing_info_present;
328
  aom_timing_info_t timing_info;
329
  uint8_t decoder_model_info_present_flag;
330
  aom_dec_model_info_t decoder_model_info;
331
  uint8_t display_model_info_present_flag;
332
  AV1_LEVEL seq_level_idx[MAX_NUM_OPERATING_POINTS];
333
  uint8_t tier[MAX_NUM_OPERATING_POINTS];  // seq_tier in spec. One bit: 0 or 1.
334
335
  // IMPORTANT: the op_params member must be at the end of the struct so that
336
  // are_seq_headers_consistent() can be implemented with a memcmp() call.
337
  // TODO(urvang): We probably don't need the +1 here.
338
  aom_dec_model_op_parameters_t op_params[MAX_NUM_OPERATING_POINTS + 1];
339
} SequenceHeader;
340
341
typedef struct {
342
  int skip_mode_allowed;
343
  int skip_mode_flag;
344
  int ref_frame_idx_0;
345
  int ref_frame_idx_1;
346
} SkipModeInfo;
347
348
typedef struct {
349
  FRAME_TYPE frame_type;
350
  REFERENCE_MODE reference_mode;
351
352
  unsigned int order_hint;
353
  unsigned int display_order_hint;
354
  // Frame's level within the hierarchical structure.
355
  unsigned int pyramid_level;
356
  unsigned int frame_number;
357
  SkipModeInfo skip_mode_info;
358
  int refresh_frame_flags;  // Which ref frames are overwritten by this frame
359
  int frame_refs_short_signaling;
360
} CurrentFrame;
361
362
/*!\endcond */
363
364
/*!
365
 * \brief Frame level features.
366
 */
367
typedef struct {
368
  /*!
369
   * If true, CDF update in the symbol encoding/decoding process is disabled.
370
   */
371
  bool disable_cdf_update;
372
  /*!
373
   * If true, motion vectors are specified to eighth pel precision; and
374
   * if false, motion vectors are specified to quarter pel precision.
375
   */
376
  bool allow_high_precision_mv;
377
  /*!
378
   * If true, force integer motion vectors; if false, use the default.
379
   */
380
  bool cur_frame_force_integer_mv;
381
  /*!
382
   * If true, palette tool and/or intra block copy tools may be used.
383
   */
384
  bool allow_screen_content_tools;
385
  bool allow_intrabc;       /*!< If true, intra block copy tool may be used. */
386
  bool allow_warped_motion; /*!< If true, frame may use warped motion mode. */
387
  /*!
388
   * If true, using previous frames' motion vectors for prediction is allowed.
389
   */
390
  bool allow_ref_frame_mvs;
391
  /*!
392
   * If true, frame is fully lossless at coded resolution.
393
   * */
394
  bool coded_lossless;
395
  /*!
396
   * If true, frame is fully lossless at upscaled resolution.
397
   */
398
  bool all_lossless;
399
  /*!
400
   * If true, the frame is restricted to a reduced subset of the full set of
401
   * transform types.
402
   */
403
  bool reduced_tx_set_used;
404
  /*!
405
   * If true, error resilient mode is enabled.
406
   * Note: Error resilient mode allows the syntax of a frame to be parsed
407
   * independently of previously decoded frames.
408
   */
409
  bool error_resilient_mode;
410
  /*!
411
   * If false, only MOTION_MODE that may be used is SIMPLE_TRANSLATION;
412
   * if true, all MOTION_MODES may be used.
413
   */
414
  bool switchable_motion_mode;
415
  TX_MODE tx_mode;            /*!< Transform mode at frame level. */
416
  InterpFilter interp_filter; /*!< Interpolation filter at frame level. */
417
  /*!
418
   * The reference frame that contains the CDF values and other state that
419
   * should be loaded at the start of the frame.
420
   */
421
  int primary_ref_frame;
422
  /*!
423
   * Byte alignment of the planes in the reference buffers.
424
   */
425
  int byte_alignment;
426
  /*!
427
   * Flag signaling how frame contexts should be updated at the end of
428
   * a frame decode.
429
   */
430
  REFRESH_FRAME_CONTEXT_MODE refresh_frame_context;
431
} FeatureFlags;
432
433
/*!
434
 * \brief Params related to tiles.
435
 */
436
typedef struct CommonTileParams {
437
  int cols;          /*!< number of tile columns that frame is divided into */
438
  int rows;          /*!< number of tile rows that frame is divided into */
439
  int max_width_sb;  /*!< maximum tile width in superblock units. */
440
  int max_height_sb; /*!< maximum tile height in superblock units. */
441
442
  /*!
443
   * Min width of non-rightmost tile in MI units. Only valid if cols > 1.
444
   */
445
  int min_inner_width;
446
447
  /*!
448
   * If true, tiles are uniformly spaced with power-of-two number of rows and
449
   * columns.
450
   * If false, tiles have explicitly configured widths and heights.
451
   */
452
  int uniform_spacing;
453
454
  /**
455
   * \name Members only valid when uniform_spacing == 1
456
   */
457
  /**@{*/
458
  int log2_cols; /*!< log2 of 'cols'. */
459
  int log2_rows; /*!< log2 of 'rows'. */
460
  int width;     /*!< tile width in MI units */
461
  int height;    /*!< tile height in MI units */
462
  /**@}*/
463
464
  /*!
465
   * Min num of tile columns possible based on 'max_width_sb' and frame width.
466
   */
467
  int min_log2_cols;
468
  /*!
469
   * Min num of tile rows possible based on 'max_height_sb' and frame height.
470
   */
471
  int min_log2_rows;
472
  /*!
473
   * Max num of tile columns possible based on frame width.
474
   */
475
  int max_log2_cols;
476
  /*!
477
   * Max num of tile rows possible based on frame height.
478
   */
479
  int max_log2_rows;
480
  /*!
481
   * log2 of min number of tiles (same as min_log2_cols + min_log2_rows).
482
   */
483
  int min_log2;
484
  /*!
485
   * col_start_sb[i] is the start position of tile column i in superblock units.
486
   * valid for 0 <= i <= cols
487
   */
488
  int col_start_sb[MAX_TILE_COLS + 1];
489
  /*!
490
   * row_start_sb[i] is the start position of tile row i in superblock units.
491
   * valid for 0 <= i <= rows
492
   */
493
  int row_start_sb[MAX_TILE_ROWS + 1];
494
  /*!
495
   * If true, we are using large scale tile mode.
496
   */
497
  unsigned int large_scale;
498
  /*!
499
   * Only relevant when large_scale == 1.
500
   * If true, the independent decoding of a single tile or a section of a frame
501
   * is allowed.
502
   */
503
  unsigned int single_tile_decoding;
504
} CommonTileParams;
505
506
typedef struct CommonModeInfoParams CommonModeInfoParams;
507
/*!
508
 * \brief Params related to MB_MODE_INFO arrays and related info.
509
 */
510
struct CommonModeInfoParams {
511
  /*!
512
   * Number of rows in the frame in 16 pixel units.
513
   * This is computed from frame height aligned to a multiple of 8.
514
   */
515
  int mb_rows;
516
  /*!
517
   * Number of cols in the frame in 16 pixel units.
518
   * This is computed from frame width aligned to a multiple of 8.
519
   */
520
  int mb_cols;
521
522
  /*!
523
   * Total MBs = mb_rows * mb_cols.
524
   */
525
  int MBs;
526
527
  /*!
528
   * Number of rows in the frame in 4 pixel (MB_MODE_INFO) units.
529
   * This is computed from frame height aligned to a multiple of 8.
530
   */
531
  int mi_rows;
532
  /*!
533
   * Number of cols in the frame in 4 pixel (MB_MODE_INFO) units.
534
   * This is computed from frame width aligned to a multiple of 8.
535
   */
536
  int mi_cols;
537
538
  /*!
539
   * An array of MB_MODE_INFO structs for every 'mi_alloc_bsize' sized block
540
   * in the frame.
541
   * Note: This array should be treated like a scratch memory, and should NOT be
542
   * accessed directly, in most cases. Please use 'mi_grid_base' array instead.
543
   */
544
  MB_MODE_INFO *mi_alloc;
545
  /*!
546
   * Number of allocated elements in 'mi_alloc'.
547
   */
548
  int mi_alloc_size;
549
  /*!
550
   * Stride for 'mi_alloc' array.
551
   */
552
  int mi_alloc_stride;
553
  /*!
554
   * The minimum block size that each element in 'mi_alloc' can correspond to.
555
   * For decoder, this is always BLOCK_4X4.
556
   * For encoder, this is BLOCK_8X8 for resolution >= 4k case or REALTIME mode
557
   * case. Otherwise, this is BLOCK_4X4.
558
   */
559
  BLOCK_SIZE mi_alloc_bsize;
560
561
  /*!
562
   * Grid of pointers to 4x4 MB_MODE_INFO structs allocated in 'mi_alloc'.
563
   * It's possible that:
564
   * - Multiple pointers in the grid point to the same element in 'mi_alloc'
565
   * (for example, for all 4x4 blocks that belong to the same partition block).
566
   * - Some pointers can be NULL (for example, for blocks outside visible area).
567
   */
568
  MB_MODE_INFO **mi_grid_base;
569
  /*!
570
   * Number of allocated elements in 'mi_grid_base' (and 'tx_type_map' also).
571
   */
572
  int mi_grid_size;
573
  /*!
574
   * Stride for 'mi_grid_base' (and 'tx_type_map' also).
575
   */
576
  int mi_stride;
577
578
  /*!
579
   * An array of tx types for each 4x4 block in the frame.
580
   * Number of allocated elements is same as 'mi_grid_size', and stride is
581
   * same as 'mi_grid_size'. So, indexing into 'tx_type_map' is same as that of
582
   * 'mi_grid_base'.
583
   */
584
  TX_TYPE *tx_type_map;
585
586
  /**
587
   * \name Function pointers to allow separate logic for encoder and decoder.
588
   */
589
  /**@{*/
590
  /*!
591
   * Free the memory allocated to arrays in 'mi_params'.
592
   * \param[in,out]   mi_params   object containing common mode info parameters
593
   */
594
  void (*free_mi)(struct CommonModeInfoParams *mi_params);
595
  /*!
596
   * Initialize / reset appropriate arrays in 'mi_params'.
597
   * \param[in,out]   mi_params   object containing common mode info parameters
598
   */
599
  void (*setup_mi)(struct CommonModeInfoParams *mi_params);
600
  /*!
601
   * Allocate required memory for arrays in 'mi_params'.
602
   * \param[in,out]   mi_params           object containing common mode info
603
   *                                      parameters
604
   * \param           width               frame width
605
   * \param           height              frame height
606
   * \param           min_partition_size  minimum partition size allowed while
607
   *                                      encoding
608
   */
609
  void (*set_mb_mi)(struct CommonModeInfoParams *mi_params, int width,
610
                    int height, BLOCK_SIZE min_partition_size);
611
  /**@}*/
612
};
613
614
typedef struct CommonQuantParams CommonQuantParams;
615
/*!
616
 * \brief Parameters related to quantization at the frame level.
617
 */
618
struct CommonQuantParams {
619
  /*!
620
   * Base qindex of the frame in the range 0 to 255.
621
   */
622
  int base_qindex;
623
624
  /*!
625
   * Sharpness adjustment in the quantization process.
626
   */
627
  int sharpness;
628
629
  /*!
630
   * Delta of qindex (from base_qindex) for Y plane DC coefficient.
631
   * Note: y_ac_delta_q is implicitly 0.
632
   */
633
  int y_dc_delta_q;
634
635
  /*!
636
   * Delta of qindex (from base_qindex) for U plane DC coefficients.
637
   */
638
  int u_dc_delta_q;
639
  /*!
640
   * Delta of qindex (from base_qindex) for U plane AC coefficients.
641
   */
642
  int v_dc_delta_q;
643
644
  /*!
645
   * Delta of qindex (from base_qindex) for V plane DC coefficients.
646
   * Same as those for U plane if cm->seq_params->separate_uv_delta_q == 0.
647
   */
648
  int u_ac_delta_q;
649
  /*!
650
   * Delta of qindex (from base_qindex) for V plane AC coefficients.
651
   * Same as those for U plane if cm->seq_params->separate_uv_delta_q == 0.
652
   */
653
  int v_ac_delta_q;
654
655
  /*
656
   * Note: The qindex per superblock may have a delta from the qindex obtained
657
   * at frame level from parameters above, based on 'cm->delta_q_info'.
658
   */
659
660
  /**
661
   * \name True dequantizers.
662
   * The dequantizers below are true dequantizers used only in the
663
   * dequantization process.  They have the same coefficient
664
   * shift/scale as TX.
665
   */
666
  /**@{*/
667
  int16_t y_dequant_QTX[MAX_SEGMENTS][2]; /*!< Dequant for Y plane */
668
  int16_t u_dequant_QTX[MAX_SEGMENTS][2]; /*!< Dequant for U plane */
669
  int16_t v_dequant_QTX[MAX_SEGMENTS][2]; /*!< Dequant for V plane */
670
  /**@}*/
671
672
  /**
673
   * \name Global quantization matrix tables.
674
   */
675
  /**@{*/
676
  /*!
677
   * Global dequantization matrix table.
678
   */
679
  const qm_val_t *giqmatrix[NUM_QM_LEVELS][3][TX_SIZES_ALL];
680
  /*!
681
   * Global quantization matrix table.
682
   */
683
  const qm_val_t *gqmatrix[NUM_QM_LEVELS][3][TX_SIZES_ALL];
684
  /**@}*/
685
686
  /**
687
   * \name Local dequantization matrix tables for each frame.
688
   */
689
  /**@{*/
690
  /*!
691
   * Local dequant matrix for Y plane.
692
   */
693
  const qm_val_t *y_iqmatrix[MAX_SEGMENTS][TX_SIZES_ALL];
694
  /*!
695
   * Local dequant matrix for U plane.
696
   */
697
  const qm_val_t *u_iqmatrix[MAX_SEGMENTS][TX_SIZES_ALL];
698
  /*!
699
   * Local dequant matrix for V plane.
700
   */
701
  const qm_val_t *v_iqmatrix[MAX_SEGMENTS][TX_SIZES_ALL];
702
  /**@}*/
703
704
  /*!
705
   * Flag indicating whether quantization matrices are being used:
706
   *  - If true, qmatrix_level_y, qmatrix_level_u and qmatrix_level_v indicate
707
   *    the level indices to be used to access appropriate global quant matrix
708
   *    tables.
709
   *  - If false, we implicitly use level index 'NUM_QM_LEVELS - 1'.
710
   */
711
  bool using_qmatrix;
712
  /**
713
   * \name Valid only when using_qmatrix == true
714
   * Indicate the level indices to be used to access appropriate global quant
715
   * matrix tables.
716
   */
717
  /**@{*/
718
  int qmatrix_level_y; /*!< Level index for Y plane */
719
  int qmatrix_level_u; /*!< Level index for U plane */
720
  int qmatrix_level_v; /*!< Level index for V plane */
721
  /**@}*/
722
};
723
724
typedef struct CommonContexts CommonContexts;
725
/*!
726
 * \brief Contexts used for transmitting various symbols in the bitstream.
727
 */
728
struct CommonContexts {
729
  /*!
730
   * Context used by 'FRAME_CONTEXT.partition_cdf' to transmit partition type.
731
   * partition[i][j] is the context for ith tile row, jth mi_col.
732
   */
733
  PARTITION_CONTEXT **partition;
734
735
  /*!
736
   * Context used to derive context for multiple symbols:
737
   * - 'TXB_CTX.txb_skip_ctx' used by 'FRAME_CONTEXT.txb_skip_cdf' to transmit
738
   * to transmit skip_txfm flag.
739
   * - 'TXB_CTX.dc_sign_ctx' used by 'FRAME_CONTEXT.dc_sign_cdf' to transmit
740
   * sign.
741
   * entropy[i][j][k] is the context for ith plane, jth tile row, kth mi_col.
742
   */
743
  ENTROPY_CONTEXT **entropy[MAX_MB_PLANE];
744
745
  /*!
746
   * Context used to derive context for 'FRAME_CONTEXT.txfm_partition_cdf' to
747
   * transmit 'is_split' flag to indicate if this transform block should be
748
   * split into smaller sub-blocks.
749
   * txfm[i][j] is the context for ith tile row, jth mi_col.
750
   */
751
  TXFM_CONTEXT **txfm;
752
753
  /*!
754
   * Dimensions that were used to allocate the arrays above.
755
   * If these dimensions change, the arrays may have to be re-allocated.
756
   */
757
  int num_planes;    /*!< Corresponds to av1_num_planes(cm) */
758
  int num_tile_rows; /*!< Corresponds to cm->tiles.row */
759
  int num_mi_cols;   /*!< Corresponds to cm->mi_params.mi_cols */
760
};
761
762
/*!
763
 * \brief Top level common structure used by both encoder and decoder.
764
 */
765
typedef struct AV1Common {
766
  /*!
767
   * Information about the current frame that is being coded.
768
   */
769
  CurrentFrame current_frame;
770
  /*!
771
   * Code and details about current error status.
772
   */
773
  struct aom_internal_error_info *error;
774
775
  /*!
776
   * AV1 allows two types of frame scaling operations:
777
   * 1. Frame super-resolution: that allows coding a frame at lower resolution
778
   * and after decoding the frame, normatively scales and restores the frame --
779
   * inside the coding loop.
780
   * 2. Frame resize: that allows coding frame at lower/higher resolution, and
781
   * then non-normatively upscale the frame at the time of rendering -- outside
782
   * the coding loop.
783
   * Hence, the need for 3 types of dimensions.
784
   */
785
786
  /**
787
   * \name Coded frame dimensions.
788
   */
789
  /**@{*/
790
  int width;  /*!< Coded frame width */
791
  int height; /*!< Coded frame height */
792
  /**@}*/
793
794
  /**
795
   * \name Rendered frame dimensions.
796
   * Dimensions after applying both super-resolution and resize to the coded
797
   * frame. Different from coded dimensions if super-resolution and/or resize
798
   * are being used for this frame.
799
   */
800
  /**@{*/
801
  int render_width;  /*!< Rendered frame width */
802
  int render_height; /*!< Rendered frame height */
803
  /**@}*/
804
805
  /**
806
   * \name Super-resolved frame dimensions.
807
   * Frame dimensions after applying super-resolution to the coded frame (if
808
   * present), but before applying resize.
809
   * Larger than the coded dimensions if super-resolution is being used for
810
   * this frame.
811
   * Different from rendered dimensions if resize is being used for this frame.
812
   */
813
  /**@{*/
814
  int superres_upscaled_width;  /*!< Super-resolved frame width */
815
  int superres_upscaled_height; /*!< Super-resolved frame height */
816
  /**@}*/
817
818
  /*!
819
   * The denominator of the superres scale used by this frame.
820
   * Note: The numerator is fixed to be SCALE_NUMERATOR.
821
   */
822
  uint8_t superres_scale_denominator;
823
824
  /*!
825
   * buffer_removal_times[op_num] specifies the frame removal time in units of
826
   * DecCT clock ticks counted from the removal time of the last random access
827
   * point for operating point op_num.
828
   * TODO(urvang): We probably don't need the +1 here.
829
   */
830
  uint32_t buffer_removal_times[MAX_NUM_OPERATING_POINTS + 1];
831
  /*!
832
   * Presentation time of the frame in clock ticks DispCT counted from the
833
   * removal time of the last random access point for the operating point that
834
   * is being decoded.
835
   */
836
  uint32_t frame_presentation_time;
837
838
  /*!
839
   * Buffer where previous frame is stored.
840
   */
841
  RefCntBuffer *prev_frame;
842
843
  /*!
844
   * Buffer into which the current frame will be stored and other related info.
845
   * TODO(hkuang): Combine this with cur_buf in macroblockd.
846
   */
847
  RefCntBuffer *cur_frame;
848
849
  /*!
850
   * For encoder, we have a two-level mapping from reference frame type to the
851
   * corresponding buffer in the buffer pool:
852
   * * 'remapped_ref_idx[i - 1]' maps reference type 'i' (range: LAST_FRAME ...
853
   * EXTREF_FRAME) to a remapped index 'j' (in range: 0 ... REF_FRAMES - 1)
854
   * * Later, 'cm->ref_frame_map[j]' maps the remapped index 'j' to a pointer to
855
   * the reference counted buffer structure RefCntBuffer, taken from the buffer
856
   * pool cm->buffer_pool->frame_bufs.
857
   *
858
   * LAST_FRAME,                        ...,      EXTREF_FRAME
859
   *      |                                           |
860
   *      v                                           v
861
   * remapped_ref_idx[LAST_FRAME - 1],  ...,  remapped_ref_idx[EXTREF_FRAME - 1]
862
   *      |                                           |
863
   *      v                                           v
864
   * ref_frame_map[],                   ...,     ref_frame_map[]
865
   *
866
   * Note: INTRA_FRAME always refers to the current frame, so there's no need to
867
   * have a remapped index for the same.
868
   */
869
  int remapped_ref_idx[REF_FRAMES];
870
871
  /*!
872
   * Scale of the current frame with respect to itself.
873
   * This is currently used for intra block copy, which behaves like an inter
874
   * prediction mode, where the reference frame is the current frame itself.
875
   */
876
  struct scale_factors sf_identity;
877
878
  /*!
879
   * Scale factors of the reference frame with respect to the current frame.
880
   * This is required for generating inter prediction and will be non-identity
881
   * for a reference frame, if it has different dimensions than the coded
882
   * dimensions of the current frame.
883
   */
884
  struct scale_factors ref_scale_factors[REF_FRAMES];
885
886
  /*!
887
   * For decoder, ref_frame_map[i] maps reference type 'i' to a pointer to
888
   * the buffer in the buffer pool 'cm->buffer_pool.frame_bufs'.
889
   * For encoder, ref_frame_map[j] (where j = remapped_ref_idx[i]) maps
890
   * remapped reference index 'j' (that is, original reference type 'i') to
891
   * a pointer to the buffer in the buffer pool 'cm->buffer_pool.frame_bufs'.
892
   */
893
  RefCntBuffer *ref_frame_map[REF_FRAMES];
894
895
  /*!
896
   * If true, this frame is actually shown after decoding.
897
   * If false, this frame is coded in the bitstream, but not shown. It is only
898
   * used as a reference for other frames coded later.
899
   */
900
  int show_frame;
901
902
  /*!
903
   * If true, this frame can be used as a show-existing frame for other frames
904
   * coded later.
905
   * When 'show_frame' is true, this is always true for all non-keyframes.
906
   * When 'show_frame' is false, this value is transmitted in the bitstream.
907
   */
908
  int showable_frame;
909
910
  /*!
911
   * If true, show an existing frame coded before, instead of actually coding a
912
   * frame. The existing frame comes from one of the existing reference buffers,
913
   * as signaled in the bitstream.
914
   */
915
  int show_existing_frame;
916
917
  /*!
918
   * Whether some features are allowed or not.
919
   */
920
  FeatureFlags features;
921
922
  /*!
923
   * Params related to MB_MODE_INFO arrays and related info.
924
   */
925
  CommonModeInfoParams mi_params;
926
927
#if CONFIG_ENTROPY_STATS
928
  /*!
929
   * Context type used by token CDFs, in the range 0 .. (TOKEN_CDF_Q_CTXS - 1).
930
   */
931
  int coef_cdf_category;
932
#endif  // CONFIG_ENTROPY_STATS
933
934
  /*!
935
   * Quantization params.
936
   */
937
  CommonQuantParams quant_params;
938
939
  /*!
940
   * Segmentation info for current frame.
941
   */
942
  struct segmentation seg;
943
944
  /*!
945
   * Segmentation map for previous frame.
946
   */
947
  uint8_t *last_frame_seg_map;
948
949
  /**
950
   * \name Deblocking filter parameters.
951
   */
952
  /**@{*/
953
  loop_filter_info_n lf_info; /*!< Loop filter info */
954
  struct loopfilter lf;       /*!< Loop filter parameters */
955
  /**@}*/
956
957
  /**
958
   * \name Loop Restoration filter parameters.
959
   */
960
  /**@{*/
961
  RestorationInfo rst_info[MAX_MB_PLANE]; /*!< Loop Restoration filter info */
962
  int32_t *rst_tmpbuf; /*!< Scratch buffer for self-guided restoration */
963
  RestorationLineBuffers *rlbs; /*!< Line buffers needed by loop restoration */
964
  YV12_BUFFER_CONFIG rst_frame; /*!< Stores the output of loop restoration */
965
  /**@}*/
966
967
  /*!
968
   * CDEF (Constrained Directional Enhancement Filter) parameters.
969
   */
970
  CdefInfo cdef_info;
971
972
  /*!
973
   * Parameters for film grain synthesis.
974
   */
975
  aom_film_grain_t film_grain_params;
976
977
  /*!
978
   * Parameters for delta quantization and delta loop filter level.
979
   */
980
  DeltaQInfo delta_q_info;
981
982
  /*!
983
   * Global motion parameters for each reference frame.
984
   */
985
  WarpedMotionParams global_motion[REF_FRAMES];
986
987
  /*!
988
   * Elements part of the sequence header, that are applicable for all the
989
   * frames in the video.
990
   */
991
  SequenceHeader *seq_params;
992
993
  /*!
994
   * Current CDFs of all the symbols for the current frame.
995
   */
996
  FRAME_CONTEXT *fc;
997
  /*!
998
   * Default CDFs used when features.primary_ref_frame = PRIMARY_REF_NONE
999
   * (e.g. for a keyframe). These default CDFs are defined by the bitstream and
1000
   * copied from default CDF tables for each symbol.
1001
   */
1002
  FRAME_CONTEXT *default_frame_context;
1003
1004
  /*!
1005
   * Parameters related to tiling.
1006
   */
1007
  CommonTileParams tiles;
1008
1009
  /*!
1010
   * External BufferPool passed from outside.
1011
   */
1012
  BufferPool *buffer_pool;
1013
1014
  /*!
1015
   * Above context buffers and their sizes.
1016
   * Note: above contexts are allocated in this struct, as their size is
1017
   * dependent on frame width, while left contexts are declared and allocated in
1018
   * MACROBLOCKD struct, as they have a fixed size.
1019
   */
1020
  CommonContexts above_contexts;
1021
1022
  /**
1023
   * \name Signaled when cm->seq_params->frame_id_numbers_present_flag == 1
1024
   */
1025
  /**@{*/
1026
  int current_frame_id;         /*!< frame ID for the current frame. */
1027
  int ref_frame_id[REF_FRAMES]; /*!< frame IDs for the reference frames. */
1028
  /**@}*/
1029
1030
  /*!
1031
   * Motion vectors provided by motion field estimation.
1032
   * tpl_mvs[row * stride + col] stores MV for block at [mi_row, mi_col] where:
1033
   * mi_row = 2 * row,
1034
   * mi_col = 2 * col, and
1035
   * stride = cm->mi_params.mi_stride / 2
1036
   */
1037
  TPL_MV_REF *tpl_mvs;
1038
  /*!
1039
   * Allocated size of 'tpl_mvs' array. Refer to 'ensure_mv_buffer()' function.
1040
   */
1041
  int tpl_mvs_mem_size;
1042
  /*!
1043
   * ref_frame_sign_bias[k] is 1 if relative distance between reference 'k' and
1044
   * current frame is positive; and 0 otherwise.
1045
   */
1046
  int ref_frame_sign_bias[REF_FRAMES];
1047
  /*!
1048
   * ref_frame_side[k] is 1 if relative distance between reference 'k' and
1049
   * current frame is positive, -1 if relative distance is 0; and 0 otherwise.
1050
   * TODO(jingning): This can be combined with sign_bias later.
1051
   */
1052
  int8_t ref_frame_side[REF_FRAMES];
1053
1054
  /*!
1055
   * Temporal layer ID of this frame
1056
   * (in the range 0 ... (number_temporal_layers - 1)).
1057
   */
1058
  int temporal_layer_id;
1059
1060
  /*!
1061
   * Spatial layer ID of this frame
1062
   * (in the range 0 ... (number_spatial_layers - 1)).
1063
   */
1064
  int spatial_layer_id;
1065
1066
#if TXCOEFF_TIMER
1067
  int64_t cum_txcoeff_timer;
1068
  int64_t txcoeff_timer;
1069
  int txb_count;
1070
#endif  // TXCOEFF_TIMER
1071
1072
#if TXCOEFF_COST_TIMER
1073
  int64_t cum_txcoeff_cost_timer;
1074
  int64_t txcoeff_cost_timer;
1075
  int64_t txcoeff_cost_count;
1076
#endif  // TXCOEFF_COST_TIMER
1077
} AV1_COMMON;
1078
1079
/*!\cond */
1080
1081
// TODO(hkuang): Don't need to lock the whole pool after implementing atomic
1082
// frame reference count.
1083
723k
static void lock_buffer_pool(BufferPool *const pool) {
1084
723k
#if CONFIG_MULTITHREAD
1085
723k
  pthread_mutex_lock(&pool->pool_mutex);
1086
#else
1087
  (void)pool;
1088
#endif
1089
723k
}
av1_dx_iface.c:lock_buffer_pool
Line
Count
Source
1083
118k
static void lock_buffer_pool(BufferPool *const pool) {
1084
118k
#if CONFIG_MULTITHREAD
1085
118k
  pthread_mutex_lock(&pool->pool_mutex);
1086
#else
1087
  (void)pool;
1088
#endif
1089
118k
}
decodeframe.c:lock_buffer_pool
Line
Count
Source
1083
340k
static void lock_buffer_pool(BufferPool *const pool) {
1084
340k
#if CONFIG_MULTITHREAD
1085
340k
  pthread_mutex_lock(&pool->pool_mutex);
1086
#else
1087
  (void)pool;
1088
#endif
1089
340k
}
Unexecuted instantiation: decodemv.c:lock_buffer_pool
decoder.c:lock_buffer_pool
Line
Count
Source
1083
258k
static void lock_buffer_pool(BufferPool *const pool) {
1084
258k
#if CONFIG_MULTITHREAD
1085
258k
  pthread_mutex_lock(&pool->pool_mutex);
1086
#else
1087
  (void)pool;
1088
#endif
1089
258k
}
Unexecuted instantiation: decodetxb.c:lock_buffer_pool
Unexecuted instantiation: detokenize.c:lock_buffer_pool
Unexecuted instantiation: obu.c:lock_buffer_pool
Unexecuted instantiation: alloccommon.c:lock_buffer_pool
Unexecuted instantiation: av1_loopfilter.c:lock_buffer_pool
Unexecuted instantiation: blockd.c:lock_buffer_pool
Unexecuted instantiation: cdef.c:lock_buffer_pool
Unexecuted instantiation: cdef_block.c:lock_buffer_pool
Unexecuted instantiation: cfl.c:lock_buffer_pool
Unexecuted instantiation: convolve.c:lock_buffer_pool
Unexecuted instantiation: entropy.c:lock_buffer_pool
Unexecuted instantiation: entropymode.c:lock_buffer_pool
Unexecuted instantiation: entropymv.c:lock_buffer_pool
Unexecuted instantiation: mvref_common.c:lock_buffer_pool
Unexecuted instantiation: pred_common.c:lock_buffer_pool
Unexecuted instantiation: quant_common.c:lock_buffer_pool
Unexecuted instantiation: reconinter.c:lock_buffer_pool
Unexecuted instantiation: reconintra.c:lock_buffer_pool
resize.c:lock_buffer_pool
Line
Count
Source
1083
4.89k
static void lock_buffer_pool(BufferPool *const pool) {
1084
4.89k
#if CONFIG_MULTITHREAD
1085
4.89k
  pthread_mutex_lock(&pool->pool_mutex);
1086
#else
1087
  (void)pool;
1088
#endif
1089
4.89k
}
Unexecuted instantiation: restoration.c:lock_buffer_pool
Unexecuted instantiation: scan.c:lock_buffer_pool
Unexecuted instantiation: thread_common.c:lock_buffer_pool
Unexecuted instantiation: tile_common.c:lock_buffer_pool
Unexecuted instantiation: txb_common.c:lock_buffer_pool
Unexecuted instantiation: warped_motion.c:lock_buffer_pool
Unexecuted instantiation: cfl_sse2.c:lock_buffer_pool
Unexecuted instantiation: resize_sse2.c:lock_buffer_pool
Unexecuted instantiation: cfl_ssse3.c:lock_buffer_pool
Unexecuted instantiation: resize_ssse3.c:lock_buffer_pool
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:lock_buffer_pool
Unexecuted instantiation: filterintra_sse4.c:lock_buffer_pool
Unexecuted instantiation: cfl_avx2.c:lock_buffer_pool
Unexecuted instantiation: resize_avx2.c:lock_buffer_pool
1090
1091
723k
static void unlock_buffer_pool(BufferPool *const pool) {
1092
723k
#if CONFIG_MULTITHREAD
1093
723k
  pthread_mutex_unlock(&pool->pool_mutex);
1094
#else
1095
  (void)pool;
1096
#endif
1097
723k
}
av1_dx_iface.c:unlock_buffer_pool
Line
Count
Source
1091
118k
static void unlock_buffer_pool(BufferPool *const pool) {
1092
118k
#if CONFIG_MULTITHREAD
1093
118k
  pthread_mutex_unlock(&pool->pool_mutex);
1094
#else
1095
  (void)pool;
1096
#endif
1097
118k
}
decodeframe.c:unlock_buffer_pool
Line
Count
Source
1091
340k
static void unlock_buffer_pool(BufferPool *const pool) {
1092
340k
#if CONFIG_MULTITHREAD
1093
340k
  pthread_mutex_unlock(&pool->pool_mutex);
1094
#else
1095
  (void)pool;
1096
#endif
1097
340k
}
Unexecuted instantiation: decodemv.c:unlock_buffer_pool
decoder.c:unlock_buffer_pool
Line
Count
Source
1091
258k
static void unlock_buffer_pool(BufferPool *const pool) {
1092
258k
#if CONFIG_MULTITHREAD
1093
258k
  pthread_mutex_unlock(&pool->pool_mutex);
1094
#else
1095
  (void)pool;
1096
#endif
1097
258k
}
Unexecuted instantiation: decodetxb.c:unlock_buffer_pool
Unexecuted instantiation: detokenize.c:unlock_buffer_pool
Unexecuted instantiation: obu.c:unlock_buffer_pool
Unexecuted instantiation: alloccommon.c:unlock_buffer_pool
Unexecuted instantiation: av1_loopfilter.c:unlock_buffer_pool
Unexecuted instantiation: blockd.c:unlock_buffer_pool
Unexecuted instantiation: cdef.c:unlock_buffer_pool
Unexecuted instantiation: cdef_block.c:unlock_buffer_pool
Unexecuted instantiation: cfl.c:unlock_buffer_pool
Unexecuted instantiation: convolve.c:unlock_buffer_pool
Unexecuted instantiation: entropy.c:unlock_buffer_pool
Unexecuted instantiation: entropymode.c:unlock_buffer_pool
Unexecuted instantiation: entropymv.c:unlock_buffer_pool
Unexecuted instantiation: mvref_common.c:unlock_buffer_pool
Unexecuted instantiation: pred_common.c:unlock_buffer_pool
Unexecuted instantiation: quant_common.c:unlock_buffer_pool
Unexecuted instantiation: reconinter.c:unlock_buffer_pool
Unexecuted instantiation: reconintra.c:unlock_buffer_pool
resize.c:unlock_buffer_pool
Line
Count
Source
1091
4.89k
static void unlock_buffer_pool(BufferPool *const pool) {
1092
4.89k
#if CONFIG_MULTITHREAD
1093
4.89k
  pthread_mutex_unlock(&pool->pool_mutex);
1094
#else
1095
  (void)pool;
1096
#endif
1097
4.89k
}
Unexecuted instantiation: restoration.c:unlock_buffer_pool
Unexecuted instantiation: scan.c:unlock_buffer_pool
Unexecuted instantiation: thread_common.c:unlock_buffer_pool
Unexecuted instantiation: tile_common.c:unlock_buffer_pool
Unexecuted instantiation: txb_common.c:unlock_buffer_pool
Unexecuted instantiation: warped_motion.c:unlock_buffer_pool
Unexecuted instantiation: cfl_sse2.c:unlock_buffer_pool
Unexecuted instantiation: resize_sse2.c:unlock_buffer_pool
Unexecuted instantiation: cfl_ssse3.c:unlock_buffer_pool
Unexecuted instantiation: resize_ssse3.c:unlock_buffer_pool
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:unlock_buffer_pool
Unexecuted instantiation: filterintra_sse4.c:unlock_buffer_pool
Unexecuted instantiation: cfl_avx2.c:unlock_buffer_pool
Unexecuted instantiation: resize_avx2.c:unlock_buffer_pool
1098
1099
214
static inline YV12_BUFFER_CONFIG *get_ref_frame(AV1_COMMON *cm, int index) {
1100
214
  if (index < 0 || index >= REF_FRAMES) return NULL;
1101
75
  if (cm->ref_frame_map[index] == NULL) return NULL;
1102
43
  return &cm->ref_frame_map[index]->buf;
1103
75
}
Unexecuted instantiation: av1_dx_iface.c:get_ref_frame
Unexecuted instantiation: decodeframe.c:get_ref_frame
Unexecuted instantiation: decodemv.c:get_ref_frame
decoder.c:get_ref_frame
Line
Count
Source
1099
214
static inline YV12_BUFFER_CONFIG *get_ref_frame(AV1_COMMON *cm, int index) {
1100
214
  if (index < 0 || index >= REF_FRAMES) return NULL;
1101
75
  if (cm->ref_frame_map[index] == NULL) return NULL;
1102
43
  return &cm->ref_frame_map[index]->buf;
1103
75
}
Unexecuted instantiation: decodetxb.c:get_ref_frame
Unexecuted instantiation: detokenize.c:get_ref_frame
Unexecuted instantiation: obu.c:get_ref_frame
Unexecuted instantiation: alloccommon.c:get_ref_frame
Unexecuted instantiation: av1_loopfilter.c:get_ref_frame
Unexecuted instantiation: blockd.c:get_ref_frame
Unexecuted instantiation: cdef.c:get_ref_frame
Unexecuted instantiation: cdef_block.c:get_ref_frame
Unexecuted instantiation: cfl.c:get_ref_frame
Unexecuted instantiation: convolve.c:get_ref_frame
Unexecuted instantiation: entropy.c:get_ref_frame
Unexecuted instantiation: entropymode.c:get_ref_frame
Unexecuted instantiation: entropymv.c:get_ref_frame
Unexecuted instantiation: mvref_common.c:get_ref_frame
Unexecuted instantiation: pred_common.c:get_ref_frame
Unexecuted instantiation: quant_common.c:get_ref_frame
Unexecuted instantiation: reconinter.c:get_ref_frame
Unexecuted instantiation: reconintra.c:get_ref_frame
Unexecuted instantiation: resize.c:get_ref_frame
Unexecuted instantiation: restoration.c:get_ref_frame
Unexecuted instantiation: scan.c:get_ref_frame
Unexecuted instantiation: thread_common.c:get_ref_frame
Unexecuted instantiation: tile_common.c:get_ref_frame
Unexecuted instantiation: txb_common.c:get_ref_frame
Unexecuted instantiation: warped_motion.c:get_ref_frame
Unexecuted instantiation: cfl_sse2.c:get_ref_frame
Unexecuted instantiation: resize_sse2.c:get_ref_frame
Unexecuted instantiation: cfl_ssse3.c:get_ref_frame
Unexecuted instantiation: resize_ssse3.c:get_ref_frame
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_ref_frame
Unexecuted instantiation: filterintra_sse4.c:get_ref_frame
Unexecuted instantiation: cfl_avx2.c:get_ref_frame
Unexecuted instantiation: resize_avx2.c:get_ref_frame
1104
1105
242k
static inline int get_free_fb(AV1_COMMON *cm) {
1106
242k
  RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs;
1107
242k
  int i;
1108
1109
242k
  lock_buffer_pool(cm->buffer_pool);
1110
242k
  const int num_frame_bufs = cm->buffer_pool->num_frame_bufs;
1111
842k
  for (i = 0; i < num_frame_bufs; ++i)
1112
842k
    if (frame_bufs[i].ref_count == 0) break;
1113
1114
242k
  if (i != num_frame_bufs) {
1115
242k
    if (frame_bufs[i].buf.use_external_reference_buffers) {
1116
      // If this frame buffer's y_buffer, u_buffer, and v_buffer point to the
1117
      // external reference buffers. Restore the buffer pointers to point to the
1118
      // internally allocated memory.
1119
0
      YV12_BUFFER_CONFIG *ybf = &frame_bufs[i].buf;
1120
0
      ybf->y_buffer = ybf->store_buf_adr[0];
1121
0
      ybf->u_buffer = ybf->store_buf_adr[1];
1122
0
      ybf->v_buffer = ybf->store_buf_adr[2];
1123
0
      ybf->use_external_reference_buffers = 0;
1124
0
    }
1125
1126
242k
    frame_bufs[i].ref_count = 1;
1127
242k
  } else {
1128
    // We should never run out of free buffers. If this assertion fails, there
1129
    // is a reference leak.
1130
0
    assert(0 && "Ran out of free frame buffers. Likely a reference leak.");
1131
    // Reset i to be INVALID_IDX to indicate no free buffer found.
1132
0
    i = INVALID_IDX;
1133
0
  }
1134
1135
242k
  unlock_buffer_pool(cm->buffer_pool);
1136
242k
  return i;
1137
242k
}
Unexecuted instantiation: av1_dx_iface.c:get_free_fb
decodeframe.c:get_free_fb
Line
Count
Source
1105
113k
static inline int get_free_fb(AV1_COMMON *cm) {
1106
113k
  RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs;
1107
113k
  int i;
1108
1109
113k
  lock_buffer_pool(cm->buffer_pool);
1110
113k
  const int num_frame_bufs = cm->buffer_pool->num_frame_bufs;
1111
587k
  for (i = 0; i < num_frame_bufs; ++i)
1112
587k
    if (frame_bufs[i].ref_count == 0) break;
1113
1114
113k
  if (i != num_frame_bufs) {
1115
113k
    if (frame_bufs[i].buf.use_external_reference_buffers) {
1116
      // If this frame buffer's y_buffer, u_buffer, and v_buffer point to the
1117
      // external reference buffers. Restore the buffer pointers to point to the
1118
      // internally allocated memory.
1119
0
      YV12_BUFFER_CONFIG *ybf = &frame_bufs[i].buf;
1120
0
      ybf->y_buffer = ybf->store_buf_adr[0];
1121
0
      ybf->u_buffer = ybf->store_buf_adr[1];
1122
0
      ybf->v_buffer = ybf->store_buf_adr[2];
1123
0
      ybf->use_external_reference_buffers = 0;
1124
0
    }
1125
1126
113k
    frame_bufs[i].ref_count = 1;
1127
113k
  } else {
1128
    // We should never run out of free buffers. If this assertion fails, there
1129
    // is a reference leak.
1130
0
    assert(0 && "Ran out of free frame buffers. Likely a reference leak.");
1131
    // Reset i to be INVALID_IDX to indicate no free buffer found.
1132
0
    i = INVALID_IDX;
1133
0
  }
1134
1135
113k
  unlock_buffer_pool(cm->buffer_pool);
1136
113k
  return i;
1137
113k
}
Unexecuted instantiation: decodemv.c:get_free_fb
decoder.c:get_free_fb
Line
Count
Source
1105
129k
static inline int get_free_fb(AV1_COMMON *cm) {
1106
129k
  RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs;
1107
129k
  int i;
1108
1109
129k
  lock_buffer_pool(cm->buffer_pool);
1110
129k
  const int num_frame_bufs = cm->buffer_pool->num_frame_bufs;
1111
255k
  for (i = 0; i < num_frame_bufs; ++i)
1112
255k
    if (frame_bufs[i].ref_count == 0) break;
1113
1114
129k
  if (i != num_frame_bufs) {
1115
129k
    if (frame_bufs[i].buf.use_external_reference_buffers) {
1116
      // If this frame buffer's y_buffer, u_buffer, and v_buffer point to the
1117
      // external reference buffers. Restore the buffer pointers to point to the
1118
      // internally allocated memory.
1119
0
      YV12_BUFFER_CONFIG *ybf = &frame_bufs[i].buf;
1120
0
      ybf->y_buffer = ybf->store_buf_adr[0];
1121
0
      ybf->u_buffer = ybf->store_buf_adr[1];
1122
0
      ybf->v_buffer = ybf->store_buf_adr[2];
1123
0
      ybf->use_external_reference_buffers = 0;
1124
0
    }
1125
1126
129k
    frame_bufs[i].ref_count = 1;
1127
129k
  } else {
1128
    // We should never run out of free buffers. If this assertion fails, there
1129
    // is a reference leak.
1130
0
    assert(0 && "Ran out of free frame buffers. Likely a reference leak.");
1131
    // Reset i to be INVALID_IDX to indicate no free buffer found.
1132
0
    i = INVALID_IDX;
1133
0
  }
1134
1135
129k
  unlock_buffer_pool(cm->buffer_pool);
1136
129k
  return i;
1137
129k
}
Unexecuted instantiation: decodetxb.c:get_free_fb
Unexecuted instantiation: detokenize.c:get_free_fb
Unexecuted instantiation: obu.c:get_free_fb
Unexecuted instantiation: alloccommon.c:get_free_fb
Unexecuted instantiation: av1_loopfilter.c:get_free_fb
Unexecuted instantiation: blockd.c:get_free_fb
Unexecuted instantiation: cdef.c:get_free_fb
Unexecuted instantiation: cdef_block.c:get_free_fb
Unexecuted instantiation: cfl.c:get_free_fb
Unexecuted instantiation: convolve.c:get_free_fb
Unexecuted instantiation: entropy.c:get_free_fb
Unexecuted instantiation: entropymode.c:get_free_fb
Unexecuted instantiation: entropymv.c:get_free_fb
Unexecuted instantiation: mvref_common.c:get_free_fb
Unexecuted instantiation: pred_common.c:get_free_fb
Unexecuted instantiation: quant_common.c:get_free_fb
Unexecuted instantiation: reconinter.c:get_free_fb
Unexecuted instantiation: reconintra.c:get_free_fb
Unexecuted instantiation: resize.c:get_free_fb
Unexecuted instantiation: restoration.c:get_free_fb
Unexecuted instantiation: scan.c:get_free_fb
Unexecuted instantiation: thread_common.c:get_free_fb
Unexecuted instantiation: tile_common.c:get_free_fb
Unexecuted instantiation: txb_common.c:get_free_fb
Unexecuted instantiation: warped_motion.c:get_free_fb
Unexecuted instantiation: cfl_sse2.c:get_free_fb
Unexecuted instantiation: resize_sse2.c:get_free_fb
Unexecuted instantiation: cfl_ssse3.c:get_free_fb
Unexecuted instantiation: resize_ssse3.c:get_free_fb
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_free_fb
Unexecuted instantiation: filterintra_sse4.c:get_free_fb
Unexecuted instantiation: cfl_avx2.c:get_free_fb
Unexecuted instantiation: resize_avx2.c:get_free_fb
1138
1139
129k
static inline RefCntBuffer *assign_cur_frame_new_fb(AV1_COMMON *const cm) {
1140
  // Release the previously-used frame-buffer
1141
129k
  if (cm->cur_frame != NULL) {
1142
0
    --cm->cur_frame->ref_count;
1143
0
    cm->cur_frame = NULL;
1144
0
  }
1145
1146
  // Assign a new framebuffer
1147
129k
  const int new_fb_idx = get_free_fb(cm);
1148
129k
  if (new_fb_idx == INVALID_IDX) return NULL;
1149
1150
129k
  cm->cur_frame = &cm->buffer_pool->frame_bufs[new_fb_idx];
1151
#if CONFIG_AV1_ENCODER && !CONFIG_REALTIME_ONLY
1152
  aom_invalidate_pyramid(cm->cur_frame->buf.y_pyramid);
1153
  av1_invalidate_corner_list(cm->cur_frame->buf.corners);
1154
#endif  // CONFIG_AV1_ENCODER && !CONFIG_REALTIME_ONLY
1155
129k
  av1_zero(cm->cur_frame->interp_filter_selected);
1156
129k
  return cm->cur_frame;
1157
129k
}
Unexecuted instantiation: av1_dx_iface.c:assign_cur_frame_new_fb
Unexecuted instantiation: decodeframe.c:assign_cur_frame_new_fb
Unexecuted instantiation: decodemv.c:assign_cur_frame_new_fb
decoder.c:assign_cur_frame_new_fb
Line
Count
Source
1139
129k
static inline RefCntBuffer *assign_cur_frame_new_fb(AV1_COMMON *const cm) {
1140
  // Release the previously-used frame-buffer
1141
129k
  if (cm->cur_frame != NULL) {
1142
0
    --cm->cur_frame->ref_count;
1143
0
    cm->cur_frame = NULL;
1144
0
  }
1145
1146
  // Assign a new framebuffer
1147
129k
  const int new_fb_idx = get_free_fb(cm);
1148
129k
  if (new_fb_idx == INVALID_IDX) return NULL;
1149
1150
129k
  cm->cur_frame = &cm->buffer_pool->frame_bufs[new_fb_idx];
1151
#if CONFIG_AV1_ENCODER && !CONFIG_REALTIME_ONLY
1152
  aom_invalidate_pyramid(cm->cur_frame->buf.y_pyramid);
1153
  av1_invalidate_corner_list(cm->cur_frame->buf.corners);
1154
#endif  // CONFIG_AV1_ENCODER && !CONFIG_REALTIME_ONLY
1155
129k
  av1_zero(cm->cur_frame->interp_filter_selected);
1156
129k
  return cm->cur_frame;
1157
129k
}
Unexecuted instantiation: decodetxb.c:assign_cur_frame_new_fb
Unexecuted instantiation: detokenize.c:assign_cur_frame_new_fb
Unexecuted instantiation: obu.c:assign_cur_frame_new_fb
Unexecuted instantiation: alloccommon.c:assign_cur_frame_new_fb
Unexecuted instantiation: av1_loopfilter.c:assign_cur_frame_new_fb
Unexecuted instantiation: blockd.c:assign_cur_frame_new_fb
Unexecuted instantiation: cdef.c:assign_cur_frame_new_fb
Unexecuted instantiation: cdef_block.c:assign_cur_frame_new_fb
Unexecuted instantiation: cfl.c:assign_cur_frame_new_fb
Unexecuted instantiation: convolve.c:assign_cur_frame_new_fb
Unexecuted instantiation: entropy.c:assign_cur_frame_new_fb
Unexecuted instantiation: entropymode.c:assign_cur_frame_new_fb
Unexecuted instantiation: entropymv.c:assign_cur_frame_new_fb
Unexecuted instantiation: mvref_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: pred_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: quant_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: reconinter.c:assign_cur_frame_new_fb
Unexecuted instantiation: reconintra.c:assign_cur_frame_new_fb
Unexecuted instantiation: resize.c:assign_cur_frame_new_fb
Unexecuted instantiation: restoration.c:assign_cur_frame_new_fb
Unexecuted instantiation: scan.c:assign_cur_frame_new_fb
Unexecuted instantiation: thread_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: tile_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: txb_common.c:assign_cur_frame_new_fb
Unexecuted instantiation: warped_motion.c:assign_cur_frame_new_fb
Unexecuted instantiation: cfl_sse2.c:assign_cur_frame_new_fb
Unexecuted instantiation: resize_sse2.c:assign_cur_frame_new_fb
Unexecuted instantiation: cfl_ssse3.c:assign_cur_frame_new_fb
Unexecuted instantiation: resize_ssse3.c:assign_cur_frame_new_fb
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:assign_cur_frame_new_fb
Unexecuted instantiation: filterintra_sse4.c:assign_cur_frame_new_fb
Unexecuted instantiation: cfl_avx2.c:assign_cur_frame_new_fb
Unexecuted instantiation: resize_avx2.c:assign_cur_frame_new_fb
1158
1159
// Modify 'lhs_ptr' to reference the buffer at 'rhs_ptr', and update the ref
1160
// counts accordingly.
1161
static inline void assign_frame_buffer_p(RefCntBuffer **lhs_ptr,
1162
500
                                         RefCntBuffer *rhs_ptr) {
1163
500
  RefCntBuffer *const old_ptr = *lhs_ptr;
1164
500
  if (old_ptr != NULL) {
1165
500
    assert(old_ptr->ref_count > 0);
1166
    // One less reference to the buffer at 'old_ptr', so decrease ref count.
1167
500
    --old_ptr->ref_count;
1168
500
  }
1169
1170
500
  *lhs_ptr = rhs_ptr;
1171
  // One more reference to the buffer at 'rhs_ptr', so increase ref count.
1172
500
  ++rhs_ptr->ref_count;
1173
500
}
Unexecuted instantiation: av1_dx_iface.c:assign_frame_buffer_p
decodeframe.c:assign_frame_buffer_p
Line
Count
Source
1162
500
                                         RefCntBuffer *rhs_ptr) {
1163
500
  RefCntBuffer *const old_ptr = *lhs_ptr;
1164
500
  if (old_ptr != NULL) {
1165
500
    assert(old_ptr->ref_count > 0);
1166
    // One less reference to the buffer at 'old_ptr', so decrease ref count.
1167
500
    --old_ptr->ref_count;
1168
500
  }
1169
1170
500
  *lhs_ptr = rhs_ptr;
1171
  // One more reference to the buffer at 'rhs_ptr', so increase ref count.
1172
500
  ++rhs_ptr->ref_count;
1173
500
}
Unexecuted instantiation: decodemv.c:assign_frame_buffer_p
Unexecuted instantiation: decoder.c:assign_frame_buffer_p
Unexecuted instantiation: decodetxb.c:assign_frame_buffer_p
Unexecuted instantiation: detokenize.c:assign_frame_buffer_p
Unexecuted instantiation: obu.c:assign_frame_buffer_p
Unexecuted instantiation: alloccommon.c:assign_frame_buffer_p
Unexecuted instantiation: av1_loopfilter.c:assign_frame_buffer_p
Unexecuted instantiation: blockd.c:assign_frame_buffer_p
Unexecuted instantiation: cdef.c:assign_frame_buffer_p
Unexecuted instantiation: cdef_block.c:assign_frame_buffer_p
Unexecuted instantiation: cfl.c:assign_frame_buffer_p
Unexecuted instantiation: convolve.c:assign_frame_buffer_p
Unexecuted instantiation: entropy.c:assign_frame_buffer_p
Unexecuted instantiation: entropymode.c:assign_frame_buffer_p
Unexecuted instantiation: entropymv.c:assign_frame_buffer_p
Unexecuted instantiation: mvref_common.c:assign_frame_buffer_p
Unexecuted instantiation: pred_common.c:assign_frame_buffer_p
Unexecuted instantiation: quant_common.c:assign_frame_buffer_p
Unexecuted instantiation: reconinter.c:assign_frame_buffer_p
Unexecuted instantiation: reconintra.c:assign_frame_buffer_p
Unexecuted instantiation: resize.c:assign_frame_buffer_p
Unexecuted instantiation: restoration.c:assign_frame_buffer_p
Unexecuted instantiation: scan.c:assign_frame_buffer_p
Unexecuted instantiation: thread_common.c:assign_frame_buffer_p
Unexecuted instantiation: tile_common.c:assign_frame_buffer_p
Unexecuted instantiation: txb_common.c:assign_frame_buffer_p
Unexecuted instantiation: warped_motion.c:assign_frame_buffer_p
Unexecuted instantiation: cfl_sse2.c:assign_frame_buffer_p
Unexecuted instantiation: resize_sse2.c:assign_frame_buffer_p
Unexecuted instantiation: cfl_ssse3.c:assign_frame_buffer_p
Unexecuted instantiation: resize_ssse3.c:assign_frame_buffer_p
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:assign_frame_buffer_p
Unexecuted instantiation: filterintra_sse4.c:assign_frame_buffer_p
Unexecuted instantiation: cfl_avx2.c:assign_frame_buffer_p
Unexecuted instantiation: resize_avx2.c:assign_frame_buffer_p
1174
1175
14.0M
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
14.0M
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
5.08M
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
14.0M
}
av1_dx_iface.c:frame_is_intra_only
Line
Count
Source
1175
18.4k
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
18.4k
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
9.64k
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
18.4k
}
decodeframe.c:frame_is_intra_only
Line
Count
Source
1175
426k
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
426k
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
236k
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
426k
}
decodemv.c:frame_is_intra_only
Line
Count
Source
1175
13.5M
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
13.5M
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
4.77M
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
13.5M
}
Unexecuted instantiation: decoder.c:frame_is_intra_only
Unexecuted instantiation: decodetxb.c:frame_is_intra_only
Unexecuted instantiation: detokenize.c:frame_is_intra_only
Unexecuted instantiation: obu.c:frame_is_intra_only
Unexecuted instantiation: alloccommon.c:frame_is_intra_only
Unexecuted instantiation: av1_loopfilter.c:frame_is_intra_only
Unexecuted instantiation: blockd.c:frame_is_intra_only
Unexecuted instantiation: cdef.c:frame_is_intra_only
Unexecuted instantiation: cdef_block.c:frame_is_intra_only
Unexecuted instantiation: cfl.c:frame_is_intra_only
Unexecuted instantiation: convolve.c:frame_is_intra_only
Unexecuted instantiation: entropy.c:frame_is_intra_only
Unexecuted instantiation: entropymode.c:frame_is_intra_only
Unexecuted instantiation: entropymv.c:frame_is_intra_only
mvref_common.c:frame_is_intra_only
Line
Count
Source
1175
50.1k
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
50.1k
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
32.1k
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
50.1k
}
Unexecuted instantiation: pred_common.c:frame_is_intra_only
Unexecuted instantiation: quant_common.c:frame_is_intra_only
Unexecuted instantiation: reconinter.c:frame_is_intra_only
Unexecuted instantiation: reconintra.c:frame_is_intra_only
Unexecuted instantiation: resize.c:frame_is_intra_only
Unexecuted instantiation: restoration.c:frame_is_intra_only
Unexecuted instantiation: scan.c:frame_is_intra_only
thread_common.c:frame_is_intra_only
Line
Count
Source
1175
41.7k
static inline int frame_is_intra_only(const AV1_COMMON *const cm) {
1176
41.7k
  return cm->current_frame.frame_type == KEY_FRAME ||
1177
27.9k
         cm->current_frame.frame_type == INTRA_ONLY_FRAME;
1178
41.7k
}
Unexecuted instantiation: tile_common.c:frame_is_intra_only
Unexecuted instantiation: txb_common.c:frame_is_intra_only
Unexecuted instantiation: warped_motion.c:frame_is_intra_only
Unexecuted instantiation: cfl_sse2.c:frame_is_intra_only
Unexecuted instantiation: resize_sse2.c:frame_is_intra_only
Unexecuted instantiation: cfl_ssse3.c:frame_is_intra_only
Unexecuted instantiation: resize_ssse3.c:frame_is_intra_only
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:frame_is_intra_only
Unexecuted instantiation: filterintra_sse4.c:frame_is_intra_only
Unexecuted instantiation: cfl_avx2.c:frame_is_intra_only
Unexecuted instantiation: resize_avx2.c:frame_is_intra_only
1179
1180
193k
static inline int frame_is_sframe(const AV1_COMMON *cm) {
1181
193k
  return cm->current_frame.frame_type == S_FRAME;
1182
193k
}
Unexecuted instantiation: av1_dx_iface.c:frame_is_sframe
decodeframe.c:frame_is_sframe
Line
Count
Source
1180
193k
static inline int frame_is_sframe(const AV1_COMMON *cm) {
1181
193k
  return cm->current_frame.frame_type == S_FRAME;
1182
193k
}
Unexecuted instantiation: decodemv.c:frame_is_sframe
Unexecuted instantiation: decoder.c:frame_is_sframe
Unexecuted instantiation: decodetxb.c:frame_is_sframe
Unexecuted instantiation: detokenize.c:frame_is_sframe
Unexecuted instantiation: obu.c:frame_is_sframe
Unexecuted instantiation: alloccommon.c:frame_is_sframe
Unexecuted instantiation: av1_loopfilter.c:frame_is_sframe
Unexecuted instantiation: blockd.c:frame_is_sframe
Unexecuted instantiation: cdef.c:frame_is_sframe
Unexecuted instantiation: cdef_block.c:frame_is_sframe
Unexecuted instantiation: cfl.c:frame_is_sframe
Unexecuted instantiation: convolve.c:frame_is_sframe
Unexecuted instantiation: entropy.c:frame_is_sframe
Unexecuted instantiation: entropymode.c:frame_is_sframe
Unexecuted instantiation: entropymv.c:frame_is_sframe
Unexecuted instantiation: mvref_common.c:frame_is_sframe
Unexecuted instantiation: pred_common.c:frame_is_sframe
Unexecuted instantiation: quant_common.c:frame_is_sframe
Unexecuted instantiation: reconinter.c:frame_is_sframe
Unexecuted instantiation: reconintra.c:frame_is_sframe
Unexecuted instantiation: resize.c:frame_is_sframe
Unexecuted instantiation: restoration.c:frame_is_sframe
Unexecuted instantiation: scan.c:frame_is_sframe
Unexecuted instantiation: thread_common.c:frame_is_sframe
Unexecuted instantiation: tile_common.c:frame_is_sframe
Unexecuted instantiation: txb_common.c:frame_is_sframe
Unexecuted instantiation: warped_motion.c:frame_is_sframe
Unexecuted instantiation: cfl_sse2.c:frame_is_sframe
Unexecuted instantiation: resize_sse2.c:frame_is_sframe
Unexecuted instantiation: cfl_ssse3.c:frame_is_sframe
Unexecuted instantiation: resize_ssse3.c:frame_is_sframe
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:frame_is_sframe
Unexecuted instantiation: filterintra_sse4.c:frame_is_sframe
Unexecuted instantiation: cfl_avx2.c:frame_is_sframe
Unexecuted instantiation: resize_avx2.c:frame_is_sframe
1183
1184
// These functions take a reference frame label between LAST_FRAME and
1185
// EXTREF_FRAME inclusive.  Note that this is different to the indexing
1186
// previously used by the frame_refs[] array.
1187
static inline int get_ref_frame_map_idx(const AV1_COMMON *const cm,
1188
19.0M
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
19.0M
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
19.0M
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
18.4E
             : INVALID_IDX;
1192
19.0M
}
Unexecuted instantiation: av1_dx_iface.c:get_ref_frame_map_idx
decodeframe.c:get_ref_frame_map_idx
Line
Count
Source
1188
10.1M
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
10.1M
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
10.1M
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
18.4E
             : INVALID_IDX;
1192
10.1M
}
decodemv.c:get_ref_frame_map_idx
Line
Count
Source
1188
3.73M
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
3.73M
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
3.73M
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
18.4E
             : INVALID_IDX;
1192
3.73M
}
decoder.c:get_ref_frame_map_idx
Line
Count
Source
1188
222
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
222
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
222
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
222
             : INVALID_IDX;
1192
222
}
Unexecuted instantiation: decodetxb.c:get_ref_frame_map_idx
Unexecuted instantiation: detokenize.c:get_ref_frame_map_idx
Unexecuted instantiation: obu.c:get_ref_frame_map_idx
Unexecuted instantiation: alloccommon.c:get_ref_frame_map_idx
Unexecuted instantiation: av1_loopfilter.c:get_ref_frame_map_idx
Unexecuted instantiation: blockd.c:get_ref_frame_map_idx
Unexecuted instantiation: cdef.c:get_ref_frame_map_idx
Unexecuted instantiation: cdef_block.c:get_ref_frame_map_idx
Unexecuted instantiation: cfl.c:get_ref_frame_map_idx
Unexecuted instantiation: convolve.c:get_ref_frame_map_idx
Unexecuted instantiation: entropy.c:get_ref_frame_map_idx
entropymode.c:get_ref_frame_map_idx
Line
Count
Source
1188
104k
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
104k
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
104k
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
104k
             : INVALID_IDX;
1192
104k
}
Unexecuted instantiation: entropymv.c:get_ref_frame_map_idx
mvref_common.c:get_ref_frame_map_idx
Line
Count
Source
1188
2.88M
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
2.88M
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
2.88M
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
2.88M
             : INVALID_IDX;
1192
2.88M
}
Unexecuted instantiation: pred_common.c:get_ref_frame_map_idx
Unexecuted instantiation: quant_common.c:get_ref_frame_map_idx
reconinter.c:get_ref_frame_map_idx
Line
Count
Source
1188
2.24M
                                        const MV_REFERENCE_FRAME ref_frame) {
1189
2.24M
  return (ref_frame >= LAST_FRAME && ref_frame <= EXTREF_FRAME)
1190
2.24M
             ? cm->remapped_ref_idx[ref_frame - LAST_FRAME]
1191
18.4E
             : INVALID_IDX;
1192
2.24M
}
Unexecuted instantiation: reconintra.c:get_ref_frame_map_idx
Unexecuted instantiation: resize.c:get_ref_frame_map_idx
Unexecuted instantiation: restoration.c:get_ref_frame_map_idx
Unexecuted instantiation: scan.c:get_ref_frame_map_idx
Unexecuted instantiation: thread_common.c:get_ref_frame_map_idx
Unexecuted instantiation: tile_common.c:get_ref_frame_map_idx
Unexecuted instantiation: txb_common.c:get_ref_frame_map_idx
Unexecuted instantiation: warped_motion.c:get_ref_frame_map_idx
Unexecuted instantiation: cfl_sse2.c:get_ref_frame_map_idx
Unexecuted instantiation: resize_sse2.c:get_ref_frame_map_idx
Unexecuted instantiation: cfl_ssse3.c:get_ref_frame_map_idx
Unexecuted instantiation: resize_ssse3.c:get_ref_frame_map_idx
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_ref_frame_map_idx
Unexecuted instantiation: filterintra_sse4.c:get_ref_frame_map_idx
Unexecuted instantiation: cfl_avx2.c:get_ref_frame_map_idx
Unexecuted instantiation: resize_avx2.c:get_ref_frame_map_idx
1193
1194
static inline RefCntBuffer *get_ref_frame_buf(
1195
9.95M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
9.95M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
9.95M
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
9.95M
}
Unexecuted instantiation: av1_dx_iface.c:get_ref_frame_buf
decodeframe.c:get_ref_frame_buf
Line
Count
Source
1195
5.16M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
5.16M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
5.16M
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
5.16M
}
decodemv.c:get_ref_frame_buf
Line
Count
Source
1195
350k
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
350k
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
350k
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
350k
}
decoder.c:get_ref_frame_buf
Line
Count
Source
1195
222
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
222
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
222
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
222
}
Unexecuted instantiation: decodetxb.c:get_ref_frame_buf
Unexecuted instantiation: detokenize.c:get_ref_frame_buf
Unexecuted instantiation: obu.c:get_ref_frame_buf
Unexecuted instantiation: alloccommon.c:get_ref_frame_buf
Unexecuted instantiation: av1_loopfilter.c:get_ref_frame_buf
Unexecuted instantiation: blockd.c:get_ref_frame_buf
Unexecuted instantiation: cdef.c:get_ref_frame_buf
Unexecuted instantiation: cdef_block.c:get_ref_frame_buf
Unexecuted instantiation: cfl.c:get_ref_frame_buf
Unexecuted instantiation: convolve.c:get_ref_frame_buf
Unexecuted instantiation: entropy.c:get_ref_frame_buf
entropymode.c:get_ref_frame_buf
Line
Count
Source
1195
104k
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
104k
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
104k
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
104k
}
Unexecuted instantiation: entropymv.c:get_ref_frame_buf
mvref_common.c:get_ref_frame_buf
Line
Count
Source
1195
2.88M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
2.88M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
2.88M
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
2.88M
}
Unexecuted instantiation: pred_common.c:get_ref_frame_buf
Unexecuted instantiation: quant_common.c:get_ref_frame_buf
reconinter.c:get_ref_frame_buf
Line
Count
Source
1195
1.44M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1196
1.44M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1197
1.44M
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1198
1.44M
}
Unexecuted instantiation: reconintra.c:get_ref_frame_buf
Unexecuted instantiation: resize.c:get_ref_frame_buf
Unexecuted instantiation: restoration.c:get_ref_frame_buf
Unexecuted instantiation: scan.c:get_ref_frame_buf
Unexecuted instantiation: thread_common.c:get_ref_frame_buf
Unexecuted instantiation: tile_common.c:get_ref_frame_buf
Unexecuted instantiation: txb_common.c:get_ref_frame_buf
Unexecuted instantiation: warped_motion.c:get_ref_frame_buf
Unexecuted instantiation: cfl_sse2.c:get_ref_frame_buf
Unexecuted instantiation: resize_sse2.c:get_ref_frame_buf
Unexecuted instantiation: cfl_ssse3.c:get_ref_frame_buf
Unexecuted instantiation: resize_ssse3.c:get_ref_frame_buf
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_ref_frame_buf
Unexecuted instantiation: filterintra_sse4.c:get_ref_frame_buf
Unexecuted instantiation: cfl_avx2.c:get_ref_frame_buf
Unexecuted instantiation: resize_avx2.c:get_ref_frame_buf
1199
1200
// Both const and non-const versions of this function are provided so that it
1201
// can be used with a const AV1_COMMON if needed.
1202
static inline const struct scale_factors *get_ref_scale_factors_const(
1203
8.92M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1204
8.92M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1205
8.92M
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1206
8.92M
}
Unexecuted instantiation: av1_dx_iface.c:get_ref_scale_factors_const
decodeframe.c:get_ref_scale_factors_const
Line
Count
Source
1203
4.73M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1204
4.73M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1205
4.73M
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1206
4.73M
}
decodemv.c:get_ref_scale_factors_const
Line
Count
Source
1203
3.39M
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1204
3.39M
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1205
3.39M
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1206
3.39M
}
Unexecuted instantiation: decoder.c:get_ref_scale_factors_const
Unexecuted instantiation: decodetxb.c:get_ref_scale_factors_const
Unexecuted instantiation: detokenize.c:get_ref_scale_factors_const
Unexecuted instantiation: obu.c:get_ref_scale_factors_const
Unexecuted instantiation: alloccommon.c:get_ref_scale_factors_const
Unexecuted instantiation: av1_loopfilter.c:get_ref_scale_factors_const
Unexecuted instantiation: blockd.c:get_ref_scale_factors_const
Unexecuted instantiation: cdef.c:get_ref_scale_factors_const
Unexecuted instantiation: cdef_block.c:get_ref_scale_factors_const
Unexecuted instantiation: cfl.c:get_ref_scale_factors_const
Unexecuted instantiation: convolve.c:get_ref_scale_factors_const
Unexecuted instantiation: entropy.c:get_ref_scale_factors_const
Unexecuted instantiation: entropymode.c:get_ref_scale_factors_const
Unexecuted instantiation: entropymv.c:get_ref_scale_factors_const
Unexecuted instantiation: mvref_common.c:get_ref_scale_factors_const
Unexecuted instantiation: pred_common.c:get_ref_scale_factors_const
Unexecuted instantiation: quant_common.c:get_ref_scale_factors_const
reconinter.c:get_ref_scale_factors_const
Line
Count
Source
1203
795k
    const AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1204
795k
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1205
795k
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1206
795k
}
Unexecuted instantiation: reconintra.c:get_ref_scale_factors_const
Unexecuted instantiation: resize.c:get_ref_scale_factors_const
Unexecuted instantiation: restoration.c:get_ref_scale_factors_const
Unexecuted instantiation: scan.c:get_ref_scale_factors_const
Unexecuted instantiation: thread_common.c:get_ref_scale_factors_const
Unexecuted instantiation: tile_common.c:get_ref_scale_factors_const
Unexecuted instantiation: txb_common.c:get_ref_scale_factors_const
Unexecuted instantiation: warped_motion.c:get_ref_scale_factors_const
Unexecuted instantiation: cfl_sse2.c:get_ref_scale_factors_const
Unexecuted instantiation: resize_sse2.c:get_ref_scale_factors_const
Unexecuted instantiation: cfl_ssse3.c:get_ref_scale_factors_const
Unexecuted instantiation: resize_ssse3.c:get_ref_scale_factors_const
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_ref_scale_factors_const
Unexecuted instantiation: filterintra_sse4.c:get_ref_scale_factors_const
Unexecuted instantiation: cfl_avx2.c:get_ref_scale_factors_const
Unexecuted instantiation: resize_avx2.c:get_ref_scale_factors_const
1207
1208
static inline struct scale_factors *get_ref_scale_factors(
1209
147k
    AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1210
147k
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1211
147k
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1212
147k
}
Unexecuted instantiation: av1_dx_iface.c:get_ref_scale_factors
decodeframe.c:get_ref_scale_factors
Line
Count
Source
1209
147k
    AV1_COMMON *const cm, const MV_REFERENCE_FRAME ref_frame) {
1210
147k
  const int map_idx = get_ref_frame_map_idx(cm, ref_frame);
1211
147k
  return (map_idx != INVALID_IDX) ? &cm->ref_scale_factors[map_idx] : NULL;
1212
147k
}
Unexecuted instantiation: decodemv.c:get_ref_scale_factors
Unexecuted instantiation: decoder.c:get_ref_scale_factors
Unexecuted instantiation: decodetxb.c:get_ref_scale_factors
Unexecuted instantiation: detokenize.c:get_ref_scale_factors
Unexecuted instantiation: obu.c:get_ref_scale_factors
Unexecuted instantiation: alloccommon.c:get_ref_scale_factors
Unexecuted instantiation: av1_loopfilter.c:get_ref_scale_factors
Unexecuted instantiation: blockd.c:get_ref_scale_factors
Unexecuted instantiation: cdef.c:get_ref_scale_factors
Unexecuted instantiation: cdef_block.c:get_ref_scale_factors
Unexecuted instantiation: cfl.c:get_ref_scale_factors
Unexecuted instantiation: convolve.c:get_ref_scale_factors
Unexecuted instantiation: entropy.c:get_ref_scale_factors
Unexecuted instantiation: entropymode.c:get_ref_scale_factors
Unexecuted instantiation: entropymv.c:get_ref_scale_factors
Unexecuted instantiation: mvref_common.c:get_ref_scale_factors
Unexecuted instantiation: pred_common.c:get_ref_scale_factors
Unexecuted instantiation: quant_common.c:get_ref_scale_factors
Unexecuted instantiation: reconinter.c:get_ref_scale_factors
Unexecuted instantiation: reconintra.c:get_ref_scale_factors
Unexecuted instantiation: resize.c:get_ref_scale_factors
Unexecuted instantiation: restoration.c:get_ref_scale_factors
Unexecuted instantiation: scan.c:get_ref_scale_factors
Unexecuted instantiation: thread_common.c:get_ref_scale_factors
Unexecuted instantiation: tile_common.c:get_ref_scale_factors
Unexecuted instantiation: txb_common.c:get_ref_scale_factors
Unexecuted instantiation: warped_motion.c:get_ref_scale_factors
Unexecuted instantiation: cfl_sse2.c:get_ref_scale_factors
Unexecuted instantiation: resize_sse2.c:get_ref_scale_factors
Unexecuted instantiation: cfl_ssse3.c:get_ref_scale_factors
Unexecuted instantiation: resize_ssse3.c:get_ref_scale_factors
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_ref_scale_factors
Unexecuted instantiation: filterintra_sse4.c:get_ref_scale_factors
Unexecuted instantiation: cfl_avx2.c:get_ref_scale_factors
Unexecuted instantiation: resize_avx2.c:get_ref_scale_factors
1213
1214
static inline RefCntBuffer *get_primary_ref_frame_buf(
1215
94.9k
    const AV1_COMMON *const cm) {
1216
94.9k
  const int primary_ref_frame = cm->features.primary_ref_frame;
1217
94.9k
  if (primary_ref_frame == PRIMARY_REF_NONE) return NULL;
1218
76.4k
  const int map_idx = get_ref_frame_map_idx(cm, primary_ref_frame + 1);
1219
76.4k
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1220
94.9k
}
Unexecuted instantiation: av1_dx_iface.c:get_primary_ref_frame_buf
decodeframe.c:get_primary_ref_frame_buf
Line
Count
Source
1215
94.9k
    const AV1_COMMON *const cm) {
1216
94.9k
  const int primary_ref_frame = cm->features.primary_ref_frame;
1217
94.9k
  if (primary_ref_frame == PRIMARY_REF_NONE) return NULL;
1218
76.4k
  const int map_idx = get_ref_frame_map_idx(cm, primary_ref_frame + 1);
1219
76.4k
  return (map_idx != INVALID_IDX) ? cm->ref_frame_map[map_idx] : NULL;
1220
94.9k
}
Unexecuted instantiation: decodemv.c:get_primary_ref_frame_buf
Unexecuted instantiation: decoder.c:get_primary_ref_frame_buf
Unexecuted instantiation: decodetxb.c:get_primary_ref_frame_buf
Unexecuted instantiation: detokenize.c:get_primary_ref_frame_buf
Unexecuted instantiation: obu.c:get_primary_ref_frame_buf
Unexecuted instantiation: alloccommon.c:get_primary_ref_frame_buf
Unexecuted instantiation: av1_loopfilter.c:get_primary_ref_frame_buf
Unexecuted instantiation: blockd.c:get_primary_ref_frame_buf
Unexecuted instantiation: cdef.c:get_primary_ref_frame_buf
Unexecuted instantiation: cdef_block.c:get_primary_ref_frame_buf
Unexecuted instantiation: cfl.c:get_primary_ref_frame_buf
Unexecuted instantiation: convolve.c:get_primary_ref_frame_buf
Unexecuted instantiation: entropy.c:get_primary_ref_frame_buf
Unexecuted instantiation: entropymode.c:get_primary_ref_frame_buf
Unexecuted instantiation: entropymv.c:get_primary_ref_frame_buf
Unexecuted instantiation: mvref_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: pred_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: quant_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: reconinter.c:get_primary_ref_frame_buf
Unexecuted instantiation: reconintra.c:get_primary_ref_frame_buf
Unexecuted instantiation: resize.c:get_primary_ref_frame_buf
Unexecuted instantiation: restoration.c:get_primary_ref_frame_buf
Unexecuted instantiation: scan.c:get_primary_ref_frame_buf
Unexecuted instantiation: thread_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: tile_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: txb_common.c:get_primary_ref_frame_buf
Unexecuted instantiation: warped_motion.c:get_primary_ref_frame_buf
Unexecuted instantiation: cfl_sse2.c:get_primary_ref_frame_buf
Unexecuted instantiation: resize_sse2.c:get_primary_ref_frame_buf
Unexecuted instantiation: cfl_ssse3.c:get_primary_ref_frame_buf
Unexecuted instantiation: resize_ssse3.c:get_primary_ref_frame_buf
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_primary_ref_frame_buf
Unexecuted instantiation: filterintra_sse4.c:get_primary_ref_frame_buf
Unexecuted instantiation: cfl_avx2.c:get_primary_ref_frame_buf
Unexecuted instantiation: resize_avx2.c:get_primary_ref_frame_buf
1221
1222
// Returns 1 if this frame might allow mvs from some reference frame.
1223
30.4k
static inline int frame_might_allow_ref_frame_mvs(const AV1_COMMON *cm) {
1224
30.4k
  return !cm->features.error_resilient_mode &&
1225
28.2k
         cm->seq_params->order_hint_info.enable_ref_frame_mvs &&
1226
27.5k
         cm->seq_params->order_hint_info.enable_order_hint &&
1227
27.5k
         !frame_is_intra_only(cm);
1228
30.4k
}
Unexecuted instantiation: av1_dx_iface.c:frame_might_allow_ref_frame_mvs
decodeframe.c:frame_might_allow_ref_frame_mvs
Line
Count
Source
1223
30.4k
static inline int frame_might_allow_ref_frame_mvs(const AV1_COMMON *cm) {
1224
30.4k
  return !cm->features.error_resilient_mode &&
1225
28.2k
         cm->seq_params->order_hint_info.enable_ref_frame_mvs &&
1226
27.5k
         cm->seq_params->order_hint_info.enable_order_hint &&
1227
27.5k
         !frame_is_intra_only(cm);
1228
30.4k
}
Unexecuted instantiation: decodemv.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: decoder.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: decodetxb.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: detokenize.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: obu.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: alloccommon.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: av1_loopfilter.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: blockd.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cdef.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cdef_block.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cfl.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: convolve.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: entropy.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: entropymode.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: entropymv.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: mvref_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: pred_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: quant_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: reconinter.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: reconintra.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: resize.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: restoration.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: scan.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: thread_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: tile_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: txb_common.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: warped_motion.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cfl_sse2.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: resize_sse2.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cfl_ssse3.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: resize_ssse3.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: filterintra_sse4.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: cfl_avx2.c:frame_might_allow_ref_frame_mvs
Unexecuted instantiation: resize_avx2.c:frame_might_allow_ref_frame_mvs
1229
1230
// Returns 1 if this frame might use warped_motion
1231
72.6k
static inline int frame_might_allow_warped_motion(const AV1_COMMON *cm) {
1232
72.6k
  return !cm->features.error_resilient_mode && !frame_is_intra_only(cm) &&
1233
17.6k
         cm->seq_params->enable_warped_motion;
1234
72.6k
}
Unexecuted instantiation: av1_dx_iface.c:frame_might_allow_warped_motion
decodeframe.c:frame_might_allow_warped_motion
Line
Count
Source
1231
72.6k
static inline int frame_might_allow_warped_motion(const AV1_COMMON *cm) {
1232
72.6k
  return !cm->features.error_resilient_mode && !frame_is_intra_only(cm) &&
1233
17.6k
         cm->seq_params->enable_warped_motion;
1234
72.6k
}
Unexecuted instantiation: decodemv.c:frame_might_allow_warped_motion
Unexecuted instantiation: decoder.c:frame_might_allow_warped_motion
Unexecuted instantiation: decodetxb.c:frame_might_allow_warped_motion
Unexecuted instantiation: detokenize.c:frame_might_allow_warped_motion
Unexecuted instantiation: obu.c:frame_might_allow_warped_motion
Unexecuted instantiation: alloccommon.c:frame_might_allow_warped_motion
Unexecuted instantiation: av1_loopfilter.c:frame_might_allow_warped_motion
Unexecuted instantiation: blockd.c:frame_might_allow_warped_motion
Unexecuted instantiation: cdef.c:frame_might_allow_warped_motion
Unexecuted instantiation: cdef_block.c:frame_might_allow_warped_motion
Unexecuted instantiation: cfl.c:frame_might_allow_warped_motion
Unexecuted instantiation: convolve.c:frame_might_allow_warped_motion
Unexecuted instantiation: entropy.c:frame_might_allow_warped_motion
Unexecuted instantiation: entropymode.c:frame_might_allow_warped_motion
Unexecuted instantiation: entropymv.c:frame_might_allow_warped_motion
Unexecuted instantiation: mvref_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: pred_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: quant_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: reconinter.c:frame_might_allow_warped_motion
Unexecuted instantiation: reconintra.c:frame_might_allow_warped_motion
Unexecuted instantiation: resize.c:frame_might_allow_warped_motion
Unexecuted instantiation: restoration.c:frame_might_allow_warped_motion
Unexecuted instantiation: scan.c:frame_might_allow_warped_motion
Unexecuted instantiation: thread_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: tile_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: txb_common.c:frame_might_allow_warped_motion
Unexecuted instantiation: warped_motion.c:frame_might_allow_warped_motion
Unexecuted instantiation: cfl_sse2.c:frame_might_allow_warped_motion
Unexecuted instantiation: resize_sse2.c:frame_might_allow_warped_motion
Unexecuted instantiation: cfl_ssse3.c:frame_might_allow_warped_motion
Unexecuted instantiation: resize_ssse3.c:frame_might_allow_warped_motion
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:frame_might_allow_warped_motion
Unexecuted instantiation: filterintra_sse4.c:frame_might_allow_warped_motion
Unexecuted instantiation: cfl_avx2.c:frame_might_allow_warped_motion
Unexecuted instantiation: resize_avx2.c:frame_might_allow_warped_motion
1235
1236
84.0k
static inline void ensure_mv_buffer(RefCntBuffer *buf, AV1_COMMON *cm) {
1237
84.0k
  const int buf_rows = buf->mi_rows;
1238
84.0k
  const int buf_cols = buf->mi_cols;
1239
84.0k
  const CommonModeInfoParams *const mi_params = &cm->mi_params;
1240
1241
84.0k
  if (buf->mvs == NULL || buf_rows != mi_params->mi_rows ||
1242
51.8k
      buf_cols != mi_params->mi_cols) {
1243
37.2k
    aom_free(buf->mvs);
1244
37.2k
    buf->mi_rows = mi_params->mi_rows;
1245
37.2k
    buf->mi_cols = mi_params->mi_cols;
1246
37.2k
    CHECK_MEM_ERROR(cm, buf->mvs,
1247
37.2k
                    (MV_REF *)aom_calloc(((mi_params->mi_rows + 1) >> 1) *
1248
37.2k
                                             ((mi_params->mi_cols + 1) >> 1),
1249
37.2k
                                         sizeof(*buf->mvs)));
1250
37.2k
    aom_free(buf->seg_map);
1251
37.2k
    CHECK_MEM_ERROR(
1252
37.2k
        cm, buf->seg_map,
1253
37.2k
        (uint8_t *)aom_calloc(mi_params->mi_rows * mi_params->mi_cols,
1254
37.2k
                              sizeof(*buf->seg_map)));
1255
37.2k
  }
1256
1257
84.0k
  const int mem_size =
1258
84.0k
      ((mi_params->mi_rows + MAX_MIB_SIZE) >> 1) * (mi_params->mi_stride >> 1);
1259
1260
84.0k
  if (cm->tpl_mvs == NULL || cm->tpl_mvs_mem_size < mem_size) {
1261
7.05k
    aom_free(cm->tpl_mvs);
1262
7.05k
    CHECK_MEM_ERROR(cm, cm->tpl_mvs,
1263
7.05k
                    (TPL_MV_REF *)aom_calloc(mem_size, sizeof(*cm->tpl_mvs)));
1264
7.05k
    cm->tpl_mvs_mem_size = mem_size;
1265
7.05k
  }
1266
84.0k
}
Unexecuted instantiation: av1_dx_iface.c:ensure_mv_buffer
decodeframe.c:ensure_mv_buffer
Line
Count
Source
1236
84.0k
static inline void ensure_mv_buffer(RefCntBuffer *buf, AV1_COMMON *cm) {
1237
84.0k
  const int buf_rows = buf->mi_rows;
1238
84.0k
  const int buf_cols = buf->mi_cols;
1239
84.0k
  const CommonModeInfoParams *const mi_params = &cm->mi_params;
1240
1241
84.0k
  if (buf->mvs == NULL || buf_rows != mi_params->mi_rows ||
1242
51.8k
      buf_cols != mi_params->mi_cols) {
1243
37.2k
    aom_free(buf->mvs);
1244
37.2k
    buf->mi_rows = mi_params->mi_rows;
1245
37.2k
    buf->mi_cols = mi_params->mi_cols;
1246
37.2k
    CHECK_MEM_ERROR(cm, buf->mvs,
1247
37.2k
                    (MV_REF *)aom_calloc(((mi_params->mi_rows + 1) >> 1) *
1248
37.2k
                                             ((mi_params->mi_cols + 1) >> 1),
1249
37.2k
                                         sizeof(*buf->mvs)));
1250
37.2k
    aom_free(buf->seg_map);
1251
37.2k
    CHECK_MEM_ERROR(
1252
37.2k
        cm, buf->seg_map,
1253
37.2k
        (uint8_t *)aom_calloc(mi_params->mi_rows * mi_params->mi_cols,
1254
37.2k
                              sizeof(*buf->seg_map)));
1255
37.2k
  }
1256
1257
84.0k
  const int mem_size =
1258
84.0k
      ((mi_params->mi_rows + MAX_MIB_SIZE) >> 1) * (mi_params->mi_stride >> 1);
1259
1260
84.0k
  if (cm->tpl_mvs == NULL || cm->tpl_mvs_mem_size < mem_size) {
1261
7.05k
    aom_free(cm->tpl_mvs);
1262
7.05k
    CHECK_MEM_ERROR(cm, cm->tpl_mvs,
1263
7.05k
                    (TPL_MV_REF *)aom_calloc(mem_size, sizeof(*cm->tpl_mvs)));
1264
7.05k
    cm->tpl_mvs_mem_size = mem_size;
1265
7.05k
  }
1266
84.0k
}
Unexecuted instantiation: decodemv.c:ensure_mv_buffer
Unexecuted instantiation: decoder.c:ensure_mv_buffer
Unexecuted instantiation: decodetxb.c:ensure_mv_buffer
Unexecuted instantiation: detokenize.c:ensure_mv_buffer
Unexecuted instantiation: obu.c:ensure_mv_buffer
Unexecuted instantiation: alloccommon.c:ensure_mv_buffer
Unexecuted instantiation: av1_loopfilter.c:ensure_mv_buffer
Unexecuted instantiation: blockd.c:ensure_mv_buffer
Unexecuted instantiation: cdef.c:ensure_mv_buffer
Unexecuted instantiation: cdef_block.c:ensure_mv_buffer
Unexecuted instantiation: cfl.c:ensure_mv_buffer
Unexecuted instantiation: convolve.c:ensure_mv_buffer
Unexecuted instantiation: entropy.c:ensure_mv_buffer
Unexecuted instantiation: entropymode.c:ensure_mv_buffer
Unexecuted instantiation: entropymv.c:ensure_mv_buffer
Unexecuted instantiation: mvref_common.c:ensure_mv_buffer
Unexecuted instantiation: pred_common.c:ensure_mv_buffer
Unexecuted instantiation: quant_common.c:ensure_mv_buffer
Unexecuted instantiation: reconinter.c:ensure_mv_buffer
Unexecuted instantiation: reconintra.c:ensure_mv_buffer
Unexecuted instantiation: resize.c:ensure_mv_buffer
Unexecuted instantiation: restoration.c:ensure_mv_buffer
Unexecuted instantiation: scan.c:ensure_mv_buffer
Unexecuted instantiation: thread_common.c:ensure_mv_buffer
Unexecuted instantiation: tile_common.c:ensure_mv_buffer
Unexecuted instantiation: txb_common.c:ensure_mv_buffer
Unexecuted instantiation: warped_motion.c:ensure_mv_buffer
Unexecuted instantiation: cfl_sse2.c:ensure_mv_buffer
Unexecuted instantiation: resize_sse2.c:ensure_mv_buffer
Unexecuted instantiation: cfl_ssse3.c:ensure_mv_buffer
Unexecuted instantiation: resize_ssse3.c:ensure_mv_buffer
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:ensure_mv_buffer
Unexecuted instantiation: filterintra_sse4.c:ensure_mv_buffer
Unexecuted instantiation: cfl_avx2.c:ensure_mv_buffer
Unexecuted instantiation: resize_avx2.c:ensure_mv_buffer
1267
1268
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1269
void cfl_init(CFL_CTX *cfl, const SequenceHeader *seq_params);
1270
#endif
1271
1272
98.5M
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
98.5M
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
98.5M
}
av1_dx_iface.c:av1_num_planes
Line
Count
Source
1272
24.0k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
24.0k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
24.0k
}
decodeframe.c:av1_num_planes
Line
Count
Source
1272
49.4M
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
49.4M
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
49.4M
}
decodemv.c:av1_num_planes
Line
Count
Source
1272
840k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
840k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
840k
}
decoder.c:av1_num_planes
Line
Count
Source
1272
44.5M
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
44.5M
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
44.5M
}
Unexecuted instantiation: decodetxb.c:av1_num_planes
Unexecuted instantiation: detokenize.c:av1_num_planes
Unexecuted instantiation: obu.c:av1_num_planes
alloccommon.c:av1_num_planes
Line
Count
Source
1272
55.1k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
55.1k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
55.1k
}
Unexecuted instantiation: av1_loopfilter.c:av1_num_planes
Unexecuted instantiation: blockd.c:av1_num_planes
cdef.c:av1_num_planes
Line
Count
Source
1272
381k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
381k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
381k
}
Unexecuted instantiation: cdef_block.c:av1_num_planes
Unexecuted instantiation: cfl.c:av1_num_planes
Unexecuted instantiation: convolve.c:av1_num_planes
Unexecuted instantiation: entropy.c:av1_num_planes
Unexecuted instantiation: entropymode.c:av1_num_planes
Unexecuted instantiation: entropymv.c:av1_num_planes
Unexecuted instantiation: mvref_common.c:av1_num_planes
Unexecuted instantiation: pred_common.c:av1_num_planes
Unexecuted instantiation: quant_common.c:av1_num_planes
reconinter.c:av1_num_planes
Line
Count
Source
1272
2.92M
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
2.92M
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
2.92M
}
Unexecuted instantiation: reconintra.c:av1_num_planes
resize.c:av1_num_planes
Line
Count
Source
1272
9.78k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
9.78k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
9.78k
}
restoration.c:av1_num_planes
Line
Count
Source
1272
19.2k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
19.2k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
19.2k
}
Unexecuted instantiation: scan.c:av1_num_planes
thread_common.c:av1_num_planes
Line
Count
Source
1272
284k
static inline int av1_num_planes(const AV1_COMMON *cm) {
1273
284k
  return cm->seq_params->monochrome ? 1 : MAX_MB_PLANE;
1274
284k
}
Unexecuted instantiation: tile_common.c:av1_num_planes
Unexecuted instantiation: txb_common.c:av1_num_planes
Unexecuted instantiation: warped_motion.c:av1_num_planes
Unexecuted instantiation: cfl_sse2.c:av1_num_planes
Unexecuted instantiation: resize_sse2.c:av1_num_planes
Unexecuted instantiation: cfl_ssse3.c:av1_num_planes
Unexecuted instantiation: resize_ssse3.c:av1_num_planes
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:av1_num_planes
Unexecuted instantiation: filterintra_sse4.c:av1_num_planes
Unexecuted instantiation: cfl_avx2.c:av1_num_planes
Unexecuted instantiation: resize_avx2.c:av1_num_planes
1275
1276
static inline void av1_init_above_context(CommonContexts *above_contexts,
1277
                                          int num_planes, int tile_row,
1278
68.2k
                                          MACROBLOCKD *xd) {
1279
254k
  for (int i = 0; i < num_planes; ++i) {
1280
186k
    xd->above_entropy_context[i] = above_contexts->entropy[i][tile_row];
1281
186k
  }
1282
68.2k
  xd->above_partition_context = above_contexts->partition[tile_row];
1283
68.2k
  xd->above_txfm_context = above_contexts->txfm[tile_row];
1284
68.2k
}
Unexecuted instantiation: av1_dx_iface.c:av1_init_above_context
decodeframe.c:av1_init_above_context
Line
Count
Source
1278
68.2k
                                          MACROBLOCKD *xd) {
1279
254k
  for (int i = 0; i < num_planes; ++i) {
1280
186k
    xd->above_entropy_context[i] = above_contexts->entropy[i][tile_row];
1281
186k
  }
1282
68.2k
  xd->above_partition_context = above_contexts->partition[tile_row];
1283
68.2k
  xd->above_txfm_context = above_contexts->txfm[tile_row];
1284
68.2k
}
Unexecuted instantiation: decodemv.c:av1_init_above_context
Unexecuted instantiation: decoder.c:av1_init_above_context
Unexecuted instantiation: decodetxb.c:av1_init_above_context
Unexecuted instantiation: detokenize.c:av1_init_above_context
Unexecuted instantiation: obu.c:av1_init_above_context
Unexecuted instantiation: alloccommon.c:av1_init_above_context
Unexecuted instantiation: av1_loopfilter.c:av1_init_above_context
Unexecuted instantiation: blockd.c:av1_init_above_context
Unexecuted instantiation: cdef.c:av1_init_above_context
Unexecuted instantiation: cdef_block.c:av1_init_above_context
Unexecuted instantiation: cfl.c:av1_init_above_context
Unexecuted instantiation: convolve.c:av1_init_above_context
Unexecuted instantiation: entropy.c:av1_init_above_context
Unexecuted instantiation: entropymode.c:av1_init_above_context
Unexecuted instantiation: entropymv.c:av1_init_above_context
Unexecuted instantiation: mvref_common.c:av1_init_above_context
Unexecuted instantiation: pred_common.c:av1_init_above_context
Unexecuted instantiation: quant_common.c:av1_init_above_context
Unexecuted instantiation: reconinter.c:av1_init_above_context
Unexecuted instantiation: reconintra.c:av1_init_above_context
Unexecuted instantiation: resize.c:av1_init_above_context
Unexecuted instantiation: restoration.c:av1_init_above_context
Unexecuted instantiation: scan.c:av1_init_above_context
Unexecuted instantiation: thread_common.c:av1_init_above_context
Unexecuted instantiation: tile_common.c:av1_init_above_context
Unexecuted instantiation: txb_common.c:av1_init_above_context
Unexecuted instantiation: warped_motion.c:av1_init_above_context
Unexecuted instantiation: cfl_sse2.c:av1_init_above_context
Unexecuted instantiation: resize_sse2.c:av1_init_above_context
Unexecuted instantiation: cfl_ssse3.c:av1_init_above_context
Unexecuted instantiation: resize_ssse3.c:av1_init_above_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:av1_init_above_context
Unexecuted instantiation: filterintra_sse4.c:av1_init_above_context
Unexecuted instantiation: cfl_avx2.c:av1_init_above_context
Unexecuted instantiation: resize_avx2.c:av1_init_above_context
1285
1286
129k
static inline void av1_init_macroblockd(AV1_COMMON *cm, MACROBLOCKD *xd) {
1287
129k
  const int num_planes = av1_num_planes(cm);
1288
129k
  const CommonQuantParams *const quant_params = &cm->quant_params;
1289
1290
484k
  for (int i = 0; i < num_planes; ++i) {
1291
355k
    if (xd->plane[i].plane_type == PLANE_TYPE_Y) {
1292
129k
      memcpy(xd->plane[i].seg_dequant_QTX, quant_params->y_dequant_QTX,
1293
129k
             sizeof(quant_params->y_dequant_QTX));
1294
129k
      memcpy(xd->plane[i].seg_iqmatrix, quant_params->y_iqmatrix,
1295
129k
             sizeof(quant_params->y_iqmatrix));
1296
1297
225k
    } else {
1298
225k
      if (i == AOM_PLANE_U) {
1299
113k
        memcpy(xd->plane[i].seg_dequant_QTX, quant_params->u_dequant_QTX,
1300
113k
               sizeof(quant_params->u_dequant_QTX));
1301
113k
        memcpy(xd->plane[i].seg_iqmatrix, quant_params->u_iqmatrix,
1302
113k
               sizeof(quant_params->u_iqmatrix));
1303
113k
      } else {
1304
112k
        memcpy(xd->plane[i].seg_dequant_QTX, quant_params->v_dequant_QTX,
1305
112k
               sizeof(quant_params->v_dequant_QTX));
1306
112k
        memcpy(xd->plane[i].seg_iqmatrix, quant_params->v_iqmatrix,
1307
112k
               sizeof(quant_params->v_iqmatrix));
1308
112k
      }
1309
225k
    }
1310
355k
  }
1311
129k
  xd->mi_stride = cm->mi_params.mi_stride;
1312
129k
  xd->error_info = cm->error;
1313
129k
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1314
129k
  cfl_init(&xd->cfl, cm->seq_params);
1315
129k
#endif
1316
129k
}
Unexecuted instantiation: av1_dx_iface.c:av1_init_macroblockd
decodeframe.c:av1_init_macroblockd
Line
Count
Source
1286
129k
static inline void av1_init_macroblockd(AV1_COMMON *cm, MACROBLOCKD *xd) {
1287
129k
  const int num_planes = av1_num_planes(cm);
1288
129k
  const CommonQuantParams *const quant_params = &cm->quant_params;
1289
1290
484k
  for (int i = 0; i < num_planes; ++i) {
1291
355k
    if (xd->plane[i].plane_type == PLANE_TYPE_Y) {
1292
129k
      memcpy(xd->plane[i].seg_dequant_QTX, quant_params->y_dequant_QTX,
1293
129k
             sizeof(quant_params->y_dequant_QTX));
1294
129k
      memcpy(xd->plane[i].seg_iqmatrix, quant_params->y_iqmatrix,
1295
129k
             sizeof(quant_params->y_iqmatrix));
1296
1297
225k
    } else {
1298
225k
      if (i == AOM_PLANE_U) {
1299
113k
        memcpy(xd->plane[i].seg_dequant_QTX, quant_params->u_dequant_QTX,
1300
113k
               sizeof(quant_params->u_dequant_QTX));
1301
113k
        memcpy(xd->plane[i].seg_iqmatrix, quant_params->u_iqmatrix,
1302
113k
               sizeof(quant_params->u_iqmatrix));
1303
113k
      } else {
1304
112k
        memcpy(xd->plane[i].seg_dequant_QTX, quant_params->v_dequant_QTX,
1305
112k
               sizeof(quant_params->v_dequant_QTX));
1306
112k
        memcpy(xd->plane[i].seg_iqmatrix, quant_params->v_iqmatrix,
1307
112k
               sizeof(quant_params->v_iqmatrix));
1308
112k
      }
1309
225k
    }
1310
355k
  }
1311
129k
  xd->mi_stride = cm->mi_params.mi_stride;
1312
129k
  xd->error_info = cm->error;
1313
129k
#if !CONFIG_REALTIME_ONLY || CONFIG_AV1_DECODER
1314
129k
  cfl_init(&xd->cfl, cm->seq_params);
1315
129k
#endif
1316
129k
}
Unexecuted instantiation: decodemv.c:av1_init_macroblockd
Unexecuted instantiation: decoder.c:av1_init_macroblockd
Unexecuted instantiation: decodetxb.c:av1_init_macroblockd
Unexecuted instantiation: detokenize.c:av1_init_macroblockd
Unexecuted instantiation: obu.c:av1_init_macroblockd
Unexecuted instantiation: alloccommon.c:av1_init_macroblockd
Unexecuted instantiation: av1_loopfilter.c:av1_init_macroblockd
Unexecuted instantiation: blockd.c:av1_init_macroblockd
Unexecuted instantiation: cdef.c:av1_init_macroblockd
Unexecuted instantiation: cdef_block.c:av1_init_macroblockd
Unexecuted instantiation: cfl.c:av1_init_macroblockd
Unexecuted instantiation: convolve.c:av1_init_macroblockd
Unexecuted instantiation: entropy.c:av1_init_macroblockd
Unexecuted instantiation: entropymode.c:av1_init_macroblockd
Unexecuted instantiation: entropymv.c:av1_init_macroblockd
Unexecuted instantiation: mvref_common.c:av1_init_macroblockd
Unexecuted instantiation: pred_common.c:av1_init_macroblockd
Unexecuted instantiation: quant_common.c:av1_init_macroblockd
Unexecuted instantiation: reconinter.c:av1_init_macroblockd
Unexecuted instantiation: reconintra.c:av1_init_macroblockd
Unexecuted instantiation: resize.c:av1_init_macroblockd
Unexecuted instantiation: restoration.c:av1_init_macroblockd
Unexecuted instantiation: scan.c:av1_init_macroblockd
Unexecuted instantiation: thread_common.c:av1_init_macroblockd
Unexecuted instantiation: tile_common.c:av1_init_macroblockd
Unexecuted instantiation: txb_common.c:av1_init_macroblockd
Unexecuted instantiation: warped_motion.c:av1_init_macroblockd
Unexecuted instantiation: cfl_sse2.c:av1_init_macroblockd
Unexecuted instantiation: resize_sse2.c:av1_init_macroblockd
Unexecuted instantiation: cfl_ssse3.c:av1_init_macroblockd
Unexecuted instantiation: resize_ssse3.c:av1_init_macroblockd
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:av1_init_macroblockd
Unexecuted instantiation: filterintra_sse4.c:av1_init_macroblockd
Unexecuted instantiation: cfl_avx2.c:av1_init_macroblockd
Unexecuted instantiation: resize_avx2.c:av1_init_macroblockd
1317
1318
static inline void set_entropy_context(MACROBLOCKD *xd, int mi_row, int mi_col,
1319
8.95M
                                       const int num_planes) {
1320
8.95M
  int i;
1321
8.95M
  int row_offset = mi_row;
1322
8.95M
  int col_offset = mi_col;
1323
34.5M
  for (i = 0; i < num_planes; ++i) {
1324
25.6M
    struct macroblockd_plane *const pd = &xd->plane[i];
1325
    // Offset the buffer pointer
1326
25.6M
    const BLOCK_SIZE bsize = xd->mi[0]->bsize;
1327
25.6M
    if (pd->subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
1328
1.13M
      row_offset = mi_row - 1;
1329
25.6M
    if (pd->subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
1330
973k
      col_offset = mi_col - 1;
1331
25.6M
    int above_idx = col_offset;
1332
25.6M
    int left_idx = row_offset & MAX_MIB_MASK;
1333
25.6M
    pd->above_entropy_context =
1334
25.6M
        &xd->above_entropy_context[i][above_idx >> pd->subsampling_x];
1335
25.6M
    pd->left_entropy_context =
1336
25.6M
        &xd->left_entropy_context[i][left_idx >> pd->subsampling_y];
1337
25.6M
  }
1338
8.95M
}
Unexecuted instantiation: av1_dx_iface.c:set_entropy_context
decodeframe.c:set_entropy_context
Line
Count
Source
1319
8.95M
                                       const int num_planes) {
1320
8.95M
  int i;
1321
8.95M
  int row_offset = mi_row;
1322
8.95M
  int col_offset = mi_col;
1323
34.5M
  for (i = 0; i < num_planes; ++i) {
1324
25.6M
    struct macroblockd_plane *const pd = &xd->plane[i];
1325
    // Offset the buffer pointer
1326
25.6M
    const BLOCK_SIZE bsize = xd->mi[0]->bsize;
1327
25.6M
    if (pd->subsampling_y && (mi_row & 0x01) && (mi_size_high[bsize] == 1))
1328
1.13M
      row_offset = mi_row - 1;
1329
25.6M
    if (pd->subsampling_x && (mi_col & 0x01) && (mi_size_wide[bsize] == 1))
1330
973k
      col_offset = mi_col - 1;
1331
25.6M
    int above_idx = col_offset;
1332
25.6M
    int left_idx = row_offset & MAX_MIB_MASK;
1333
25.6M
    pd->above_entropy_context =
1334
25.6M
        &xd->above_entropy_context[i][above_idx >> pd->subsampling_x];
1335
25.6M
    pd->left_entropy_context =
1336
25.6M
        &xd->left_entropy_context[i][left_idx >> pd->subsampling_y];
1337
25.6M
  }
1338
8.95M
}
Unexecuted instantiation: decodemv.c:set_entropy_context
Unexecuted instantiation: decoder.c:set_entropy_context
Unexecuted instantiation: decodetxb.c:set_entropy_context
Unexecuted instantiation: detokenize.c:set_entropy_context
Unexecuted instantiation: obu.c:set_entropy_context
Unexecuted instantiation: alloccommon.c:set_entropy_context
Unexecuted instantiation: av1_loopfilter.c:set_entropy_context
Unexecuted instantiation: blockd.c:set_entropy_context
Unexecuted instantiation: cdef.c:set_entropy_context
Unexecuted instantiation: cdef_block.c:set_entropy_context
Unexecuted instantiation: cfl.c:set_entropy_context
Unexecuted instantiation: convolve.c:set_entropy_context
Unexecuted instantiation: entropy.c:set_entropy_context
Unexecuted instantiation: entropymode.c:set_entropy_context
Unexecuted instantiation: entropymv.c:set_entropy_context
Unexecuted instantiation: mvref_common.c:set_entropy_context
Unexecuted instantiation: pred_common.c:set_entropy_context
Unexecuted instantiation: quant_common.c:set_entropy_context
Unexecuted instantiation: reconinter.c:set_entropy_context
Unexecuted instantiation: reconintra.c:set_entropy_context
Unexecuted instantiation: resize.c:set_entropy_context
Unexecuted instantiation: restoration.c:set_entropy_context
Unexecuted instantiation: scan.c:set_entropy_context
Unexecuted instantiation: thread_common.c:set_entropy_context
Unexecuted instantiation: tile_common.c:set_entropy_context
Unexecuted instantiation: txb_common.c:set_entropy_context
Unexecuted instantiation: warped_motion.c:set_entropy_context
Unexecuted instantiation: cfl_sse2.c:set_entropy_context
Unexecuted instantiation: resize_sse2.c:set_entropy_context
Unexecuted instantiation: cfl_ssse3.c:set_entropy_context
Unexecuted instantiation: resize_ssse3.c:set_entropy_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_entropy_context
Unexecuted instantiation: filterintra_sse4.c:set_entropy_context
Unexecuted instantiation: cfl_avx2.c:set_entropy_context
Unexecuted instantiation: resize_avx2.c:set_entropy_context
1339
1340
168k
static inline int calc_mi_size(int len) {
1341
  // len is in mi units. Align to a multiple of SBs.
1342
168k
  return ALIGN_POWER_OF_TWO(len, MAX_MIB_SIZE_LOG2);
1343
168k
}
Unexecuted instantiation: av1_dx_iface.c:calc_mi_size
Unexecuted instantiation: decodeframe.c:calc_mi_size
Unexecuted instantiation: decodemv.c:calc_mi_size
decoder.c:calc_mi_size
Line
Count
Source
1340
146k
static inline int calc_mi_size(int len) {
1341
  // len is in mi units. Align to a multiple of SBs.
1342
146k
  return ALIGN_POWER_OF_TWO(len, MAX_MIB_SIZE_LOG2);
1343
146k
}
Unexecuted instantiation: decodetxb.c:calc_mi_size
Unexecuted instantiation: detokenize.c:calc_mi_size
Unexecuted instantiation: obu.c:calc_mi_size
alloccommon.c:calc_mi_size
Line
Count
Source
1340
21.9k
static inline int calc_mi_size(int len) {
1341
  // len is in mi units. Align to a multiple of SBs.
1342
21.9k
  return ALIGN_POWER_OF_TWO(len, MAX_MIB_SIZE_LOG2);
1343
21.9k
}
Unexecuted instantiation: av1_loopfilter.c:calc_mi_size
Unexecuted instantiation: blockd.c:calc_mi_size
Unexecuted instantiation: cdef.c:calc_mi_size
Unexecuted instantiation: cdef_block.c:calc_mi_size
Unexecuted instantiation: cfl.c:calc_mi_size
Unexecuted instantiation: convolve.c:calc_mi_size
Unexecuted instantiation: entropy.c:calc_mi_size
Unexecuted instantiation: entropymode.c:calc_mi_size
Unexecuted instantiation: entropymv.c:calc_mi_size
Unexecuted instantiation: mvref_common.c:calc_mi_size
Unexecuted instantiation: pred_common.c:calc_mi_size
Unexecuted instantiation: quant_common.c:calc_mi_size
Unexecuted instantiation: reconinter.c:calc_mi_size
Unexecuted instantiation: reconintra.c:calc_mi_size
Unexecuted instantiation: resize.c:calc_mi_size
Unexecuted instantiation: restoration.c:calc_mi_size
Unexecuted instantiation: scan.c:calc_mi_size
Unexecuted instantiation: thread_common.c:calc_mi_size
Unexecuted instantiation: tile_common.c:calc_mi_size
Unexecuted instantiation: txb_common.c:calc_mi_size
Unexecuted instantiation: warped_motion.c:calc_mi_size
Unexecuted instantiation: cfl_sse2.c:calc_mi_size
Unexecuted instantiation: resize_sse2.c:calc_mi_size
Unexecuted instantiation: cfl_ssse3.c:calc_mi_size
Unexecuted instantiation: resize_ssse3.c:calc_mi_size
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:calc_mi_size
Unexecuted instantiation: filterintra_sse4.c:calc_mi_size
Unexecuted instantiation: cfl_avx2.c:calc_mi_size
Unexecuted instantiation: resize_avx2.c:calc_mi_size
1344
1345
static inline void set_plane_n4(MACROBLOCKD *const xd, int bw, int bh,
1346
14.2M
                                const int num_planes) {
1347
14.2M
  int i;
1348
55.5M
  for (i = 0; i < num_planes; i++) {
1349
41.2M
    xd->plane[i].width = (bw * MI_SIZE) >> xd->plane[i].subsampling_x;
1350
41.2M
    xd->plane[i].height = (bh * MI_SIZE) >> xd->plane[i].subsampling_y;
1351
1352
41.2M
    xd->plane[i].width = AOMMAX(xd->plane[i].width, 4);
1353
41.2M
    xd->plane[i].height = AOMMAX(xd->plane[i].height, 4);
1354
41.2M
  }
1355
14.2M
}
Unexecuted instantiation: av1_dx_iface.c:set_plane_n4
decodeframe.c:set_plane_n4
Line
Count
Source
1346
14.2M
                                const int num_planes) {
1347
14.2M
  int i;
1348
55.5M
  for (i = 0; i < num_planes; i++) {
1349
41.2M
    xd->plane[i].width = (bw * MI_SIZE) >> xd->plane[i].subsampling_x;
1350
41.2M
    xd->plane[i].height = (bh * MI_SIZE) >> xd->plane[i].subsampling_y;
1351
1352
41.2M
    xd->plane[i].width = AOMMAX(xd->plane[i].width, 4);
1353
41.2M
    xd->plane[i].height = AOMMAX(xd->plane[i].height, 4);
1354
41.2M
  }
1355
14.2M
}
Unexecuted instantiation: decodemv.c:set_plane_n4
Unexecuted instantiation: decoder.c:set_plane_n4
Unexecuted instantiation: decodetxb.c:set_plane_n4
Unexecuted instantiation: detokenize.c:set_plane_n4
Unexecuted instantiation: obu.c:set_plane_n4
Unexecuted instantiation: alloccommon.c:set_plane_n4
Unexecuted instantiation: av1_loopfilter.c:set_plane_n4
Unexecuted instantiation: blockd.c:set_plane_n4
Unexecuted instantiation: cdef.c:set_plane_n4
Unexecuted instantiation: cdef_block.c:set_plane_n4
Unexecuted instantiation: cfl.c:set_plane_n4
Unexecuted instantiation: convolve.c:set_plane_n4
Unexecuted instantiation: entropy.c:set_plane_n4
Unexecuted instantiation: entropymode.c:set_plane_n4
Unexecuted instantiation: entropymv.c:set_plane_n4
Unexecuted instantiation: mvref_common.c:set_plane_n4
Unexecuted instantiation: pred_common.c:set_plane_n4
Unexecuted instantiation: quant_common.c:set_plane_n4
Unexecuted instantiation: reconinter.c:set_plane_n4
Unexecuted instantiation: reconintra.c:set_plane_n4
Unexecuted instantiation: resize.c:set_plane_n4
Unexecuted instantiation: restoration.c:set_plane_n4
Unexecuted instantiation: scan.c:set_plane_n4
Unexecuted instantiation: thread_common.c:set_plane_n4
Unexecuted instantiation: tile_common.c:set_plane_n4
Unexecuted instantiation: txb_common.c:set_plane_n4
Unexecuted instantiation: warped_motion.c:set_plane_n4
Unexecuted instantiation: cfl_sse2.c:set_plane_n4
Unexecuted instantiation: resize_sse2.c:set_plane_n4
Unexecuted instantiation: cfl_ssse3.c:set_plane_n4
Unexecuted instantiation: resize_ssse3.c:set_plane_n4
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_plane_n4
Unexecuted instantiation: filterintra_sse4.c:set_plane_n4
Unexecuted instantiation: cfl_avx2.c:set_plane_n4
Unexecuted instantiation: resize_avx2.c:set_plane_n4
1356
1357
static inline void set_mi_row_col(MACROBLOCKD *xd, const TileInfo *const tile,
1358
                                  int mi_row, int bh, int mi_col, int bw,
1359
14.3M
                                  int mi_rows, int mi_cols) {
1360
14.3M
  xd->mb_to_top_edge = -GET_MV_SUBPEL(mi_row * MI_SIZE);
1361
14.3M
  xd->mb_to_bottom_edge = GET_MV_SUBPEL((mi_rows - bh - mi_row) * MI_SIZE);
1362
14.3M
  xd->mb_to_left_edge = -GET_MV_SUBPEL((mi_col * MI_SIZE));
1363
14.3M
  xd->mb_to_right_edge = GET_MV_SUBPEL((mi_cols - bw - mi_col) * MI_SIZE);
1364
1365
14.3M
  xd->mi_row = mi_row;
1366
14.3M
  xd->mi_col = mi_col;
1367
1368
  // Are edges available for intra prediction?
1369
14.3M
  xd->up_available = (mi_row > tile->mi_row_start);
1370
1371
14.3M
  const int ss_x = xd->plane[1].subsampling_x;
1372
14.3M
  const int ss_y = xd->plane[1].subsampling_y;
1373
1374
14.3M
  xd->left_available = (mi_col > tile->mi_col_start);
1375
14.3M
  xd->chroma_up_available = xd->up_available;
1376
14.3M
  xd->chroma_left_available = xd->left_available;
1377
14.3M
  if (ss_x && bw < mi_size_wide[BLOCK_8X8])
1378
1.84M
    xd->chroma_left_available = (mi_col - 1) > tile->mi_col_start;
1379
14.3M
  if (ss_y && bh < mi_size_high[BLOCK_8X8])
1380
2.15M
    xd->chroma_up_available = (mi_row - 1) > tile->mi_row_start;
1381
14.3M
  if (xd->up_available) {
1382
13.8M
    xd->above_mbmi = xd->mi[-xd->mi_stride];
1383
13.8M
  } else {
1384
408k
    xd->above_mbmi = NULL;
1385
408k
  }
1386
1387
14.3M
  if (xd->left_available) {
1388
14.0M
    xd->left_mbmi = xd->mi[-1];
1389
14.0M
  } else {
1390
269k
    xd->left_mbmi = NULL;
1391
269k
  }
1392
1393
14.3M
  const int chroma_ref = ((mi_row & 0x01) || !(bh & 0x01) || !ss_y) &&
1394
13.2M
                         ((mi_col & 0x01) || !(bw & 0x01) || !ss_x);
1395
14.3M
  xd->is_chroma_ref = chroma_ref;
1396
14.3M
  if (chroma_ref) {
1397
    // To help calculate the "above" and "left" chroma blocks, note that the
1398
    // current block may cover multiple luma blocks (e.g., if partitioned into
1399
    // 4x4 luma blocks).
1400
    // First, find the top-left-most luma block covered by this chroma block
1401
12.4M
    MB_MODE_INFO **base_mi =
1402
12.4M
        &xd->mi[-(mi_row & ss_y) * xd->mi_stride - (mi_col & ss_x)];
1403
1404
    // Then, we consider the luma region covered by the left or above 4x4 chroma
1405
    // prediction. We want to point to the chroma reference block in that
1406
    // region, which is the bottom-right-most mi unit.
1407
    // This leads to the following offsets:
1408
12.4M
    MB_MODE_INFO *chroma_above_mi =
1409
12.4M
        xd->chroma_up_available ? base_mi[-xd->mi_stride + ss_x] : NULL;
1410
12.4M
    xd->chroma_above_mbmi = chroma_above_mi;
1411
1412
12.4M
    MB_MODE_INFO *chroma_left_mi =
1413
12.4M
        xd->chroma_left_available ? base_mi[ss_y * xd->mi_stride - 1] : NULL;
1414
12.4M
    xd->chroma_left_mbmi = chroma_left_mi;
1415
12.4M
  }
1416
1417
14.3M
  xd->height = bh;
1418
14.3M
  xd->width = bw;
1419
1420
14.3M
  xd->is_last_vertical_rect = 0;
1421
14.3M
  if (xd->width < xd->height) {
1422
3.17M
    if (!((mi_col + xd->width) & (xd->height - 1))) {
1423
1.18M
      xd->is_last_vertical_rect = 1;
1424
1.18M
    }
1425
3.17M
  }
1426
1427
14.3M
  xd->is_first_horizontal_rect = 0;
1428
14.3M
  if (xd->width > xd->height)
1429
5.65M
    if (!(mi_row & (xd->width - 1))) xd->is_first_horizontal_rect = 1;
1430
14.3M
}
Unexecuted instantiation: av1_dx_iface.c:set_mi_row_col
decodeframe.c:set_mi_row_col
Line
Count
Source
1359
14.3M
                                  int mi_rows, int mi_cols) {
1360
14.3M
  xd->mb_to_top_edge = -GET_MV_SUBPEL(mi_row * MI_SIZE);
1361
14.3M
  xd->mb_to_bottom_edge = GET_MV_SUBPEL((mi_rows - bh - mi_row) * MI_SIZE);
1362
14.3M
  xd->mb_to_left_edge = -GET_MV_SUBPEL((mi_col * MI_SIZE));
1363
14.3M
  xd->mb_to_right_edge = GET_MV_SUBPEL((mi_cols - bw - mi_col) * MI_SIZE);
1364
1365
14.3M
  xd->mi_row = mi_row;
1366
14.3M
  xd->mi_col = mi_col;
1367
1368
  // Are edges available for intra prediction?
1369
14.3M
  xd->up_available = (mi_row > tile->mi_row_start);
1370
1371
14.3M
  const int ss_x = xd->plane[1].subsampling_x;
1372
14.3M
  const int ss_y = xd->plane[1].subsampling_y;
1373
1374
14.3M
  xd->left_available = (mi_col > tile->mi_col_start);
1375
14.3M
  xd->chroma_up_available = xd->up_available;
1376
14.3M
  xd->chroma_left_available = xd->left_available;
1377
14.3M
  if (ss_x && bw < mi_size_wide[BLOCK_8X8])
1378
1.84M
    xd->chroma_left_available = (mi_col - 1) > tile->mi_col_start;
1379
14.3M
  if (ss_y && bh < mi_size_high[BLOCK_8X8])
1380
2.15M
    xd->chroma_up_available = (mi_row - 1) > tile->mi_row_start;
1381
14.3M
  if (xd->up_available) {
1382
13.8M
    xd->above_mbmi = xd->mi[-xd->mi_stride];
1383
13.8M
  } else {
1384
408k
    xd->above_mbmi = NULL;
1385
408k
  }
1386
1387
14.3M
  if (xd->left_available) {
1388
14.0M
    xd->left_mbmi = xd->mi[-1];
1389
14.0M
  } else {
1390
269k
    xd->left_mbmi = NULL;
1391
269k
  }
1392
1393
14.3M
  const int chroma_ref = ((mi_row & 0x01) || !(bh & 0x01) || !ss_y) &&
1394
13.2M
                         ((mi_col & 0x01) || !(bw & 0x01) || !ss_x);
1395
14.3M
  xd->is_chroma_ref = chroma_ref;
1396
14.3M
  if (chroma_ref) {
1397
    // To help calculate the "above" and "left" chroma blocks, note that the
1398
    // current block may cover multiple luma blocks (e.g., if partitioned into
1399
    // 4x4 luma blocks).
1400
    // First, find the top-left-most luma block covered by this chroma block
1401
12.4M
    MB_MODE_INFO **base_mi =
1402
12.4M
        &xd->mi[-(mi_row & ss_y) * xd->mi_stride - (mi_col & ss_x)];
1403
1404
    // Then, we consider the luma region covered by the left or above 4x4 chroma
1405
    // prediction. We want to point to the chroma reference block in that
1406
    // region, which is the bottom-right-most mi unit.
1407
    // This leads to the following offsets:
1408
12.4M
    MB_MODE_INFO *chroma_above_mi =
1409
12.4M
        xd->chroma_up_available ? base_mi[-xd->mi_stride + ss_x] : NULL;
1410
12.4M
    xd->chroma_above_mbmi = chroma_above_mi;
1411
1412
12.4M
    MB_MODE_INFO *chroma_left_mi =
1413
12.4M
        xd->chroma_left_available ? base_mi[ss_y * xd->mi_stride - 1] : NULL;
1414
12.4M
    xd->chroma_left_mbmi = chroma_left_mi;
1415
12.4M
  }
1416
1417
14.3M
  xd->height = bh;
1418
14.3M
  xd->width = bw;
1419
1420
14.3M
  xd->is_last_vertical_rect = 0;
1421
14.3M
  if (xd->width < xd->height) {
1422
3.17M
    if (!((mi_col + xd->width) & (xd->height - 1))) {
1423
1.18M
      xd->is_last_vertical_rect = 1;
1424
1.18M
    }
1425
3.17M
  }
1426
1427
14.3M
  xd->is_first_horizontal_rect = 0;
1428
14.3M
  if (xd->width > xd->height)
1429
5.65M
    if (!(mi_row & (xd->width - 1))) xd->is_first_horizontal_rect = 1;
1430
14.3M
}
Unexecuted instantiation: decodemv.c:set_mi_row_col
Unexecuted instantiation: decoder.c:set_mi_row_col
Unexecuted instantiation: decodetxb.c:set_mi_row_col
Unexecuted instantiation: detokenize.c:set_mi_row_col
Unexecuted instantiation: obu.c:set_mi_row_col
Unexecuted instantiation: alloccommon.c:set_mi_row_col
Unexecuted instantiation: av1_loopfilter.c:set_mi_row_col
Unexecuted instantiation: blockd.c:set_mi_row_col
Unexecuted instantiation: cdef.c:set_mi_row_col
Unexecuted instantiation: cdef_block.c:set_mi_row_col
Unexecuted instantiation: cfl.c:set_mi_row_col
Unexecuted instantiation: convolve.c:set_mi_row_col
Unexecuted instantiation: entropy.c:set_mi_row_col
Unexecuted instantiation: entropymode.c:set_mi_row_col
Unexecuted instantiation: entropymv.c:set_mi_row_col
Unexecuted instantiation: mvref_common.c:set_mi_row_col
Unexecuted instantiation: pred_common.c:set_mi_row_col
Unexecuted instantiation: quant_common.c:set_mi_row_col
Unexecuted instantiation: reconinter.c:set_mi_row_col
Unexecuted instantiation: reconintra.c:set_mi_row_col
Unexecuted instantiation: resize.c:set_mi_row_col
Unexecuted instantiation: restoration.c:set_mi_row_col
Unexecuted instantiation: scan.c:set_mi_row_col
Unexecuted instantiation: thread_common.c:set_mi_row_col
Unexecuted instantiation: tile_common.c:set_mi_row_col
Unexecuted instantiation: txb_common.c:set_mi_row_col
Unexecuted instantiation: warped_motion.c:set_mi_row_col
Unexecuted instantiation: cfl_sse2.c:set_mi_row_col
Unexecuted instantiation: resize_sse2.c:set_mi_row_col
Unexecuted instantiation: cfl_ssse3.c:set_mi_row_col
Unexecuted instantiation: resize_ssse3.c:set_mi_row_col
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_mi_row_col
Unexecuted instantiation: filterintra_sse4.c:set_mi_row_col
Unexecuted instantiation: cfl_avx2.c:set_mi_row_col
Unexecuted instantiation: resize_avx2.c:set_mi_row_col
1431
1432
static inline aom_cdf_prob *get_y_mode_cdf(FRAME_CONTEXT *tile_ctx,
1433
                                           const MB_MODE_INFO *above_mi,
1434
4.57M
                                           const MB_MODE_INFO *left_mi) {
1435
4.57M
  const PREDICTION_MODE above = av1_above_block_mode(above_mi);
1436
4.57M
  const PREDICTION_MODE left = av1_left_block_mode(left_mi);
1437
4.57M
  const int above_ctx = intra_mode_context[above];
1438
4.57M
  const int left_ctx = intra_mode_context[left];
1439
4.57M
  return tile_ctx->kf_y_cdf[above_ctx][left_ctx];
1440
4.57M
}
Unexecuted instantiation: av1_dx_iface.c:get_y_mode_cdf
Unexecuted instantiation: decodeframe.c:get_y_mode_cdf
decodemv.c:get_y_mode_cdf
Line
Count
Source
1434
4.57M
                                           const MB_MODE_INFO *left_mi) {
1435
4.57M
  const PREDICTION_MODE above = av1_above_block_mode(above_mi);
1436
4.57M
  const PREDICTION_MODE left = av1_left_block_mode(left_mi);
1437
4.57M
  const int above_ctx = intra_mode_context[above];
1438
4.57M
  const int left_ctx = intra_mode_context[left];
1439
4.57M
  return tile_ctx->kf_y_cdf[above_ctx][left_ctx];
1440
4.57M
}
Unexecuted instantiation: decoder.c:get_y_mode_cdf
Unexecuted instantiation: decodetxb.c:get_y_mode_cdf
Unexecuted instantiation: detokenize.c:get_y_mode_cdf
Unexecuted instantiation: obu.c:get_y_mode_cdf
Unexecuted instantiation: alloccommon.c:get_y_mode_cdf
Unexecuted instantiation: av1_loopfilter.c:get_y_mode_cdf
Unexecuted instantiation: blockd.c:get_y_mode_cdf
Unexecuted instantiation: cdef.c:get_y_mode_cdf
Unexecuted instantiation: cdef_block.c:get_y_mode_cdf
Unexecuted instantiation: cfl.c:get_y_mode_cdf
Unexecuted instantiation: convolve.c:get_y_mode_cdf
Unexecuted instantiation: entropy.c:get_y_mode_cdf
Unexecuted instantiation: entropymode.c:get_y_mode_cdf
Unexecuted instantiation: entropymv.c:get_y_mode_cdf
Unexecuted instantiation: mvref_common.c:get_y_mode_cdf
Unexecuted instantiation: pred_common.c:get_y_mode_cdf
Unexecuted instantiation: quant_common.c:get_y_mode_cdf
Unexecuted instantiation: reconinter.c:get_y_mode_cdf
Unexecuted instantiation: reconintra.c:get_y_mode_cdf
Unexecuted instantiation: resize.c:get_y_mode_cdf
Unexecuted instantiation: restoration.c:get_y_mode_cdf
Unexecuted instantiation: scan.c:get_y_mode_cdf
Unexecuted instantiation: thread_common.c:get_y_mode_cdf
Unexecuted instantiation: tile_common.c:get_y_mode_cdf
Unexecuted instantiation: txb_common.c:get_y_mode_cdf
Unexecuted instantiation: warped_motion.c:get_y_mode_cdf
Unexecuted instantiation: cfl_sse2.c:get_y_mode_cdf
Unexecuted instantiation: resize_sse2.c:get_y_mode_cdf
Unexecuted instantiation: cfl_ssse3.c:get_y_mode_cdf
Unexecuted instantiation: resize_ssse3.c:get_y_mode_cdf
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_y_mode_cdf
Unexecuted instantiation: filterintra_sse4.c:get_y_mode_cdf
Unexecuted instantiation: cfl_avx2.c:get_y_mode_cdf
Unexecuted instantiation: resize_avx2.c:get_y_mode_cdf
1441
1442
static inline void update_partition_context(MACROBLOCKD *xd, int mi_row,
1443
                                            int mi_col, BLOCK_SIZE subsize,
1444
5.04M
                                            BLOCK_SIZE bsize) {
1445
5.04M
  PARTITION_CONTEXT *const above_ctx = xd->above_partition_context + mi_col;
1446
5.04M
  PARTITION_CONTEXT *const left_ctx =
1447
5.04M
      xd->left_partition_context + (mi_row & MAX_MIB_MASK);
1448
1449
5.04M
  const int bw = mi_size_wide[bsize];
1450
5.04M
  const int bh = mi_size_high[bsize];
1451
5.04M
  memset(above_ctx, partition_context_lookup[subsize].above, bw);
1452
5.04M
  memset(left_ctx, partition_context_lookup[subsize].left, bh);
1453
5.04M
}
Unexecuted instantiation: av1_dx_iface.c:update_partition_context
decodeframe.c:update_partition_context
Line
Count
Source
1444
5.04M
                                            BLOCK_SIZE bsize) {
1445
5.04M
  PARTITION_CONTEXT *const above_ctx = xd->above_partition_context + mi_col;
1446
5.04M
  PARTITION_CONTEXT *const left_ctx =
1447
5.04M
      xd->left_partition_context + (mi_row & MAX_MIB_MASK);
1448
1449
5.04M
  const int bw = mi_size_wide[bsize];
1450
5.04M
  const int bh = mi_size_high[bsize];
1451
5.04M
  memset(above_ctx, partition_context_lookup[subsize].above, bw);
1452
5.04M
  memset(left_ctx, partition_context_lookup[subsize].left, bh);
1453
5.04M
}
Unexecuted instantiation: decodemv.c:update_partition_context
Unexecuted instantiation: decoder.c:update_partition_context
Unexecuted instantiation: decodetxb.c:update_partition_context
Unexecuted instantiation: detokenize.c:update_partition_context
Unexecuted instantiation: obu.c:update_partition_context
Unexecuted instantiation: alloccommon.c:update_partition_context
Unexecuted instantiation: av1_loopfilter.c:update_partition_context
Unexecuted instantiation: blockd.c:update_partition_context
Unexecuted instantiation: cdef.c:update_partition_context
Unexecuted instantiation: cdef_block.c:update_partition_context
Unexecuted instantiation: cfl.c:update_partition_context
Unexecuted instantiation: convolve.c:update_partition_context
Unexecuted instantiation: entropy.c:update_partition_context
Unexecuted instantiation: entropymode.c:update_partition_context
Unexecuted instantiation: entropymv.c:update_partition_context
Unexecuted instantiation: mvref_common.c:update_partition_context
Unexecuted instantiation: pred_common.c:update_partition_context
Unexecuted instantiation: quant_common.c:update_partition_context
Unexecuted instantiation: reconinter.c:update_partition_context
Unexecuted instantiation: reconintra.c:update_partition_context
Unexecuted instantiation: resize.c:update_partition_context
Unexecuted instantiation: restoration.c:update_partition_context
Unexecuted instantiation: scan.c:update_partition_context
Unexecuted instantiation: thread_common.c:update_partition_context
Unexecuted instantiation: tile_common.c:update_partition_context
Unexecuted instantiation: txb_common.c:update_partition_context
Unexecuted instantiation: warped_motion.c:update_partition_context
Unexecuted instantiation: cfl_sse2.c:update_partition_context
Unexecuted instantiation: resize_sse2.c:update_partition_context
Unexecuted instantiation: cfl_ssse3.c:update_partition_context
Unexecuted instantiation: resize_ssse3.c:update_partition_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:update_partition_context
Unexecuted instantiation: filterintra_sse4.c:update_partition_context
Unexecuted instantiation: cfl_avx2.c:update_partition_context
Unexecuted instantiation: resize_avx2.c:update_partition_context
1454
1455
static inline int is_chroma_reference(int mi_row, int mi_col, BLOCK_SIZE bsize,
1456
0
                                      int subsampling_x, int subsampling_y) {
1457
0
  assert(bsize < BLOCK_SIZES_ALL);
1458
0
  const int bw = mi_size_wide[bsize];
1459
0
  const int bh = mi_size_high[bsize];
1460
0
  int ref_pos = ((mi_row & 0x01) || !(bh & 0x01) || !subsampling_y) &&
1461
0
                ((mi_col & 0x01) || !(bw & 0x01) || !subsampling_x);
1462
0
  return ref_pos;
1463
0
}
Unexecuted instantiation: av1_dx_iface.c:is_chroma_reference
Unexecuted instantiation: decodeframe.c:is_chroma_reference
Unexecuted instantiation: decodemv.c:is_chroma_reference
Unexecuted instantiation: decoder.c:is_chroma_reference
Unexecuted instantiation: decodetxb.c:is_chroma_reference
Unexecuted instantiation: detokenize.c:is_chroma_reference
Unexecuted instantiation: obu.c:is_chroma_reference
Unexecuted instantiation: alloccommon.c:is_chroma_reference
Unexecuted instantiation: av1_loopfilter.c:is_chroma_reference
Unexecuted instantiation: blockd.c:is_chroma_reference
Unexecuted instantiation: cdef.c:is_chroma_reference
Unexecuted instantiation: cdef_block.c:is_chroma_reference
Unexecuted instantiation: cfl.c:is_chroma_reference
Unexecuted instantiation: convolve.c:is_chroma_reference
Unexecuted instantiation: entropy.c:is_chroma_reference
Unexecuted instantiation: entropymode.c:is_chroma_reference
Unexecuted instantiation: entropymv.c:is_chroma_reference
Unexecuted instantiation: mvref_common.c:is_chroma_reference
Unexecuted instantiation: pred_common.c:is_chroma_reference
Unexecuted instantiation: quant_common.c:is_chroma_reference
Unexecuted instantiation: reconinter.c:is_chroma_reference
Unexecuted instantiation: reconintra.c:is_chroma_reference
Unexecuted instantiation: resize.c:is_chroma_reference
Unexecuted instantiation: restoration.c:is_chroma_reference
Unexecuted instantiation: scan.c:is_chroma_reference
Unexecuted instantiation: thread_common.c:is_chroma_reference
Unexecuted instantiation: tile_common.c:is_chroma_reference
Unexecuted instantiation: txb_common.c:is_chroma_reference
Unexecuted instantiation: warped_motion.c:is_chroma_reference
Unexecuted instantiation: cfl_sse2.c:is_chroma_reference
Unexecuted instantiation: resize_sse2.c:is_chroma_reference
Unexecuted instantiation: cfl_ssse3.c:is_chroma_reference
Unexecuted instantiation: resize_ssse3.c:is_chroma_reference
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:is_chroma_reference
Unexecuted instantiation: filterintra_sse4.c:is_chroma_reference
Unexecuted instantiation: cfl_avx2.c:is_chroma_reference
Unexecuted instantiation: resize_avx2.c:is_chroma_reference
1464
1465
static inline aom_cdf_prob cdf_element_prob(const aom_cdf_prob *cdf,
1466
805k
                                            size_t element) {
1467
805k
  assert(cdf != NULL);
1468
18.4E
  return (element > 0 ? cdf[element - 1] : CDF_PROB_TOP) - cdf[element];
1469
805k
}
Unexecuted instantiation: av1_dx_iface.c:cdf_element_prob
decodeframe.c:cdf_element_prob
Line
Count
Source
1466
805k
                                            size_t element) {
1467
805k
  assert(cdf != NULL);
1468
18.4E
  return (element > 0 ? cdf[element - 1] : CDF_PROB_TOP) - cdf[element];
1469
805k
}
Unexecuted instantiation: decodemv.c:cdf_element_prob
Unexecuted instantiation: decoder.c:cdf_element_prob
Unexecuted instantiation: decodetxb.c:cdf_element_prob
Unexecuted instantiation: detokenize.c:cdf_element_prob
Unexecuted instantiation: obu.c:cdf_element_prob
Unexecuted instantiation: alloccommon.c:cdf_element_prob
Unexecuted instantiation: av1_loopfilter.c:cdf_element_prob
Unexecuted instantiation: blockd.c:cdf_element_prob
Unexecuted instantiation: cdef.c:cdf_element_prob
Unexecuted instantiation: cdef_block.c:cdf_element_prob
Unexecuted instantiation: cfl.c:cdf_element_prob
Unexecuted instantiation: convolve.c:cdf_element_prob
Unexecuted instantiation: entropy.c:cdf_element_prob
Unexecuted instantiation: entropymode.c:cdf_element_prob
Unexecuted instantiation: entropymv.c:cdf_element_prob
Unexecuted instantiation: mvref_common.c:cdf_element_prob
Unexecuted instantiation: pred_common.c:cdf_element_prob
Unexecuted instantiation: quant_common.c:cdf_element_prob
Unexecuted instantiation: reconinter.c:cdf_element_prob
Unexecuted instantiation: reconintra.c:cdf_element_prob
Unexecuted instantiation: resize.c:cdf_element_prob
Unexecuted instantiation: restoration.c:cdf_element_prob
Unexecuted instantiation: scan.c:cdf_element_prob
Unexecuted instantiation: thread_common.c:cdf_element_prob
Unexecuted instantiation: tile_common.c:cdf_element_prob
Unexecuted instantiation: txb_common.c:cdf_element_prob
Unexecuted instantiation: warped_motion.c:cdf_element_prob
Unexecuted instantiation: cfl_sse2.c:cdf_element_prob
Unexecuted instantiation: resize_sse2.c:cdf_element_prob
Unexecuted instantiation: cfl_ssse3.c:cdf_element_prob
Unexecuted instantiation: resize_ssse3.c:cdf_element_prob
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:cdf_element_prob
Unexecuted instantiation: filterintra_sse4.c:cdf_element_prob
Unexecuted instantiation: cfl_avx2.c:cdf_element_prob
Unexecuted instantiation: resize_avx2.c:cdf_element_prob
1470
1471
static inline void partition_gather_horz_alike(aom_cdf_prob *out,
1472
                                               const aom_cdf_prob *const in,
1473
82.9k
                                               BLOCK_SIZE bsize) {
1474
82.9k
  (void)bsize;
1475
82.9k
  out[0] = CDF_PROB_TOP;
1476
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ);
1477
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_SPLIT);
1478
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_A);
1479
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_B);
1480
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_A);
1481
82.9k
  if (bsize != BLOCK_128X128) out[0] -= cdf_element_prob(in, PARTITION_HORZ_4);
1482
82.9k
  out[0] = AOM_ICDF(out[0]);
1483
82.9k
  out[1] = AOM_ICDF(CDF_PROB_TOP);
1484
82.9k
}
Unexecuted instantiation: av1_dx_iface.c:partition_gather_horz_alike
decodeframe.c:partition_gather_horz_alike
Line
Count
Source
1473
82.9k
                                               BLOCK_SIZE bsize) {
1474
82.9k
  (void)bsize;
1475
82.9k
  out[0] = CDF_PROB_TOP;
1476
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ);
1477
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_SPLIT);
1478
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_A);
1479
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_B);
1480
82.9k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_A);
1481
82.9k
  if (bsize != BLOCK_128X128) out[0] -= cdf_element_prob(in, PARTITION_HORZ_4);
1482
82.9k
  out[0] = AOM_ICDF(out[0]);
1483
82.9k
  out[1] = AOM_ICDF(CDF_PROB_TOP);
1484
82.9k
}
Unexecuted instantiation: decodemv.c:partition_gather_horz_alike
Unexecuted instantiation: decoder.c:partition_gather_horz_alike
Unexecuted instantiation: decodetxb.c:partition_gather_horz_alike
Unexecuted instantiation: detokenize.c:partition_gather_horz_alike
Unexecuted instantiation: obu.c:partition_gather_horz_alike
Unexecuted instantiation: alloccommon.c:partition_gather_horz_alike
Unexecuted instantiation: av1_loopfilter.c:partition_gather_horz_alike
Unexecuted instantiation: blockd.c:partition_gather_horz_alike
Unexecuted instantiation: cdef.c:partition_gather_horz_alike
Unexecuted instantiation: cdef_block.c:partition_gather_horz_alike
Unexecuted instantiation: cfl.c:partition_gather_horz_alike
Unexecuted instantiation: convolve.c:partition_gather_horz_alike
Unexecuted instantiation: entropy.c:partition_gather_horz_alike
Unexecuted instantiation: entropymode.c:partition_gather_horz_alike
Unexecuted instantiation: entropymv.c:partition_gather_horz_alike
Unexecuted instantiation: mvref_common.c:partition_gather_horz_alike
Unexecuted instantiation: pred_common.c:partition_gather_horz_alike
Unexecuted instantiation: quant_common.c:partition_gather_horz_alike
Unexecuted instantiation: reconinter.c:partition_gather_horz_alike
Unexecuted instantiation: reconintra.c:partition_gather_horz_alike
Unexecuted instantiation: resize.c:partition_gather_horz_alike
Unexecuted instantiation: restoration.c:partition_gather_horz_alike
Unexecuted instantiation: scan.c:partition_gather_horz_alike
Unexecuted instantiation: thread_common.c:partition_gather_horz_alike
Unexecuted instantiation: tile_common.c:partition_gather_horz_alike
Unexecuted instantiation: txb_common.c:partition_gather_horz_alike
Unexecuted instantiation: warped_motion.c:partition_gather_horz_alike
Unexecuted instantiation: cfl_sse2.c:partition_gather_horz_alike
Unexecuted instantiation: resize_sse2.c:partition_gather_horz_alike
Unexecuted instantiation: cfl_ssse3.c:partition_gather_horz_alike
Unexecuted instantiation: resize_ssse3.c:partition_gather_horz_alike
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:partition_gather_horz_alike
Unexecuted instantiation: filterintra_sse4.c:partition_gather_horz_alike
Unexecuted instantiation: cfl_avx2.c:partition_gather_horz_alike
Unexecuted instantiation: resize_avx2.c:partition_gather_horz_alike
1485
1486
static inline void partition_gather_vert_alike(aom_cdf_prob *out,
1487
                                               const aom_cdf_prob *const in,
1488
60.3k
                                               BLOCK_SIZE bsize) {
1489
60.3k
  (void)bsize;
1490
60.3k
  out[0] = CDF_PROB_TOP;
1491
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT);
1492
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_SPLIT);
1493
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_A);
1494
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_A);
1495
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_B);
1496
60.3k
  if (bsize != BLOCK_128X128) out[0] -= cdf_element_prob(in, PARTITION_VERT_4);
1497
60.3k
  out[0] = AOM_ICDF(out[0]);
1498
60.3k
  out[1] = AOM_ICDF(CDF_PROB_TOP);
1499
60.3k
}
Unexecuted instantiation: av1_dx_iface.c:partition_gather_vert_alike
decodeframe.c:partition_gather_vert_alike
Line
Count
Source
1488
60.3k
                                               BLOCK_SIZE bsize) {
1489
60.3k
  (void)bsize;
1490
60.3k
  out[0] = CDF_PROB_TOP;
1491
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT);
1492
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_SPLIT);
1493
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_HORZ_A);
1494
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_A);
1495
60.3k
  out[0] -= cdf_element_prob(in, PARTITION_VERT_B);
1496
60.3k
  if (bsize != BLOCK_128X128) out[0] -= cdf_element_prob(in, PARTITION_VERT_4);
1497
60.3k
  out[0] = AOM_ICDF(out[0]);
1498
60.3k
  out[1] = AOM_ICDF(CDF_PROB_TOP);
1499
60.3k
}
Unexecuted instantiation: decodemv.c:partition_gather_vert_alike
Unexecuted instantiation: decoder.c:partition_gather_vert_alike
Unexecuted instantiation: decodetxb.c:partition_gather_vert_alike
Unexecuted instantiation: detokenize.c:partition_gather_vert_alike
Unexecuted instantiation: obu.c:partition_gather_vert_alike
Unexecuted instantiation: alloccommon.c:partition_gather_vert_alike
Unexecuted instantiation: av1_loopfilter.c:partition_gather_vert_alike
Unexecuted instantiation: blockd.c:partition_gather_vert_alike
Unexecuted instantiation: cdef.c:partition_gather_vert_alike
Unexecuted instantiation: cdef_block.c:partition_gather_vert_alike
Unexecuted instantiation: cfl.c:partition_gather_vert_alike
Unexecuted instantiation: convolve.c:partition_gather_vert_alike
Unexecuted instantiation: entropy.c:partition_gather_vert_alike
Unexecuted instantiation: entropymode.c:partition_gather_vert_alike
Unexecuted instantiation: entropymv.c:partition_gather_vert_alike
Unexecuted instantiation: mvref_common.c:partition_gather_vert_alike
Unexecuted instantiation: pred_common.c:partition_gather_vert_alike
Unexecuted instantiation: quant_common.c:partition_gather_vert_alike
Unexecuted instantiation: reconinter.c:partition_gather_vert_alike
Unexecuted instantiation: reconintra.c:partition_gather_vert_alike
Unexecuted instantiation: resize.c:partition_gather_vert_alike
Unexecuted instantiation: restoration.c:partition_gather_vert_alike
Unexecuted instantiation: scan.c:partition_gather_vert_alike
Unexecuted instantiation: thread_common.c:partition_gather_vert_alike
Unexecuted instantiation: tile_common.c:partition_gather_vert_alike
Unexecuted instantiation: txb_common.c:partition_gather_vert_alike
Unexecuted instantiation: warped_motion.c:partition_gather_vert_alike
Unexecuted instantiation: cfl_sse2.c:partition_gather_vert_alike
Unexecuted instantiation: resize_sse2.c:partition_gather_vert_alike
Unexecuted instantiation: cfl_ssse3.c:partition_gather_vert_alike
Unexecuted instantiation: resize_ssse3.c:partition_gather_vert_alike
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:partition_gather_vert_alike
Unexecuted instantiation: filterintra_sse4.c:partition_gather_vert_alike
Unexecuted instantiation: cfl_avx2.c:partition_gather_vert_alike
Unexecuted instantiation: resize_avx2.c:partition_gather_vert_alike
1500
1501
static inline void update_ext_partition_context(MACROBLOCKD *xd, int mi_row,
1502
                                                int mi_col, BLOCK_SIZE subsize,
1503
                                                BLOCK_SIZE bsize,
1504
6.45M
                                                PARTITION_TYPE partition) {
1505
6.45M
  if (bsize >= BLOCK_8X8) {
1506
6.04M
    const int hbs = mi_size_wide[bsize] / 2;
1507
6.04M
    BLOCK_SIZE bsize2 = get_partition_subsize(bsize, PARTITION_SPLIT);
1508
6.04M
    switch (partition) {
1509
1.55M
      case PARTITION_SPLIT:
1510
1.55M
        if (bsize != BLOCK_8X8) break;
1511
102k
        AOM_FALLTHROUGH_INTENDED;
1512
2.25M
      case PARTITION_NONE:
1513
2.98M
      case PARTITION_HORZ:
1514
3.47M
      case PARTITION_VERT:
1515
3.90M
      case PARTITION_HORZ_4:
1516
4.14M
      case PARTITION_VERT_4:
1517
4.14M
        update_partition_context(xd, mi_row, mi_col, subsize, bsize);
1518
4.14M
        break;
1519
138k
      case PARTITION_HORZ_A:
1520
138k
        update_partition_context(xd, mi_row, mi_col, bsize2, subsize);
1521
138k
        update_partition_context(xd, mi_row + hbs, mi_col, subsize, subsize);
1522
138k
        break;
1523
130k
      case PARTITION_HORZ_B:
1524
130k
        update_partition_context(xd, mi_row, mi_col, subsize, subsize);
1525
130k
        update_partition_context(xd, mi_row + hbs, mi_col, bsize2, subsize);
1526
130k
        break;
1527
85.5k
      case PARTITION_VERT_A:
1528
85.5k
        update_partition_context(xd, mi_row, mi_col, bsize2, subsize);
1529
85.5k
        update_partition_context(xd, mi_row, mi_col + hbs, subsize, subsize);
1530
85.5k
        break;
1531
99.8k
      case PARTITION_VERT_B:
1532
99.8k
        update_partition_context(xd, mi_row, mi_col, subsize, subsize);
1533
99.8k
        update_partition_context(xd, mi_row, mi_col + hbs, bsize2, subsize);
1534
99.8k
        break;
1535
0
      default: assert(0 && "Invalid partition type");
1536
6.04M
    }
1537
6.04M
  }
1538
6.45M
}
Unexecuted instantiation: av1_dx_iface.c:update_ext_partition_context
decodeframe.c:update_ext_partition_context
Line
Count
Source
1504
6.45M
                                                PARTITION_TYPE partition) {
1505
6.45M
  if (bsize >= BLOCK_8X8) {
1506
6.04M
    const int hbs = mi_size_wide[bsize] / 2;
1507
6.04M
    BLOCK_SIZE bsize2 = get_partition_subsize(bsize, PARTITION_SPLIT);
1508
6.04M
    switch (partition) {
1509
1.55M
      case PARTITION_SPLIT:
1510
1.55M
        if (bsize != BLOCK_8X8) break;
1511
102k
        AOM_FALLTHROUGH_INTENDED;
1512
2.25M
      case PARTITION_NONE:
1513
2.98M
      case PARTITION_HORZ:
1514
3.47M
      case PARTITION_VERT:
1515
3.90M
      case PARTITION_HORZ_4:
1516
4.14M
      case PARTITION_VERT_4:
1517
4.14M
        update_partition_context(xd, mi_row, mi_col, subsize, bsize);
1518
4.14M
        break;
1519
138k
      case PARTITION_HORZ_A:
1520
138k
        update_partition_context(xd, mi_row, mi_col, bsize2, subsize);
1521
138k
        update_partition_context(xd, mi_row + hbs, mi_col, subsize, subsize);
1522
138k
        break;
1523
130k
      case PARTITION_HORZ_B:
1524
130k
        update_partition_context(xd, mi_row, mi_col, subsize, subsize);
1525
130k
        update_partition_context(xd, mi_row + hbs, mi_col, bsize2, subsize);
1526
130k
        break;
1527
85.5k
      case PARTITION_VERT_A:
1528
85.5k
        update_partition_context(xd, mi_row, mi_col, bsize2, subsize);
1529
85.5k
        update_partition_context(xd, mi_row, mi_col + hbs, subsize, subsize);
1530
85.5k
        break;
1531
99.8k
      case PARTITION_VERT_B:
1532
99.8k
        update_partition_context(xd, mi_row, mi_col, subsize, subsize);
1533
99.8k
        update_partition_context(xd, mi_row, mi_col + hbs, bsize2, subsize);
1534
99.8k
        break;
1535
0
      default: assert(0 && "Invalid partition type");
1536
6.04M
    }
1537
6.04M
  }
1538
6.45M
}
Unexecuted instantiation: decodemv.c:update_ext_partition_context
Unexecuted instantiation: decoder.c:update_ext_partition_context
Unexecuted instantiation: decodetxb.c:update_ext_partition_context
Unexecuted instantiation: detokenize.c:update_ext_partition_context
Unexecuted instantiation: obu.c:update_ext_partition_context
Unexecuted instantiation: alloccommon.c:update_ext_partition_context
Unexecuted instantiation: av1_loopfilter.c:update_ext_partition_context
Unexecuted instantiation: blockd.c:update_ext_partition_context
Unexecuted instantiation: cdef.c:update_ext_partition_context
Unexecuted instantiation: cdef_block.c:update_ext_partition_context
Unexecuted instantiation: cfl.c:update_ext_partition_context
Unexecuted instantiation: convolve.c:update_ext_partition_context
Unexecuted instantiation: entropy.c:update_ext_partition_context
Unexecuted instantiation: entropymode.c:update_ext_partition_context
Unexecuted instantiation: entropymv.c:update_ext_partition_context
Unexecuted instantiation: mvref_common.c:update_ext_partition_context
Unexecuted instantiation: pred_common.c:update_ext_partition_context
Unexecuted instantiation: quant_common.c:update_ext_partition_context
Unexecuted instantiation: reconinter.c:update_ext_partition_context
Unexecuted instantiation: reconintra.c:update_ext_partition_context
Unexecuted instantiation: resize.c:update_ext_partition_context
Unexecuted instantiation: restoration.c:update_ext_partition_context
Unexecuted instantiation: scan.c:update_ext_partition_context
Unexecuted instantiation: thread_common.c:update_ext_partition_context
Unexecuted instantiation: tile_common.c:update_ext_partition_context
Unexecuted instantiation: txb_common.c:update_ext_partition_context
Unexecuted instantiation: warped_motion.c:update_ext_partition_context
Unexecuted instantiation: cfl_sse2.c:update_ext_partition_context
Unexecuted instantiation: resize_sse2.c:update_ext_partition_context
Unexecuted instantiation: cfl_ssse3.c:update_ext_partition_context
Unexecuted instantiation: resize_ssse3.c:update_ext_partition_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:update_ext_partition_context
Unexecuted instantiation: filterintra_sse4.c:update_ext_partition_context
Unexecuted instantiation: cfl_avx2.c:update_ext_partition_context
Unexecuted instantiation: resize_avx2.c:update_ext_partition_context
1539
1540
static inline int partition_plane_context(const MACROBLOCKD *xd, int mi_row,
1541
6.05M
                                          int mi_col, BLOCK_SIZE bsize) {
1542
6.05M
  const PARTITION_CONTEXT *above_ctx = xd->above_partition_context + mi_col;
1543
6.05M
  const PARTITION_CONTEXT *left_ctx =
1544
6.05M
      xd->left_partition_context + (mi_row & MAX_MIB_MASK);
1545
  // Minimum partition point is 8x8. Offset the bsl accordingly.
1546
6.05M
  const int bsl = mi_size_wide_log2[bsize] - mi_size_wide_log2[BLOCK_8X8];
1547
6.05M
  int above = (*above_ctx >> bsl) & 1, left = (*left_ctx >> bsl) & 1;
1548
1549
6.05M
  assert(mi_size_wide_log2[bsize] == mi_size_high_log2[bsize]);
1550
6.05M
  assert(bsl >= 0);
1551
1552
6.05M
  return (left * 2 + above) + bsl * PARTITION_PLOFFSET;
1553
6.05M
}
Unexecuted instantiation: av1_dx_iface.c:partition_plane_context
decodeframe.c:partition_plane_context
Line
Count
Source
1541
6.05M
                                          int mi_col, BLOCK_SIZE bsize) {
1542
6.05M
  const PARTITION_CONTEXT *above_ctx = xd->above_partition_context + mi_col;
1543
6.05M
  const PARTITION_CONTEXT *left_ctx =
1544
6.05M
      xd->left_partition_context + (mi_row & MAX_MIB_MASK);
1545
  // Minimum partition point is 8x8. Offset the bsl accordingly.
1546
6.05M
  const int bsl = mi_size_wide_log2[bsize] - mi_size_wide_log2[BLOCK_8X8];
1547
6.05M
  int above = (*above_ctx >> bsl) & 1, left = (*left_ctx >> bsl) & 1;
1548
1549
6.05M
  assert(mi_size_wide_log2[bsize] == mi_size_high_log2[bsize]);
1550
6.05M
  assert(bsl >= 0);
1551
1552
6.05M
  return (left * 2 + above) + bsl * PARTITION_PLOFFSET;
1553
6.05M
}
Unexecuted instantiation: decodemv.c:partition_plane_context
Unexecuted instantiation: decoder.c:partition_plane_context
Unexecuted instantiation: decodetxb.c:partition_plane_context
Unexecuted instantiation: detokenize.c:partition_plane_context
Unexecuted instantiation: obu.c:partition_plane_context
Unexecuted instantiation: alloccommon.c:partition_plane_context
Unexecuted instantiation: av1_loopfilter.c:partition_plane_context
Unexecuted instantiation: blockd.c:partition_plane_context
Unexecuted instantiation: cdef.c:partition_plane_context
Unexecuted instantiation: cdef_block.c:partition_plane_context
Unexecuted instantiation: cfl.c:partition_plane_context
Unexecuted instantiation: convolve.c:partition_plane_context
Unexecuted instantiation: entropy.c:partition_plane_context
Unexecuted instantiation: entropymode.c:partition_plane_context
Unexecuted instantiation: entropymv.c:partition_plane_context
Unexecuted instantiation: mvref_common.c:partition_plane_context
Unexecuted instantiation: pred_common.c:partition_plane_context
Unexecuted instantiation: quant_common.c:partition_plane_context
Unexecuted instantiation: reconinter.c:partition_plane_context
Unexecuted instantiation: reconintra.c:partition_plane_context
Unexecuted instantiation: resize.c:partition_plane_context
Unexecuted instantiation: restoration.c:partition_plane_context
Unexecuted instantiation: scan.c:partition_plane_context
Unexecuted instantiation: thread_common.c:partition_plane_context
Unexecuted instantiation: tile_common.c:partition_plane_context
Unexecuted instantiation: txb_common.c:partition_plane_context
Unexecuted instantiation: warped_motion.c:partition_plane_context
Unexecuted instantiation: cfl_sse2.c:partition_plane_context
Unexecuted instantiation: resize_sse2.c:partition_plane_context
Unexecuted instantiation: cfl_ssse3.c:partition_plane_context
Unexecuted instantiation: resize_ssse3.c:partition_plane_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:partition_plane_context
Unexecuted instantiation: filterintra_sse4.c:partition_plane_context
Unexecuted instantiation: cfl_avx2.c:partition_plane_context
Unexecuted instantiation: resize_avx2.c:partition_plane_context
1554
1555
// Return the number of elements in the partition CDF when
1556
// partitioning the (square) block with luma block size of bsize.
1557
5.85M
static inline int partition_cdf_length(BLOCK_SIZE bsize) {
1558
5.85M
  if (bsize <= BLOCK_8X8)
1559
1.23M
    return PARTITION_TYPES;
1560
4.62M
  else if (bsize == BLOCK_128X128)
1561
289k
    return EXT_PARTITION_TYPES - 2;
1562
4.33M
  else
1563
4.33M
    return EXT_PARTITION_TYPES;
1564
5.85M
}
Unexecuted instantiation: av1_dx_iface.c:partition_cdf_length
decodeframe.c:partition_cdf_length
Line
Count
Source
1557
5.85M
static inline int partition_cdf_length(BLOCK_SIZE bsize) {
1558
5.85M
  if (bsize <= BLOCK_8X8)
1559
1.23M
    return PARTITION_TYPES;
1560
4.62M
  else if (bsize == BLOCK_128X128)
1561
289k
    return EXT_PARTITION_TYPES - 2;
1562
4.33M
  else
1563
4.33M
    return EXT_PARTITION_TYPES;
1564
5.85M
}
Unexecuted instantiation: decodemv.c:partition_cdf_length
Unexecuted instantiation: decoder.c:partition_cdf_length
Unexecuted instantiation: decodetxb.c:partition_cdf_length
Unexecuted instantiation: detokenize.c:partition_cdf_length
Unexecuted instantiation: obu.c:partition_cdf_length
Unexecuted instantiation: alloccommon.c:partition_cdf_length
Unexecuted instantiation: av1_loopfilter.c:partition_cdf_length
Unexecuted instantiation: blockd.c:partition_cdf_length
Unexecuted instantiation: cdef.c:partition_cdf_length
Unexecuted instantiation: cdef_block.c:partition_cdf_length
Unexecuted instantiation: cfl.c:partition_cdf_length
Unexecuted instantiation: convolve.c:partition_cdf_length
Unexecuted instantiation: entropy.c:partition_cdf_length
Unexecuted instantiation: entropymode.c:partition_cdf_length
Unexecuted instantiation: entropymv.c:partition_cdf_length
Unexecuted instantiation: mvref_common.c:partition_cdf_length
Unexecuted instantiation: pred_common.c:partition_cdf_length
Unexecuted instantiation: quant_common.c:partition_cdf_length
Unexecuted instantiation: reconinter.c:partition_cdf_length
Unexecuted instantiation: reconintra.c:partition_cdf_length
Unexecuted instantiation: resize.c:partition_cdf_length
Unexecuted instantiation: restoration.c:partition_cdf_length
Unexecuted instantiation: scan.c:partition_cdf_length
Unexecuted instantiation: thread_common.c:partition_cdf_length
Unexecuted instantiation: tile_common.c:partition_cdf_length
Unexecuted instantiation: txb_common.c:partition_cdf_length
Unexecuted instantiation: warped_motion.c:partition_cdf_length
Unexecuted instantiation: cfl_sse2.c:partition_cdf_length
Unexecuted instantiation: resize_sse2.c:partition_cdf_length
Unexecuted instantiation: cfl_ssse3.c:partition_cdf_length
Unexecuted instantiation: resize_ssse3.c:partition_cdf_length
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:partition_cdf_length
Unexecuted instantiation: filterintra_sse4.c:partition_cdf_length
Unexecuted instantiation: cfl_avx2.c:partition_cdf_length
Unexecuted instantiation: resize_avx2.c:partition_cdf_length
1565
1566
static inline int max_block_wide(const MACROBLOCKD *xd, BLOCK_SIZE bsize,
1567
26.5M
                                 int plane) {
1568
26.5M
  assert(bsize < BLOCK_SIZES_ALL);
1569
26.5M
  int max_blocks_wide = block_size_wide[bsize];
1570
1571
26.5M
  if (xd->mb_to_right_edge < 0) {
1572
476k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1573
476k
    max_blocks_wide += xd->mb_to_right_edge >> (3 + pd->subsampling_x);
1574
476k
  }
1575
1576
  // Scale the width in the transform block unit.
1577
26.5M
  return max_blocks_wide >> MI_SIZE_LOG2;
1578
26.5M
}
Unexecuted instantiation: av1_dx_iface.c:max_block_wide
decodeframe.c:max_block_wide
Line
Count
Source
1567
25.6M
                                 int plane) {
1568
25.6M
  assert(bsize < BLOCK_SIZES_ALL);
1569
25.6M
  int max_blocks_wide = block_size_wide[bsize];
1570
1571
25.6M
  if (xd->mb_to_right_edge < 0) {
1572
116k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1573
116k
    max_blocks_wide += xd->mb_to_right_edge >> (3 + pd->subsampling_x);
1574
116k
  }
1575
1576
  // Scale the width in the transform block unit.
1577
25.6M
  return max_blocks_wide >> MI_SIZE_LOG2;
1578
25.6M
}
Unexecuted instantiation: decodemv.c:max_block_wide
Unexecuted instantiation: decoder.c:max_block_wide
Unexecuted instantiation: decodetxb.c:max_block_wide
Unexecuted instantiation: detokenize.c:max_block_wide
Unexecuted instantiation: obu.c:max_block_wide
Unexecuted instantiation: alloccommon.c:max_block_wide
Unexecuted instantiation: av1_loopfilter.c:max_block_wide
blockd.c:max_block_wide
Line
Count
Source
1567
348k
                                 int plane) {
1568
348k
  assert(bsize < BLOCK_SIZES_ALL);
1569
360k
  int max_blocks_wide = block_size_wide[bsize];
1570
1571
360k
  if (xd->mb_to_right_edge < 0) {
1572
360k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1573
360k
    max_blocks_wide += xd->mb_to_right_edge >> (3 + pd->subsampling_x);
1574
360k
  }
1575
1576
  // Scale the width in the transform block unit.
1577
360k
  return max_blocks_wide >> MI_SIZE_LOG2;
1578
348k
}
Unexecuted instantiation: cdef.c:max_block_wide
Unexecuted instantiation: cdef_block.c:max_block_wide
cfl.c:max_block_wide
Line
Count
Source
1567
551k
                                 int plane) {
1568
551k
  assert(bsize < BLOCK_SIZES_ALL);
1569
551k
  int max_blocks_wide = block_size_wide[bsize];
1570
1571
551k
  if (xd->mb_to_right_edge < 0) {
1572
0
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1573
0
    max_blocks_wide += xd->mb_to_right_edge >> (3 + pd->subsampling_x);
1574
0
  }
1575
1576
  // Scale the width in the transform block unit.
1577
551k
  return max_blocks_wide >> MI_SIZE_LOG2;
1578
551k
}
Unexecuted instantiation: convolve.c:max_block_wide
Unexecuted instantiation: entropy.c:max_block_wide
Unexecuted instantiation: entropymode.c:max_block_wide
Unexecuted instantiation: entropymv.c:max_block_wide
Unexecuted instantiation: mvref_common.c:max_block_wide
Unexecuted instantiation: pred_common.c:max_block_wide
Unexecuted instantiation: quant_common.c:max_block_wide
Unexecuted instantiation: reconinter.c:max_block_wide
Unexecuted instantiation: reconintra.c:max_block_wide
Unexecuted instantiation: resize.c:max_block_wide
Unexecuted instantiation: restoration.c:max_block_wide
Unexecuted instantiation: scan.c:max_block_wide
Unexecuted instantiation: thread_common.c:max_block_wide
Unexecuted instantiation: tile_common.c:max_block_wide
Unexecuted instantiation: txb_common.c:max_block_wide
Unexecuted instantiation: warped_motion.c:max_block_wide
Unexecuted instantiation: cfl_sse2.c:max_block_wide
Unexecuted instantiation: resize_sse2.c:max_block_wide
Unexecuted instantiation: cfl_ssse3.c:max_block_wide
Unexecuted instantiation: resize_ssse3.c:max_block_wide
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:max_block_wide
Unexecuted instantiation: filterintra_sse4.c:max_block_wide
Unexecuted instantiation: cfl_avx2.c:max_block_wide
Unexecuted instantiation: resize_avx2.c:max_block_wide
1579
1580
static inline int max_block_high(const MACROBLOCKD *xd, BLOCK_SIZE bsize,
1581
26.4M
                                 int plane) {
1582
26.4M
  int max_blocks_high = block_size_high[bsize];
1583
1584
26.4M
  if (xd->mb_to_bottom_edge < 0) {
1585
409k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1586
409k
    max_blocks_high += xd->mb_to_bottom_edge >> (3 + pd->subsampling_y);
1587
409k
  }
1588
1589
  // Scale the height in the transform block unit.
1590
26.4M
  return max_blocks_high >> MI_SIZE_LOG2;
1591
26.4M
}
Unexecuted instantiation: av1_dx_iface.c:max_block_high
decodeframe.c:max_block_high
Line
Count
Source
1581
25.6M
                                 int plane) {
1582
25.6M
  int max_blocks_high = block_size_high[bsize];
1583
1584
25.6M
  if (xd->mb_to_bottom_edge < 0) {
1585
157k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1586
157k
    max_blocks_high += xd->mb_to_bottom_edge >> (3 + pd->subsampling_y);
1587
157k
  }
1588
1589
  // Scale the height in the transform block unit.
1590
25.6M
  return max_blocks_high >> MI_SIZE_LOG2;
1591
25.6M
}
Unexecuted instantiation: decodemv.c:max_block_high
Unexecuted instantiation: decoder.c:max_block_high
Unexecuted instantiation: decodetxb.c:max_block_high
Unexecuted instantiation: detokenize.c:max_block_high
Unexecuted instantiation: obu.c:max_block_high
Unexecuted instantiation: alloccommon.c:max_block_high
Unexecuted instantiation: av1_loopfilter.c:max_block_high
blockd.c:max_block_high
Line
Count
Source
1581
252k
                                 int plane) {
1582
252k
  int max_blocks_high = block_size_high[bsize];
1583
1584
252k
  if (xd->mb_to_bottom_edge < 0) {
1585
252k
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1586
252k
    max_blocks_high += xd->mb_to_bottom_edge >> (3 + pd->subsampling_y);
1587
252k
  }
1588
1589
  // Scale the height in the transform block unit.
1590
252k
  return max_blocks_high >> MI_SIZE_LOG2;
1591
252k
}
Unexecuted instantiation: cdef.c:max_block_high
Unexecuted instantiation: cdef_block.c:max_block_high
cfl.c:max_block_high
Line
Count
Source
1581
551k
                                 int plane) {
1582
551k
  int max_blocks_high = block_size_high[bsize];
1583
1584
551k
  if (xd->mb_to_bottom_edge < 0) {
1585
0
    const struct macroblockd_plane *const pd = &xd->plane[plane];
1586
0
    max_blocks_high += xd->mb_to_bottom_edge >> (3 + pd->subsampling_y);
1587
0
  }
1588
1589
  // Scale the height in the transform block unit.
1590
551k
  return max_blocks_high >> MI_SIZE_LOG2;
1591
551k
}
Unexecuted instantiation: convolve.c:max_block_high
Unexecuted instantiation: entropy.c:max_block_high
Unexecuted instantiation: entropymode.c:max_block_high
Unexecuted instantiation: entropymv.c:max_block_high
Unexecuted instantiation: mvref_common.c:max_block_high
Unexecuted instantiation: pred_common.c:max_block_high
Unexecuted instantiation: quant_common.c:max_block_high
Unexecuted instantiation: reconinter.c:max_block_high
Unexecuted instantiation: reconintra.c:max_block_high
Unexecuted instantiation: resize.c:max_block_high
Unexecuted instantiation: restoration.c:max_block_high
Unexecuted instantiation: scan.c:max_block_high
Unexecuted instantiation: thread_common.c:max_block_high
Unexecuted instantiation: tile_common.c:max_block_high
Unexecuted instantiation: txb_common.c:max_block_high
Unexecuted instantiation: warped_motion.c:max_block_high
Unexecuted instantiation: cfl_sse2.c:max_block_high
Unexecuted instantiation: resize_sse2.c:max_block_high
Unexecuted instantiation: cfl_ssse3.c:max_block_high
Unexecuted instantiation: resize_ssse3.c:max_block_high
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:max_block_high
Unexecuted instantiation: filterintra_sse4.c:max_block_high
Unexecuted instantiation: cfl_avx2.c:max_block_high
Unexecuted instantiation: resize_avx2.c:max_block_high
1592
1593
static inline void av1_zero_above_context(AV1_COMMON *const cm,
1594
                                          const MACROBLOCKD *xd,
1595
                                          int mi_col_start, int mi_col_end,
1596
68.5k
                                          const int tile_row) {
1597
68.5k
  const SequenceHeader *const seq_params = cm->seq_params;
1598
68.5k
  const int num_planes = av1_num_planes(cm);
1599
68.5k
  const int width = mi_col_end - mi_col_start;
1600
68.5k
  const int aligned_width =
1601
68.5k
      ALIGN_POWER_OF_TWO(width, seq_params->mib_size_log2);
1602
68.5k
  const int offset_y = mi_col_start;
1603
68.5k
  const int width_y = aligned_width;
1604
68.5k
  const int offset_uv = offset_y >> seq_params->subsampling_x;
1605
68.5k
  const int width_uv = width_y >> seq_params->subsampling_x;
1606
68.5k
  CommonContexts *const above_contexts = &cm->above_contexts;
1607
1608
68.5k
  av1_zero_array(above_contexts->entropy[0][tile_row] + offset_y, width_y);
1609
68.5k
  if (num_planes > 1) {
1610
59.3k
    if (above_contexts->entropy[1][tile_row] &&
1611
59.3k
        above_contexts->entropy[2][tile_row]) {
1612
59.3k
      av1_zero_array(above_contexts->entropy[1][tile_row] + offset_uv,
1613
59.3k
                     width_uv);
1614
59.3k
      av1_zero_array(above_contexts->entropy[2][tile_row] + offset_uv,
1615
59.3k
                     width_uv);
1616
18.4E
    } else {
1617
18.4E
      aom_internal_error(xd->error_info, AOM_CODEC_CORRUPT_FRAME,
1618
18.4E
                         "Invalid value of planes");
1619
18.4E
    }
1620
59.3k
  }
1621
1622
68.5k
  av1_zero_array(above_contexts->partition[tile_row] + mi_col_start,
1623
68.5k
                 aligned_width);
1624
1625
68.5k
  memset(above_contexts->txfm[tile_row] + mi_col_start,
1626
68.5k
         tx_size_wide[TX_SIZES_LARGEST], aligned_width * sizeof(TXFM_CONTEXT));
1627
68.5k
}
Unexecuted instantiation: av1_dx_iface.c:av1_zero_above_context
decodeframe.c:av1_zero_above_context
Line
Count
Source
1596
68.5k
                                          const int tile_row) {
1597
68.5k
  const SequenceHeader *const seq_params = cm->seq_params;
1598
68.5k
  const int num_planes = av1_num_planes(cm);
1599
68.5k
  const int width = mi_col_end - mi_col_start;
1600
68.5k
  const int aligned_width =
1601
68.5k
      ALIGN_POWER_OF_TWO(width, seq_params->mib_size_log2);
1602
68.5k
  const int offset_y = mi_col_start;
1603
68.5k
  const int width_y = aligned_width;
1604
68.5k
  const int offset_uv = offset_y >> seq_params->subsampling_x;
1605
68.5k
  const int width_uv = width_y >> seq_params->subsampling_x;
1606
68.5k
  CommonContexts *const above_contexts = &cm->above_contexts;
1607
1608
68.5k
  av1_zero_array(above_contexts->entropy[0][tile_row] + offset_y, width_y);
1609
68.5k
  if (num_planes > 1) {
1610
59.3k
    if (above_contexts->entropy[1][tile_row] &&
1611
59.3k
        above_contexts->entropy[2][tile_row]) {
1612
59.3k
      av1_zero_array(above_contexts->entropy[1][tile_row] + offset_uv,
1613
59.3k
                     width_uv);
1614
59.3k
      av1_zero_array(above_contexts->entropy[2][tile_row] + offset_uv,
1615
59.3k
                     width_uv);
1616
18.4E
    } else {
1617
18.4E
      aom_internal_error(xd->error_info, AOM_CODEC_CORRUPT_FRAME,
1618
18.4E
                         "Invalid value of planes");
1619
18.4E
    }
1620
59.3k
  }
1621
1622
68.5k
  av1_zero_array(above_contexts->partition[tile_row] + mi_col_start,
1623
68.5k
                 aligned_width);
1624
1625
68.5k
  memset(above_contexts->txfm[tile_row] + mi_col_start,
1626
68.5k
         tx_size_wide[TX_SIZES_LARGEST], aligned_width * sizeof(TXFM_CONTEXT));
1627
68.5k
}
Unexecuted instantiation: decodemv.c:av1_zero_above_context
Unexecuted instantiation: decoder.c:av1_zero_above_context
Unexecuted instantiation: decodetxb.c:av1_zero_above_context
Unexecuted instantiation: detokenize.c:av1_zero_above_context
Unexecuted instantiation: obu.c:av1_zero_above_context
Unexecuted instantiation: alloccommon.c:av1_zero_above_context
Unexecuted instantiation: av1_loopfilter.c:av1_zero_above_context
Unexecuted instantiation: blockd.c:av1_zero_above_context
Unexecuted instantiation: cdef.c:av1_zero_above_context
Unexecuted instantiation: cdef_block.c:av1_zero_above_context
Unexecuted instantiation: cfl.c:av1_zero_above_context
Unexecuted instantiation: convolve.c:av1_zero_above_context
Unexecuted instantiation: entropy.c:av1_zero_above_context
Unexecuted instantiation: entropymode.c:av1_zero_above_context
Unexecuted instantiation: entropymv.c:av1_zero_above_context
Unexecuted instantiation: mvref_common.c:av1_zero_above_context
Unexecuted instantiation: pred_common.c:av1_zero_above_context
Unexecuted instantiation: quant_common.c:av1_zero_above_context
Unexecuted instantiation: reconinter.c:av1_zero_above_context
Unexecuted instantiation: reconintra.c:av1_zero_above_context
Unexecuted instantiation: resize.c:av1_zero_above_context
Unexecuted instantiation: restoration.c:av1_zero_above_context
Unexecuted instantiation: scan.c:av1_zero_above_context
Unexecuted instantiation: thread_common.c:av1_zero_above_context
Unexecuted instantiation: tile_common.c:av1_zero_above_context
Unexecuted instantiation: txb_common.c:av1_zero_above_context
Unexecuted instantiation: warped_motion.c:av1_zero_above_context
Unexecuted instantiation: cfl_sse2.c:av1_zero_above_context
Unexecuted instantiation: resize_sse2.c:av1_zero_above_context
Unexecuted instantiation: cfl_ssse3.c:av1_zero_above_context
Unexecuted instantiation: resize_ssse3.c:av1_zero_above_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:av1_zero_above_context
Unexecuted instantiation: filterintra_sse4.c:av1_zero_above_context
Unexecuted instantiation: cfl_avx2.c:av1_zero_above_context
Unexecuted instantiation: resize_avx2.c:av1_zero_above_context
1628
1629
124k
static inline void av1_zero_left_context(MACROBLOCKD *const xd) {
1630
124k
  av1_zero(xd->left_entropy_context);
1631
124k
  av1_zero(xd->left_partition_context);
1632
1633
124k
  memset(xd->left_txfm_context_buffer, tx_size_high[TX_SIZES_LARGEST],
1634
124k
         sizeof(xd->left_txfm_context_buffer));
1635
124k
}
Unexecuted instantiation: av1_dx_iface.c:av1_zero_left_context
decodeframe.c:av1_zero_left_context
Line
Count
Source
1629
124k
static inline void av1_zero_left_context(MACROBLOCKD *const xd) {
1630
124k
  av1_zero(xd->left_entropy_context);
1631
124k
  av1_zero(xd->left_partition_context);
1632
1633
124k
  memset(xd->left_txfm_context_buffer, tx_size_high[TX_SIZES_LARGEST],
1634
124k
         sizeof(xd->left_txfm_context_buffer));
1635
124k
}
Unexecuted instantiation: decodemv.c:av1_zero_left_context
Unexecuted instantiation: decoder.c:av1_zero_left_context
Unexecuted instantiation: decodetxb.c:av1_zero_left_context
Unexecuted instantiation: detokenize.c:av1_zero_left_context
Unexecuted instantiation: obu.c:av1_zero_left_context
Unexecuted instantiation: alloccommon.c:av1_zero_left_context
Unexecuted instantiation: av1_loopfilter.c:av1_zero_left_context
Unexecuted instantiation: blockd.c:av1_zero_left_context
Unexecuted instantiation: cdef.c:av1_zero_left_context
Unexecuted instantiation: cdef_block.c:av1_zero_left_context
Unexecuted instantiation: cfl.c:av1_zero_left_context
Unexecuted instantiation: convolve.c:av1_zero_left_context
Unexecuted instantiation: entropy.c:av1_zero_left_context
Unexecuted instantiation: entropymode.c:av1_zero_left_context
Unexecuted instantiation: entropymv.c:av1_zero_left_context
Unexecuted instantiation: mvref_common.c:av1_zero_left_context
Unexecuted instantiation: pred_common.c:av1_zero_left_context
Unexecuted instantiation: quant_common.c:av1_zero_left_context
Unexecuted instantiation: reconinter.c:av1_zero_left_context
Unexecuted instantiation: reconintra.c:av1_zero_left_context
Unexecuted instantiation: resize.c:av1_zero_left_context
Unexecuted instantiation: restoration.c:av1_zero_left_context
Unexecuted instantiation: scan.c:av1_zero_left_context
Unexecuted instantiation: thread_common.c:av1_zero_left_context
Unexecuted instantiation: tile_common.c:av1_zero_left_context
Unexecuted instantiation: txb_common.c:av1_zero_left_context
Unexecuted instantiation: warped_motion.c:av1_zero_left_context
Unexecuted instantiation: cfl_sse2.c:av1_zero_left_context
Unexecuted instantiation: resize_sse2.c:av1_zero_left_context
Unexecuted instantiation: cfl_ssse3.c:av1_zero_left_context
Unexecuted instantiation: resize_ssse3.c:av1_zero_left_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:av1_zero_left_context
Unexecuted instantiation: filterintra_sse4.c:av1_zero_left_context
Unexecuted instantiation: cfl_avx2.c:av1_zero_left_context
Unexecuted instantiation: resize_avx2.c:av1_zero_left_context
1636
1637
17.0M
static inline void set_txfm_ctx(TXFM_CONTEXT *txfm_ctx, uint8_t txs, int len) {
1638
17.0M
  int i;
1639
97.6M
  for (i = 0; i < len; ++i) txfm_ctx[i] = txs;
1640
17.0M
}
Unexecuted instantiation: av1_dx_iface.c:set_txfm_ctx
decodeframe.c:set_txfm_ctx
Line
Count
Source
1637
17.0M
static inline void set_txfm_ctx(TXFM_CONTEXT *txfm_ctx, uint8_t txs, int len) {
1638
17.0M
  int i;
1639
97.6M
  for (i = 0; i < len; ++i) txfm_ctx[i] = txs;
1640
17.0M
}
Unexecuted instantiation: decodemv.c:set_txfm_ctx
Unexecuted instantiation: decoder.c:set_txfm_ctx
Unexecuted instantiation: decodetxb.c:set_txfm_ctx
Unexecuted instantiation: detokenize.c:set_txfm_ctx
Unexecuted instantiation: obu.c:set_txfm_ctx
Unexecuted instantiation: alloccommon.c:set_txfm_ctx
Unexecuted instantiation: av1_loopfilter.c:set_txfm_ctx
Unexecuted instantiation: blockd.c:set_txfm_ctx
Unexecuted instantiation: cdef.c:set_txfm_ctx
Unexecuted instantiation: cdef_block.c:set_txfm_ctx
Unexecuted instantiation: cfl.c:set_txfm_ctx
Unexecuted instantiation: convolve.c:set_txfm_ctx
Unexecuted instantiation: entropy.c:set_txfm_ctx
Unexecuted instantiation: entropymode.c:set_txfm_ctx
Unexecuted instantiation: entropymv.c:set_txfm_ctx
Unexecuted instantiation: mvref_common.c:set_txfm_ctx
Unexecuted instantiation: pred_common.c:set_txfm_ctx
Unexecuted instantiation: quant_common.c:set_txfm_ctx
Unexecuted instantiation: reconinter.c:set_txfm_ctx
Unexecuted instantiation: reconintra.c:set_txfm_ctx
Unexecuted instantiation: resize.c:set_txfm_ctx
Unexecuted instantiation: restoration.c:set_txfm_ctx
Unexecuted instantiation: scan.c:set_txfm_ctx
Unexecuted instantiation: thread_common.c:set_txfm_ctx
Unexecuted instantiation: tile_common.c:set_txfm_ctx
Unexecuted instantiation: txb_common.c:set_txfm_ctx
Unexecuted instantiation: warped_motion.c:set_txfm_ctx
Unexecuted instantiation: cfl_sse2.c:set_txfm_ctx
Unexecuted instantiation: resize_sse2.c:set_txfm_ctx
Unexecuted instantiation: cfl_ssse3.c:set_txfm_ctx
Unexecuted instantiation: resize_ssse3.c:set_txfm_ctx
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_txfm_ctx
Unexecuted instantiation: filterintra_sse4.c:set_txfm_ctx
Unexecuted instantiation: cfl_avx2.c:set_txfm_ctx
Unexecuted instantiation: resize_avx2.c:set_txfm_ctx
1641
1642
static inline void set_txfm_ctxs(TX_SIZE tx_size, int n4_w, int n4_h, int skip,
1643
8.50M
                                 const MACROBLOCKD *xd) {
1644
8.50M
  uint8_t bw = tx_size_wide[tx_size];
1645
8.50M
  uint8_t bh = tx_size_high[tx_size];
1646
1647
8.50M
  if (skip) {
1648
675k
    bw = n4_w * MI_SIZE;
1649
675k
    bh = n4_h * MI_SIZE;
1650
675k
  }
1651
1652
8.50M
  set_txfm_ctx(xd->above_txfm_context, bw, n4_w);
1653
8.50M
  set_txfm_ctx(xd->left_txfm_context, bh, n4_h);
1654
8.50M
}
Unexecuted instantiation: av1_dx_iface.c:set_txfm_ctxs
decodeframe.c:set_txfm_ctxs
Line
Count
Source
1643
8.50M
                                 const MACROBLOCKD *xd) {
1644
8.50M
  uint8_t bw = tx_size_wide[tx_size];
1645
8.50M
  uint8_t bh = tx_size_high[tx_size];
1646
1647
8.50M
  if (skip) {
1648
675k
    bw = n4_w * MI_SIZE;
1649
675k
    bh = n4_h * MI_SIZE;
1650
675k
  }
1651
1652
8.50M
  set_txfm_ctx(xd->above_txfm_context, bw, n4_w);
1653
8.50M
  set_txfm_ctx(xd->left_txfm_context, bh, n4_h);
1654
8.50M
}
Unexecuted instantiation: decodemv.c:set_txfm_ctxs
Unexecuted instantiation: decoder.c:set_txfm_ctxs
Unexecuted instantiation: decodetxb.c:set_txfm_ctxs
Unexecuted instantiation: detokenize.c:set_txfm_ctxs
Unexecuted instantiation: obu.c:set_txfm_ctxs
Unexecuted instantiation: alloccommon.c:set_txfm_ctxs
Unexecuted instantiation: av1_loopfilter.c:set_txfm_ctxs
Unexecuted instantiation: blockd.c:set_txfm_ctxs
Unexecuted instantiation: cdef.c:set_txfm_ctxs
Unexecuted instantiation: cdef_block.c:set_txfm_ctxs
Unexecuted instantiation: cfl.c:set_txfm_ctxs
Unexecuted instantiation: convolve.c:set_txfm_ctxs
Unexecuted instantiation: entropy.c:set_txfm_ctxs
Unexecuted instantiation: entropymode.c:set_txfm_ctxs
Unexecuted instantiation: entropymv.c:set_txfm_ctxs
Unexecuted instantiation: mvref_common.c:set_txfm_ctxs
Unexecuted instantiation: pred_common.c:set_txfm_ctxs
Unexecuted instantiation: quant_common.c:set_txfm_ctxs
Unexecuted instantiation: reconinter.c:set_txfm_ctxs
Unexecuted instantiation: reconintra.c:set_txfm_ctxs
Unexecuted instantiation: resize.c:set_txfm_ctxs
Unexecuted instantiation: restoration.c:set_txfm_ctxs
Unexecuted instantiation: scan.c:set_txfm_ctxs
Unexecuted instantiation: thread_common.c:set_txfm_ctxs
Unexecuted instantiation: tile_common.c:set_txfm_ctxs
Unexecuted instantiation: txb_common.c:set_txfm_ctxs
Unexecuted instantiation: warped_motion.c:set_txfm_ctxs
Unexecuted instantiation: cfl_sse2.c:set_txfm_ctxs
Unexecuted instantiation: resize_sse2.c:set_txfm_ctxs
Unexecuted instantiation: cfl_ssse3.c:set_txfm_ctxs
Unexecuted instantiation: resize_ssse3.c:set_txfm_ctxs
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_txfm_ctxs
Unexecuted instantiation: filterintra_sse4.c:set_txfm_ctxs
Unexecuted instantiation: cfl_avx2.c:set_txfm_ctxs
Unexecuted instantiation: resize_avx2.c:set_txfm_ctxs
1655
1656
static inline int get_mi_grid_idx(const CommonModeInfoParams *const mi_params,
1657
9.54M
                                  int mi_row, int mi_col) {
1658
9.54M
  return mi_row * mi_params->mi_stride + mi_col;
1659
9.54M
}
Unexecuted instantiation: av1_dx_iface.c:get_mi_grid_idx
decodeframe.c:get_mi_grid_idx
Line
Count
Source
1657
8.94M
                                  int mi_row, int mi_col) {
1658
8.94M
  return mi_row * mi_params->mi_stride + mi_col;
1659
8.94M
}
decodemv.c:get_mi_grid_idx
Line
Count
Source
1657
604k
                                  int mi_row, int mi_col) {
1658
604k
  return mi_row * mi_params->mi_stride + mi_col;
1659
604k
}
Unexecuted instantiation: decoder.c:get_mi_grid_idx
Unexecuted instantiation: decodetxb.c:get_mi_grid_idx
Unexecuted instantiation: detokenize.c:get_mi_grid_idx
Unexecuted instantiation: obu.c:get_mi_grid_idx
Unexecuted instantiation: alloccommon.c:get_mi_grid_idx
Unexecuted instantiation: av1_loopfilter.c:get_mi_grid_idx
Unexecuted instantiation: blockd.c:get_mi_grid_idx
Unexecuted instantiation: cdef.c:get_mi_grid_idx
Unexecuted instantiation: cdef_block.c:get_mi_grid_idx
Unexecuted instantiation: cfl.c:get_mi_grid_idx
Unexecuted instantiation: convolve.c:get_mi_grid_idx
Unexecuted instantiation: entropy.c:get_mi_grid_idx
Unexecuted instantiation: entropymode.c:get_mi_grid_idx
Unexecuted instantiation: entropymv.c:get_mi_grid_idx
Unexecuted instantiation: mvref_common.c:get_mi_grid_idx
Unexecuted instantiation: pred_common.c:get_mi_grid_idx
Unexecuted instantiation: quant_common.c:get_mi_grid_idx
Unexecuted instantiation: reconinter.c:get_mi_grid_idx
Unexecuted instantiation: reconintra.c:get_mi_grid_idx
Unexecuted instantiation: resize.c:get_mi_grid_idx
Unexecuted instantiation: restoration.c:get_mi_grid_idx
Unexecuted instantiation: scan.c:get_mi_grid_idx
Unexecuted instantiation: thread_common.c:get_mi_grid_idx
Unexecuted instantiation: tile_common.c:get_mi_grid_idx
Unexecuted instantiation: txb_common.c:get_mi_grid_idx
Unexecuted instantiation: warped_motion.c:get_mi_grid_idx
Unexecuted instantiation: cfl_sse2.c:get_mi_grid_idx
Unexecuted instantiation: resize_sse2.c:get_mi_grid_idx
Unexecuted instantiation: cfl_ssse3.c:get_mi_grid_idx
Unexecuted instantiation: resize_ssse3.c:get_mi_grid_idx
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_mi_grid_idx
Unexecuted instantiation: filterintra_sse4.c:get_mi_grid_idx
Unexecuted instantiation: cfl_avx2.c:get_mi_grid_idx
Unexecuted instantiation: resize_avx2.c:get_mi_grid_idx
1660
1661
static inline int get_alloc_mi_idx(const CommonModeInfoParams *const mi_params,
1662
8.94M
                                   int mi_row, int mi_col) {
1663
8.94M
  const int mi_alloc_size_1d = mi_size_wide[mi_params->mi_alloc_bsize];
1664
8.94M
  const int mi_alloc_row = mi_row / mi_alloc_size_1d;
1665
8.94M
  const int mi_alloc_col = mi_col / mi_alloc_size_1d;
1666
1667
8.94M
  return mi_alloc_row * mi_params->mi_alloc_stride + mi_alloc_col;
1668
8.94M
}
Unexecuted instantiation: av1_dx_iface.c:get_alloc_mi_idx
decodeframe.c:get_alloc_mi_idx
Line
Count
Source
1662
8.94M
                                   int mi_row, int mi_col) {
1663
8.94M
  const int mi_alloc_size_1d = mi_size_wide[mi_params->mi_alloc_bsize];
1664
8.94M
  const int mi_alloc_row = mi_row / mi_alloc_size_1d;
1665
8.94M
  const int mi_alloc_col = mi_col / mi_alloc_size_1d;
1666
1667
8.94M
  return mi_alloc_row * mi_params->mi_alloc_stride + mi_alloc_col;
1668
8.94M
}
Unexecuted instantiation: decodemv.c:get_alloc_mi_idx
Unexecuted instantiation: decoder.c:get_alloc_mi_idx
Unexecuted instantiation: decodetxb.c:get_alloc_mi_idx
Unexecuted instantiation: detokenize.c:get_alloc_mi_idx
Unexecuted instantiation: obu.c:get_alloc_mi_idx
Unexecuted instantiation: alloccommon.c:get_alloc_mi_idx
Unexecuted instantiation: av1_loopfilter.c:get_alloc_mi_idx
Unexecuted instantiation: blockd.c:get_alloc_mi_idx
Unexecuted instantiation: cdef.c:get_alloc_mi_idx
Unexecuted instantiation: cdef_block.c:get_alloc_mi_idx
Unexecuted instantiation: cfl.c:get_alloc_mi_idx
Unexecuted instantiation: convolve.c:get_alloc_mi_idx
Unexecuted instantiation: entropy.c:get_alloc_mi_idx
Unexecuted instantiation: entropymode.c:get_alloc_mi_idx
Unexecuted instantiation: entropymv.c:get_alloc_mi_idx
Unexecuted instantiation: mvref_common.c:get_alloc_mi_idx
Unexecuted instantiation: pred_common.c:get_alloc_mi_idx
Unexecuted instantiation: quant_common.c:get_alloc_mi_idx
Unexecuted instantiation: reconinter.c:get_alloc_mi_idx
Unexecuted instantiation: reconintra.c:get_alloc_mi_idx
Unexecuted instantiation: resize.c:get_alloc_mi_idx
Unexecuted instantiation: restoration.c:get_alloc_mi_idx
Unexecuted instantiation: scan.c:get_alloc_mi_idx
Unexecuted instantiation: thread_common.c:get_alloc_mi_idx
Unexecuted instantiation: tile_common.c:get_alloc_mi_idx
Unexecuted instantiation: txb_common.c:get_alloc_mi_idx
Unexecuted instantiation: warped_motion.c:get_alloc_mi_idx
Unexecuted instantiation: cfl_sse2.c:get_alloc_mi_idx
Unexecuted instantiation: resize_sse2.c:get_alloc_mi_idx
Unexecuted instantiation: cfl_ssse3.c:get_alloc_mi_idx
Unexecuted instantiation: resize_ssse3.c:get_alloc_mi_idx
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_alloc_mi_idx
Unexecuted instantiation: filterintra_sse4.c:get_alloc_mi_idx
Unexecuted instantiation: cfl_avx2.c:get_alloc_mi_idx
Unexecuted instantiation: resize_avx2.c:get_alloc_mi_idx
1669
1670
// For this partition block, set pointers in mi_params->mi_grid_base and xd->mi.
1671
static inline void set_mi_offsets(const CommonModeInfoParams *const mi_params,
1672
                                  MACROBLOCKD *const xd, int mi_row,
1673
8.94M
                                  int mi_col) {
1674
  // 'mi_grid_base' should point to appropriate memory in 'mi'.
1675
8.94M
  const int mi_grid_idx = get_mi_grid_idx(mi_params, mi_row, mi_col);
1676
8.94M
  const int mi_alloc_idx = get_alloc_mi_idx(mi_params, mi_row, mi_col);
1677
8.94M
  mi_params->mi_grid_base[mi_grid_idx] = &mi_params->mi_alloc[mi_alloc_idx];
1678
  // 'xd->mi' should point to an offset in 'mi_grid_base';
1679
8.94M
  xd->mi = mi_params->mi_grid_base + mi_grid_idx;
1680
  // 'xd->tx_type_map' should point to an offset in 'mi_params->tx_type_map'.
1681
8.94M
  xd->tx_type_map = mi_params->tx_type_map + mi_grid_idx;
1682
8.94M
  xd->tx_type_map_stride = mi_params->mi_stride;
1683
8.94M
}
Unexecuted instantiation: av1_dx_iface.c:set_mi_offsets
decodeframe.c:set_mi_offsets
Line
Count
Source
1673
8.94M
                                  int mi_col) {
1674
  // 'mi_grid_base' should point to appropriate memory in 'mi'.
1675
8.94M
  const int mi_grid_idx = get_mi_grid_idx(mi_params, mi_row, mi_col);
1676
8.94M
  const int mi_alloc_idx = get_alloc_mi_idx(mi_params, mi_row, mi_col);
1677
8.94M
  mi_params->mi_grid_base[mi_grid_idx] = &mi_params->mi_alloc[mi_alloc_idx];
1678
  // 'xd->mi' should point to an offset in 'mi_grid_base';
1679
8.94M
  xd->mi = mi_params->mi_grid_base + mi_grid_idx;
1680
  // 'xd->tx_type_map' should point to an offset in 'mi_params->tx_type_map'.
1681
8.94M
  xd->tx_type_map = mi_params->tx_type_map + mi_grid_idx;
1682
8.94M
  xd->tx_type_map_stride = mi_params->mi_stride;
1683
8.94M
}
Unexecuted instantiation: decodemv.c:set_mi_offsets
Unexecuted instantiation: decoder.c:set_mi_offsets
Unexecuted instantiation: decodetxb.c:set_mi_offsets
Unexecuted instantiation: detokenize.c:set_mi_offsets
Unexecuted instantiation: obu.c:set_mi_offsets
Unexecuted instantiation: alloccommon.c:set_mi_offsets
Unexecuted instantiation: av1_loopfilter.c:set_mi_offsets
Unexecuted instantiation: blockd.c:set_mi_offsets
Unexecuted instantiation: cdef.c:set_mi_offsets
Unexecuted instantiation: cdef_block.c:set_mi_offsets
Unexecuted instantiation: cfl.c:set_mi_offsets
Unexecuted instantiation: convolve.c:set_mi_offsets
Unexecuted instantiation: entropy.c:set_mi_offsets
Unexecuted instantiation: entropymode.c:set_mi_offsets
Unexecuted instantiation: entropymv.c:set_mi_offsets
Unexecuted instantiation: mvref_common.c:set_mi_offsets
Unexecuted instantiation: pred_common.c:set_mi_offsets
Unexecuted instantiation: quant_common.c:set_mi_offsets
Unexecuted instantiation: reconinter.c:set_mi_offsets
Unexecuted instantiation: reconintra.c:set_mi_offsets
Unexecuted instantiation: resize.c:set_mi_offsets
Unexecuted instantiation: restoration.c:set_mi_offsets
Unexecuted instantiation: scan.c:set_mi_offsets
Unexecuted instantiation: thread_common.c:set_mi_offsets
Unexecuted instantiation: tile_common.c:set_mi_offsets
Unexecuted instantiation: txb_common.c:set_mi_offsets
Unexecuted instantiation: warped_motion.c:set_mi_offsets
Unexecuted instantiation: cfl_sse2.c:set_mi_offsets
Unexecuted instantiation: resize_sse2.c:set_mi_offsets
Unexecuted instantiation: cfl_ssse3.c:set_mi_offsets
Unexecuted instantiation: resize_ssse3.c:set_mi_offsets
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_mi_offsets
Unexecuted instantiation: filterintra_sse4.c:set_mi_offsets
Unexecuted instantiation: cfl_avx2.c:set_mi_offsets
Unexecuted instantiation: resize_avx2.c:set_mi_offsets
1684
1685
static inline void txfm_partition_update(TXFM_CONTEXT *above_ctx,
1686
                                         TXFM_CONTEXT *left_ctx,
1687
650k
                                         TX_SIZE tx_size, TX_SIZE txb_size) {
1688
650k
  BLOCK_SIZE bsize = txsize_to_bsize[txb_size];
1689
650k
  int bh = mi_size_high[bsize];
1690
650k
  int bw = mi_size_wide[bsize];
1691
650k
  uint8_t txw = tx_size_wide[tx_size];
1692
650k
  uint8_t txh = tx_size_high[tx_size];
1693
650k
  int i;
1694
2.85M
  for (i = 0; i < bh; ++i) left_ctx[i] = txh;
1695
3.05M
  for (i = 0; i < bw; ++i) above_ctx[i] = txw;
1696
650k
}
Unexecuted instantiation: av1_dx_iface.c:txfm_partition_update
decodeframe.c:txfm_partition_update
Line
Count
Source
1687
650k
                                         TX_SIZE tx_size, TX_SIZE txb_size) {
1688
650k
  BLOCK_SIZE bsize = txsize_to_bsize[txb_size];
1689
650k
  int bh = mi_size_high[bsize];
1690
650k
  int bw = mi_size_wide[bsize];
1691
650k
  uint8_t txw = tx_size_wide[tx_size];
1692
650k
  uint8_t txh = tx_size_high[tx_size];
1693
650k
  int i;
1694
2.85M
  for (i = 0; i < bh; ++i) left_ctx[i] = txh;
1695
3.05M
  for (i = 0; i < bw; ++i) above_ctx[i] = txw;
1696
650k
}
Unexecuted instantiation: decodemv.c:txfm_partition_update
Unexecuted instantiation: decoder.c:txfm_partition_update
Unexecuted instantiation: decodetxb.c:txfm_partition_update
Unexecuted instantiation: detokenize.c:txfm_partition_update
Unexecuted instantiation: obu.c:txfm_partition_update
Unexecuted instantiation: alloccommon.c:txfm_partition_update
Unexecuted instantiation: av1_loopfilter.c:txfm_partition_update
Unexecuted instantiation: blockd.c:txfm_partition_update
Unexecuted instantiation: cdef.c:txfm_partition_update
Unexecuted instantiation: cdef_block.c:txfm_partition_update
Unexecuted instantiation: cfl.c:txfm_partition_update
Unexecuted instantiation: convolve.c:txfm_partition_update
Unexecuted instantiation: entropy.c:txfm_partition_update
Unexecuted instantiation: entropymode.c:txfm_partition_update
Unexecuted instantiation: entropymv.c:txfm_partition_update
Unexecuted instantiation: mvref_common.c:txfm_partition_update
Unexecuted instantiation: pred_common.c:txfm_partition_update
Unexecuted instantiation: quant_common.c:txfm_partition_update
Unexecuted instantiation: reconinter.c:txfm_partition_update
Unexecuted instantiation: reconintra.c:txfm_partition_update
Unexecuted instantiation: resize.c:txfm_partition_update
Unexecuted instantiation: restoration.c:txfm_partition_update
Unexecuted instantiation: scan.c:txfm_partition_update
Unexecuted instantiation: thread_common.c:txfm_partition_update
Unexecuted instantiation: tile_common.c:txfm_partition_update
Unexecuted instantiation: txb_common.c:txfm_partition_update
Unexecuted instantiation: warped_motion.c:txfm_partition_update
Unexecuted instantiation: cfl_sse2.c:txfm_partition_update
Unexecuted instantiation: resize_sse2.c:txfm_partition_update
Unexecuted instantiation: cfl_ssse3.c:txfm_partition_update
Unexecuted instantiation: resize_ssse3.c:txfm_partition_update
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:txfm_partition_update
Unexecuted instantiation: filterintra_sse4.c:txfm_partition_update
Unexecuted instantiation: cfl_avx2.c:txfm_partition_update
Unexecuted instantiation: resize_avx2.c:txfm_partition_update
1697
1698
797k
static inline TX_SIZE get_sqr_tx_size(int tx_dim) {
1699
797k
  switch (tx_dim) {
1700
25.7k
    case 128:
1701
62.5k
    case 64: return TX_64X64; break;
1702
181k
    case 32: return TX_32X32; break;
1703
310k
    case 16: return TX_16X16; break;
1704
137k
    case 8: return TX_8X8; break;
1705
109k
    default: return TX_4X4;
1706
797k
  }
1707
797k
}
Unexecuted instantiation: av1_dx_iface.c:get_sqr_tx_size
decodeframe.c:get_sqr_tx_size
Line
Count
Source
1698
688k
static inline TX_SIZE get_sqr_tx_size(int tx_dim) {
1699
688k
  switch (tx_dim) {
1700
25.7k
    case 128:
1701
62.5k
    case 64: return TX_64X64; break;
1702
181k
    case 32: return TX_32X32; break;
1703
310k
    case 16: return TX_16X16; break;
1704
137k
    case 8: return TX_8X8; break;
1705
0
    default: return TX_4X4;
1706
688k
  }
1707
688k
}
Unexecuted instantiation: decodemv.c:get_sqr_tx_size
Unexecuted instantiation: decoder.c:get_sqr_tx_size
Unexecuted instantiation: decodetxb.c:get_sqr_tx_size
Unexecuted instantiation: detokenize.c:get_sqr_tx_size
Unexecuted instantiation: obu.c:get_sqr_tx_size
Unexecuted instantiation: alloccommon.c:get_sqr_tx_size
Unexecuted instantiation: av1_loopfilter.c:get_sqr_tx_size
Unexecuted instantiation: blockd.c:get_sqr_tx_size
Unexecuted instantiation: cdef.c:get_sqr_tx_size
Unexecuted instantiation: cdef_block.c:get_sqr_tx_size
cfl.c:get_sqr_tx_size
Line
Count
Source
1698
109k
static inline TX_SIZE get_sqr_tx_size(int tx_dim) {
1699
109k
  switch (tx_dim) {
1700
0
    case 128:
1701
0
    case 64: return TX_64X64; break;
1702
0
    case 32: return TX_32X32; break;
1703
0
    case 16: return TX_16X16; break;
1704
0
    case 8: return TX_8X8; break;
1705
109k
    default: return TX_4X4;
1706
109k
  }
1707
109k
}
Unexecuted instantiation: convolve.c:get_sqr_tx_size
Unexecuted instantiation: entropy.c:get_sqr_tx_size
Unexecuted instantiation: entropymode.c:get_sqr_tx_size
Unexecuted instantiation: entropymv.c:get_sqr_tx_size
Unexecuted instantiation: mvref_common.c:get_sqr_tx_size
Unexecuted instantiation: pred_common.c:get_sqr_tx_size
Unexecuted instantiation: quant_common.c:get_sqr_tx_size
Unexecuted instantiation: reconinter.c:get_sqr_tx_size
Unexecuted instantiation: reconintra.c:get_sqr_tx_size
Unexecuted instantiation: resize.c:get_sqr_tx_size
Unexecuted instantiation: restoration.c:get_sqr_tx_size
Unexecuted instantiation: scan.c:get_sqr_tx_size
Unexecuted instantiation: thread_common.c:get_sqr_tx_size
Unexecuted instantiation: tile_common.c:get_sqr_tx_size
Unexecuted instantiation: txb_common.c:get_sqr_tx_size
Unexecuted instantiation: warped_motion.c:get_sqr_tx_size
Unexecuted instantiation: cfl_sse2.c:get_sqr_tx_size
Unexecuted instantiation: resize_sse2.c:get_sqr_tx_size
Unexecuted instantiation: cfl_ssse3.c:get_sqr_tx_size
Unexecuted instantiation: resize_ssse3.c:get_sqr_tx_size
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_sqr_tx_size
Unexecuted instantiation: filterintra_sse4.c:get_sqr_tx_size
Unexecuted instantiation: cfl_avx2.c:get_sqr_tx_size
Unexecuted instantiation: resize_avx2.c:get_sqr_tx_size
1708
1709
551k
static inline TX_SIZE get_tx_size(int width, int height) {
1710
551k
  if (width == height) {
1711
109k
    return get_sqr_tx_size(width);
1712
109k
  }
1713
442k
  if (width < height) {
1714
196k
    if (width + width == height) {
1715
85.1k
      switch (width) {
1716
85.1k
        case 4: return TX_4X8; break;
1717
0
        case 8: return TX_8X16; break;
1718
0
        case 16: return TX_16X32; break;
1719
0
        case 32: return TX_32X64; break;
1720
85.1k
      }
1721
111k
    } else {
1722
111k
      switch (width) {
1723
111k
        case 4: return TX_4X16; break;
1724
0
        case 8: return TX_8X32; break;
1725
0
        case 16: return TX_16X64; break;
1726
111k
      }
1727
111k
    }
1728
245k
  } else {
1729
245k
    if (height + height == width) {
1730
113k
      switch (height) {
1731
113k
        case 4: return TX_8X4; break;
1732
0
        case 8: return TX_16X8; break;
1733
0
        case 16: return TX_32X16; break;
1734
0
        case 32: return TX_64X32; break;
1735
113k
      }
1736
132k
    } else {
1737
132k
      switch (height) {
1738
132k
        case 4: return TX_16X4; break;
1739
0
        case 8: return TX_32X8; break;
1740
0
        case 16: return TX_64X16; break;
1741
132k
      }
1742
132k
    }
1743
245k
  }
1744
442k
  assert(0);
1745
0
  return TX_4X4;
1746
0
}
Unexecuted instantiation: av1_dx_iface.c:get_tx_size
Unexecuted instantiation: decodeframe.c:get_tx_size
Unexecuted instantiation: decodemv.c:get_tx_size
Unexecuted instantiation: decoder.c:get_tx_size
Unexecuted instantiation: decodetxb.c:get_tx_size
Unexecuted instantiation: detokenize.c:get_tx_size
Unexecuted instantiation: obu.c:get_tx_size
Unexecuted instantiation: alloccommon.c:get_tx_size
Unexecuted instantiation: av1_loopfilter.c:get_tx_size
Unexecuted instantiation: blockd.c:get_tx_size
Unexecuted instantiation: cdef.c:get_tx_size
Unexecuted instantiation: cdef_block.c:get_tx_size
cfl.c:get_tx_size
Line
Count
Source
1709
551k
static inline TX_SIZE get_tx_size(int width, int height) {
1710
551k
  if (width == height) {
1711
109k
    return get_sqr_tx_size(width);
1712
109k
  }
1713
442k
  if (width < height) {
1714
196k
    if (width + width == height) {
1715
85.1k
      switch (width) {
1716
85.1k
        case 4: return TX_4X8; break;
1717
0
        case 8: return TX_8X16; break;
1718
0
        case 16: return TX_16X32; break;
1719
0
        case 32: return TX_32X64; break;
1720
85.1k
      }
1721
111k
    } else {
1722
111k
      switch (width) {
1723
111k
        case 4: return TX_4X16; break;
1724
0
        case 8: return TX_8X32; break;
1725
0
        case 16: return TX_16X64; break;
1726
111k
      }
1727
111k
    }
1728
245k
  } else {
1729
245k
    if (height + height == width) {
1730
113k
      switch (height) {
1731
113k
        case 4: return TX_8X4; break;
1732
0
        case 8: return TX_16X8; break;
1733
0
        case 16: return TX_32X16; break;
1734
0
        case 32: return TX_64X32; break;
1735
113k
      }
1736
132k
    } else {
1737
132k
      switch (height) {
1738
132k
        case 4: return TX_16X4; break;
1739
0
        case 8: return TX_32X8; break;
1740
0
        case 16: return TX_64X16; break;
1741
132k
      }
1742
132k
    }
1743
245k
  }
1744
442k
  assert(0);
1745
0
  return TX_4X4;
1746
0
}
Unexecuted instantiation: convolve.c:get_tx_size
Unexecuted instantiation: entropy.c:get_tx_size
Unexecuted instantiation: entropymode.c:get_tx_size
Unexecuted instantiation: entropymv.c:get_tx_size
Unexecuted instantiation: mvref_common.c:get_tx_size
Unexecuted instantiation: pred_common.c:get_tx_size
Unexecuted instantiation: quant_common.c:get_tx_size
Unexecuted instantiation: reconinter.c:get_tx_size
Unexecuted instantiation: reconintra.c:get_tx_size
Unexecuted instantiation: resize.c:get_tx_size
Unexecuted instantiation: restoration.c:get_tx_size
Unexecuted instantiation: scan.c:get_tx_size
Unexecuted instantiation: thread_common.c:get_tx_size
Unexecuted instantiation: tile_common.c:get_tx_size
Unexecuted instantiation: txb_common.c:get_tx_size
Unexecuted instantiation: warped_motion.c:get_tx_size
Unexecuted instantiation: cfl_sse2.c:get_tx_size
Unexecuted instantiation: resize_sse2.c:get_tx_size
Unexecuted instantiation: cfl_ssse3.c:get_tx_size
Unexecuted instantiation: resize_ssse3.c:get_tx_size
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_tx_size
Unexecuted instantiation: filterintra_sse4.c:get_tx_size
Unexecuted instantiation: cfl_avx2.c:get_tx_size
Unexecuted instantiation: resize_avx2.c:get_tx_size
1747
1748
static inline int txfm_partition_context(const TXFM_CONTEXT *const above_ctx,
1749
                                         const TXFM_CONTEXT *const left_ctx,
1750
688k
                                         BLOCK_SIZE bsize, TX_SIZE tx_size) {
1751
688k
  const uint8_t txw = tx_size_wide[tx_size];
1752
688k
  const uint8_t txh = tx_size_high[tx_size];
1753
688k
  const int above = *above_ctx < txw;
1754
688k
  const int left = *left_ctx < txh;
1755
688k
  int category = TXFM_PARTITION_CONTEXTS;
1756
1757
  // dummy return, not used by others.
1758
688k
  if (tx_size <= TX_4X4) return 0;
1759
1760
688k
  TX_SIZE max_tx_size =
1761
688k
      get_sqr_tx_size(AOMMAX(block_size_wide[bsize], block_size_high[bsize]));
1762
1763
688k
  if (max_tx_size >= TX_8X8) {
1764
688k
    category =
1765
688k
        (txsize_sqr_up_map[tx_size] != max_tx_size && max_tx_size > TX_8X8) +
1766
688k
        (TX_SIZES - 1 - max_tx_size) * 2;
1767
688k
  }
1768
688k
  assert(category != TXFM_PARTITION_CONTEXTS);
1769
688k
  return category * 3 + above + left;
1770
688k
}
Unexecuted instantiation: av1_dx_iface.c:txfm_partition_context
decodeframe.c:txfm_partition_context
Line
Count
Source
1750
688k
                                         BLOCK_SIZE bsize, TX_SIZE tx_size) {
1751
688k
  const uint8_t txw = tx_size_wide[tx_size];
1752
688k
  const uint8_t txh = tx_size_high[tx_size];
1753
688k
  const int above = *above_ctx < txw;
1754
688k
  const int left = *left_ctx < txh;
1755
688k
  int category = TXFM_PARTITION_CONTEXTS;
1756
1757
  // dummy return, not used by others.
1758
688k
  if (tx_size <= TX_4X4) return 0;
1759
1760
688k
  TX_SIZE max_tx_size =
1761
688k
      get_sqr_tx_size(AOMMAX(block_size_wide[bsize], block_size_high[bsize]));
1762
1763
688k
  if (max_tx_size >= TX_8X8) {
1764
688k
    category =
1765
688k
        (txsize_sqr_up_map[tx_size] != max_tx_size && max_tx_size > TX_8X8) +
1766
688k
        (TX_SIZES - 1 - max_tx_size) * 2;
1767
688k
  }
1768
688k
  assert(category != TXFM_PARTITION_CONTEXTS);
1769
688k
  return category * 3 + above + left;
1770
688k
}
Unexecuted instantiation: decodemv.c:txfm_partition_context
Unexecuted instantiation: decoder.c:txfm_partition_context
Unexecuted instantiation: decodetxb.c:txfm_partition_context
Unexecuted instantiation: detokenize.c:txfm_partition_context
Unexecuted instantiation: obu.c:txfm_partition_context
Unexecuted instantiation: alloccommon.c:txfm_partition_context
Unexecuted instantiation: av1_loopfilter.c:txfm_partition_context
Unexecuted instantiation: blockd.c:txfm_partition_context
Unexecuted instantiation: cdef.c:txfm_partition_context
Unexecuted instantiation: cdef_block.c:txfm_partition_context
Unexecuted instantiation: cfl.c:txfm_partition_context
Unexecuted instantiation: convolve.c:txfm_partition_context
Unexecuted instantiation: entropy.c:txfm_partition_context
Unexecuted instantiation: entropymode.c:txfm_partition_context
Unexecuted instantiation: entropymv.c:txfm_partition_context
Unexecuted instantiation: mvref_common.c:txfm_partition_context
Unexecuted instantiation: pred_common.c:txfm_partition_context
Unexecuted instantiation: quant_common.c:txfm_partition_context
Unexecuted instantiation: reconinter.c:txfm_partition_context
Unexecuted instantiation: reconintra.c:txfm_partition_context
Unexecuted instantiation: resize.c:txfm_partition_context
Unexecuted instantiation: restoration.c:txfm_partition_context
Unexecuted instantiation: scan.c:txfm_partition_context
Unexecuted instantiation: thread_common.c:txfm_partition_context
Unexecuted instantiation: tile_common.c:txfm_partition_context
Unexecuted instantiation: txb_common.c:txfm_partition_context
Unexecuted instantiation: warped_motion.c:txfm_partition_context
Unexecuted instantiation: cfl_sse2.c:txfm_partition_context
Unexecuted instantiation: resize_sse2.c:txfm_partition_context
Unexecuted instantiation: cfl_ssse3.c:txfm_partition_context
Unexecuted instantiation: resize_ssse3.c:txfm_partition_context
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:txfm_partition_context
Unexecuted instantiation: filterintra_sse4.c:txfm_partition_context
Unexecuted instantiation: cfl_avx2.c:txfm_partition_context
Unexecuted instantiation: resize_avx2.c:txfm_partition_context
1771
1772
// Compute the next partition in the direction of the sb_type stored in the mi
1773
// array, starting with bsize.
1774
static inline PARTITION_TYPE get_partition(const AV1_COMMON *const cm,
1775
                                           int mi_row, int mi_col,
1776
3.94M
                                           BLOCK_SIZE bsize) {
1777
3.94M
  const CommonModeInfoParams *const mi_params = &cm->mi_params;
1778
3.94M
  if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols)
1779
0
    return PARTITION_INVALID;
1780
1781
3.94M
  const int offset = mi_row * mi_params->mi_stride + mi_col;
1782
3.94M
  MB_MODE_INFO **mi = mi_params->mi_grid_base + offset;
1783
3.94M
  const BLOCK_SIZE subsize = mi[0]->bsize;
1784
1785
3.94M
  assert(bsize < BLOCK_SIZES_ALL);
1786
1787
3.94M
  if (subsize == bsize) return PARTITION_NONE;
1788
1789
2.35M
  const int bhigh = mi_size_high[bsize];
1790
2.35M
  const int bwide = mi_size_wide[bsize];
1791
2.35M
  const int sshigh = mi_size_high[subsize];
1792
2.35M
  const int sswide = mi_size_wide[subsize];
1793
1794
2.35M
  if (bsize > BLOCK_8X8 && mi_row + bwide / 2 < mi_params->mi_rows &&
1795
1.98M
      mi_col + bhigh / 2 < mi_params->mi_cols) {
1796
    // In this case, the block might be using an extended partition
1797
    // type.
1798
1.95M
    const MB_MODE_INFO *const mbmi_right = mi[bwide / 2];
1799
1.95M
    const MB_MODE_INFO *const mbmi_below = mi[bhigh / 2 * mi_params->mi_stride];
1800
1801
1.95M
    if (sswide == bwide) {
1802
      // Smaller height but same width. Is PARTITION_HORZ_4, PARTITION_HORZ or
1803
      // PARTITION_HORZ_B. To distinguish the latter two, check if the lower
1804
      // half was split.
1805
650k
      if (sshigh * 4 == bhigh) return PARTITION_HORZ_4;
1806
650k
      assert(sshigh * 2 == bhigh);
1807
1808
337k
      if (mbmi_below->bsize == subsize)
1809
254k
        return PARTITION_HORZ;
1810
82.9k
      else
1811
82.9k
        return PARTITION_HORZ_B;
1812
1.30M
    } else if (sshigh == bhigh) {
1813
      // Smaller width but same height. Is PARTITION_VERT_4, PARTITION_VERT or
1814
      // PARTITION_VERT_B. To distinguish the latter two, check if the right
1815
      // half was split.
1816
307k
      if (sswide * 4 == bwide) return PARTITION_VERT_4;
1817
307k
      assert(sswide * 2 == bwide);
1818
1819
191k
      if (mbmi_right->bsize == subsize)
1820
132k
        return PARTITION_VERT;
1821
58.2k
      else
1822
58.2k
        return PARTITION_VERT_B;
1823
994k
    } else {
1824
      // Smaller width and smaller height. Might be PARTITION_SPLIT or could be
1825
      // PARTITION_HORZ_A or PARTITION_VERT_A. If subsize isn't halved in both
1826
      // dimensions, we immediately know this is a split (which will recurse to
1827
      // get to subsize). Otherwise look down and to the right. With
1828
      // PARTITION_VERT_A, the right block will have height bhigh; with
1829
      // PARTITION_HORZ_A, the lower block with have width bwide. Otherwise
1830
      // it's PARTITION_SPLIT.
1831
994k
      if (sswide * 2 != bwide || sshigh * 2 != bhigh) return PARTITION_SPLIT;
1832
1833
466k
      if (mi_size_wide[mbmi_below->bsize] == bwide) return PARTITION_HORZ_A;
1834
376k
      if (mi_size_high[mbmi_right->bsize] == bhigh) return PARTITION_VERT_A;
1835
1836
330k
      return PARTITION_SPLIT;
1837
376k
    }
1838
1.95M
  }
1839
406k
  const int vert_split = sswide < bwide;
1840
406k
  const int horz_split = sshigh < bhigh;
1841
406k
  const int split_idx = (vert_split << 1) | horz_split;
1842
406k
  assert(split_idx != 0);
1843
1844
409k
  static const PARTITION_TYPE base_partitions[4] = {
1845
409k
    PARTITION_INVALID, PARTITION_HORZ, PARTITION_VERT, PARTITION_SPLIT
1846
409k
  };
1847
1848
409k
  return base_partitions[split_idx];
1849
406k
}
Unexecuted instantiation: av1_dx_iface.c:get_partition
decodeframe.c:get_partition
Line
Count
Source
1776
3.94M
                                           BLOCK_SIZE bsize) {
1777
3.94M
  const CommonModeInfoParams *const mi_params = &cm->mi_params;
1778
3.94M
  if (mi_row >= mi_params->mi_rows || mi_col >= mi_params->mi_cols)
1779
0
    return PARTITION_INVALID;
1780
1781
3.94M
  const int offset = mi_row * mi_params->mi_stride + mi_col;
1782
3.94M
  MB_MODE_INFO **mi = mi_params->mi_grid_base + offset;
1783
3.94M
  const BLOCK_SIZE subsize = mi[0]->bsize;
1784
1785
3.94M
  assert(bsize < BLOCK_SIZES_ALL);
1786
1787
3.94M
  if (subsize == bsize) return PARTITION_NONE;
1788
1789
2.35M
  const int bhigh = mi_size_high[bsize];
1790
2.35M
  const int bwide = mi_size_wide[bsize];
1791
2.35M
  const int sshigh = mi_size_high[subsize];
1792
2.35M
  const int sswide = mi_size_wide[subsize];
1793
1794
2.35M
  if (bsize > BLOCK_8X8 && mi_row + bwide / 2 < mi_params->mi_rows &&
1795
1.98M
      mi_col + bhigh / 2 < mi_params->mi_cols) {
1796
    // In this case, the block might be using an extended partition
1797
    // type.
1798
1.95M
    const MB_MODE_INFO *const mbmi_right = mi[bwide / 2];
1799
1.95M
    const MB_MODE_INFO *const mbmi_below = mi[bhigh / 2 * mi_params->mi_stride];
1800
1801
1.95M
    if (sswide == bwide) {
1802
      // Smaller height but same width. Is PARTITION_HORZ_4, PARTITION_HORZ or
1803
      // PARTITION_HORZ_B. To distinguish the latter two, check if the lower
1804
      // half was split.
1805
650k
      if (sshigh * 4 == bhigh) return PARTITION_HORZ_4;
1806
650k
      assert(sshigh * 2 == bhigh);
1807
1808
337k
      if (mbmi_below->bsize == subsize)
1809
254k
        return PARTITION_HORZ;
1810
82.9k
      else
1811
82.9k
        return PARTITION_HORZ_B;
1812
1.30M
    } else if (sshigh == bhigh) {
1813
      // Smaller width but same height. Is PARTITION_VERT_4, PARTITION_VERT or
1814
      // PARTITION_VERT_B. To distinguish the latter two, check if the right
1815
      // half was split.
1816
307k
      if (sswide * 4 == bwide) return PARTITION_VERT_4;
1817
307k
      assert(sswide * 2 == bwide);
1818
1819
191k
      if (mbmi_right->bsize == subsize)
1820
132k
        return PARTITION_VERT;
1821
58.2k
      else
1822
58.2k
        return PARTITION_VERT_B;
1823
994k
    } else {
1824
      // Smaller width and smaller height. Might be PARTITION_SPLIT or could be
1825
      // PARTITION_HORZ_A or PARTITION_VERT_A. If subsize isn't halved in both
1826
      // dimensions, we immediately know this is a split (which will recurse to
1827
      // get to subsize). Otherwise look down and to the right. With
1828
      // PARTITION_VERT_A, the right block will have height bhigh; with
1829
      // PARTITION_HORZ_A, the lower block with have width bwide. Otherwise
1830
      // it's PARTITION_SPLIT.
1831
994k
      if (sswide * 2 != bwide || sshigh * 2 != bhigh) return PARTITION_SPLIT;
1832
1833
466k
      if (mi_size_wide[mbmi_below->bsize] == bwide) return PARTITION_HORZ_A;
1834
376k
      if (mi_size_high[mbmi_right->bsize] == bhigh) return PARTITION_VERT_A;
1835
1836
330k
      return PARTITION_SPLIT;
1837
376k
    }
1838
1.95M
  }
1839
406k
  const int vert_split = sswide < bwide;
1840
406k
  const int horz_split = sshigh < bhigh;
1841
406k
  const int split_idx = (vert_split << 1) | horz_split;
1842
406k
  assert(split_idx != 0);
1843
1844
409k
  static const PARTITION_TYPE base_partitions[4] = {
1845
409k
    PARTITION_INVALID, PARTITION_HORZ, PARTITION_VERT, PARTITION_SPLIT
1846
409k
  };
1847
1848
409k
  return base_partitions[split_idx];
1849
406k
}
Unexecuted instantiation: decodemv.c:get_partition
Unexecuted instantiation: decoder.c:get_partition
Unexecuted instantiation: decodetxb.c:get_partition
Unexecuted instantiation: detokenize.c:get_partition
Unexecuted instantiation: obu.c:get_partition
Unexecuted instantiation: alloccommon.c:get_partition
Unexecuted instantiation: av1_loopfilter.c:get_partition
Unexecuted instantiation: blockd.c:get_partition
Unexecuted instantiation: cdef.c:get_partition
Unexecuted instantiation: cdef_block.c:get_partition
Unexecuted instantiation: cfl.c:get_partition
Unexecuted instantiation: convolve.c:get_partition
Unexecuted instantiation: entropy.c:get_partition
Unexecuted instantiation: entropymode.c:get_partition
Unexecuted instantiation: entropymv.c:get_partition
Unexecuted instantiation: mvref_common.c:get_partition
Unexecuted instantiation: pred_common.c:get_partition
Unexecuted instantiation: quant_common.c:get_partition
Unexecuted instantiation: reconinter.c:get_partition
Unexecuted instantiation: reconintra.c:get_partition
Unexecuted instantiation: resize.c:get_partition
Unexecuted instantiation: restoration.c:get_partition
Unexecuted instantiation: scan.c:get_partition
Unexecuted instantiation: thread_common.c:get_partition
Unexecuted instantiation: tile_common.c:get_partition
Unexecuted instantiation: txb_common.c:get_partition
Unexecuted instantiation: warped_motion.c:get_partition
Unexecuted instantiation: cfl_sse2.c:get_partition
Unexecuted instantiation: resize_sse2.c:get_partition
Unexecuted instantiation: cfl_ssse3.c:get_partition
Unexecuted instantiation: resize_ssse3.c:get_partition
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:get_partition
Unexecuted instantiation: filterintra_sse4.c:get_partition
Unexecuted instantiation: cfl_avx2.c:get_partition
Unexecuted instantiation: resize_avx2.c:get_partition
1850
1851
static inline void set_sb_size(SequenceHeader *const seq_params,
1852
26.8k
                               BLOCK_SIZE sb_size) {
1853
26.8k
  seq_params->sb_size = sb_size;
1854
26.8k
  seq_params->mib_size = mi_size_wide[seq_params->sb_size];
1855
26.8k
  seq_params->mib_size_log2 = mi_size_wide_log2[seq_params->sb_size];
1856
26.8k
}
Unexecuted instantiation: av1_dx_iface.c:set_sb_size
decodeframe.c:set_sb_size
Line
Count
Source
1852
26.8k
                               BLOCK_SIZE sb_size) {
1853
26.8k
  seq_params->sb_size = sb_size;
1854
26.8k
  seq_params->mib_size = mi_size_wide[seq_params->sb_size];
1855
26.8k
  seq_params->mib_size_log2 = mi_size_wide_log2[seq_params->sb_size];
1856
26.8k
}
Unexecuted instantiation: decodemv.c:set_sb_size
Unexecuted instantiation: decoder.c:set_sb_size
Unexecuted instantiation: decodetxb.c:set_sb_size
Unexecuted instantiation: detokenize.c:set_sb_size
Unexecuted instantiation: obu.c:set_sb_size
Unexecuted instantiation: alloccommon.c:set_sb_size
Unexecuted instantiation: av1_loopfilter.c:set_sb_size
Unexecuted instantiation: blockd.c:set_sb_size
Unexecuted instantiation: cdef.c:set_sb_size
Unexecuted instantiation: cdef_block.c:set_sb_size
Unexecuted instantiation: cfl.c:set_sb_size
Unexecuted instantiation: convolve.c:set_sb_size
Unexecuted instantiation: entropy.c:set_sb_size
Unexecuted instantiation: entropymode.c:set_sb_size
Unexecuted instantiation: entropymv.c:set_sb_size
Unexecuted instantiation: mvref_common.c:set_sb_size
Unexecuted instantiation: pred_common.c:set_sb_size
Unexecuted instantiation: quant_common.c:set_sb_size
Unexecuted instantiation: reconinter.c:set_sb_size
Unexecuted instantiation: reconintra.c:set_sb_size
Unexecuted instantiation: resize.c:set_sb_size
Unexecuted instantiation: restoration.c:set_sb_size
Unexecuted instantiation: scan.c:set_sb_size
Unexecuted instantiation: thread_common.c:set_sb_size
Unexecuted instantiation: tile_common.c:set_sb_size
Unexecuted instantiation: txb_common.c:set_sb_size
Unexecuted instantiation: warped_motion.c:set_sb_size
Unexecuted instantiation: cfl_sse2.c:set_sb_size
Unexecuted instantiation: resize_sse2.c:set_sb_size
Unexecuted instantiation: cfl_ssse3.c:set_sb_size
Unexecuted instantiation: resize_ssse3.c:set_sb_size
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:set_sb_size
Unexecuted instantiation: filterintra_sse4.c:set_sb_size
Unexecuted instantiation: cfl_avx2.c:set_sb_size
Unexecuted instantiation: resize_avx2.c:set_sb_size
1857
1858
// Returns true if the frame is fully lossless at the coded resolution.
1859
// Note: If super-resolution is used, such a frame will still NOT be lossless at
1860
// the upscaled resolution.
1861
static inline int is_coded_lossless(const AV1_COMMON *cm,
1862
74.4k
                                    const MACROBLOCKD *xd) {
1863
74.4k
  int coded_lossless = 1;
1864
74.4k
  if (cm->seg.enabled) {
1865
16.3k
    for (int i = 0; i < MAX_SEGMENTS; ++i) {
1866
15.8k
      if (!xd->lossless[i]) {
1867
10.0k
        coded_lossless = 0;
1868
10.0k
        break;
1869
10.0k
      }
1870
15.8k
    }
1871
63.9k
  } else {
1872
63.9k
    coded_lossless = xd->lossless[0];
1873
63.9k
  }
1874
74.4k
  return coded_lossless;
1875
74.4k
}
Unexecuted instantiation: av1_dx_iface.c:is_coded_lossless
decodeframe.c:is_coded_lossless
Line
Count
Source
1862
74.4k
                                    const MACROBLOCKD *xd) {
1863
74.4k
  int coded_lossless = 1;
1864
74.4k
  if (cm->seg.enabled) {
1865
16.3k
    for (int i = 0; i < MAX_SEGMENTS; ++i) {
1866
15.8k
      if (!xd->lossless[i]) {
1867
10.0k
        coded_lossless = 0;
1868
10.0k
        break;
1869
10.0k
      }
1870
15.8k
    }
1871
63.9k
  } else {
1872
63.9k
    coded_lossless = xd->lossless[0];
1873
63.9k
  }
1874
74.4k
  return coded_lossless;
1875
74.4k
}
Unexecuted instantiation: decodemv.c:is_coded_lossless
Unexecuted instantiation: decoder.c:is_coded_lossless
Unexecuted instantiation: decodetxb.c:is_coded_lossless
Unexecuted instantiation: detokenize.c:is_coded_lossless
Unexecuted instantiation: obu.c:is_coded_lossless
Unexecuted instantiation: alloccommon.c:is_coded_lossless
Unexecuted instantiation: av1_loopfilter.c:is_coded_lossless
Unexecuted instantiation: blockd.c:is_coded_lossless
Unexecuted instantiation: cdef.c:is_coded_lossless
Unexecuted instantiation: cdef_block.c:is_coded_lossless
Unexecuted instantiation: cfl.c:is_coded_lossless
Unexecuted instantiation: convolve.c:is_coded_lossless
Unexecuted instantiation: entropy.c:is_coded_lossless
Unexecuted instantiation: entropymode.c:is_coded_lossless
Unexecuted instantiation: entropymv.c:is_coded_lossless
Unexecuted instantiation: mvref_common.c:is_coded_lossless
Unexecuted instantiation: pred_common.c:is_coded_lossless
Unexecuted instantiation: quant_common.c:is_coded_lossless
Unexecuted instantiation: reconinter.c:is_coded_lossless
Unexecuted instantiation: reconintra.c:is_coded_lossless
Unexecuted instantiation: resize.c:is_coded_lossless
Unexecuted instantiation: restoration.c:is_coded_lossless
Unexecuted instantiation: scan.c:is_coded_lossless
Unexecuted instantiation: thread_common.c:is_coded_lossless
Unexecuted instantiation: tile_common.c:is_coded_lossless
Unexecuted instantiation: txb_common.c:is_coded_lossless
Unexecuted instantiation: warped_motion.c:is_coded_lossless
Unexecuted instantiation: cfl_sse2.c:is_coded_lossless
Unexecuted instantiation: resize_sse2.c:is_coded_lossless
Unexecuted instantiation: cfl_ssse3.c:is_coded_lossless
Unexecuted instantiation: resize_ssse3.c:is_coded_lossless
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:is_coded_lossless
Unexecuted instantiation: filterintra_sse4.c:is_coded_lossless
Unexecuted instantiation: cfl_avx2.c:is_coded_lossless
Unexecuted instantiation: resize_avx2.c:is_coded_lossless
1876
1877
35.5k
static inline int is_valid_seq_level_idx(AV1_LEVEL seq_level_idx) {
1878
35.5k
  return seq_level_idx == SEQ_LEVEL_MAX ||
1879
34.2k
         (seq_level_idx < SEQ_LEVELS &&
1880
          // The following levels are currently undefined.
1881
33.9k
          seq_level_idx != SEQ_LEVEL_2_2 && seq_level_idx != SEQ_LEVEL_2_3 &&
1882
32.9k
          seq_level_idx != SEQ_LEVEL_3_2 && seq_level_idx != SEQ_LEVEL_3_3 &&
1883
32.5k
          seq_level_idx != SEQ_LEVEL_4_2 && seq_level_idx != SEQ_LEVEL_4_3
1884
32.3k
#if !CONFIG_CWG_C013
1885
32.3k
          && seq_level_idx != SEQ_LEVEL_7_0 && seq_level_idx != SEQ_LEVEL_7_1 &&
1886
31.6k
          seq_level_idx != SEQ_LEVEL_7_2 && seq_level_idx != SEQ_LEVEL_7_3 &&
1887
31.5k
          seq_level_idx != SEQ_LEVEL_8_0 && seq_level_idx != SEQ_LEVEL_8_1 &&
1888
31.4k
          seq_level_idx != SEQ_LEVEL_8_2 && seq_level_idx != SEQ_LEVEL_8_3
1889
34.2k
#endif
1890
34.2k
         );
1891
35.5k
}
Unexecuted instantiation: av1_dx_iface.c:is_valid_seq_level_idx
Unexecuted instantiation: decodeframe.c:is_valid_seq_level_idx
Unexecuted instantiation: decodemv.c:is_valid_seq_level_idx
Unexecuted instantiation: decoder.c:is_valid_seq_level_idx
Unexecuted instantiation: decodetxb.c:is_valid_seq_level_idx
Unexecuted instantiation: detokenize.c:is_valid_seq_level_idx
obu.c:is_valid_seq_level_idx
Line
Count
Source
1877
35.5k
static inline int is_valid_seq_level_idx(AV1_LEVEL seq_level_idx) {
1878
35.5k
  return seq_level_idx == SEQ_LEVEL_MAX ||
1879
34.2k
         (seq_level_idx < SEQ_LEVELS &&
1880
          // The following levels are currently undefined.
1881
33.9k
          seq_level_idx != SEQ_LEVEL_2_2 && seq_level_idx != SEQ_LEVEL_2_3 &&
1882
32.9k
          seq_level_idx != SEQ_LEVEL_3_2 && seq_level_idx != SEQ_LEVEL_3_3 &&
1883
32.5k
          seq_level_idx != SEQ_LEVEL_4_2 && seq_level_idx != SEQ_LEVEL_4_3
1884
32.3k
#if !CONFIG_CWG_C013
1885
32.3k
          && seq_level_idx != SEQ_LEVEL_7_0 && seq_level_idx != SEQ_LEVEL_7_1 &&
1886
31.6k
          seq_level_idx != SEQ_LEVEL_7_2 && seq_level_idx != SEQ_LEVEL_7_3 &&
1887
31.5k
          seq_level_idx != SEQ_LEVEL_8_0 && seq_level_idx != SEQ_LEVEL_8_1 &&
1888
31.4k
          seq_level_idx != SEQ_LEVEL_8_2 && seq_level_idx != SEQ_LEVEL_8_3
1889
34.2k
#endif
1890
34.2k
         );
1891
35.5k
}
Unexecuted instantiation: alloccommon.c:is_valid_seq_level_idx
Unexecuted instantiation: av1_loopfilter.c:is_valid_seq_level_idx
Unexecuted instantiation: blockd.c:is_valid_seq_level_idx
Unexecuted instantiation: cdef.c:is_valid_seq_level_idx
Unexecuted instantiation: cdef_block.c:is_valid_seq_level_idx
Unexecuted instantiation: cfl.c:is_valid_seq_level_idx
Unexecuted instantiation: convolve.c:is_valid_seq_level_idx
Unexecuted instantiation: entropy.c:is_valid_seq_level_idx
Unexecuted instantiation: entropymode.c:is_valid_seq_level_idx
Unexecuted instantiation: entropymv.c:is_valid_seq_level_idx
Unexecuted instantiation: mvref_common.c:is_valid_seq_level_idx
Unexecuted instantiation: pred_common.c:is_valid_seq_level_idx
Unexecuted instantiation: quant_common.c:is_valid_seq_level_idx
Unexecuted instantiation: reconinter.c:is_valid_seq_level_idx
Unexecuted instantiation: reconintra.c:is_valid_seq_level_idx
Unexecuted instantiation: resize.c:is_valid_seq_level_idx
Unexecuted instantiation: restoration.c:is_valid_seq_level_idx
Unexecuted instantiation: scan.c:is_valid_seq_level_idx
Unexecuted instantiation: thread_common.c:is_valid_seq_level_idx
Unexecuted instantiation: tile_common.c:is_valid_seq_level_idx
Unexecuted instantiation: txb_common.c:is_valid_seq_level_idx
Unexecuted instantiation: warped_motion.c:is_valid_seq_level_idx
Unexecuted instantiation: cfl_sse2.c:is_valid_seq_level_idx
Unexecuted instantiation: resize_sse2.c:is_valid_seq_level_idx
Unexecuted instantiation: cfl_ssse3.c:is_valid_seq_level_idx
Unexecuted instantiation: resize_ssse3.c:is_valid_seq_level_idx
Unexecuted instantiation: av1_convolve_horiz_rs_sse4.c:is_valid_seq_level_idx
Unexecuted instantiation: filterintra_sse4.c:is_valid_seq_level_idx
Unexecuted instantiation: cfl_avx2.c:is_valid_seq_level_idx
Unexecuted instantiation: resize_avx2.c:is_valid_seq_level_idx
1892
1893
/*!\endcond */
1894
1895
#ifdef __cplusplus
1896
}  // extern "C"
1897
#endif
1898
1899
#endif  // AOM_AV1_COMMON_AV1_COMMON_INT_H_