Coverage Report

Created: 2026-08-31 07:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libavif/ext/aom/av1/common/txb_common.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2017, 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_TXB_COMMON_H_
13
#define AOM_AV1_COMMON_TXB_COMMON_H_
14
15
#include "av1/common/av1_common_int.h"
16
17
extern const int16_t av1_eob_group_start[12];
18
extern const int16_t av1_eob_offset_bits[12];
19
20
extern const int8_t *av1_nz_map_ctx_offset[TX_SIZES_ALL];
21
22
typedef struct txb_ctx {
23
  int txb_skip_ctx;
24
  int dc_sign_ctx;
25
} TXB_CTX;
26
27
static const int base_level_count_to_index[13] = {
28
  0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
29
};
30
31
static const TX_CLASS tx_type_to_class[TX_TYPES] = {
32
  TX_CLASS_2D,     // DCT_DCT
33
  TX_CLASS_2D,     // ADST_DCT
34
  TX_CLASS_2D,     // DCT_ADST
35
  TX_CLASS_2D,     // ADST_ADST
36
  TX_CLASS_2D,     // FLIPADST_DCT
37
  TX_CLASS_2D,     // DCT_FLIPADST
38
  TX_CLASS_2D,     // FLIPADST_FLIPADST
39
  TX_CLASS_2D,     // ADST_FLIPADST
40
  TX_CLASS_2D,     // FLIPADST_ADST
41
  TX_CLASS_2D,     // IDTX
42
  TX_CLASS_VERT,   // V_DCT
43
  TX_CLASS_HORIZ,  // H_DCT
44
  TX_CLASS_VERT,   // V_ADST
45
  TX_CLASS_HORIZ,  // H_ADST
46
  TX_CLASS_VERT,   // V_FLIPADST
47
  TX_CLASS_HORIZ,  // H_FLIPADST
48
};
49
50
586M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
586M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
586M
  return tx_size_high_log2[tx_size];
53
586M
}
decodetxb.c:get_txb_bhl
Line
Count
Source
50
15.7M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
15.7M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
15.7M
  return tx_size_high_log2[tx_size];
53
15.7M
}
Unexecuted instantiation: av1_cx_iface.c:get_txb_bhl
Unexecuted instantiation: allintra_vis.c:get_txb_bhl
Unexecuted instantiation: av1_quantize.c:get_txb_bhl
Unexecuted instantiation: bitstream.c:get_txb_bhl
Unexecuted instantiation: context_tree.c:get_txb_bhl
Unexecuted instantiation: encodeframe.c:get_txb_bhl
Unexecuted instantiation: encodeframe_utils.c:get_txb_bhl
Unexecuted instantiation: encodemb.c:get_txb_bhl
Unexecuted instantiation: encodemv.c:get_txb_bhl
Unexecuted instantiation: encoder.c:get_txb_bhl
Unexecuted instantiation: encoder_utils.c:get_txb_bhl
encodetxb.c:get_txb_bhl
Line
Count
Source
50
46.8M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
46.8M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
46.8M
  return tx_size_high_log2[tx_size];
53
46.8M
}
Unexecuted instantiation: ethread.c:get_txb_bhl
Unexecuted instantiation: firstpass.c:get_txb_bhl
Unexecuted instantiation: global_motion_facade.c:get_txb_bhl
Unexecuted instantiation: level.c:get_txb_bhl
Unexecuted instantiation: lookahead.c:get_txb_bhl
Unexecuted instantiation: mcomp.c:get_txb_bhl
Unexecuted instantiation: mv_prec.c:get_txb_bhl
Unexecuted instantiation: palette.c:get_txb_bhl
Unexecuted instantiation: partition_search.c:get_txb_bhl
Unexecuted instantiation: partition_strategy.c:get_txb_bhl
Unexecuted instantiation: pass2_strategy.c:get_txb_bhl
Unexecuted instantiation: pickcdef.c:get_txb_bhl
Unexecuted instantiation: picklpf.c:get_txb_bhl
Unexecuted instantiation: pickrst.c:get_txb_bhl
Unexecuted instantiation: ratectrl.c:get_txb_bhl
Unexecuted instantiation: rd.c:get_txb_bhl
Unexecuted instantiation: rdopt.c:get_txb_bhl
Unexecuted instantiation: nonrd_pickmode.c:get_txb_bhl
Unexecuted instantiation: nonrd_opt.c:get_txb_bhl
Unexecuted instantiation: segmentation.c:get_txb_bhl
Unexecuted instantiation: speed_features.c:get_txb_bhl
Unexecuted instantiation: superres_scale.c:get_txb_bhl
Unexecuted instantiation: svc_layercontext.c:get_txb_bhl
Unexecuted instantiation: temporal_filter.c:get_txb_bhl
Unexecuted instantiation: tokenize.c:get_txb_bhl
Unexecuted instantiation: tpl_model.c:get_txb_bhl
Unexecuted instantiation: tx_search.c:get_txb_bhl
txb_rdopt.c:get_txb_bhl
Line
Count
Source
50
342M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
342M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
342M
  return tx_size_high_log2[tx_size];
53
342M
}
Unexecuted instantiation: intra_mode_search.c:get_txb_bhl
Unexecuted instantiation: var_based_part.c:get_txb_bhl
Unexecuted instantiation: av1_noise_estimate.c:get_txb_bhl
encodetxb_sse2.c:get_txb_bhl
Line
Count
Source
50
182M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
182M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
182M
  return tx_size_high_log2[tx_size];
53
182M
}
Unexecuted instantiation: entropy.c:get_txb_bhl
Unexecuted instantiation: entropymode.c:get_txb_bhl
Unexecuted instantiation: txb_common.c:get_txb_bhl
Unexecuted instantiation: aq_complexity.c:get_txb_bhl
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_bhl
Unexecuted instantiation: aq_variance.c:get_txb_bhl
Unexecuted instantiation: compound_type.c:get_txb_bhl
Unexecuted instantiation: encode_strategy.c:get_txb_bhl
Unexecuted instantiation: global_motion.c:get_txb_bhl
Unexecuted instantiation: gop_structure.c:get_txb_bhl
Unexecuted instantiation: interp_search.c:get_txb_bhl
Unexecuted instantiation: motion_search_facade.c:get_txb_bhl
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_bhl
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_bhl
Unexecuted instantiation: encodetxb_sse4.c:get_txb_bhl
Unexecuted instantiation: rdopt_sse4.c:get_txb_bhl
Unexecuted instantiation: pickrst_sse4.c:get_txb_bhl
Unexecuted instantiation: encodetxb_avx2.c:get_txb_bhl
Unexecuted instantiation: rdopt_avx2.c:get_txb_bhl
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_bhl
Unexecuted instantiation: pickrst_avx2.c:get_txb_bhl
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_bhl
54
55
586M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
586M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
586M
  return tx_size_wide[tx_size];
58
586M
}
decodetxb.c:get_txb_wide
Line
Count
Source
55
15.7M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
15.7M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
15.7M
  return tx_size_wide[tx_size];
58
15.7M
}
Unexecuted instantiation: av1_cx_iface.c:get_txb_wide
Unexecuted instantiation: allintra_vis.c:get_txb_wide
Unexecuted instantiation: av1_quantize.c:get_txb_wide
Unexecuted instantiation: bitstream.c:get_txb_wide
Unexecuted instantiation: context_tree.c:get_txb_wide
Unexecuted instantiation: encodeframe.c:get_txb_wide
Unexecuted instantiation: encodeframe_utils.c:get_txb_wide
Unexecuted instantiation: encodemb.c:get_txb_wide
Unexecuted instantiation: encodemv.c:get_txb_wide
Unexecuted instantiation: encoder.c:get_txb_wide
Unexecuted instantiation: encoder_utils.c:get_txb_wide
encodetxb.c:get_txb_wide
Line
Count
Source
55
46.2M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
46.2M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
46.2M
  return tx_size_wide[tx_size];
58
46.2M
}
Unexecuted instantiation: ethread.c:get_txb_wide
Unexecuted instantiation: firstpass.c:get_txb_wide
Unexecuted instantiation: global_motion_facade.c:get_txb_wide
Unexecuted instantiation: level.c:get_txb_wide
Unexecuted instantiation: lookahead.c:get_txb_wide
Unexecuted instantiation: mcomp.c:get_txb_wide
Unexecuted instantiation: mv_prec.c:get_txb_wide
Unexecuted instantiation: palette.c:get_txb_wide
Unexecuted instantiation: partition_search.c:get_txb_wide
Unexecuted instantiation: partition_strategy.c:get_txb_wide
Unexecuted instantiation: pass2_strategy.c:get_txb_wide
Unexecuted instantiation: pickcdef.c:get_txb_wide
Unexecuted instantiation: picklpf.c:get_txb_wide
Unexecuted instantiation: pickrst.c:get_txb_wide
Unexecuted instantiation: ratectrl.c:get_txb_wide
Unexecuted instantiation: rd.c:get_txb_wide
Unexecuted instantiation: rdopt.c:get_txb_wide
Unexecuted instantiation: nonrd_pickmode.c:get_txb_wide
Unexecuted instantiation: nonrd_opt.c:get_txb_wide
Unexecuted instantiation: segmentation.c:get_txb_wide
Unexecuted instantiation: speed_features.c:get_txb_wide
Unexecuted instantiation: superres_scale.c:get_txb_wide
Unexecuted instantiation: svc_layercontext.c:get_txb_wide
Unexecuted instantiation: temporal_filter.c:get_txb_wide
Unexecuted instantiation: tokenize.c:get_txb_wide
Unexecuted instantiation: tpl_model.c:get_txb_wide
Unexecuted instantiation: tx_search.c:get_txb_wide
txb_rdopt.c:get_txb_wide
Line
Count
Source
55
342M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
342M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
342M
  return tx_size_wide[tx_size];
58
342M
}
Unexecuted instantiation: intra_mode_search.c:get_txb_wide
Unexecuted instantiation: var_based_part.c:get_txb_wide
Unexecuted instantiation: av1_noise_estimate.c:get_txb_wide
encodetxb_sse2.c:get_txb_wide
Line
Count
Source
55
181M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
181M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
181M
  return tx_size_wide[tx_size];
58
181M
}
Unexecuted instantiation: entropy.c:get_txb_wide
Unexecuted instantiation: entropymode.c:get_txb_wide
Unexecuted instantiation: txb_common.c:get_txb_wide
Unexecuted instantiation: aq_complexity.c:get_txb_wide
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_wide
Unexecuted instantiation: aq_variance.c:get_txb_wide
Unexecuted instantiation: compound_type.c:get_txb_wide
Unexecuted instantiation: encode_strategy.c:get_txb_wide
Unexecuted instantiation: global_motion.c:get_txb_wide
Unexecuted instantiation: gop_structure.c:get_txb_wide
Unexecuted instantiation: interp_search.c:get_txb_wide
Unexecuted instantiation: motion_search_facade.c:get_txb_wide
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_wide
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_wide
Unexecuted instantiation: encodetxb_sse4.c:get_txb_wide
Unexecuted instantiation: rdopt_sse4.c:get_txb_wide
Unexecuted instantiation: pickrst_sse4.c:get_txb_wide
Unexecuted instantiation: encodetxb_avx2.c:get_txb_wide
Unexecuted instantiation: rdopt_avx2.c:get_txb_wide
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_wide
Unexecuted instantiation: pickrst_avx2.c:get_txb_wide
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_wide
59
60
585M
static inline int get_txb_high(TX_SIZE tx_size) {
61
585M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
585M
  return tx_size_high[tx_size];
63
585M
}
decodetxb.c:get_txb_high
Line
Count
Source
60
15.7M
static inline int get_txb_high(TX_SIZE tx_size) {
61
15.7M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
15.7M
  return tx_size_high[tx_size];
63
15.7M
}
Unexecuted instantiation: av1_cx_iface.c:get_txb_high
Unexecuted instantiation: allintra_vis.c:get_txb_high
Unexecuted instantiation: av1_quantize.c:get_txb_high
Unexecuted instantiation: bitstream.c:get_txb_high
Unexecuted instantiation: context_tree.c:get_txb_high
Unexecuted instantiation: encodeframe.c:get_txb_high
Unexecuted instantiation: encodeframe_utils.c:get_txb_high
Unexecuted instantiation: encodemb.c:get_txb_high
Unexecuted instantiation: encodemv.c:get_txb_high
Unexecuted instantiation: encoder.c:get_txb_high
Unexecuted instantiation: encoder_utils.c:get_txb_high
encodetxb.c:get_txb_high
Line
Count
Source
60
46.2M
static inline int get_txb_high(TX_SIZE tx_size) {
61
46.2M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
46.2M
  return tx_size_high[tx_size];
63
46.2M
}
Unexecuted instantiation: ethread.c:get_txb_high
Unexecuted instantiation: firstpass.c:get_txb_high
Unexecuted instantiation: global_motion_facade.c:get_txb_high
Unexecuted instantiation: level.c:get_txb_high
Unexecuted instantiation: lookahead.c:get_txb_high
Unexecuted instantiation: mcomp.c:get_txb_high
Unexecuted instantiation: mv_prec.c:get_txb_high
Unexecuted instantiation: palette.c:get_txb_high
Unexecuted instantiation: partition_search.c:get_txb_high
Unexecuted instantiation: partition_strategy.c:get_txb_high
Unexecuted instantiation: pass2_strategy.c:get_txb_high
Unexecuted instantiation: pickcdef.c:get_txb_high
Unexecuted instantiation: picklpf.c:get_txb_high
Unexecuted instantiation: pickrst.c:get_txb_high
Unexecuted instantiation: ratectrl.c:get_txb_high
Unexecuted instantiation: rd.c:get_txb_high
Unexecuted instantiation: rdopt.c:get_txb_high
Unexecuted instantiation: nonrd_pickmode.c:get_txb_high
Unexecuted instantiation: nonrd_opt.c:get_txb_high
Unexecuted instantiation: segmentation.c:get_txb_high
Unexecuted instantiation: speed_features.c:get_txb_high
Unexecuted instantiation: superres_scale.c:get_txb_high
Unexecuted instantiation: svc_layercontext.c:get_txb_high
Unexecuted instantiation: temporal_filter.c:get_txb_high
Unexecuted instantiation: tokenize.c:get_txb_high
Unexecuted instantiation: tpl_model.c:get_txb_high
Unexecuted instantiation: tx_search.c:get_txb_high
txb_rdopt.c:get_txb_high
Line
Count
Source
60
342M
static inline int get_txb_high(TX_SIZE tx_size) {
61
342M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
342M
  return tx_size_high[tx_size];
63
342M
}
Unexecuted instantiation: intra_mode_search.c:get_txb_high
Unexecuted instantiation: var_based_part.c:get_txb_high
Unexecuted instantiation: av1_noise_estimate.c:get_txb_high
encodetxb_sse2.c:get_txb_high
Line
Count
Source
60
180M
static inline int get_txb_high(TX_SIZE tx_size) {
61
180M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
180M
  return tx_size_high[tx_size];
63
180M
}
Unexecuted instantiation: entropy.c:get_txb_high
Unexecuted instantiation: entropymode.c:get_txb_high
Unexecuted instantiation: txb_common.c:get_txb_high
Unexecuted instantiation: aq_complexity.c:get_txb_high
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_high
Unexecuted instantiation: aq_variance.c:get_txb_high
Unexecuted instantiation: compound_type.c:get_txb_high
Unexecuted instantiation: encode_strategy.c:get_txb_high
Unexecuted instantiation: global_motion.c:get_txb_high
Unexecuted instantiation: gop_structure.c:get_txb_high
Unexecuted instantiation: interp_search.c:get_txb_high
Unexecuted instantiation: motion_search_facade.c:get_txb_high
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_high
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_high
Unexecuted instantiation: encodetxb_sse4.c:get_txb_high
Unexecuted instantiation: rdopt_sse4.c:get_txb_high
Unexecuted instantiation: pickrst_sse4.c:get_txb_high
Unexecuted instantiation: encodetxb_avx2.c:get_txb_high
Unexecuted instantiation: rdopt_avx2.c:get_txb_high
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_high
Unexecuted instantiation: pickrst_avx2.c:get_txb_high
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_high
64
65
400M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
400M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
400M
}
decodetxb.c:set_levels
Line
Count
Source
65
15.6M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
15.6M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
15.6M
}
Unexecuted instantiation: av1_cx_iface.c:set_levels
Unexecuted instantiation: allintra_vis.c:set_levels
Unexecuted instantiation: av1_quantize.c:set_levels
Unexecuted instantiation: bitstream.c:set_levels
Unexecuted instantiation: context_tree.c:set_levels
Unexecuted instantiation: encodeframe.c:set_levels
Unexecuted instantiation: encodeframe_utils.c:set_levels
Unexecuted instantiation: encodemb.c:set_levels
Unexecuted instantiation: encodemv.c:set_levels
Unexecuted instantiation: encoder.c:set_levels
Unexecuted instantiation: encoder_utils.c:set_levels
encodetxb.c:set_levels
Line
Count
Source
65
44.7M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
44.7M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
44.7M
}
Unexecuted instantiation: ethread.c:set_levels
Unexecuted instantiation: firstpass.c:set_levels
Unexecuted instantiation: global_motion_facade.c:set_levels
Unexecuted instantiation: level.c:set_levels
Unexecuted instantiation: lookahead.c:set_levels
Unexecuted instantiation: mcomp.c:set_levels
Unexecuted instantiation: mv_prec.c:set_levels
Unexecuted instantiation: palette.c:set_levels
Unexecuted instantiation: partition_search.c:set_levels
Unexecuted instantiation: partition_strategy.c:set_levels
Unexecuted instantiation: pass2_strategy.c:set_levels
Unexecuted instantiation: pickcdef.c:set_levels
Unexecuted instantiation: picklpf.c:set_levels
Unexecuted instantiation: pickrst.c:set_levels
Unexecuted instantiation: ratectrl.c:set_levels
Unexecuted instantiation: rd.c:set_levels
Unexecuted instantiation: rdopt.c:set_levels
Unexecuted instantiation: nonrd_pickmode.c:set_levels
Unexecuted instantiation: nonrd_opt.c:set_levels
Unexecuted instantiation: segmentation.c:set_levels
Unexecuted instantiation: speed_features.c:set_levels
Unexecuted instantiation: superres_scale.c:set_levels
Unexecuted instantiation: svc_layercontext.c:set_levels
Unexecuted instantiation: temporal_filter.c:set_levels
Unexecuted instantiation: tokenize.c:set_levels
Unexecuted instantiation: tpl_model.c:set_levels
Unexecuted instantiation: tx_search.c:set_levels
txb_rdopt.c:set_levels
Line
Count
Source
65
340M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
340M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
340M
}
Unexecuted instantiation: intra_mode_search.c:set_levels
Unexecuted instantiation: var_based_part.c:set_levels
Unexecuted instantiation: av1_noise_estimate.c:set_levels
Unexecuted instantiation: encodetxb_sse2.c:set_levels
Unexecuted instantiation: entropy.c:set_levels
Unexecuted instantiation: entropymode.c:set_levels
Unexecuted instantiation: txb_common.c:set_levels
Unexecuted instantiation: aq_complexity.c:set_levels
Unexecuted instantiation: aq_cyclicrefresh.c:set_levels
Unexecuted instantiation: aq_variance.c:set_levels
Unexecuted instantiation: compound_type.c:set_levels
Unexecuted instantiation: encode_strategy.c:set_levels
Unexecuted instantiation: global_motion.c:set_levels
Unexecuted instantiation: gop_structure.c:set_levels
Unexecuted instantiation: interp_search.c:set_levels
Unexecuted instantiation: motion_search_facade.c:set_levels
Unexecuted instantiation: temporal_filter_sse2.c:set_levels
Unexecuted instantiation: highbd_temporal_filter_sse2.c:set_levels
Unexecuted instantiation: encodetxb_sse4.c:set_levels
Unexecuted instantiation: rdopt_sse4.c:set_levels
Unexecuted instantiation: pickrst_sse4.c:set_levels
Unexecuted instantiation: encodetxb_avx2.c:set_levels
Unexecuted instantiation: rdopt_avx2.c:set_levels
Unexecuted instantiation: temporal_filter_avx2.c:set_levels
Unexecuted instantiation: pickrst_avx2.c:set_levels
Unexecuted instantiation: highbd_temporal_filter_avx2.c:set_levels
68
69
6.92G
static inline int get_padded_idx(const int idx, const int bhl) {
70
6.92G
  return idx + ((idx >> bhl) << TX_PAD_HOR_LOG2);
71
6.92G
}
decodetxb.c:get_padded_idx
Line
Count
Source
69
916M
static inline int get_padded_idx(const int idx, const int bhl) {
70
916M
  return idx + ((idx >> bhl) << TX_PAD_HOR_LOG2);
71
916M
}
Unexecuted instantiation: av1_cx_iface.c:get_padded_idx
Unexecuted instantiation: allintra_vis.c:get_padded_idx
Unexecuted instantiation: av1_quantize.c:get_padded_idx
Unexecuted instantiation: bitstream.c:get_padded_idx
Unexecuted instantiation: context_tree.c:get_padded_idx
Unexecuted instantiation: encodeframe.c:get_padded_idx
Unexecuted instantiation: encodeframe_utils.c:get_padded_idx
Unexecuted instantiation: encodemb.c:get_padded_idx
Unexecuted instantiation: encodemv.c:get_padded_idx
Unexecuted instantiation: encoder.c:get_padded_idx
Unexecuted instantiation: encoder_utils.c:get_padded_idx
Unexecuted instantiation: encodetxb.c:get_padded_idx
Unexecuted instantiation: ethread.c:get_padded_idx
Unexecuted instantiation: firstpass.c:get_padded_idx
Unexecuted instantiation: global_motion_facade.c:get_padded_idx
Unexecuted instantiation: level.c:get_padded_idx
Unexecuted instantiation: lookahead.c:get_padded_idx
Unexecuted instantiation: mcomp.c:get_padded_idx
Unexecuted instantiation: mv_prec.c:get_padded_idx
Unexecuted instantiation: palette.c:get_padded_idx
Unexecuted instantiation: partition_search.c:get_padded_idx
Unexecuted instantiation: partition_strategy.c:get_padded_idx
Unexecuted instantiation: pass2_strategy.c:get_padded_idx
Unexecuted instantiation: pickcdef.c:get_padded_idx
Unexecuted instantiation: picklpf.c:get_padded_idx
Unexecuted instantiation: pickrst.c:get_padded_idx
Unexecuted instantiation: ratectrl.c:get_padded_idx
Unexecuted instantiation: rd.c:get_padded_idx
Unexecuted instantiation: rdopt.c:get_padded_idx
Unexecuted instantiation: nonrd_pickmode.c:get_padded_idx
Unexecuted instantiation: nonrd_opt.c:get_padded_idx
Unexecuted instantiation: segmentation.c:get_padded_idx
Unexecuted instantiation: speed_features.c:get_padded_idx
Unexecuted instantiation: superres_scale.c:get_padded_idx
Unexecuted instantiation: svc_layercontext.c:get_padded_idx
Unexecuted instantiation: temporal_filter.c:get_padded_idx
Unexecuted instantiation: tokenize.c:get_padded_idx
Unexecuted instantiation: tpl_model.c:get_padded_idx
Unexecuted instantiation: tx_search.c:get_padded_idx
txb_rdopt.c:get_padded_idx
Line
Count
Source
69
6.00G
static inline int get_padded_idx(const int idx, const int bhl) {
70
6.00G
  return idx + ((idx >> bhl) << TX_PAD_HOR_LOG2);
71
6.00G
}
Unexecuted instantiation: intra_mode_search.c:get_padded_idx
Unexecuted instantiation: var_based_part.c:get_padded_idx
Unexecuted instantiation: av1_noise_estimate.c:get_padded_idx
Unexecuted instantiation: encodetxb_sse2.c:get_padded_idx
Unexecuted instantiation: entropy.c:get_padded_idx
Unexecuted instantiation: entropymode.c:get_padded_idx
Unexecuted instantiation: txb_common.c:get_padded_idx
Unexecuted instantiation: aq_complexity.c:get_padded_idx
Unexecuted instantiation: aq_cyclicrefresh.c:get_padded_idx
Unexecuted instantiation: aq_variance.c:get_padded_idx
Unexecuted instantiation: compound_type.c:get_padded_idx
Unexecuted instantiation: encode_strategy.c:get_padded_idx
Unexecuted instantiation: global_motion.c:get_padded_idx
Unexecuted instantiation: gop_structure.c:get_padded_idx
Unexecuted instantiation: interp_search.c:get_padded_idx
Unexecuted instantiation: motion_search_facade.c:get_padded_idx
Unexecuted instantiation: temporal_filter_sse2.c:get_padded_idx
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_padded_idx
Unexecuted instantiation: encodetxb_sse4.c:get_padded_idx
Unexecuted instantiation: rdopt_sse4.c:get_padded_idx
Unexecuted instantiation: pickrst_sse4.c:get_padded_idx
Unexecuted instantiation: encodetxb_avx2.c:get_padded_idx
Unexecuted instantiation: rdopt_avx2.c:get_padded_idx
Unexecuted instantiation: temporal_filter_avx2.c:get_padded_idx
Unexecuted instantiation: pickrst_avx2.c:get_padded_idx
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_padded_idx
72
73
static inline int get_br_ctx_2d(const uint8_t *const levels,
74
                                const int c,  // raster order
75
130M
                                const int bhl) {
76
130M
  assert(c > 0);
77
130M
  const int col = c >> bhl;
78
130M
  const int row = c - (col << bhl);
79
130M
  const int stride = (1 << bhl) + TX_PAD_HOR;
80
130M
  const int pos = col * stride + row;
81
130M
  int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) +
82
130M
            AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) +
83
130M
            AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE);
84
130M
  mag = AOMMIN((mag + 1) >> 1, 6);
85
  //((row | col) < 2) is equivalent to ((row < 2) && (col < 2))
86
130M
  if ((row | col) < 2) return mag + 7;
87
112M
  return mag + 14;
88
130M
}
decodetxb.c:get_br_ctx_2d
Line
Count
Source
75
130M
                                const int bhl) {
76
130M
  assert(c > 0);
77
130M
  const int col = c >> bhl;
78
130M
  const int row = c - (col << bhl);
79
130M
  const int stride = (1 << bhl) + TX_PAD_HOR;
80
130M
  const int pos = col * stride + row;
81
130M
  int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) +
82
130M
            AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) +
83
130M
            AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE);
84
130M
  mag = AOMMIN((mag + 1) >> 1, 6);
85
  //((row | col) < 2) is equivalent to ((row < 2) && (col < 2))
86
130M
  if ((row | col) < 2) return mag + 7;
87
112M
  return mag + 14;
88
130M
}
Unexecuted instantiation: av1_cx_iface.c:get_br_ctx_2d
Unexecuted instantiation: allintra_vis.c:get_br_ctx_2d
Unexecuted instantiation: av1_quantize.c:get_br_ctx_2d
Unexecuted instantiation: bitstream.c:get_br_ctx_2d
Unexecuted instantiation: context_tree.c:get_br_ctx_2d
Unexecuted instantiation: encodeframe.c:get_br_ctx_2d
Unexecuted instantiation: encodeframe_utils.c:get_br_ctx_2d
Unexecuted instantiation: encodemb.c:get_br_ctx_2d
Unexecuted instantiation: encodemv.c:get_br_ctx_2d
Unexecuted instantiation: encoder.c:get_br_ctx_2d
Unexecuted instantiation: encoder_utils.c:get_br_ctx_2d
Unexecuted instantiation: encodetxb.c:get_br_ctx_2d
Unexecuted instantiation: ethread.c:get_br_ctx_2d
Unexecuted instantiation: firstpass.c:get_br_ctx_2d
Unexecuted instantiation: global_motion_facade.c:get_br_ctx_2d
Unexecuted instantiation: level.c:get_br_ctx_2d
Unexecuted instantiation: lookahead.c:get_br_ctx_2d
Unexecuted instantiation: mcomp.c:get_br_ctx_2d
Unexecuted instantiation: mv_prec.c:get_br_ctx_2d
Unexecuted instantiation: palette.c:get_br_ctx_2d
Unexecuted instantiation: partition_search.c:get_br_ctx_2d
Unexecuted instantiation: partition_strategy.c:get_br_ctx_2d
Unexecuted instantiation: pass2_strategy.c:get_br_ctx_2d
Unexecuted instantiation: pickcdef.c:get_br_ctx_2d
Unexecuted instantiation: picklpf.c:get_br_ctx_2d
Unexecuted instantiation: pickrst.c:get_br_ctx_2d
Unexecuted instantiation: ratectrl.c:get_br_ctx_2d
Unexecuted instantiation: rd.c:get_br_ctx_2d
Unexecuted instantiation: rdopt.c:get_br_ctx_2d
Unexecuted instantiation: nonrd_pickmode.c:get_br_ctx_2d
Unexecuted instantiation: nonrd_opt.c:get_br_ctx_2d
Unexecuted instantiation: segmentation.c:get_br_ctx_2d
Unexecuted instantiation: speed_features.c:get_br_ctx_2d
Unexecuted instantiation: superres_scale.c:get_br_ctx_2d
Unexecuted instantiation: svc_layercontext.c:get_br_ctx_2d
Unexecuted instantiation: temporal_filter.c:get_br_ctx_2d
Unexecuted instantiation: tokenize.c:get_br_ctx_2d
Unexecuted instantiation: tpl_model.c:get_br_ctx_2d
Unexecuted instantiation: tx_search.c:get_br_ctx_2d
Unexecuted instantiation: txb_rdopt.c:get_br_ctx_2d
Unexecuted instantiation: intra_mode_search.c:get_br_ctx_2d
Unexecuted instantiation: var_based_part.c:get_br_ctx_2d
Unexecuted instantiation: av1_noise_estimate.c:get_br_ctx_2d
Unexecuted instantiation: encodetxb_sse2.c:get_br_ctx_2d
Unexecuted instantiation: entropy.c:get_br_ctx_2d
Unexecuted instantiation: entropymode.c:get_br_ctx_2d
Unexecuted instantiation: txb_common.c:get_br_ctx_2d
Unexecuted instantiation: aq_complexity.c:get_br_ctx_2d
Unexecuted instantiation: aq_cyclicrefresh.c:get_br_ctx_2d
Unexecuted instantiation: aq_variance.c:get_br_ctx_2d
Unexecuted instantiation: compound_type.c:get_br_ctx_2d
Unexecuted instantiation: encode_strategy.c:get_br_ctx_2d
Unexecuted instantiation: global_motion.c:get_br_ctx_2d
Unexecuted instantiation: gop_structure.c:get_br_ctx_2d
Unexecuted instantiation: interp_search.c:get_br_ctx_2d
Unexecuted instantiation: motion_search_facade.c:get_br_ctx_2d
Unexecuted instantiation: temporal_filter_sse2.c:get_br_ctx_2d
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_br_ctx_2d
Unexecuted instantiation: encodetxb_sse4.c:get_br_ctx_2d
Unexecuted instantiation: rdopt_sse4.c:get_br_ctx_2d
Unexecuted instantiation: pickrst_sse4.c:get_br_ctx_2d
Unexecuted instantiation: encodetxb_avx2.c:get_br_ctx_2d
Unexecuted instantiation: rdopt_avx2.c:get_br_ctx_2d
Unexecuted instantiation: temporal_filter_avx2.c:get_br_ctx_2d
Unexecuted instantiation: pickrst_avx2.c:get_br_ctx_2d
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_br_ctx_2d
89
90
static AOM_FORCE_INLINE int get_br_ctx_eob(const int c,  // raster order
91
                                           const int bhl,
92
481M
                                           const TX_CLASS tx_class) {
93
481M
  const int col = c >> bhl;
94
481M
  const int row = c - (col << bhl);
95
481M
  if (c == 0) return 0;
96
472M
  if ((tx_class == TX_CLASS_2D && row < 2 && col < 2) ||
97
465M
      (tx_class == TX_CLASS_HORIZ && col == 0) ||
98
457M
      (tx_class == TX_CLASS_VERT && row == 0))
99
18.4M
    return 7;
100
453M
  return 14;
101
472M
}
decodetxb.c:get_br_ctx_eob
Line
Count
Source
92
6.67M
                                           const TX_CLASS tx_class) {
93
6.67M
  const int col = c >> bhl;
94
6.67M
  const int row = c - (col << bhl);
95
6.67M
  if (c == 0) return 0;
96
6.56M
  if ((tx_class == TX_CLASS_2D && row < 2 && col < 2) ||
97
6.54M
      (tx_class == TX_CLASS_HORIZ && col == 0) ||
98
6.48M
      (tx_class == TX_CLASS_VERT && row == 0))
99
105k
    return 7;
100
6.46M
  return 14;
101
6.56M
}
Unexecuted instantiation: av1_cx_iface.c:get_br_ctx_eob
Unexecuted instantiation: allintra_vis.c:get_br_ctx_eob
Unexecuted instantiation: av1_quantize.c:get_br_ctx_eob
Unexecuted instantiation: bitstream.c:get_br_ctx_eob
Unexecuted instantiation: context_tree.c:get_br_ctx_eob
Unexecuted instantiation: encodeframe.c:get_br_ctx_eob
Unexecuted instantiation: encodeframe_utils.c:get_br_ctx_eob
Unexecuted instantiation: encodemb.c:get_br_ctx_eob
Unexecuted instantiation: encodemv.c:get_br_ctx_eob
Unexecuted instantiation: encoder.c:get_br_ctx_eob
Unexecuted instantiation: encoder_utils.c:get_br_ctx_eob
Unexecuted instantiation: encodetxb.c:get_br_ctx_eob
Unexecuted instantiation: ethread.c:get_br_ctx_eob
Unexecuted instantiation: firstpass.c:get_br_ctx_eob
Unexecuted instantiation: global_motion_facade.c:get_br_ctx_eob
Unexecuted instantiation: level.c:get_br_ctx_eob
Unexecuted instantiation: lookahead.c:get_br_ctx_eob
Unexecuted instantiation: mcomp.c:get_br_ctx_eob
Unexecuted instantiation: mv_prec.c:get_br_ctx_eob
Unexecuted instantiation: palette.c:get_br_ctx_eob
Unexecuted instantiation: partition_search.c:get_br_ctx_eob
Unexecuted instantiation: partition_strategy.c:get_br_ctx_eob
Unexecuted instantiation: pass2_strategy.c:get_br_ctx_eob
Unexecuted instantiation: pickcdef.c:get_br_ctx_eob
Unexecuted instantiation: picklpf.c:get_br_ctx_eob
Unexecuted instantiation: pickrst.c:get_br_ctx_eob
Unexecuted instantiation: ratectrl.c:get_br_ctx_eob
Unexecuted instantiation: rd.c:get_br_ctx_eob
Unexecuted instantiation: rdopt.c:get_br_ctx_eob
Unexecuted instantiation: nonrd_pickmode.c:get_br_ctx_eob
Unexecuted instantiation: nonrd_opt.c:get_br_ctx_eob
Unexecuted instantiation: segmentation.c:get_br_ctx_eob
Unexecuted instantiation: speed_features.c:get_br_ctx_eob
Unexecuted instantiation: superres_scale.c:get_br_ctx_eob
Unexecuted instantiation: svc_layercontext.c:get_br_ctx_eob
Unexecuted instantiation: temporal_filter.c:get_br_ctx_eob
Unexecuted instantiation: tokenize.c:get_br_ctx_eob
Unexecuted instantiation: tpl_model.c:get_br_ctx_eob
Unexecuted instantiation: tx_search.c:get_br_ctx_eob
txb_rdopt.c:get_br_ctx_eob
Line
Count
Source
92
474M
                                           const TX_CLASS tx_class) {
93
474M
  const int col = c >> bhl;
94
474M
  const int row = c - (col << bhl);
95
474M
  if (c == 0) return 0;
96
465M
  if ((tx_class == TX_CLASS_2D && row < 2 && col < 2) ||
97
458M
      (tx_class == TX_CLASS_HORIZ && col == 0) ||
98
450M
      (tx_class == TX_CLASS_VERT && row == 0))
99
18.3M
    return 7;
100
447M
  return 14;
101
465M
}
Unexecuted instantiation: intra_mode_search.c:get_br_ctx_eob
Unexecuted instantiation: var_based_part.c:get_br_ctx_eob
Unexecuted instantiation: av1_noise_estimate.c:get_br_ctx_eob
Unexecuted instantiation: encodetxb_sse2.c:get_br_ctx_eob
Unexecuted instantiation: entropy.c:get_br_ctx_eob
Unexecuted instantiation: entropymode.c:get_br_ctx_eob
Unexecuted instantiation: txb_common.c:get_br_ctx_eob
Unexecuted instantiation: aq_complexity.c:get_br_ctx_eob
Unexecuted instantiation: aq_cyclicrefresh.c:get_br_ctx_eob
Unexecuted instantiation: aq_variance.c:get_br_ctx_eob
Unexecuted instantiation: compound_type.c:get_br_ctx_eob
Unexecuted instantiation: encode_strategy.c:get_br_ctx_eob
Unexecuted instantiation: global_motion.c:get_br_ctx_eob
Unexecuted instantiation: gop_structure.c:get_br_ctx_eob
Unexecuted instantiation: interp_search.c:get_br_ctx_eob
Unexecuted instantiation: motion_search_facade.c:get_br_ctx_eob
Unexecuted instantiation: temporal_filter_sse2.c:get_br_ctx_eob
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_br_ctx_eob
Unexecuted instantiation: encodetxb_sse4.c:get_br_ctx_eob
Unexecuted instantiation: rdopt_sse4.c:get_br_ctx_eob
Unexecuted instantiation: pickrst_sse4.c:get_br_ctx_eob
Unexecuted instantiation: encodetxb_avx2.c:get_br_ctx_eob
Unexecuted instantiation: rdopt_avx2.c:get_br_ctx_eob
Unexecuted instantiation: temporal_filter_avx2.c:get_br_ctx_eob
Unexecuted instantiation: pickrst_avx2.c:get_br_ctx_eob
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_br_ctx_eob
102
103
static AOM_FORCE_INLINE int get_br_ctx(const uint8_t *const levels,
104
                                       const int c,  // raster order
105
5.42G
                                       const int bhl, const TX_CLASS tx_class) {
106
5.42G
  const int col = c >> bhl;
107
5.42G
  const int row = c - (col << bhl);
108
5.42G
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
5.42G
  const int pos = col * stride + row;
110
5.42G
  int mag = levels[pos + 1];
111
5.42G
  mag += levels[pos + stride];
112
5.42G
  switch (tx_class) {
113
5.01G
    case TX_CLASS_2D:
114
5.01G
      mag += levels[pos + stride + 1];
115
5.01G
      mag = AOMMIN((mag + 1) >> 1, 6);
116
5.01G
      if (c == 0) return mag;
117
4.67G
      if ((row < 2) && (col < 2)) return mag + 7;
118
4.22G
      break;
119
4.22G
    case TX_CLASS_HORIZ:
120
524M
      mag += levels[pos + (stride << 1)];
121
524M
      mag = AOMMIN((mag + 1) >> 1, 6);
122
524M
      if (c == 0) return mag;
123
483M
      if (col == 0) return mag + 7;
124
389M
      break;
125
389M
    case TX_CLASS_VERT:
126
78.2M
      mag += levels[pos + 2];
127
78.2M
      mag = AOMMIN((mag + 1) >> 1, 6);
128
78.2M
      if (c == 0) return mag;
129
73.6M
      if (row == 0) return mag + 7;
130
58.7M
      break;
131
58.7M
    default: break;
132
5.42G
  }
133
134
4.71G
  return mag + 14;
135
5.42G
}
decodetxb.c:get_br_ctx
Line
Count
Source
105
19.9M
                                       const int bhl, const TX_CLASS tx_class) {
106
19.9M
  const int col = c >> bhl;
107
19.9M
  const int row = c - (col << bhl);
108
19.9M
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
19.9M
  const int pos = col * stride + row;
110
19.9M
  int mag = levels[pos + 1];
111
19.9M
  mag += levels[pos + stride];
112
19.9M
  switch (tx_class) {
113
8.73M
    case TX_CLASS_2D:
114
8.73M
      mag += levels[pos + stride + 1];
115
8.73M
      mag = AOMMIN((mag + 1) >> 1, 6);
116
8.75M
      if (c == 0) return mag;
117
18.4E
      if ((row < 2) && (col < 2)) return mag + 7;
118
18.4E
      break;
119
18.4E
    case TX_CLASS_HORIZ:
120
10.8M
      mag += levels[pos + (stride << 1)];
121
10.8M
      mag = AOMMIN((mag + 1) >> 1, 6);
122
10.8M
      if (c == 0) return mag;
123
10.2M
      if (col == 0) return mag + 7;
124
7.85M
      break;
125
7.85M
    case TX_CLASS_VERT:
126
648k
      mag += levels[pos + 2];
127
648k
      mag = AOMMIN((mag + 1) >> 1, 6);
128
648k
      if (c == 0) return mag;
129
601k
      if (row == 0) return mag + 7;
130
435k
      break;
131
435k
    default: break;
132
19.9M
  }
133
134
8.78M
  return mag + 14;
135
19.9M
}
Unexecuted instantiation: av1_cx_iface.c:get_br_ctx
Unexecuted instantiation: allintra_vis.c:get_br_ctx
Unexecuted instantiation: av1_quantize.c:get_br_ctx
Unexecuted instantiation: bitstream.c:get_br_ctx
Unexecuted instantiation: context_tree.c:get_br_ctx
Unexecuted instantiation: encodeframe.c:get_br_ctx
Unexecuted instantiation: encodeframe_utils.c:get_br_ctx
Unexecuted instantiation: encodemb.c:get_br_ctx
Unexecuted instantiation: encodemv.c:get_br_ctx
Unexecuted instantiation: encoder.c:get_br_ctx
Unexecuted instantiation: encoder_utils.c:get_br_ctx
encodetxb.c:get_br_ctx
Line
Count
Source
105
669M
                                       const int bhl, const TX_CLASS tx_class) {
106
669M
  const int col = c >> bhl;
107
669M
  const int row = c - (col << bhl);
108
669M
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
669M
  const int pos = col * stride + row;
110
669M
  int mag = levels[pos + 1];
111
669M
  mag += levels[pos + stride];
112
669M
  switch (tx_class) {
113
628M
    case TX_CLASS_2D:
114
628M
      mag += levels[pos + stride + 1];
115
628M
      mag = AOMMIN((mag + 1) >> 1, 6);
116
628M
      if (c == 0) return mag;
117
596M
      if ((row < 2) && (col < 2)) return mag + 7;
118
526M
      break;
119
526M
    case TX_CLASS_HORIZ:
120
45.9M
      mag += levels[pos + (stride << 1)];
121
45.9M
      mag = AOMMIN((mag + 1) >> 1, 6);
122
45.9M
      if (c == 0) return mag;
123
43.4M
      if (col == 0) return mag + 7;
124
34.1M
      break;
125
34.1M
    case TX_CLASS_VERT:
126
3.89M
      mag += levels[pos + 2];
127
3.89M
      mag = AOMMIN((mag + 1) >> 1, 6);
128
3.89M
      if (c == 0) return mag;
129
3.62M
      if (row == 0) return mag + 7;
130
2.59M
      break;
131
2.59M
    default: break;
132
669M
  }
133
134
578M
  return mag + 14;
135
669M
}
Unexecuted instantiation: ethread.c:get_br_ctx
Unexecuted instantiation: firstpass.c:get_br_ctx
Unexecuted instantiation: global_motion_facade.c:get_br_ctx
Unexecuted instantiation: level.c:get_br_ctx
Unexecuted instantiation: lookahead.c:get_br_ctx
Unexecuted instantiation: mcomp.c:get_br_ctx
Unexecuted instantiation: mv_prec.c:get_br_ctx
Unexecuted instantiation: palette.c:get_br_ctx
Unexecuted instantiation: partition_search.c:get_br_ctx
Unexecuted instantiation: partition_strategy.c:get_br_ctx
Unexecuted instantiation: pass2_strategy.c:get_br_ctx
Unexecuted instantiation: pickcdef.c:get_br_ctx
Unexecuted instantiation: picklpf.c:get_br_ctx
Unexecuted instantiation: pickrst.c:get_br_ctx
Unexecuted instantiation: ratectrl.c:get_br_ctx
Unexecuted instantiation: rd.c:get_br_ctx
Unexecuted instantiation: rdopt.c:get_br_ctx
Unexecuted instantiation: nonrd_pickmode.c:get_br_ctx
Unexecuted instantiation: nonrd_opt.c:get_br_ctx
Unexecuted instantiation: segmentation.c:get_br_ctx
Unexecuted instantiation: speed_features.c:get_br_ctx
Unexecuted instantiation: superres_scale.c:get_br_ctx
Unexecuted instantiation: svc_layercontext.c:get_br_ctx
Unexecuted instantiation: temporal_filter.c:get_br_ctx
Unexecuted instantiation: tokenize.c:get_br_ctx
Unexecuted instantiation: tpl_model.c:get_br_ctx
Unexecuted instantiation: tx_search.c:get_br_ctx
txb_rdopt.c:get_br_ctx
Line
Count
Source
105
4.73G
                                       const int bhl, const TX_CLASS tx_class) {
106
4.73G
  const int col = c >> bhl;
107
4.73G
  const int row = c - (col << bhl);
108
4.73G
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
4.73G
  const int pos = col * stride + row;
110
4.73G
  int mag = levels[pos + 1];
111
4.73G
  mag += levels[pos + stride];
112
4.73G
  switch (tx_class) {
113
4.38G
    case TX_CLASS_2D:
114
4.38G
      mag += levels[pos + stride + 1];
115
4.38G
      mag = AOMMIN((mag + 1) >> 1, 6);
116
4.38G
      if (c == 0) return mag;
117
4.07G
      if ((row < 2) && (col < 2)) return mag + 7;
118
3.69G
      break;
119
3.69G
    case TX_CLASS_HORIZ:
120
467M
      mag += levels[pos + (stride << 1)];
121
467M
      mag = AOMMIN((mag + 1) >> 1, 6);
122
467M
      if (c == 0) return mag;
123
429M
      if (col == 0) return mag + 7;
124
347M
      break;
125
347M
    case TX_CLASS_VERT:
126
73.6M
      mag += levels[pos + 2];
127
73.6M
      mag = AOMMIN((mag + 1) >> 1, 6);
128
73.6M
      if (c == 0) return mag;
129
69.4M
      if (row == 0) return mag + 7;
130
55.7M
      break;
131
55.7M
    default: break;
132
4.73G
  }
133
134
4.12G
  return mag + 14;
135
4.73G
}
Unexecuted instantiation: intra_mode_search.c:get_br_ctx
Unexecuted instantiation: var_based_part.c:get_br_ctx
Unexecuted instantiation: av1_noise_estimate.c:get_br_ctx
Unexecuted instantiation: encodetxb_sse2.c:get_br_ctx
Unexecuted instantiation: entropy.c:get_br_ctx
Unexecuted instantiation: entropymode.c:get_br_ctx
Unexecuted instantiation: txb_common.c:get_br_ctx
Unexecuted instantiation: aq_complexity.c:get_br_ctx
Unexecuted instantiation: aq_cyclicrefresh.c:get_br_ctx
Unexecuted instantiation: aq_variance.c:get_br_ctx
Unexecuted instantiation: compound_type.c:get_br_ctx
Unexecuted instantiation: encode_strategy.c:get_br_ctx
Unexecuted instantiation: global_motion.c:get_br_ctx
Unexecuted instantiation: gop_structure.c:get_br_ctx
Unexecuted instantiation: interp_search.c:get_br_ctx
Unexecuted instantiation: motion_search_facade.c:get_br_ctx
Unexecuted instantiation: temporal_filter_sse2.c:get_br_ctx
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_br_ctx
Unexecuted instantiation: encodetxb_sse4.c:get_br_ctx
Unexecuted instantiation: rdopt_sse4.c:get_br_ctx
Unexecuted instantiation: pickrst_sse4.c:get_br_ctx
Unexecuted instantiation: encodetxb_avx2.c:get_br_ctx
Unexecuted instantiation: rdopt_avx2.c:get_br_ctx
Unexecuted instantiation: temporal_filter_avx2.c:get_br_ctx
Unexecuted instantiation: pickrst_avx2.c:get_br_ctx
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_br_ctx
136
137
static const uint8_t clip_max3[256] = {
138
  0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
139
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
140
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
141
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
142
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
143
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
144
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
145
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
146
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
147
  3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
148
};
149
150
static AOM_FORCE_INLINE int get_nz_mag(const uint8_t *const levels,
151
6.17G
                                       const int bhl, const TX_CLASS tx_class) {
152
6.17G
  int mag;
153
154
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
155
6.17G
  mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]];  // { 0, 1 }
156
6.17G
  mag += clip_max3[levels[1]];                       // { 1, 0 }
157
158
6.17G
  if (tx_class == TX_CLASS_2D) {
159
5.60G
    mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]];          // { 1, 1 }
160
5.60G
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
161
5.60G
    mag += clip_max3[levels[2]];                                    // { 2, 0 }
162
5.60G
  } else if (tx_class == TX_CLASS_VERT) {
163
66.3M
    mag += clip_max3[levels[2]];  // { 2, 0 }
164
66.3M
    mag += clip_max3[levels[3]];  // { 3, 0 }
165
66.3M
    mag += clip_max3[levels[4]];  // { 4, 0 }
166
506M
  } else {
167
506M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
168
506M
    mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]];  // { 0, 3 }
169
506M
    mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]];  // { 0, 4 }
170
506M
  }
171
172
6.17G
  return mag;
173
6.17G
}
decodetxb.c:get_nz_mag
Line
Count
Source
151
30.0M
                                       const int bhl, const TX_CLASS tx_class) {
152
30.0M
  int mag;
153
154
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
155
30.0M
  mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]];  // { 0, 1 }
156
30.0M
  mag += clip_max3[levels[1]];                       // { 1, 0 }
157
158
30.0M
  if (tx_class == TX_CLASS_2D) {
159
11.8M
    mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]];          // { 1, 1 }
160
11.8M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
161
11.8M
    mag += clip_max3[levels[2]];                                    // { 2, 0 }
162
18.2M
  } else if (tx_class == TX_CLASS_VERT) {
163
2.15M
    mag += clip_max3[levels[2]];  // { 2, 0 }
164
2.15M
    mag += clip_max3[levels[3]];  // { 3, 0 }
165
2.15M
    mag += clip_max3[levels[4]];  // { 4, 0 }
166
16.0M
  } else {
167
16.0M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
168
16.0M
    mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]];  // { 0, 3 }
169
16.0M
    mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]];  // { 0, 4 }
170
16.0M
  }
171
172
30.0M
  return mag;
173
30.0M
}
Unexecuted instantiation: av1_cx_iface.c:get_nz_mag
Unexecuted instantiation: allintra_vis.c:get_nz_mag
Unexecuted instantiation: av1_quantize.c:get_nz_mag
Unexecuted instantiation: bitstream.c:get_nz_mag
Unexecuted instantiation: context_tree.c:get_nz_mag
Unexecuted instantiation: encodeframe.c:get_nz_mag
Unexecuted instantiation: encodeframe_utils.c:get_nz_mag
Unexecuted instantiation: encodemb.c:get_nz_mag
Unexecuted instantiation: encodemv.c:get_nz_mag
Unexecuted instantiation: encoder.c:get_nz_mag
Unexecuted instantiation: encoder_utils.c:get_nz_mag
Unexecuted instantiation: encodetxb.c:get_nz_mag
Unexecuted instantiation: ethread.c:get_nz_mag
Unexecuted instantiation: firstpass.c:get_nz_mag
Unexecuted instantiation: global_motion_facade.c:get_nz_mag
Unexecuted instantiation: level.c:get_nz_mag
Unexecuted instantiation: lookahead.c:get_nz_mag
Unexecuted instantiation: mcomp.c:get_nz_mag
Unexecuted instantiation: mv_prec.c:get_nz_mag
Unexecuted instantiation: palette.c:get_nz_mag
Unexecuted instantiation: partition_search.c:get_nz_mag
Unexecuted instantiation: partition_strategy.c:get_nz_mag
Unexecuted instantiation: pass2_strategy.c:get_nz_mag
Unexecuted instantiation: pickcdef.c:get_nz_mag
Unexecuted instantiation: picklpf.c:get_nz_mag
Unexecuted instantiation: pickrst.c:get_nz_mag
Unexecuted instantiation: ratectrl.c:get_nz_mag
Unexecuted instantiation: rd.c:get_nz_mag
Unexecuted instantiation: rdopt.c:get_nz_mag
Unexecuted instantiation: nonrd_pickmode.c:get_nz_mag
Unexecuted instantiation: nonrd_opt.c:get_nz_mag
Unexecuted instantiation: segmentation.c:get_nz_mag
Unexecuted instantiation: speed_features.c:get_nz_mag
Unexecuted instantiation: superres_scale.c:get_nz_mag
Unexecuted instantiation: svc_layercontext.c:get_nz_mag
Unexecuted instantiation: temporal_filter.c:get_nz_mag
Unexecuted instantiation: tokenize.c:get_nz_mag
Unexecuted instantiation: tpl_model.c:get_nz_mag
Unexecuted instantiation: tx_search.c:get_nz_mag
txb_rdopt.c:get_nz_mag
Line
Count
Source
151
6.14G
                                       const int bhl, const TX_CLASS tx_class) {
152
6.14G
  int mag;
153
154
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
155
6.14G
  mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]];  // { 0, 1 }
156
6.14G
  mag += clip_max3[levels[1]];                       // { 1, 0 }
157
158
6.14G
  if (tx_class == TX_CLASS_2D) {
159
5.59G
    mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]];          // { 1, 1 }
160
5.59G
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
161
5.59G
    mag += clip_max3[levels[2]];                                    // { 2, 0 }
162
5.59G
  } else if (tx_class == TX_CLASS_VERT) {
163
64.2M
    mag += clip_max3[levels[2]];  // { 2, 0 }
164
64.2M
    mag += clip_max3[levels[3]];  // { 3, 0 }
165
64.2M
    mag += clip_max3[levels[4]];  // { 4, 0 }
166
490M
  } else {
167
490M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
168
490M
    mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]];  // { 0, 3 }
169
490M
    mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]];  // { 0, 4 }
170
490M
  }
171
172
6.14G
  return mag;
173
6.14G
}
Unexecuted instantiation: intra_mode_search.c:get_nz_mag
Unexecuted instantiation: var_based_part.c:get_nz_mag
Unexecuted instantiation: av1_noise_estimate.c:get_nz_mag
Unexecuted instantiation: encodetxb_sse2.c:get_nz_mag
Unexecuted instantiation: entropy.c:get_nz_mag
Unexecuted instantiation: entropymode.c:get_nz_mag
Unexecuted instantiation: txb_common.c:get_nz_mag
Unexecuted instantiation: aq_complexity.c:get_nz_mag
Unexecuted instantiation: aq_cyclicrefresh.c:get_nz_mag
Unexecuted instantiation: aq_variance.c:get_nz_mag
Unexecuted instantiation: compound_type.c:get_nz_mag
Unexecuted instantiation: encode_strategy.c:get_nz_mag
Unexecuted instantiation: global_motion.c:get_nz_mag
Unexecuted instantiation: gop_structure.c:get_nz_mag
Unexecuted instantiation: interp_search.c:get_nz_mag
Unexecuted instantiation: motion_search_facade.c:get_nz_mag
Unexecuted instantiation: temporal_filter_sse2.c:get_nz_mag
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_nz_mag
Unexecuted instantiation: encodetxb_sse4.c:get_nz_mag
Unexecuted instantiation: rdopt_sse4.c:get_nz_mag
Unexecuted instantiation: pickrst_sse4.c:get_nz_mag
Unexecuted instantiation: encodetxb_avx2.c:get_nz_mag
Unexecuted instantiation: rdopt_avx2.c:get_nz_mag
Unexecuted instantiation: temporal_filter_avx2.c:get_nz_mag
Unexecuted instantiation: pickrst_avx2.c:get_nz_mag
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_nz_mag
174
175
#define NZ_MAP_CTX_0 SIG_COEF_CONTEXTS_2D
176
#define NZ_MAP_CTX_5 (NZ_MAP_CTX_0 + 5)
177
#define NZ_MAP_CTX_10 (NZ_MAP_CTX_0 + 10)
178
179
static const int nz_map_ctx_offset_1d[32] = {
180
  NZ_MAP_CTX_0,  NZ_MAP_CTX_5,  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
181
  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
182
  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
183
  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
184
  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
185
  NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10, NZ_MAP_CTX_10,
186
  NZ_MAP_CTX_10, NZ_MAP_CTX_10,
187
};
188
189
static AOM_FORCE_INLINE int get_nz_map_ctx_from_stats(
190
    const int stats,
191
    const int coeff_idx,  // raster order
192
6.19G
    const int bhl, const TX_SIZE tx_size, const TX_CLASS tx_class) {
193
  // tx_class == 0(TX_CLASS_2D)
194
6.19G
  if ((tx_class | coeff_idx) == 0) return 0;
195
6.01G
  int ctx = (stats + 1) >> 1;
196
6.01G
  ctx = AOMMIN(ctx, 4);
197
6.01G
  switch (tx_class) {
198
5.50G
    case TX_CLASS_2D: {
199
      // This is the algorithm to generate av1_nz_map_ctx_offset[][]
200
      //   const int width = tx_size_wide[tx_size];
201
      //   const int height = tx_size_high[tx_size];
202
      //   if (width < height) {
203
      //     if (row < 2) return 11 + ctx;
204
      //   } else if (width > height) {
205
      //     if (col < 2) return 16 + ctx;
206
      //   }
207
      //   if (row + col < 2) return ctx + 1;
208
      //   if (row + col < 4) return 5 + ctx + 1;
209
      //   return 21 + ctx;
210
5.50G
      return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
211
0
    }
212
773M
    case TX_CLASS_HORIZ: {
213
773M
      const int col = coeff_idx >> bhl;
214
773M
      return ctx + nz_map_ctx_offset_1d[col];
215
0
    }
216
66.3M
    case TX_CLASS_VERT: {
217
66.3M
      const int col = coeff_idx >> bhl;
218
66.3M
      const int row = coeff_idx - (col << bhl);
219
66.3M
      return ctx + nz_map_ctx_offset_1d[row];
220
0
    }
221
0
    default: break;
222
6.01G
  }
223
0
  return 0;
224
6.01G
}
decodetxb.c:get_nz_map_ctx_from_stats
Line
Count
Source
192
30.0M
    const int bhl, const TX_SIZE tx_size, const TX_CLASS tx_class) {
193
  // tx_class == 0(TX_CLASS_2D)
194
30.0M
  if ((tx_class | coeff_idx) == 0) return 0;
195
18.2M
  int ctx = (stats + 1) >> 1;
196
18.2M
  ctx = AOMMIN(ctx, 4);
197
18.2M
  switch (tx_class) {
198
0
    case TX_CLASS_2D: {
199
      // This is the algorithm to generate av1_nz_map_ctx_offset[][]
200
      //   const int width = tx_size_wide[tx_size];
201
      //   const int height = tx_size_high[tx_size];
202
      //   if (width < height) {
203
      //     if (row < 2) return 11 + ctx;
204
      //   } else if (width > height) {
205
      //     if (col < 2) return 16 + ctx;
206
      //   }
207
      //   if (row + col < 2) return ctx + 1;
208
      //   if (row + col < 4) return 5 + ctx + 1;
209
      //   return 21 + ctx;
210
0
      return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
211
0
    }
212
16.5M
    case TX_CLASS_HORIZ: {
213
16.5M
      const int col = coeff_idx >> bhl;
214
16.5M
      return ctx + nz_map_ctx_offset_1d[col];
215
0
    }
216
2.16M
    case TX_CLASS_VERT: {
217
2.16M
      const int col = coeff_idx >> bhl;
218
2.16M
      const int row = coeff_idx - (col << bhl);
219
2.16M
      return ctx + nz_map_ctx_offset_1d[row];
220
0
    }
221
0
    default: break;
222
18.2M
  }
223
0
  return 0;
224
18.2M
}
Unexecuted instantiation: av1_cx_iface.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: allintra_vis.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: av1_quantize.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: bitstream.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: context_tree.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodeframe.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodeframe_utils.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodemb.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodemv.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encoder.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encoder_utils.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodetxb.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: ethread.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: firstpass.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: global_motion_facade.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: level.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: lookahead.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: mcomp.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: mv_prec.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: palette.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: partition_search.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: partition_strategy.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: pass2_strategy.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: pickcdef.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: picklpf.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: pickrst.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: ratectrl.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: rd.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: rdopt.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: nonrd_pickmode.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: nonrd_opt.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: segmentation.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: speed_features.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: superres_scale.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: svc_layercontext.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: temporal_filter.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: tokenize.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: tpl_model.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: tx_search.c:get_nz_map_ctx_from_stats
txb_rdopt.c:get_nz_map_ctx_from_stats
Line
Count
Source
192
6.16G
    const int bhl, const TX_SIZE tx_size, const TX_CLASS tx_class) {
193
  // tx_class == 0(TX_CLASS_2D)
194
6.16G
  if ((tx_class | coeff_idx) == 0) return 0;
195
5.99G
  int ctx = (stats + 1) >> 1;
196
5.99G
  ctx = AOMMIN(ctx, 4);
197
5.99G
  switch (tx_class) {
198
5.50G
    case TX_CLASS_2D: {
199
      // This is the algorithm to generate av1_nz_map_ctx_offset[][]
200
      //   const int width = tx_size_wide[tx_size];
201
      //   const int height = tx_size_high[tx_size];
202
      //   if (width < height) {
203
      //     if (row < 2) return 11 + ctx;
204
      //   } else if (width > height) {
205
      //     if (col < 2) return 16 + ctx;
206
      //   }
207
      //   if (row + col < 2) return ctx + 1;
208
      //   if (row + col < 4) return 5 + ctx + 1;
209
      //   return 21 + ctx;
210
5.50G
      return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
211
0
    }
212
757M
    case TX_CLASS_HORIZ: {
213
757M
      const int col = coeff_idx >> bhl;
214
757M
      return ctx + nz_map_ctx_offset_1d[col];
215
0
    }
216
64.2M
    case TX_CLASS_VERT: {
217
64.2M
      const int col = coeff_idx >> bhl;
218
64.2M
      const int row = coeff_idx - (col << bhl);
219
64.2M
      return ctx + nz_map_ctx_offset_1d[row];
220
0
    }
221
0
    default: break;
222
5.99G
  }
223
0
  return 0;
224
5.99G
}
Unexecuted instantiation: intra_mode_search.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: var_based_part.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: av1_noise_estimate.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodetxb_sse2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: entropy.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: entropymode.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: txb_common.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: aq_complexity.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: aq_cyclicrefresh.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: aq_variance.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: compound_type.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encode_strategy.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: global_motion.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: gop_structure.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: interp_search.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: motion_search_facade.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: temporal_filter_sse2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodetxb_sse4.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: rdopt_sse4.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: pickrst_sse4.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: encodetxb_avx2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: rdopt_avx2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: temporal_filter_avx2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: pickrst_avx2.c:get_nz_map_ctx_from_stats
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_nz_map_ctx_from_stats
225
226
typedef aom_cdf_prob (*base_cdf_arr)[CDF_SIZE(4)];
227
typedef aom_cdf_prob (*br_cdf_arr)[CDF_SIZE(BR_CDF_SIZE)];
228
229
518M
static inline int get_lower_levels_ctx_eob(int bhl, int width, int scan_idx) {
230
518M
  if (scan_idx == 0) return 0;
231
499M
  if (scan_idx <= (width << bhl) / 8) return 1;
232
458M
  if (scan_idx <= (width << bhl) / 4) return 2;
233
432M
  return 3;
234
458M
}
decodetxb.c:get_lower_levels_ctx_eob
Line
Count
Source
229
13.4M
static inline int get_lower_levels_ctx_eob(int bhl, int width, int scan_idx) {
230
13.4M
  if (scan_idx == 0) return 0;
231
12.7M
  if (scan_idx <= (width << bhl) / 8) return 1;
232
11.8M
  if (scan_idx <= (width << bhl) / 4) return 2;
233
11.3M
  return 3;
234
11.8M
}
Unexecuted instantiation: av1_cx_iface.c:get_lower_levels_ctx_eob
Unexecuted instantiation: allintra_vis.c:get_lower_levels_ctx_eob
Unexecuted instantiation: av1_quantize.c:get_lower_levels_ctx_eob
Unexecuted instantiation: bitstream.c:get_lower_levels_ctx_eob
Unexecuted instantiation: context_tree.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodeframe.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodeframe_utils.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodemb.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodemv.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encoder.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encoder_utils.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodetxb.c:get_lower_levels_ctx_eob
Unexecuted instantiation: ethread.c:get_lower_levels_ctx_eob
Unexecuted instantiation: firstpass.c:get_lower_levels_ctx_eob
Unexecuted instantiation: global_motion_facade.c:get_lower_levels_ctx_eob
Unexecuted instantiation: level.c:get_lower_levels_ctx_eob
Unexecuted instantiation: lookahead.c:get_lower_levels_ctx_eob
Unexecuted instantiation: mcomp.c:get_lower_levels_ctx_eob
Unexecuted instantiation: mv_prec.c:get_lower_levels_ctx_eob
Unexecuted instantiation: palette.c:get_lower_levels_ctx_eob
Unexecuted instantiation: partition_search.c:get_lower_levels_ctx_eob
Unexecuted instantiation: partition_strategy.c:get_lower_levels_ctx_eob
Unexecuted instantiation: pass2_strategy.c:get_lower_levels_ctx_eob
Unexecuted instantiation: pickcdef.c:get_lower_levels_ctx_eob
Unexecuted instantiation: picklpf.c:get_lower_levels_ctx_eob
Unexecuted instantiation: pickrst.c:get_lower_levels_ctx_eob
Unexecuted instantiation: ratectrl.c:get_lower_levels_ctx_eob
Unexecuted instantiation: rd.c:get_lower_levels_ctx_eob
Unexecuted instantiation: rdopt.c:get_lower_levels_ctx_eob
Unexecuted instantiation: nonrd_pickmode.c:get_lower_levels_ctx_eob
Unexecuted instantiation: nonrd_opt.c:get_lower_levels_ctx_eob
Unexecuted instantiation: segmentation.c:get_lower_levels_ctx_eob
Unexecuted instantiation: speed_features.c:get_lower_levels_ctx_eob
Unexecuted instantiation: superres_scale.c:get_lower_levels_ctx_eob
Unexecuted instantiation: svc_layercontext.c:get_lower_levels_ctx_eob
Unexecuted instantiation: temporal_filter.c:get_lower_levels_ctx_eob
Unexecuted instantiation: tokenize.c:get_lower_levels_ctx_eob
Unexecuted instantiation: tpl_model.c:get_lower_levels_ctx_eob
Unexecuted instantiation: tx_search.c:get_lower_levels_ctx_eob
txb_rdopt.c:get_lower_levels_ctx_eob
Line
Count
Source
229
505M
static inline int get_lower_levels_ctx_eob(int bhl, int width, int scan_idx) {
230
505M
  if (scan_idx == 0) return 0;
231
486M
  if (scan_idx <= (width << bhl) / 8) return 1;
232
447M
  if (scan_idx <= (width << bhl) / 4) return 2;
233
421M
  return 3;
234
447M
}
Unexecuted instantiation: intra_mode_search.c:get_lower_levels_ctx_eob
Unexecuted instantiation: var_based_part.c:get_lower_levels_ctx_eob
Unexecuted instantiation: av1_noise_estimate.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodetxb_sse2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: entropy.c:get_lower_levels_ctx_eob
Unexecuted instantiation: entropymode.c:get_lower_levels_ctx_eob
Unexecuted instantiation: txb_common.c:get_lower_levels_ctx_eob
Unexecuted instantiation: aq_complexity.c:get_lower_levels_ctx_eob
Unexecuted instantiation: aq_cyclicrefresh.c:get_lower_levels_ctx_eob
Unexecuted instantiation: aq_variance.c:get_lower_levels_ctx_eob
Unexecuted instantiation: compound_type.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encode_strategy.c:get_lower_levels_ctx_eob
Unexecuted instantiation: global_motion.c:get_lower_levels_ctx_eob
Unexecuted instantiation: gop_structure.c:get_lower_levels_ctx_eob
Unexecuted instantiation: interp_search.c:get_lower_levels_ctx_eob
Unexecuted instantiation: motion_search_facade.c:get_lower_levels_ctx_eob
Unexecuted instantiation: temporal_filter_sse2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodetxb_sse4.c:get_lower_levels_ctx_eob
Unexecuted instantiation: rdopt_sse4.c:get_lower_levels_ctx_eob
Unexecuted instantiation: pickrst_sse4.c:get_lower_levels_ctx_eob
Unexecuted instantiation: encodetxb_avx2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: rdopt_avx2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: temporal_filter_avx2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: pickrst_avx2.c:get_lower_levels_ctx_eob
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_lower_levels_ctx_eob
235
236
static inline int get_lower_levels_ctx_2d(const uint8_t *levels, int coeff_idx,
237
318M
                                          int bhl, TX_SIZE tx_size) {
238
318M
  assert(coeff_idx > 0);
239
318M
  int mag;
240
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
241
318M
  levels = levels + get_padded_idx(coeff_idx, bhl);
242
318M
  mag = AOMMIN(levels[(1 << bhl) + TX_PAD_HOR], 3);               // { 0, 1 }
243
318M
  mag += AOMMIN(levels[1], 3);                                    // { 1, 0 }
244
318M
  mag += AOMMIN(levels[(1 << bhl) + TX_PAD_HOR + 1], 3);          // { 1, 1 }
245
318M
  mag += AOMMIN(levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)], 3);  // { 0, 2 }
246
318M
  mag += AOMMIN(levels[2], 3);                                    // { 2, 0 }
247
248
318M
  const int ctx = AOMMIN((mag + 1) >> 1, 4);
249
318M
  return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
250
318M
}
decodetxb.c:get_lower_levels_ctx_2d
Line
Count
Source
237
318M
                                          int bhl, TX_SIZE tx_size) {
238
318M
  assert(coeff_idx > 0);
239
318M
  int mag;
240
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
241
318M
  levels = levels + get_padded_idx(coeff_idx, bhl);
242
318M
  mag = AOMMIN(levels[(1 << bhl) + TX_PAD_HOR], 3);               // { 0, 1 }
243
318M
  mag += AOMMIN(levels[1], 3);                                    // { 1, 0 }
244
318M
  mag += AOMMIN(levels[(1 << bhl) + TX_PAD_HOR + 1], 3);          // { 1, 1 }
245
318M
  mag += AOMMIN(levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)], 3);  // { 0, 2 }
246
318M
  mag += AOMMIN(levels[2], 3);                                    // { 2, 0 }
247
248
318M
  const int ctx = AOMMIN((mag + 1) >> 1, 4);
249
318M
  return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
250
318M
}
Unexecuted instantiation: av1_cx_iface.c:get_lower_levels_ctx_2d
Unexecuted instantiation: allintra_vis.c:get_lower_levels_ctx_2d
Unexecuted instantiation: av1_quantize.c:get_lower_levels_ctx_2d
Unexecuted instantiation: bitstream.c:get_lower_levels_ctx_2d
Unexecuted instantiation: context_tree.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodeframe.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodeframe_utils.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodemb.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodemv.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encoder.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encoder_utils.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodetxb.c:get_lower_levels_ctx_2d
Unexecuted instantiation: ethread.c:get_lower_levels_ctx_2d
Unexecuted instantiation: firstpass.c:get_lower_levels_ctx_2d
Unexecuted instantiation: global_motion_facade.c:get_lower_levels_ctx_2d
Unexecuted instantiation: level.c:get_lower_levels_ctx_2d
Unexecuted instantiation: lookahead.c:get_lower_levels_ctx_2d
Unexecuted instantiation: mcomp.c:get_lower_levels_ctx_2d
Unexecuted instantiation: mv_prec.c:get_lower_levels_ctx_2d
Unexecuted instantiation: palette.c:get_lower_levels_ctx_2d
Unexecuted instantiation: partition_search.c:get_lower_levels_ctx_2d
Unexecuted instantiation: partition_strategy.c:get_lower_levels_ctx_2d
Unexecuted instantiation: pass2_strategy.c:get_lower_levels_ctx_2d
Unexecuted instantiation: pickcdef.c:get_lower_levels_ctx_2d
Unexecuted instantiation: picklpf.c:get_lower_levels_ctx_2d
Unexecuted instantiation: pickrst.c:get_lower_levels_ctx_2d
Unexecuted instantiation: ratectrl.c:get_lower_levels_ctx_2d
Unexecuted instantiation: rd.c:get_lower_levels_ctx_2d
Unexecuted instantiation: rdopt.c:get_lower_levels_ctx_2d
Unexecuted instantiation: nonrd_pickmode.c:get_lower_levels_ctx_2d
Unexecuted instantiation: nonrd_opt.c:get_lower_levels_ctx_2d
Unexecuted instantiation: segmentation.c:get_lower_levels_ctx_2d
Unexecuted instantiation: speed_features.c:get_lower_levels_ctx_2d
Unexecuted instantiation: superres_scale.c:get_lower_levels_ctx_2d
Unexecuted instantiation: svc_layercontext.c:get_lower_levels_ctx_2d
Unexecuted instantiation: temporal_filter.c:get_lower_levels_ctx_2d
Unexecuted instantiation: tokenize.c:get_lower_levels_ctx_2d
Unexecuted instantiation: tpl_model.c:get_lower_levels_ctx_2d
Unexecuted instantiation: tx_search.c:get_lower_levels_ctx_2d
Unexecuted instantiation: txb_rdopt.c:get_lower_levels_ctx_2d
Unexecuted instantiation: intra_mode_search.c:get_lower_levels_ctx_2d
Unexecuted instantiation: var_based_part.c:get_lower_levels_ctx_2d
Unexecuted instantiation: av1_noise_estimate.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodetxb_sse2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: entropy.c:get_lower_levels_ctx_2d
Unexecuted instantiation: entropymode.c:get_lower_levels_ctx_2d
Unexecuted instantiation: txb_common.c:get_lower_levels_ctx_2d
Unexecuted instantiation: aq_complexity.c:get_lower_levels_ctx_2d
Unexecuted instantiation: aq_cyclicrefresh.c:get_lower_levels_ctx_2d
Unexecuted instantiation: aq_variance.c:get_lower_levels_ctx_2d
Unexecuted instantiation: compound_type.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encode_strategy.c:get_lower_levels_ctx_2d
Unexecuted instantiation: global_motion.c:get_lower_levels_ctx_2d
Unexecuted instantiation: gop_structure.c:get_lower_levels_ctx_2d
Unexecuted instantiation: interp_search.c:get_lower_levels_ctx_2d
Unexecuted instantiation: motion_search_facade.c:get_lower_levels_ctx_2d
Unexecuted instantiation: temporal_filter_sse2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodetxb_sse4.c:get_lower_levels_ctx_2d
Unexecuted instantiation: rdopt_sse4.c:get_lower_levels_ctx_2d
Unexecuted instantiation: pickrst_sse4.c:get_lower_levels_ctx_2d
Unexecuted instantiation: encodetxb_avx2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: rdopt_avx2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: temporal_filter_avx2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: pickrst_avx2.c:get_lower_levels_ctx_2d
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_lower_levels_ctx_2d
251
static AOM_FORCE_INLINE int get_lower_levels_ctx(const uint8_t *levels,
252
                                                 int coeff_idx, int bhl,
253
                                                 TX_SIZE tx_size,
254
6.18G
                                                 TX_CLASS tx_class) {
255
6.18G
  const int stats =
256
6.18G
      get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class);
257
6.18G
  return get_nz_map_ctx_from_stats(stats, coeff_idx, bhl, tx_size, tx_class);
258
6.18G
}
decodetxb.c:get_lower_levels_ctx
Line
Count
Source
254
30.1M
                                                 TX_CLASS tx_class) {
255
30.1M
  const int stats =
256
30.1M
      get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class);
257
30.1M
  return get_nz_map_ctx_from_stats(stats, coeff_idx, bhl, tx_size, tx_class);
258
30.1M
}
Unexecuted instantiation: av1_cx_iface.c:get_lower_levels_ctx
Unexecuted instantiation: allintra_vis.c:get_lower_levels_ctx
Unexecuted instantiation: av1_quantize.c:get_lower_levels_ctx
Unexecuted instantiation: bitstream.c:get_lower_levels_ctx
Unexecuted instantiation: context_tree.c:get_lower_levels_ctx
Unexecuted instantiation: encodeframe.c:get_lower_levels_ctx
Unexecuted instantiation: encodeframe_utils.c:get_lower_levels_ctx
Unexecuted instantiation: encodemb.c:get_lower_levels_ctx
Unexecuted instantiation: encodemv.c:get_lower_levels_ctx
Unexecuted instantiation: encoder.c:get_lower_levels_ctx
Unexecuted instantiation: encoder_utils.c:get_lower_levels_ctx
Unexecuted instantiation: encodetxb.c:get_lower_levels_ctx
Unexecuted instantiation: ethread.c:get_lower_levels_ctx
Unexecuted instantiation: firstpass.c:get_lower_levels_ctx
Unexecuted instantiation: global_motion_facade.c:get_lower_levels_ctx
Unexecuted instantiation: level.c:get_lower_levels_ctx
Unexecuted instantiation: lookahead.c:get_lower_levels_ctx
Unexecuted instantiation: mcomp.c:get_lower_levels_ctx
Unexecuted instantiation: mv_prec.c:get_lower_levels_ctx
Unexecuted instantiation: palette.c:get_lower_levels_ctx
Unexecuted instantiation: partition_search.c:get_lower_levels_ctx
Unexecuted instantiation: partition_strategy.c:get_lower_levels_ctx
Unexecuted instantiation: pass2_strategy.c:get_lower_levels_ctx
Unexecuted instantiation: pickcdef.c:get_lower_levels_ctx
Unexecuted instantiation: picklpf.c:get_lower_levels_ctx
Unexecuted instantiation: pickrst.c:get_lower_levels_ctx
Unexecuted instantiation: ratectrl.c:get_lower_levels_ctx
Unexecuted instantiation: rd.c:get_lower_levels_ctx
Unexecuted instantiation: rdopt.c:get_lower_levels_ctx
Unexecuted instantiation: nonrd_pickmode.c:get_lower_levels_ctx
Unexecuted instantiation: nonrd_opt.c:get_lower_levels_ctx
Unexecuted instantiation: segmentation.c:get_lower_levels_ctx
Unexecuted instantiation: speed_features.c:get_lower_levels_ctx
Unexecuted instantiation: superres_scale.c:get_lower_levels_ctx
Unexecuted instantiation: svc_layercontext.c:get_lower_levels_ctx
Unexecuted instantiation: temporal_filter.c:get_lower_levels_ctx
Unexecuted instantiation: tokenize.c:get_lower_levels_ctx
Unexecuted instantiation: tpl_model.c:get_lower_levels_ctx
Unexecuted instantiation: tx_search.c:get_lower_levels_ctx
txb_rdopt.c:get_lower_levels_ctx
Line
Count
Source
254
6.15G
                                                 TX_CLASS tx_class) {
255
6.15G
  const int stats =
256
6.15G
      get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class);
257
6.15G
  return get_nz_map_ctx_from_stats(stats, coeff_idx, bhl, tx_size, tx_class);
258
6.15G
}
Unexecuted instantiation: intra_mode_search.c:get_lower_levels_ctx
Unexecuted instantiation: var_based_part.c:get_lower_levels_ctx
Unexecuted instantiation: av1_noise_estimate.c:get_lower_levels_ctx
Unexecuted instantiation: encodetxb_sse2.c:get_lower_levels_ctx
Unexecuted instantiation: entropy.c:get_lower_levels_ctx
Unexecuted instantiation: entropymode.c:get_lower_levels_ctx
Unexecuted instantiation: txb_common.c:get_lower_levels_ctx
Unexecuted instantiation: aq_complexity.c:get_lower_levels_ctx
Unexecuted instantiation: aq_cyclicrefresh.c:get_lower_levels_ctx
Unexecuted instantiation: aq_variance.c:get_lower_levels_ctx
Unexecuted instantiation: compound_type.c:get_lower_levels_ctx
Unexecuted instantiation: encode_strategy.c:get_lower_levels_ctx
Unexecuted instantiation: global_motion.c:get_lower_levels_ctx
Unexecuted instantiation: gop_structure.c:get_lower_levels_ctx
Unexecuted instantiation: interp_search.c:get_lower_levels_ctx
Unexecuted instantiation: motion_search_facade.c:get_lower_levels_ctx
Unexecuted instantiation: temporal_filter_sse2.c:get_lower_levels_ctx
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_lower_levels_ctx
Unexecuted instantiation: encodetxb_sse4.c:get_lower_levels_ctx
Unexecuted instantiation: rdopt_sse4.c:get_lower_levels_ctx
Unexecuted instantiation: pickrst_sse4.c:get_lower_levels_ctx
Unexecuted instantiation: encodetxb_avx2.c:get_lower_levels_ctx
Unexecuted instantiation: rdopt_avx2.c:get_lower_levels_ctx
Unexecuted instantiation: temporal_filter_avx2.c:get_lower_levels_ctx
Unexecuted instantiation: pickrst_avx2.c:get_lower_levels_ctx
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_lower_levels_ctx
259
260
static inline int get_lower_levels_ctx_general(int is_last, int scan_idx,
261
                                               int bhl, int width,
262
                                               const uint8_t *levels,
263
                                               int coeff_idx, TX_SIZE tx_size,
264
265M
                                               TX_CLASS tx_class) {
265
265M
  if (is_last) {
266
97.2M
    if (scan_idx == 0) return 0;
267
94.7M
    if (scan_idx <= (width << bhl) >> 3) return 1;
268
93.2M
    if (scan_idx <= (width << bhl) >> 2) return 2;
269
91.5M
    return 3;
270
93.2M
  }
271
168M
  return get_lower_levels_ctx(levels, coeff_idx, bhl, tx_size, tx_class);
272
265M
}
Unexecuted instantiation: decodetxb.c:get_lower_levels_ctx_general
Unexecuted instantiation: av1_cx_iface.c:get_lower_levels_ctx_general
Unexecuted instantiation: allintra_vis.c:get_lower_levels_ctx_general
Unexecuted instantiation: av1_quantize.c:get_lower_levels_ctx_general
Unexecuted instantiation: bitstream.c:get_lower_levels_ctx_general
Unexecuted instantiation: context_tree.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodeframe.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodeframe_utils.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodemb.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodemv.c:get_lower_levels_ctx_general
Unexecuted instantiation: encoder.c:get_lower_levels_ctx_general
Unexecuted instantiation: encoder_utils.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodetxb.c:get_lower_levels_ctx_general
Unexecuted instantiation: ethread.c:get_lower_levels_ctx_general
Unexecuted instantiation: firstpass.c:get_lower_levels_ctx_general
Unexecuted instantiation: global_motion_facade.c:get_lower_levels_ctx_general
Unexecuted instantiation: level.c:get_lower_levels_ctx_general
Unexecuted instantiation: lookahead.c:get_lower_levels_ctx_general
Unexecuted instantiation: mcomp.c:get_lower_levels_ctx_general
Unexecuted instantiation: mv_prec.c:get_lower_levels_ctx_general
Unexecuted instantiation: palette.c:get_lower_levels_ctx_general
Unexecuted instantiation: partition_search.c:get_lower_levels_ctx_general
Unexecuted instantiation: partition_strategy.c:get_lower_levels_ctx_general
Unexecuted instantiation: pass2_strategy.c:get_lower_levels_ctx_general
Unexecuted instantiation: pickcdef.c:get_lower_levels_ctx_general
Unexecuted instantiation: picklpf.c:get_lower_levels_ctx_general
Unexecuted instantiation: pickrst.c:get_lower_levels_ctx_general
Unexecuted instantiation: ratectrl.c:get_lower_levels_ctx_general
Unexecuted instantiation: rd.c:get_lower_levels_ctx_general
Unexecuted instantiation: rdopt.c:get_lower_levels_ctx_general
Unexecuted instantiation: nonrd_pickmode.c:get_lower_levels_ctx_general
Unexecuted instantiation: nonrd_opt.c:get_lower_levels_ctx_general
Unexecuted instantiation: segmentation.c:get_lower_levels_ctx_general
Unexecuted instantiation: speed_features.c:get_lower_levels_ctx_general
Unexecuted instantiation: superres_scale.c:get_lower_levels_ctx_general
Unexecuted instantiation: svc_layercontext.c:get_lower_levels_ctx_general
Unexecuted instantiation: temporal_filter.c:get_lower_levels_ctx_general
Unexecuted instantiation: tokenize.c:get_lower_levels_ctx_general
Unexecuted instantiation: tpl_model.c:get_lower_levels_ctx_general
Unexecuted instantiation: tx_search.c:get_lower_levels_ctx_general
txb_rdopt.c:get_lower_levels_ctx_general
Line
Count
Source
264
265M
                                               TX_CLASS tx_class) {
265
265M
  if (is_last) {
266
97.2M
    if (scan_idx == 0) return 0;
267
94.7M
    if (scan_idx <= (width << bhl) >> 3) return 1;
268
93.2M
    if (scan_idx <= (width << bhl) >> 2) return 2;
269
91.5M
    return 3;
270
93.2M
  }
271
168M
  return get_lower_levels_ctx(levels, coeff_idx, bhl, tx_size, tx_class);
272
265M
}
Unexecuted instantiation: intra_mode_search.c:get_lower_levels_ctx_general
Unexecuted instantiation: var_based_part.c:get_lower_levels_ctx_general
Unexecuted instantiation: av1_noise_estimate.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodetxb_sse2.c:get_lower_levels_ctx_general
Unexecuted instantiation: entropy.c:get_lower_levels_ctx_general
Unexecuted instantiation: entropymode.c:get_lower_levels_ctx_general
Unexecuted instantiation: txb_common.c:get_lower_levels_ctx_general
Unexecuted instantiation: aq_complexity.c:get_lower_levels_ctx_general
Unexecuted instantiation: aq_cyclicrefresh.c:get_lower_levels_ctx_general
Unexecuted instantiation: aq_variance.c:get_lower_levels_ctx_general
Unexecuted instantiation: compound_type.c:get_lower_levels_ctx_general
Unexecuted instantiation: encode_strategy.c:get_lower_levels_ctx_general
Unexecuted instantiation: global_motion.c:get_lower_levels_ctx_general
Unexecuted instantiation: gop_structure.c:get_lower_levels_ctx_general
Unexecuted instantiation: interp_search.c:get_lower_levels_ctx_general
Unexecuted instantiation: motion_search_facade.c:get_lower_levels_ctx_general
Unexecuted instantiation: temporal_filter_sse2.c:get_lower_levels_ctx_general
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodetxb_sse4.c:get_lower_levels_ctx_general
Unexecuted instantiation: rdopt_sse4.c:get_lower_levels_ctx_general
Unexecuted instantiation: pickrst_sse4.c:get_lower_levels_ctx_general
Unexecuted instantiation: encodetxb_avx2.c:get_lower_levels_ctx_general
Unexecuted instantiation: rdopt_avx2.c:get_lower_levels_ctx_general
Unexecuted instantiation: temporal_filter_avx2.c:get_lower_levels_ctx_general
Unexecuted instantiation: pickrst_avx2.c:get_lower_levels_ctx_general
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_lower_levels_ctx_general
273
274
445M
static inline void set_dc_sign(int *cul_level, int dc_val) {
275
445M
  if (dc_val < 0)
276
207M
    *cul_level |= 1 << COEFF_CONTEXT_BITS;
277
238M
  else if (dc_val > 0)
278
206M
    *cul_level += 2 << COEFF_CONTEXT_BITS;
279
445M
}
decodetxb.c:set_dc_sign
Line
Count
Source
274
13.3M
static inline void set_dc_sign(int *cul_level, int dc_val) {
275
13.3M
  if (dc_val < 0)
276
6.22M
    *cul_level |= 1 << COEFF_CONTEXT_BITS;
277
7.16M
  else if (dc_val > 0)
278
6.23M
    *cul_level += 2 << COEFF_CONTEXT_BITS;
279
13.3M
}
Unexecuted instantiation: av1_cx_iface.c:set_dc_sign
Unexecuted instantiation: allintra_vis.c:set_dc_sign
Unexecuted instantiation: av1_quantize.c:set_dc_sign
Unexecuted instantiation: bitstream.c:set_dc_sign
Unexecuted instantiation: context_tree.c:set_dc_sign
Unexecuted instantiation: encodeframe.c:set_dc_sign
Unexecuted instantiation: encodeframe_utils.c:set_dc_sign
Unexecuted instantiation: encodemb.c:set_dc_sign
Unexecuted instantiation: encodemv.c:set_dc_sign
Unexecuted instantiation: encoder.c:set_dc_sign
Unexecuted instantiation: encoder_utils.c:set_dc_sign
encodetxb.c:set_dc_sign
Line
Count
Source
274
432M
static inline void set_dc_sign(int *cul_level, int dc_val) {
275
432M
  if (dc_val < 0)
276
201M
    *cul_level |= 1 << COEFF_CONTEXT_BITS;
277
231M
  else if (dc_val > 0)
278
200M
    *cul_level += 2 << COEFF_CONTEXT_BITS;
279
432M
}
Unexecuted instantiation: ethread.c:set_dc_sign
Unexecuted instantiation: firstpass.c:set_dc_sign
Unexecuted instantiation: global_motion_facade.c:set_dc_sign
Unexecuted instantiation: level.c:set_dc_sign
Unexecuted instantiation: lookahead.c:set_dc_sign
Unexecuted instantiation: mcomp.c:set_dc_sign
Unexecuted instantiation: mv_prec.c:set_dc_sign
Unexecuted instantiation: palette.c:set_dc_sign
Unexecuted instantiation: partition_search.c:set_dc_sign
Unexecuted instantiation: partition_strategy.c:set_dc_sign
Unexecuted instantiation: pass2_strategy.c:set_dc_sign
Unexecuted instantiation: pickcdef.c:set_dc_sign
Unexecuted instantiation: picklpf.c:set_dc_sign
Unexecuted instantiation: pickrst.c:set_dc_sign
Unexecuted instantiation: ratectrl.c:set_dc_sign
Unexecuted instantiation: rd.c:set_dc_sign
Unexecuted instantiation: rdopt.c:set_dc_sign
Unexecuted instantiation: nonrd_pickmode.c:set_dc_sign
Unexecuted instantiation: nonrd_opt.c:set_dc_sign
Unexecuted instantiation: segmentation.c:set_dc_sign
Unexecuted instantiation: speed_features.c:set_dc_sign
Unexecuted instantiation: superres_scale.c:set_dc_sign
Unexecuted instantiation: svc_layercontext.c:set_dc_sign
Unexecuted instantiation: temporal_filter.c:set_dc_sign
Unexecuted instantiation: tokenize.c:set_dc_sign
Unexecuted instantiation: tpl_model.c:set_dc_sign
Unexecuted instantiation: tx_search.c:set_dc_sign
Unexecuted instantiation: txb_rdopt.c:set_dc_sign
Unexecuted instantiation: intra_mode_search.c:set_dc_sign
Unexecuted instantiation: var_based_part.c:set_dc_sign
Unexecuted instantiation: av1_noise_estimate.c:set_dc_sign
Unexecuted instantiation: encodetxb_sse2.c:set_dc_sign
Unexecuted instantiation: entropy.c:set_dc_sign
Unexecuted instantiation: entropymode.c:set_dc_sign
Unexecuted instantiation: txb_common.c:set_dc_sign
Unexecuted instantiation: aq_complexity.c:set_dc_sign
Unexecuted instantiation: aq_cyclicrefresh.c:set_dc_sign
Unexecuted instantiation: aq_variance.c:set_dc_sign
Unexecuted instantiation: compound_type.c:set_dc_sign
Unexecuted instantiation: encode_strategy.c:set_dc_sign
Unexecuted instantiation: global_motion.c:set_dc_sign
Unexecuted instantiation: gop_structure.c:set_dc_sign
Unexecuted instantiation: interp_search.c:set_dc_sign
Unexecuted instantiation: motion_search_facade.c:set_dc_sign
Unexecuted instantiation: temporal_filter_sse2.c:set_dc_sign
Unexecuted instantiation: highbd_temporal_filter_sse2.c:set_dc_sign
Unexecuted instantiation: encodetxb_sse4.c:set_dc_sign
Unexecuted instantiation: rdopt_sse4.c:set_dc_sign
Unexecuted instantiation: pickrst_sse4.c:set_dc_sign
Unexecuted instantiation: encodetxb_avx2.c:set_dc_sign
Unexecuted instantiation: rdopt_avx2.c:set_dc_sign
Unexecuted instantiation: temporal_filter_avx2.c:set_dc_sign
Unexecuted instantiation: pickrst_avx2.c:set_dc_sign
Unexecuted instantiation: highbd_temporal_filter_avx2.c:set_dc_sign
280
281
287M
#define MAX_TX_SIZE_UNIT 16
282
static const int8_t kTxbCtxSigns[3] = { 0, -1, 1 };
283
static const int8_t kTxbCtxDcSignContexts[4 * MAX_TX_SIZE_UNIT + 1] = {
284
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
285
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
286
  2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
287
};
288
289
// This is the algorithm to generate table kTxbCtxSkipContexts[top][left].
290
//    const int max = AOMMIN(top | left, 4);
291
//    const int min = AOMMIN(AOMMIN(top, left), 4);
292
//    if (!max)
293
//      txb_skip_ctx = 1;
294
//    else if (!min)
295
//      txb_skip_ctx = 2 + (max > 3);
296
//    else if (max <= 3)
297
//      txb_skip_ctx = 4;
298
//    else if (min <= 3)
299
//      txb_skip_ctx = 5;
300
//    else
301
//      txb_skip_ctx = 6;
302
static const uint8_t kTxbCtxSkipContexts[5][5] = { { 1, 2, 2, 2, 3 },
303
                                                   { 2, 4, 4, 4, 5 },
304
                                                   { 2, 4, 4, 4, 5 },
305
                                                   { 2, 4, 4, 4, 5 },
306
                                                   { 3, 5, 5, 5, 6 } };
307
308
static void get_txb_ctx_general(const BLOCK_SIZE plane_bsize,
309
                                const TX_SIZE tx_size, const int plane,
310
                                const ENTROPY_CONTEXT *const a,
311
                                const ENTROPY_CONTEXT *const l,
312
29.1M
                                TXB_CTX *const txb_ctx) {
313
29.1M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
314
29.1M
  const int txb_h_unit = tx_size_high_unit[tx_size];
315
29.1M
  int dc_sign = 0;
316
29.1M
  int k = 0;
317
318
59.3M
  do {
319
59.3M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
320
59.3M
    assert(sign <= 2);
321
59.3M
    dc_sign += kTxbCtxSigns[sign];
322
59.3M
  } while (++k < txb_w_unit);
323
324
29.1M
  k = 0;
325
74.9M
  do {
326
74.9M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
327
74.9M
    assert(sign <= 2);
328
74.9M
    dc_sign += kTxbCtxSigns[sign];
329
74.9M
  } while (++k < txb_h_unit);
330
331
29.1M
  txb_ctx->dc_sign_ctx = kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
332
333
29.1M
  if (plane == 0) {
334
8.67M
    if (plane_bsize == txsize_to_bsize[tx_size]) {
335
8.62M
      txb_ctx->txb_skip_ctx = 0;
336
8.62M
    } else {
337
      // For top and left, we only care about which of the following three
338
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
339
      // spec calculates top and left with the Max() function. We can calculate
340
      // an approximate max with bitwise OR because the real max and the
341
      // approximate max belong to the same category.
342
50.7k
      int top = 0;
343
50.7k
      int left = 0;
344
345
50.7k
      k = 0;
346
260k
      do {
347
260k
        top |= a[k];
348
260k
      } while (++k < txb_w_unit);
349
50.7k
      top &= COEFF_CONTEXT_MASK;
350
50.7k
      top = AOMMIN(top, 4);
351
352
50.7k
      k = 0;
353
245k
      do {
354
245k
        left |= l[k];
355
245k
      } while (++k < txb_h_unit);
356
50.7k
      left &= COEFF_CONTEXT_MASK;
357
50.7k
      left = AOMMIN(left, 4);
358
359
50.7k
      txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];
360
50.7k
    }
361
20.4M
  } else {
362
20.4M
    const int ctx_base = get_entropy_context(tx_size, a, l);
363
20.4M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
364
20.4M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
365
20.4M
                               ? 10
366
20.4M
                               : 7;
367
20.4M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
368
20.4M
  }
369
29.1M
}
decodetxb.c:get_txb_ctx_general
Line
Count
Source
312
1.78M
                                TXB_CTX *const txb_ctx) {
313
1.78M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
314
1.78M
  const int txb_h_unit = tx_size_high_unit[tx_size];
315
1.78M
  int dc_sign = 0;
316
1.78M
  int k = 0;
317
318
5.15M
  do {
319
5.15M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
320
5.15M
    assert(sign <= 2);
321
5.15M
    dc_sign += kTxbCtxSigns[sign];
322
5.15M
  } while (++k < txb_w_unit);
323
324
1.78M
  k = 0;
325
5.72M
  do {
326
5.72M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
327
5.72M
    assert(sign <= 2);
328
5.72M
    dc_sign += kTxbCtxSigns[sign];
329
5.72M
  } while (++k < txb_h_unit);
330
331
1.78M
  txb_ctx->dc_sign_ctx = kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
332
333
1.78M
  if (plane == 0) {
334
553k
    if (plane_bsize == txsize_to_bsize[tx_size]) {
335
503k
      txb_ctx->txb_skip_ctx = 0;
336
503k
    } else {
337
      // For top and left, we only care about which of the following three
338
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
339
      // spec calculates top and left with the Max() function. We can calculate
340
      // an approximate max with bitwise OR because the real max and the
341
      // approximate max belong to the same category.
342
50.9k
      int top = 0;
343
50.9k
      int left = 0;
344
345
50.9k
      k = 0;
346
260k
      do {
347
260k
        top |= a[k];
348
260k
      } while (++k < txb_w_unit);
349
50.9k
      top &= COEFF_CONTEXT_MASK;
350
50.9k
      top = AOMMIN(top, 4);
351
352
50.9k
      k = 0;
353
246k
      do {
354
246k
        left |= l[k];
355
246k
      } while (++k < txb_h_unit);
356
50.9k
      left &= COEFF_CONTEXT_MASK;
357
50.9k
      left = AOMMIN(left, 4);
358
359
50.9k
      txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];
360
50.9k
    }
361
1.23M
  } else {
362
1.23M
    const int ctx_base = get_entropy_context(tx_size, a, l);
363
1.23M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
364
1.23M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
365
1.23M
                               ? 10
366
1.23M
                               : 7;
367
1.23M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
368
1.23M
  }
369
1.78M
}
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx_general
Unexecuted instantiation: allintra_vis.c:get_txb_ctx_general
Unexecuted instantiation: av1_quantize.c:get_txb_ctx_general
Unexecuted instantiation: bitstream.c:get_txb_ctx_general
Unexecuted instantiation: context_tree.c:get_txb_ctx_general
Unexecuted instantiation: encodeframe.c:get_txb_ctx_general
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx_general
encodemb.c:get_txb_ctx_general
Line
Count
Source
312
5.09M
                                TXB_CTX *const txb_ctx) {
313
5.09M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
314
5.09M
  const int txb_h_unit = tx_size_high_unit[tx_size];
315
5.09M
  int dc_sign = 0;
316
5.09M
  int k = 0;
317
318
8.43M
  do {
319
8.43M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
320
8.43M
    assert(sign <= 2);
321
8.43M
    dc_sign += kTxbCtxSigns[sign];
322
8.43M
  } while (++k < txb_w_unit);
323
324
5.09M
  k = 0;
325
12.0M
  do {
326
12.0M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
327
12.0M
    assert(sign <= 2);
328
12.0M
    dc_sign += kTxbCtxSigns[sign];
329
12.0M
  } while (++k < txb_h_unit);
330
331
5.09M
  txb_ctx->dc_sign_ctx = kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
332
333
5.09M
  if (plane == 0) {
334
1.02M
    if (plane_bsize == txsize_to_bsize[tx_size]) {
335
1.02M
      txb_ctx->txb_skip_ctx = 0;
336
18.4E
    } else {
337
      // For top and left, we only care about which of the following three
338
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
339
      // spec calculates top and left with the Max() function. We can calculate
340
      // an approximate max with bitwise OR because the real max and the
341
      // approximate max belong to the same category.
342
18.4E
      int top = 0;
343
18.4E
      int left = 0;
344
345
18.4E
      k = 0;
346
18.4E
      do {
347
18.4E
        top |= a[k];
348
18.4E
      } while (++k < txb_w_unit);
349
18.4E
      top &= COEFF_CONTEXT_MASK;
350
18.4E
      top = AOMMIN(top, 4);
351
352
18.4E
      k = 0;
353
18.4E
      do {
354
18.4E
        left |= l[k];
355
18.4E
      } while (++k < txb_h_unit);
356
18.4E
      left &= COEFF_CONTEXT_MASK;
357
18.4E
      left = AOMMIN(left, 4);
358
359
18.4E
      txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];
360
18.4E
    }
361
4.07M
  } else {
362
4.07M
    const int ctx_base = get_entropy_context(tx_size, a, l);
363
4.07M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
364
4.07M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
365
4.07M
                               ? 10
366
4.07M
                               : 7;
367
4.07M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
368
4.07M
  }
369
5.09M
}
Unexecuted instantiation: encodemv.c:get_txb_ctx_general
Unexecuted instantiation: encoder.c:get_txb_ctx_general
Unexecuted instantiation: encoder_utils.c:get_txb_ctx_general
encodetxb.c:get_txb_ctx_general
Line
Count
Source
312
1.66M
                                TXB_CTX *const txb_ctx) {
313
1.66M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
314
1.66M
  const int txb_h_unit = tx_size_high_unit[tx_size];
315
1.66M
  int dc_sign = 0;
316
1.66M
  int k = 0;
317
318
2.65M
  do {
319
2.65M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
320
2.65M
    assert(sign <= 2);
321
2.65M
    dc_sign += kTxbCtxSigns[sign];
322
2.65M
  } while (++k < txb_w_unit);
323
324
1.66M
  k = 0;
325
4.29M
  do {
326
4.29M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
327
4.29M
    assert(sign <= 2);
328
4.29M
    dc_sign += kTxbCtxSigns[sign];
329
4.29M
  } while (++k < txb_h_unit);
330
331
1.66M
  txb_ctx->dc_sign_ctx = kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
332
333
1.66M
  if (plane == 0) {
334
157k
    if (plane_bsize == txsize_to_bsize[tx_size]) {
335
157k
      txb_ctx->txb_skip_ctx = 0;
336
157k
    } else {
337
      // For top and left, we only care about which of the following three
338
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
339
      // spec calculates top and left with the Max() function. We can calculate
340
      // an approximate max with bitwise OR because the real max and the
341
      // approximate max belong to the same category.
342
1
      int top = 0;
343
1
      int left = 0;
344
345
1
      k = 0;
346
1
      do {
347
1
        top |= a[k];
348
1
      } while (++k < txb_w_unit);
349
1
      top &= COEFF_CONTEXT_MASK;
350
1
      top = AOMMIN(top, 4);
351
352
1
      k = 0;
353
1
      do {
354
1
        left |= l[k];
355
1
      } while (++k < txb_h_unit);
356
1
      left &= COEFF_CONTEXT_MASK;
357
1
      left = AOMMIN(left, 4);
358
359
1
      txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];
360
1
    }
361
1.50M
  } else {
362
1.50M
    const int ctx_base = get_entropy_context(tx_size, a, l);
363
1.50M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
364
1.50M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
365
1.50M
                               ? 10
366
1.50M
                               : 7;
367
1.50M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
368
1.50M
  }
369
1.66M
}
Unexecuted instantiation: ethread.c:get_txb_ctx_general
Unexecuted instantiation: firstpass.c:get_txb_ctx_general
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx_general
Unexecuted instantiation: level.c:get_txb_ctx_general
Unexecuted instantiation: lookahead.c:get_txb_ctx_general
Unexecuted instantiation: mcomp.c:get_txb_ctx_general
Unexecuted instantiation: mv_prec.c:get_txb_ctx_general
Unexecuted instantiation: palette.c:get_txb_ctx_general
Unexecuted instantiation: partition_search.c:get_txb_ctx_general
Unexecuted instantiation: partition_strategy.c:get_txb_ctx_general
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx_general
Unexecuted instantiation: pickcdef.c:get_txb_ctx_general
Unexecuted instantiation: picklpf.c:get_txb_ctx_general
Unexecuted instantiation: pickrst.c:get_txb_ctx_general
Unexecuted instantiation: ratectrl.c:get_txb_ctx_general
Unexecuted instantiation: rd.c:get_txb_ctx_general
Unexecuted instantiation: rdopt.c:get_txb_ctx_general
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx_general
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx_general
Unexecuted instantiation: segmentation.c:get_txb_ctx_general
Unexecuted instantiation: speed_features.c:get_txb_ctx_general
Unexecuted instantiation: superres_scale.c:get_txb_ctx_general
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx_general
Unexecuted instantiation: temporal_filter.c:get_txb_ctx_general
Unexecuted instantiation: tokenize.c:get_txb_ctx_general
Unexecuted instantiation: tpl_model.c:get_txb_ctx_general
tx_search.c:get_txb_ctx_general
Line
Count
Source
312
20.5M
                                TXB_CTX *const txb_ctx) {
313
20.5M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
314
20.5M
  const int txb_h_unit = tx_size_high_unit[tx_size];
315
20.5M
  int dc_sign = 0;
316
20.5M
  int k = 0;
317
318
43.1M
  do {
319
43.1M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
320
43.1M
    assert(sign <= 2);
321
43.1M
    dc_sign += kTxbCtxSigns[sign];
322
43.1M
  } while (++k < txb_w_unit);
323
324
20.5M
  k = 0;
325
52.8M
  do {
326
52.8M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
327
52.8M
    assert(sign <= 2);
328
52.8M
    dc_sign += kTxbCtxSigns[sign];
329
52.8M
  } while (++k < txb_h_unit);
330
331
20.5M
  txb_ctx->dc_sign_ctx = kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
332
333
20.5M
  if (plane == 0) {
334
6.94M
    if (plane_bsize == txsize_to_bsize[tx_size]) {
335
6.94M
      txb_ctx->txb_skip_ctx = 0;
336
18.4E
    } else {
337
      // For top and left, we only care about which of the following three
338
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
339
      // spec calculates top and left with the Max() function. We can calculate
340
      // an approximate max with bitwise OR because the real max and the
341
      // approximate max belong to the same category.
342
18.4E
      int top = 0;
343
18.4E
      int left = 0;
344
345
18.4E
      k = 0;
346
18.4E
      do {
347
18.4E
        top |= a[k];
348
18.4E
      } while (++k < txb_w_unit);
349
18.4E
      top &= COEFF_CONTEXT_MASK;
350
18.4E
      top = AOMMIN(top, 4);
351
352
18.4E
      k = 0;
353
18.4E
      do {
354
18.4E
        left |= l[k];
355
18.4E
      } while (++k < txb_h_unit);
356
18.4E
      left &= COEFF_CONTEXT_MASK;
357
18.4E
      left = AOMMIN(left, 4);
358
359
18.4E
      txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];
360
18.4E
    }
361
13.6M
  } else {
362
13.6M
    const int ctx_base = get_entropy_context(tx_size, a, l);
363
13.6M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
364
13.6M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
365
13.6M
                               ? 10
366
13.6M
                               : 7;
367
13.6M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
368
13.6M
  }
369
20.5M
}
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx_general
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx_general
Unexecuted instantiation: var_based_part.c:get_txb_ctx_general
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx_general
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx_general
Unexecuted instantiation: entropy.c:get_txb_ctx_general
Unexecuted instantiation: entropymode.c:get_txb_ctx_general
Unexecuted instantiation: txb_common.c:get_txb_ctx_general
Unexecuted instantiation: aq_complexity.c:get_txb_ctx_general
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx_general
Unexecuted instantiation: aq_variance.c:get_txb_ctx_general
Unexecuted instantiation: compound_type.c:get_txb_ctx_general
Unexecuted instantiation: encode_strategy.c:get_txb_ctx_general
Unexecuted instantiation: global_motion.c:get_txb_ctx_general
Unexecuted instantiation: gop_structure.c:get_txb_ctx_general
Unexecuted instantiation: interp_search.c:get_txb_ctx_general
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx_general
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx_general
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx_general
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx_general
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx_general
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx_general
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx_general
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx_general
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx_general
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx_general
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx_general
370
371
#define SPECIALIZE_GET_TXB_CTX(w, h)                                          \
372
  static void get_txb_ctx_##w##x##h(                                          \
373
      const BLOCK_SIZE plane_bsize, const int plane,                          \
374
      const ENTROPY_CONTEXT *const a, const ENTROPY_CONTEXT *const l,         \
375
258M
      TXB_CTX *const txb_ctx) {                                               \
376
258M
    const TX_SIZE tx_size = TX_##w##X##h;                                     \
377
258M
    const int txb_w_unit = tx_size_wide_unit[tx_size];                        \
378
258M
    const int txb_h_unit = tx_size_high_unit[tx_size];                        \
379
258M
    int dc_sign = 0;                                                          \
380
258M
    int k = 0;                                                                \
381
258M
                                                                              \
382
390M
    do {                                                                      \
383
390M
      const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;        \
384
390M
      assert(sign <= 2);                                                      \
385
390M
      dc_sign += kTxbCtxSigns[sign];                                          \
386
390M
    } while (++k < txb_w_unit);                                               \
387
258M
                                                                              \
388
258M
    k = 0;                                                                    \
389
390M
    do {                                                                      \
390
390M
      const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;        \
391
390M
      assert(sign <= 2);                                                      \
392
390M
      dc_sign += kTxbCtxSigns[sign];                                          \
393
390M
    } while (++k < txb_h_unit);                                               \
394
258M
                                                                              \
395
258M
    txb_ctx->dc_sign_ctx =                                                    \
396
258M
        kTxbCtxDcSignContexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];                \
397
258M
                                                                              \
398
258M
    if (plane == 0) {                                                         \
399
181M
      if (plane_bsize == txsize_to_bsize[tx_size]) {                          \
400
106M
        txb_ctx->txb_skip_ctx = 0;                                            \
401
106M
      } else {                                                                \
402
75.3M
        int top = 0;                                                          \
403
75.3M
        int left = 0;                                                         \
404
75.3M
                                                                              \
405
75.3M
        k = 0;                                                                \
406
93.2M
        do {                                                                  \
407
93.2M
          top |= a[k];                                                        \
408
93.2M
        } while (++k < txb_w_unit);                                           \
409
75.3M
        top &= COEFF_CONTEXT_MASK;                                            \
410
75.3M
        top = AOMMIN(top, 4);                                                 \
411
75.3M
                                                                              \
412
75.3M
        k = 0;                                                                \
413
93.2M
        do {                                                                  \
414
93.2M
          left |= l[k];                                                       \
415
93.2M
        } while (++k < txb_h_unit);                                           \
416
75.3M
        left &= COEFF_CONTEXT_MASK;                                           \
417
75.3M
        left = AOMMIN(left, 4);                                               \
418
75.3M
                                                                              \
419
75.3M
        txb_ctx->txb_skip_ctx = kTxbCtxSkipContexts[top][left];               \
420
75.3M
      }                                                                       \
421
181M
    } else {                                                                  \
422
76.5M
      const int ctx_base = get_entropy_context(tx_size, a, l);                \
423
76.5M
      const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >             \
424
76.5M
                              num_pels_log2_lookup[txsize_to_bsize[tx_size]]) \
425
76.5M
                                 ? 10                                         \
426
76.5M
                                 : 7;                                         \
427
76.5M
      txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;                          \
428
76.5M
    }                                                                         \
429
258M
  }
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx_4x4
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx_8x8
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx_16x16
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx_32x32
Unexecuted instantiation: allintra_vis.c:get_txb_ctx_4x4
Unexecuted instantiation: allintra_vis.c:get_txb_ctx_8x8
Unexecuted instantiation: allintra_vis.c:get_txb_ctx_16x16
Unexecuted instantiation: allintra_vis.c:get_txb_ctx_32x32
Unexecuted instantiation: av1_quantize.c:get_txb_ctx_4x4
Unexecuted instantiation: av1_quantize.c:get_txb_ctx_8x8
Unexecuted instantiation: av1_quantize.c:get_txb_ctx_16x16
Unexecuted instantiation: av1_quantize.c:get_txb_ctx_32x32
Unexecuted instantiation: bitstream.c:get_txb_ctx_4x4
Unexecuted instantiation: bitstream.c:get_txb_ctx_8x8
Unexecuted instantiation: bitstream.c:get_txb_ctx_16x16
Unexecuted instantiation: bitstream.c:get_txb_ctx_32x32
Unexecuted instantiation: context_tree.c:get_txb_ctx_4x4
Unexecuted instantiation: context_tree.c:get_txb_ctx_8x8
Unexecuted instantiation: context_tree.c:get_txb_ctx_16x16
Unexecuted instantiation: context_tree.c:get_txb_ctx_32x32
Unexecuted instantiation: encodeframe.c:get_txb_ctx_4x4
Unexecuted instantiation: encodeframe.c:get_txb_ctx_8x8
Unexecuted instantiation: encodeframe.c:get_txb_ctx_16x16
Unexecuted instantiation: encodeframe.c:get_txb_ctx_32x32
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx_4x4
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx_8x8
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx_16x16
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx_32x32
Unexecuted instantiation: encodemv.c:get_txb_ctx_4x4
Unexecuted instantiation: encodemv.c:get_txb_ctx_8x8
Unexecuted instantiation: encodemv.c:get_txb_ctx_16x16
Unexecuted instantiation: encodemv.c:get_txb_ctx_32x32
Unexecuted instantiation: encoder.c:get_txb_ctx_4x4
Unexecuted instantiation: encoder.c:get_txb_ctx_8x8
Unexecuted instantiation: encoder.c:get_txb_ctx_16x16
Unexecuted instantiation: encoder.c:get_txb_ctx_32x32
Unexecuted instantiation: encoder_utils.c:get_txb_ctx_4x4
Unexecuted instantiation: encoder_utils.c:get_txb_ctx_8x8
Unexecuted instantiation: encoder_utils.c:get_txb_ctx_16x16
Unexecuted instantiation: encoder_utils.c:get_txb_ctx_32x32
Unexecuted instantiation: ethread.c:get_txb_ctx_4x4
Unexecuted instantiation: ethread.c:get_txb_ctx_8x8
Unexecuted instantiation: ethread.c:get_txb_ctx_16x16
Unexecuted instantiation: ethread.c:get_txb_ctx_32x32
Unexecuted instantiation: firstpass.c:get_txb_ctx_4x4
Unexecuted instantiation: firstpass.c:get_txb_ctx_8x8
Unexecuted instantiation: firstpass.c:get_txb_ctx_16x16
Unexecuted instantiation: firstpass.c:get_txb_ctx_32x32
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx_4x4
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx_8x8
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx_16x16
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx_32x32
Unexecuted instantiation: level.c:get_txb_ctx_4x4
Unexecuted instantiation: level.c:get_txb_ctx_8x8
Unexecuted instantiation: level.c:get_txb_ctx_16x16
Unexecuted instantiation: level.c:get_txb_ctx_32x32
Unexecuted instantiation: lookahead.c:get_txb_ctx_4x4
Unexecuted instantiation: lookahead.c:get_txb_ctx_8x8
Unexecuted instantiation: lookahead.c:get_txb_ctx_16x16
Unexecuted instantiation: lookahead.c:get_txb_ctx_32x32
Unexecuted instantiation: mcomp.c:get_txb_ctx_4x4
Unexecuted instantiation: mcomp.c:get_txb_ctx_8x8
Unexecuted instantiation: mcomp.c:get_txb_ctx_16x16
Unexecuted instantiation: mcomp.c:get_txb_ctx_32x32
Unexecuted instantiation: mv_prec.c:get_txb_ctx_4x4
Unexecuted instantiation: mv_prec.c:get_txb_ctx_8x8
Unexecuted instantiation: mv_prec.c:get_txb_ctx_16x16
Unexecuted instantiation: mv_prec.c:get_txb_ctx_32x32
Unexecuted instantiation: palette.c:get_txb_ctx_4x4
Unexecuted instantiation: palette.c:get_txb_ctx_8x8
Unexecuted instantiation: palette.c:get_txb_ctx_16x16
Unexecuted instantiation: palette.c:get_txb_ctx_32x32
Unexecuted instantiation: partition_search.c:get_txb_ctx_4x4
Unexecuted instantiation: partition_search.c:get_txb_ctx_8x8
Unexecuted instantiation: partition_search.c:get_txb_ctx_16x16
Unexecuted instantiation: partition_search.c:get_txb_ctx_32x32
Unexecuted instantiation: partition_strategy.c:get_txb_ctx_4x4
Unexecuted instantiation: partition_strategy.c:get_txb_ctx_8x8
Unexecuted instantiation: partition_strategy.c:get_txb_ctx_16x16
Unexecuted instantiation: partition_strategy.c:get_txb_ctx_32x32
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx_4x4
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx_8x8
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx_16x16
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx_32x32
Unexecuted instantiation: pickcdef.c:get_txb_ctx_4x4
Unexecuted instantiation: pickcdef.c:get_txb_ctx_8x8
Unexecuted instantiation: pickcdef.c:get_txb_ctx_16x16
Unexecuted instantiation: pickcdef.c:get_txb_ctx_32x32
Unexecuted instantiation: picklpf.c:get_txb_ctx_4x4
Unexecuted instantiation: picklpf.c:get_txb_ctx_8x8
Unexecuted instantiation: picklpf.c:get_txb_ctx_16x16
Unexecuted instantiation: picklpf.c:get_txb_ctx_32x32
Unexecuted instantiation: pickrst.c:get_txb_ctx_4x4
Unexecuted instantiation: pickrst.c:get_txb_ctx_8x8
Unexecuted instantiation: pickrst.c:get_txb_ctx_16x16
Unexecuted instantiation: pickrst.c:get_txb_ctx_32x32
Unexecuted instantiation: ratectrl.c:get_txb_ctx_4x4
Unexecuted instantiation: ratectrl.c:get_txb_ctx_8x8
Unexecuted instantiation: ratectrl.c:get_txb_ctx_16x16
Unexecuted instantiation: ratectrl.c:get_txb_ctx_32x32
Unexecuted instantiation: rd.c:get_txb_ctx_4x4
Unexecuted instantiation: rd.c:get_txb_ctx_8x8
Unexecuted instantiation: rd.c:get_txb_ctx_16x16
Unexecuted instantiation: rd.c:get_txb_ctx_32x32
Unexecuted instantiation: rdopt.c:get_txb_ctx_4x4
Unexecuted instantiation: rdopt.c:get_txb_ctx_8x8
Unexecuted instantiation: rdopt.c:get_txb_ctx_16x16
Unexecuted instantiation: rdopt.c:get_txb_ctx_32x32
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx_4x4
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx_8x8
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx_16x16
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx_32x32
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx_4x4
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx_8x8
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx_16x16
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx_32x32
Unexecuted instantiation: segmentation.c:get_txb_ctx_4x4
Unexecuted instantiation: segmentation.c:get_txb_ctx_8x8
Unexecuted instantiation: segmentation.c:get_txb_ctx_16x16
Unexecuted instantiation: segmentation.c:get_txb_ctx_32x32
Unexecuted instantiation: speed_features.c:get_txb_ctx_4x4
Unexecuted instantiation: speed_features.c:get_txb_ctx_8x8
Unexecuted instantiation: speed_features.c:get_txb_ctx_16x16
Unexecuted instantiation: speed_features.c:get_txb_ctx_32x32
Unexecuted instantiation: superres_scale.c:get_txb_ctx_4x4
Unexecuted instantiation: superres_scale.c:get_txb_ctx_8x8
Unexecuted instantiation: superres_scale.c:get_txb_ctx_16x16
Unexecuted instantiation: superres_scale.c:get_txb_ctx_32x32
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx_4x4
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx_8x8
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx_16x16
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx_32x32
Unexecuted instantiation: temporal_filter.c:get_txb_ctx_4x4
Unexecuted instantiation: temporal_filter.c:get_txb_ctx_8x8
Unexecuted instantiation: temporal_filter.c:get_txb_ctx_16x16
Unexecuted instantiation: temporal_filter.c:get_txb_ctx_32x32
Unexecuted instantiation: tokenize.c:get_txb_ctx_4x4
Unexecuted instantiation: tokenize.c:get_txb_ctx_8x8
Unexecuted instantiation: tokenize.c:get_txb_ctx_16x16
Unexecuted instantiation: tokenize.c:get_txb_ctx_32x32
Unexecuted instantiation: tpl_model.c:get_txb_ctx_4x4
Unexecuted instantiation: tpl_model.c:get_txb_ctx_8x8
Unexecuted instantiation: tpl_model.c:get_txb_ctx_16x16
Unexecuted instantiation: tpl_model.c:get_txb_ctx_32x32
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx_4x4
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx_8x8
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx_16x16
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx_32x32
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx_4x4
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx_8x8
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx_16x16
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx_32x32
Unexecuted instantiation: var_based_part.c:get_txb_ctx_4x4
Unexecuted instantiation: var_based_part.c:get_txb_ctx_8x8
Unexecuted instantiation: var_based_part.c:get_txb_ctx_16x16
Unexecuted instantiation: var_based_part.c:get_txb_ctx_32x32
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx_4x4
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx_8x8
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx_16x16
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx_32x32
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx_4x4
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx_8x8
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx_16x16
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx_32x32
Unexecuted instantiation: entropy.c:get_txb_ctx_4x4
Unexecuted instantiation: entropy.c:get_txb_ctx_8x8
Unexecuted instantiation: entropy.c:get_txb_ctx_16x16
Unexecuted instantiation: entropy.c:get_txb_ctx_32x32
Unexecuted instantiation: entropymode.c:get_txb_ctx_4x4
Unexecuted instantiation: entropymode.c:get_txb_ctx_8x8
Unexecuted instantiation: entropymode.c:get_txb_ctx_16x16
Unexecuted instantiation: entropymode.c:get_txb_ctx_32x32
Unexecuted instantiation: txb_common.c:get_txb_ctx_4x4
Unexecuted instantiation: txb_common.c:get_txb_ctx_8x8
Unexecuted instantiation: txb_common.c:get_txb_ctx_16x16
Unexecuted instantiation: txb_common.c:get_txb_ctx_32x32
Unexecuted instantiation: aq_complexity.c:get_txb_ctx_4x4
Unexecuted instantiation: aq_complexity.c:get_txb_ctx_8x8
Unexecuted instantiation: aq_complexity.c:get_txb_ctx_16x16
Unexecuted instantiation: aq_complexity.c:get_txb_ctx_32x32
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx_4x4
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx_8x8
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx_16x16
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx_32x32
Unexecuted instantiation: aq_variance.c:get_txb_ctx_4x4
Unexecuted instantiation: aq_variance.c:get_txb_ctx_8x8
Unexecuted instantiation: aq_variance.c:get_txb_ctx_16x16
Unexecuted instantiation: aq_variance.c:get_txb_ctx_32x32
Unexecuted instantiation: compound_type.c:get_txb_ctx_4x4
Unexecuted instantiation: compound_type.c:get_txb_ctx_8x8
Unexecuted instantiation: compound_type.c:get_txb_ctx_16x16
Unexecuted instantiation: compound_type.c:get_txb_ctx_32x32
Unexecuted instantiation: encode_strategy.c:get_txb_ctx_4x4
Unexecuted instantiation: encode_strategy.c:get_txb_ctx_8x8
Unexecuted instantiation: encode_strategy.c:get_txb_ctx_16x16
Unexecuted instantiation: encode_strategy.c:get_txb_ctx_32x32
Unexecuted instantiation: global_motion.c:get_txb_ctx_4x4
Unexecuted instantiation: global_motion.c:get_txb_ctx_8x8
Unexecuted instantiation: global_motion.c:get_txb_ctx_16x16
Unexecuted instantiation: global_motion.c:get_txb_ctx_32x32
Unexecuted instantiation: gop_structure.c:get_txb_ctx_4x4
Unexecuted instantiation: gop_structure.c:get_txb_ctx_8x8
Unexecuted instantiation: gop_structure.c:get_txb_ctx_16x16
Unexecuted instantiation: gop_structure.c:get_txb_ctx_32x32
Unexecuted instantiation: interp_search.c:get_txb_ctx_4x4
Unexecuted instantiation: interp_search.c:get_txb_ctx_8x8
Unexecuted instantiation: interp_search.c:get_txb_ctx_16x16
Unexecuted instantiation: interp_search.c:get_txb_ctx_32x32
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx_4x4
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx_8x8
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx_16x16
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx_32x32
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx_4x4
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx_8x8
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx_16x16
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx_32x32
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx_4x4
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx_8x8
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx_16x16
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx_32x32
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx_4x4
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx_8x8
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx_16x16
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx_32x32
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx_4x4
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx_8x8
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx_16x16
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx_32x32
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx_4x4
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx_8x8
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx_16x16
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx_32x32
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx_4x4
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx_8x8
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx_16x16
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx_32x32
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx_4x4
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx_8x8
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx_16x16
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx_32x32
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx_4x4
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx_8x8
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx_16x16
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx_32x32
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx_4x4
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx_8x8
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx_16x16
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx_32x32
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx_4x4
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx_8x8
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx_16x16
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx_32x32
430
431
161M
SPECIALIZE_GET_TXB_CTX(4, 4)
decodetxb.c:get_txb_ctx_4x4
Line
Count
Source
431
SPECIALIZE_GET_TXB_CTX(4, 4)
encodemb.c:get_txb_ctx_4x4
Line
Count
Source
431
SPECIALIZE_GET_TXB_CTX(4, 4)
encodetxb.c:get_txb_ctx_4x4
Line
Count
Source
431
SPECIALIZE_GET_TXB_CTX(4, 4)
tx_search.c:get_txb_ctx_4x4
Line
Count
Source
431
SPECIALIZE_GET_TXB_CTX(4, 4)
432
83.7M
SPECIALIZE_GET_TXB_CTX(8, 8)
decodetxb.c:get_txb_ctx_8x8
Line
Count
Source
432
SPECIALIZE_GET_TXB_CTX(8, 8)
encodemb.c:get_txb_ctx_8x8
Line
Count
Source
432
SPECIALIZE_GET_TXB_CTX(8, 8)
encodetxb.c:get_txb_ctx_8x8
Line
Count
Source
432
SPECIALIZE_GET_TXB_CTX(8, 8)
tx_search.c:get_txb_ctx_8x8
Line
Count
Source
432
SPECIALIZE_GET_TXB_CTX(8, 8)
433
10.1M
SPECIALIZE_GET_TXB_CTX(16, 16)
decodetxb.c:get_txb_ctx_16x16
Line
Count
Source
433
SPECIALIZE_GET_TXB_CTX(16, 16)
encodemb.c:get_txb_ctx_16x16
Line
Count
Source
433
SPECIALIZE_GET_TXB_CTX(16, 16)
encodetxb.c:get_txb_ctx_16x16
Line
Count
Source
433
SPECIALIZE_GET_TXB_CTX(16, 16)
tx_search.c:get_txb_ctx_16x16
Line
Count
Source
433
SPECIALIZE_GET_TXB_CTX(16, 16)
434
2.63M
SPECIALIZE_GET_TXB_CTX(32, 32)
decodetxb.c:get_txb_ctx_32x32
Line
Count
Source
434
SPECIALIZE_GET_TXB_CTX(32, 32)
encodemb.c:get_txb_ctx_32x32
Line
Count
Source
434
SPECIALIZE_GET_TXB_CTX(32, 32)
encodetxb.c:get_txb_ctx_32x32
Line
Count
Source
434
SPECIALIZE_GET_TXB_CTX(32, 32)
tx_search.c:get_txb_ctx_32x32
Line
Count
Source
434
SPECIALIZE_GET_TXB_CTX(32, 32)
435
436
// Wrapper for get_txb_ctx that calls the specialized version of get_txb_ctc_*
437
// so that the compiler can compile away the while loops.
438
static inline void get_txb_ctx(const BLOCK_SIZE plane_bsize,
439
                               const TX_SIZE tx_size, const int plane,
440
                               const ENTROPY_CONTEXT *const a,
441
                               const ENTROPY_CONTEXT *const l,
442
286M
                               TXB_CTX *const txb_ctx) {
443
286M
  switch (tx_size) {
444
161M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
445
83.7M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
446
10.1M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
447
2.63M
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
448
29.1M
    default:
449
29.1M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
450
29.1M
      break;
451
286M
  }
452
286M
}
decodetxb.c:get_txb_ctx
Line
Count
Source
442
15.7M
                               TXB_CTX *const txb_ctx) {
443
15.7M
  switch (tx_size) {
444
8.77M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
445
4.06M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
446
812k
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
447
347k
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
448
1.78M
    default:
449
1.78M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
450
1.78M
      break;
451
15.7M
  }
452
15.7M
}
Unexecuted instantiation: av1_cx_iface.c:get_txb_ctx
Unexecuted instantiation: allintra_vis.c:get_txb_ctx
Unexecuted instantiation: av1_quantize.c:get_txb_ctx
Unexecuted instantiation: bitstream.c:get_txb_ctx
Unexecuted instantiation: context_tree.c:get_txb_ctx
Unexecuted instantiation: encodeframe.c:get_txb_ctx
Unexecuted instantiation: encodeframe_utils.c:get_txb_ctx
encodemb.c:get_txb_ctx
Line
Count
Source
442
62.5M
                               TXB_CTX *const txb_ctx) {
443
62.5M
  switch (tx_size) {
444
36.4M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
445
18.1M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
446
2.52M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
447
465k
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
448
5.09M
    default:
449
5.09M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
450
5.09M
      break;
451
62.5M
  }
452
62.5M
}
Unexecuted instantiation: encodemv.c:get_txb_ctx
Unexecuted instantiation: encoder.c:get_txb_ctx
Unexecuted instantiation: encoder_utils.c:get_txb_ctx
encodetxb.c:get_txb_ctx
Line
Count
Source
442
25.6M
                               TXB_CTX *const txb_ctx) {
443
25.6M
  switch (tx_size) {
444
15.7M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
445
6.81M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
446
1.15M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
447
230k
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
448
1.66M
    default:
449
1.66M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
450
1.66M
      break;
451
25.6M
  }
452
25.6M
}
Unexecuted instantiation: ethread.c:get_txb_ctx
Unexecuted instantiation: firstpass.c:get_txb_ctx
Unexecuted instantiation: global_motion_facade.c:get_txb_ctx
Unexecuted instantiation: level.c:get_txb_ctx
Unexecuted instantiation: lookahead.c:get_txb_ctx
Unexecuted instantiation: mcomp.c:get_txb_ctx
Unexecuted instantiation: mv_prec.c:get_txb_ctx
Unexecuted instantiation: palette.c:get_txb_ctx
Unexecuted instantiation: partition_search.c:get_txb_ctx
Unexecuted instantiation: partition_strategy.c:get_txb_ctx
Unexecuted instantiation: pass2_strategy.c:get_txb_ctx
Unexecuted instantiation: pickcdef.c:get_txb_ctx
Unexecuted instantiation: picklpf.c:get_txb_ctx
Unexecuted instantiation: pickrst.c:get_txb_ctx
Unexecuted instantiation: ratectrl.c:get_txb_ctx
Unexecuted instantiation: rd.c:get_txb_ctx
Unexecuted instantiation: rdopt.c:get_txb_ctx
Unexecuted instantiation: nonrd_pickmode.c:get_txb_ctx
Unexecuted instantiation: nonrd_opt.c:get_txb_ctx
Unexecuted instantiation: segmentation.c:get_txb_ctx
Unexecuted instantiation: speed_features.c:get_txb_ctx
Unexecuted instantiation: superres_scale.c:get_txb_ctx
Unexecuted instantiation: svc_layercontext.c:get_txb_ctx
Unexecuted instantiation: temporal_filter.c:get_txb_ctx
Unexecuted instantiation: tokenize.c:get_txb_ctx
Unexecuted instantiation: tpl_model.c:get_txb_ctx
tx_search.c:get_txb_ctx
Line
Count
Source
442
182M
                               TXB_CTX *const txb_ctx) {
443
182M
  switch (tx_size) {
444
100M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
445
54.7M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
446
5.63M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
447
1.59M
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
448
20.5M
    default:
449
20.5M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
450
20.5M
      break;
451
182M
  }
452
182M
}
Unexecuted instantiation: txb_rdopt.c:get_txb_ctx
Unexecuted instantiation: intra_mode_search.c:get_txb_ctx
Unexecuted instantiation: var_based_part.c:get_txb_ctx
Unexecuted instantiation: av1_noise_estimate.c:get_txb_ctx
Unexecuted instantiation: encodetxb_sse2.c:get_txb_ctx
Unexecuted instantiation: entropy.c:get_txb_ctx
Unexecuted instantiation: entropymode.c:get_txb_ctx
Unexecuted instantiation: txb_common.c:get_txb_ctx
Unexecuted instantiation: aq_complexity.c:get_txb_ctx
Unexecuted instantiation: aq_cyclicrefresh.c:get_txb_ctx
Unexecuted instantiation: aq_variance.c:get_txb_ctx
Unexecuted instantiation: compound_type.c:get_txb_ctx
Unexecuted instantiation: encode_strategy.c:get_txb_ctx
Unexecuted instantiation: global_motion.c:get_txb_ctx
Unexecuted instantiation: gop_structure.c:get_txb_ctx
Unexecuted instantiation: interp_search.c:get_txb_ctx
Unexecuted instantiation: motion_search_facade.c:get_txb_ctx
Unexecuted instantiation: temporal_filter_sse2.c:get_txb_ctx
Unexecuted instantiation: highbd_temporal_filter_sse2.c:get_txb_ctx
Unexecuted instantiation: encodetxb_sse4.c:get_txb_ctx
Unexecuted instantiation: rdopt_sse4.c:get_txb_ctx
Unexecuted instantiation: pickrst_sse4.c:get_txb_ctx
Unexecuted instantiation: encodetxb_avx2.c:get_txb_ctx
Unexecuted instantiation: rdopt_avx2.c:get_txb_ctx
Unexecuted instantiation: temporal_filter_avx2.c:get_txb_ctx
Unexecuted instantiation: pickrst_avx2.c:get_txb_ctx
Unexecuted instantiation: highbd_temporal_filter_avx2.c:get_txb_ctx
453
#undef MAX_TX_SIZE_UNIT
454
455
#endif  // AOM_AV1_COMMON_TXB_COMMON_H_