Coverage Report

Created: 2025-12-31 06:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/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
18.4M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
18.4M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
18.4M
  return tx_size_high_log2[tx_size];
53
18.4M
}
decodetxb.c:get_txb_bhl
Line
Count
Source
50
18.4M
static inline int get_txb_bhl(TX_SIZE tx_size) {
51
18.4M
  tx_size = av1_get_adjusted_tx_size(tx_size);
52
18.4M
  return tx_size_high_log2[tx_size];
53
18.4M
}
Unexecuted instantiation: entropy.c:get_txb_bhl
Unexecuted instantiation: entropymode.c:get_txb_bhl
Unexecuted instantiation: txb_common.c:get_txb_bhl
54
55
18.5M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
18.5M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
18.5M
  return tx_size_wide[tx_size];
58
18.5M
}
decodetxb.c:get_txb_wide
Line
Count
Source
55
18.5M
static inline int get_txb_wide(TX_SIZE tx_size) {
56
18.5M
  tx_size = av1_get_adjusted_tx_size(tx_size);
57
18.5M
  return tx_size_wide[tx_size];
58
18.5M
}
Unexecuted instantiation: entropy.c:get_txb_wide
Unexecuted instantiation: entropymode.c:get_txb_wide
Unexecuted instantiation: txb_common.c:get_txb_wide
59
60
18.5M
static inline int get_txb_high(TX_SIZE tx_size) {
61
18.5M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
18.5M
  return tx_size_high[tx_size];
63
18.5M
}
decodetxb.c:get_txb_high
Line
Count
Source
60
18.5M
static inline int get_txb_high(TX_SIZE tx_size) {
61
18.5M
  tx_size = av1_get_adjusted_tx_size(tx_size);
62
18.5M
  return tx_size_high[tx_size];
63
18.5M
}
Unexecuted instantiation: entropy.c:get_txb_high
Unexecuted instantiation: entropymode.c:get_txb_high
Unexecuted instantiation: txb_common.c:get_txb_high
64
65
18.3M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
18.3M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
18.3M
}
decodetxb.c:set_levels
Line
Count
Source
65
18.3M
static inline uint8_t *set_levels(uint8_t *const levels_buf, const int height) {
66
18.3M
  return levels_buf + TX_PAD_TOP * (height + TX_PAD_HOR);
67
18.3M
}
Unexecuted instantiation: entropy.c:set_levels
Unexecuted instantiation: entropymode.c:set_levels
Unexecuted instantiation: txb_common.c:set_levels
68
69
452M
static inline int get_padded_idx(const int idx, const int bhl) {
70
452M
  return idx + ((idx >> bhl) << TX_PAD_HOR_LOG2);
71
452M
}
decodetxb.c:get_padded_idx
Line
Count
Source
69
452M
static inline int get_padded_idx(const int idx, const int bhl) {
70
452M
  return idx + ((idx >> bhl) << TX_PAD_HOR_LOG2);
71
452M
}
Unexecuted instantiation: entropy.c:get_padded_idx
Unexecuted instantiation: entropymode.c:get_padded_idx
Unexecuted instantiation: txb_common.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
8.04M
                                const int bhl) {
76
8.04M
  assert(c > 0);
77
8.04M
  const int col = c >> bhl;
78
8.04M
  const int row = c - (col << bhl);
79
8.04M
  const int stride = (1 << bhl) + TX_PAD_HOR;
80
8.04M
  const int pos = col * stride + row;
81
8.04M
  int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) +
82
8.04M
            AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) +
83
8.04M
            AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE);
84
8.04M
  mag = AOMMIN((mag + 1) >> 1, 6);
85
  //((row | col) < 2) is equivalent to ((row < 2) && (col < 2))
86
8.04M
  if ((row | col) < 2) return mag + 7;
87
6.62M
  return mag + 14;
88
8.04M
}
decodetxb.c:get_br_ctx_2d
Line
Count
Source
75
8.04M
                                const int bhl) {
76
8.04M
  assert(c > 0);
77
8.04M
  const int col = c >> bhl;
78
8.04M
  const int row = c - (col << bhl);
79
8.04M
  const int stride = (1 << bhl) + TX_PAD_HOR;
80
8.04M
  const int pos = col * stride + row;
81
8.04M
  int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) +
82
8.04M
            AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) +
83
8.04M
            AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE);
84
8.04M
  mag = AOMMIN((mag + 1) >> 1, 6);
85
  //((row | col) < 2) is equivalent to ((row < 2) && (col < 2))
86
8.04M
  if ((row | col) < 2) return mag + 7;
87
6.62M
  return mag + 14;
88
8.04M
}
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
89
90
static AOM_FORCE_INLINE int get_br_ctx_eob(const int c,  // raster order
91
                                           const int bhl,
92
317k
                                           const TX_CLASS tx_class) {
93
317k
  const int col = c >> bhl;
94
317k
  const int row = c - (col << bhl);
95
317k
  if (c == 0) return 0;
96
62.4k
  if ((tx_class == TX_CLASS_2D && row < 2 && col < 2) ||
97
58.1k
      (tx_class == TX_CLASS_HORIZ && col == 0) ||
98
57.0k
      (tx_class == TX_CLASS_VERT && row == 0))
99
5.58k
    return 7;
100
56.8k
  return 14;
101
62.4k
}
decodetxb.c:get_br_ctx_eob
Line
Count
Source
92
317k
                                           const TX_CLASS tx_class) {
93
317k
  const int col = c >> bhl;
94
317k
  const int row = c - (col << bhl);
95
317k
  if (c == 0) return 0;
96
62.4k
  if ((tx_class == TX_CLASS_2D && row < 2 && col < 2) ||
97
58.1k
      (tx_class == TX_CLASS_HORIZ && col == 0) ||
98
57.0k
      (tx_class == TX_CLASS_VERT && row == 0))
99
5.58k
    return 7;
100
56.8k
  return 14;
101
62.4k
}
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
102
103
static AOM_FORCE_INLINE int get_br_ctx(const uint8_t *const levels,
104
                                       const int c,  // raster order
105
2.51M
                                       const int bhl, const TX_CLASS tx_class) {
106
2.51M
  const int col = c >> bhl;
107
2.51M
  const int row = c - (col << bhl);
108
2.51M
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
2.51M
  const int pos = col * stride + row;
110
2.51M
  int mag = levels[pos + 1];
111
2.51M
  mag += levels[pos + stride];
112
2.51M
  switch (tx_class) {
113
1.91M
    case TX_CLASS_2D:
114
1.91M
      mag += levels[pos + stride + 1];
115
1.91M
      mag = AOMMIN((mag + 1) >> 1, 6);
116
1.91M
      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
405k
      mag += levels[pos + (stride << 1)];
121
405k
      mag = AOMMIN((mag + 1) >> 1, 6);
122
405k
      if (c == 0) return mag;
123
362k
      if (col == 0) return mag + 7;
124
187k
      break;
125
197k
    case TX_CLASS_VERT:
126
197k
      mag += levels[pos + 2];
127
197k
      mag = AOMMIN((mag + 1) >> 1, 6);
128
197k
      if (c == 0) return mag;
129
177k
      if (row == 0) return mag + 7;
130
90.6k
      break;
131
90.6k
    default: break;
132
2.51M
  }
133
134
280k
  return mag + 14;
135
2.51M
}
decodetxb.c:get_br_ctx
Line
Count
Source
105
2.51M
                                       const int bhl, const TX_CLASS tx_class) {
106
2.51M
  const int col = c >> bhl;
107
2.51M
  const int row = c - (col << bhl);
108
2.51M
  const int stride = (1 << bhl) + TX_PAD_HOR;
109
2.51M
  const int pos = col * stride + row;
110
2.51M
  int mag = levels[pos + 1];
111
2.51M
  mag += levels[pos + stride];
112
2.51M
  switch (tx_class) {
113
1.91M
    case TX_CLASS_2D:
114
1.91M
      mag += levels[pos + stride + 1];
115
1.91M
      mag = AOMMIN((mag + 1) >> 1, 6);
116
1.91M
      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
405k
      mag += levels[pos + (stride << 1)];
121
405k
      mag = AOMMIN((mag + 1) >> 1, 6);
122
405k
      if (c == 0) return mag;
123
362k
      if (col == 0) return mag + 7;
124
187k
      break;
125
197k
    case TX_CLASS_VERT:
126
197k
      mag += levels[pos + 2];
127
197k
      mag = AOMMIN((mag + 1) >> 1, 6);
128
197k
      if (c == 0) return mag;
129
177k
      if (row == 0) return mag + 7;
130
90.6k
      break;
131
90.6k
    default: break;
132
2.51M
  }
133
134
280k
  return mag + 14;
135
2.51M
}
Unexecuted instantiation: entropy.c:get_br_ctx
Unexecuted instantiation: entropymode.c:get_br_ctx
Unexecuted instantiation: txb_common.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
17.9M
                                       const int bhl, const TX_CLASS tx_class) {
152
17.9M
  int mag;
153
154
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
155
17.9M
  mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]];  // { 0, 1 }
156
17.9M
  mag += clip_max3[levels[1]];                       // { 1, 0 }
157
158
17.9M
  if (tx_class == TX_CLASS_2D) {
159
5.59M
    mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]];          // { 1, 1 }
160
5.59M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
161
5.59M
    mag += clip_max3[levels[2]];                                    // { 2, 0 }
162
12.3M
  } else if (tx_class == TX_CLASS_VERT) {
163
4.07M
    mag += clip_max3[levels[2]];  // { 2, 0 }
164
4.07M
    mag += clip_max3[levels[3]];  // { 3, 0 }
165
4.07M
    mag += clip_max3[levels[4]];  // { 4, 0 }
166
8.28M
  } else {
167
8.28M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
168
8.28M
    mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]];  // { 0, 3 }
169
8.28M
    mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]];  // { 0, 4 }
170
8.28M
  }
171
172
17.9M
  return mag;
173
17.9M
}
decodetxb.c:get_nz_mag
Line
Count
Source
151
17.9M
                                       const int bhl, const TX_CLASS tx_class) {
152
17.9M
  int mag;
153
154
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
155
17.9M
  mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]];  // { 0, 1 }
156
17.9M
  mag += clip_max3[levels[1]];                       // { 1, 0 }
157
158
17.9M
  if (tx_class == TX_CLASS_2D) {
159
5.59M
    mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]];          // { 1, 1 }
160
5.59M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
161
5.59M
    mag += clip_max3[levels[2]];                                    // { 2, 0 }
162
12.3M
  } else if (tx_class == TX_CLASS_VERT) {
163
4.07M
    mag += clip_max3[levels[2]];  // { 2, 0 }
164
4.07M
    mag += clip_max3[levels[3]];  // { 3, 0 }
165
4.07M
    mag += clip_max3[levels[4]];  // { 4, 0 }
166
8.28M
  } else {
167
8.28M
    mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]];  // { 0, 2 }
168
8.28M
    mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]];  // { 0, 3 }
169
8.28M
    mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]];  // { 0, 4 }
170
8.28M
  }
171
172
17.9M
  return mag;
173
17.9M
}
Unexecuted instantiation: entropy.c:get_nz_mag
Unexecuted instantiation: entropymode.c:get_nz_mag
Unexecuted instantiation: txb_common.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
17.9M
    const int bhl, const TX_SIZE tx_size, const TX_CLASS tx_class) {
193
  // tx_class == 0(TX_CLASS_2D)
194
17.9M
  if ((tx_class | coeff_idx) == 0) return 0;
195
12.3M
  int ctx = (stats + 1) >> 1;
196
12.3M
  ctx = AOMMIN(ctx, 4);
197
12.3M
  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
8.42M
    case TX_CLASS_HORIZ: {
213
8.42M
      const int col = coeff_idx >> bhl;
214
8.42M
      return ctx + nz_map_ctx_offset_1d[col];
215
0
    }
216
4.07M
    case TX_CLASS_VERT: {
217
4.07M
      const int col = coeff_idx >> bhl;
218
4.07M
      const int row = coeff_idx - (col << bhl);
219
4.07M
      return ctx + nz_map_ctx_offset_1d[row];
220
0
    }
221
0
    default: break;
222
12.3M
  }
223
0
  return 0;
224
12.3M
}
decodetxb.c:get_nz_map_ctx_from_stats
Line
Count
Source
192
17.9M
    const int bhl, const TX_SIZE tx_size, const TX_CLASS tx_class) {
193
  // tx_class == 0(TX_CLASS_2D)
194
17.9M
  if ((tx_class | coeff_idx) == 0) return 0;
195
12.3M
  int ctx = (stats + 1) >> 1;
196
12.3M
  ctx = AOMMIN(ctx, 4);
197
12.3M
  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
8.42M
    case TX_CLASS_HORIZ: {
213
8.42M
      const int col = coeff_idx >> bhl;
214
8.42M
      return ctx + nz_map_ctx_offset_1d[col];
215
0
    }
216
4.07M
    case TX_CLASS_VERT: {
217
4.07M
      const int col = coeff_idx >> bhl;
218
4.07M
      const int row = coeff_idx - (col << bhl);
219
4.07M
      return ctx + nz_map_ctx_offset_1d[row];
220
0
    }
221
0
    default: break;
222
12.3M
  }
223
0
  return 0;
224
12.3M
}
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
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
10.5M
static inline int get_lower_levels_ctx_eob(int bhl, int width, int scan_idx) {
230
10.5M
  if (scan_idx == 0) return 0;
231
6.27M
  if (scan_idx <= (width << bhl) / 8) return 1;
232
2.92M
  if (scan_idx <= (width << bhl) / 4) return 2;
233
1.99M
  return 3;
234
2.92M
}
decodetxb.c:get_lower_levels_ctx_eob
Line
Count
Source
229
10.5M
static inline int get_lower_levels_ctx_eob(int bhl, int width, int scan_idx) {
230
10.5M
  if (scan_idx == 0) return 0;
231
6.27M
  if (scan_idx <= (width << bhl) / 8) return 1;
232
2.92M
  if (scan_idx <= (width << bhl) / 4) return 2;
233
1.99M
  return 3;
234
2.92M
}
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
235
236
static inline int get_lower_levels_ctx_2d(const uint8_t *levels, int coeff_idx,
237
128M
                                          int bhl, TX_SIZE tx_size) {
238
128M
  assert(coeff_idx > 0);
239
128M
  int mag;
240
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
241
128M
  levels = levels + get_padded_idx(coeff_idx, bhl);
242
128M
  mag = AOMMIN(levels[(1 << bhl) + TX_PAD_HOR], 3);               // { 0, 1 }
243
128M
  mag += AOMMIN(levels[1], 3);                                    // { 1, 0 }
244
128M
  mag += AOMMIN(levels[(1 << bhl) + TX_PAD_HOR + 1], 3);          // { 1, 1 }
245
128M
  mag += AOMMIN(levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)], 3);  // { 0, 2 }
246
128M
  mag += AOMMIN(levels[2], 3);                                    // { 2, 0 }
247
248
128M
  const int ctx = AOMMIN((mag + 1) >> 1, 4);
249
128M
  return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
250
128M
}
decodetxb.c:get_lower_levels_ctx_2d
Line
Count
Source
237
128M
                                          int bhl, TX_SIZE tx_size) {
238
128M
  assert(coeff_idx > 0);
239
128M
  int mag;
240
  // Note: AOMMIN(level, 3) is useless for decoder since level < 3.
241
128M
  levels = levels + get_padded_idx(coeff_idx, bhl);
242
128M
  mag = AOMMIN(levels[(1 << bhl) + TX_PAD_HOR], 3);               // { 0, 1 }
243
128M
  mag += AOMMIN(levels[1], 3);                                    // { 1, 0 }
244
128M
  mag += AOMMIN(levels[(1 << bhl) + TX_PAD_HOR + 1], 3);          // { 1, 1 }
245
128M
  mag += AOMMIN(levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)], 3);  // { 0, 2 }
246
128M
  mag += AOMMIN(levels[2], 3);                                    // { 2, 0 }
247
248
128M
  const int ctx = AOMMIN((mag + 1) >> 1, 4);
249
128M
  return ctx + av1_nz_map_ctx_offset[tx_size][coeff_idx];
250
128M
}
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
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
17.9M
                                                 TX_CLASS tx_class) {
255
17.9M
  const int stats =
256
17.9M
      get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class);
257
17.9M
  return get_nz_map_ctx_from_stats(stats, coeff_idx, bhl, tx_size, tx_class);
258
17.9M
}
decodetxb.c:get_lower_levels_ctx
Line
Count
Source
254
17.9M
                                                 TX_CLASS tx_class) {
255
17.9M
  const int stats =
256
17.9M
      get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class);
257
17.9M
  return get_nz_map_ctx_from_stats(stats, coeff_idx, bhl, tx_size, tx_class);
258
17.9M
}
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
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
0
                                               TX_CLASS tx_class) {
265
0
  if (is_last) {
266
0
    if (scan_idx == 0) return 0;
267
0
    if (scan_idx <= (width << bhl) >> 3) return 1;
268
0
    if (scan_idx <= (width << bhl) >> 2) return 2;
269
0
    return 3;
270
0
  }
271
0
  return get_lower_levels_ctx(levels, coeff_idx, bhl, tx_size, tx_class);
272
0
}
Unexecuted instantiation: decodetxb.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
273
274
10.4M
static inline void set_dc_sign(int *cul_level, int dc_val) {
275
10.4M
  if (dc_val < 0)
276
2.80M
    *cul_level |= 1 << COEFF_CONTEXT_BITS;
277
7.68M
  else if (dc_val > 0)
278
5.89M
    *cul_level += 2 << COEFF_CONTEXT_BITS;
279
10.4M
}
decodetxb.c:set_dc_sign
Line
Count
Source
274
10.4M
static inline void set_dc_sign(int *cul_level, int dc_val) {
275
10.4M
  if (dc_val < 0)
276
2.80M
    *cul_level |= 1 << COEFF_CONTEXT_BITS;
277
7.68M
  else if (dc_val > 0)
278
5.89M
    *cul_level += 2 << COEFF_CONTEXT_BITS;
279
10.4M
}
Unexecuted instantiation: entropy.c:set_dc_sign
Unexecuted instantiation: entropymode.c:set_dc_sign
Unexecuted instantiation: txb_common.c:set_dc_sign
280
281
static void get_txb_ctx_general(const BLOCK_SIZE plane_bsize,
282
                                const TX_SIZE tx_size, const int plane,
283
                                const ENTROPY_CONTEXT *const a,
284
                                const ENTROPY_CONTEXT *const l,
285
9.23M
                                TXB_CTX *const txb_ctx) {
286
18.7M
#define MAX_TX_SIZE_UNIT 16
287
9.23M
  static const int8_t signs[3] = { 0, -1, 1 };
288
9.23M
  static const int8_t dc_sign_contexts[4 * MAX_TX_SIZE_UNIT + 1] = {
289
9.23M
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
290
9.23M
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
291
9.23M
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
292
9.23M
  };
293
9.23M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
294
9.23M
  const int txb_h_unit = tx_size_high_unit[tx_size];
295
9.23M
  int dc_sign = 0;
296
9.23M
  int k = 0;
297
298
41.3M
  do {
299
41.3M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
300
41.3M
    assert(sign <= 2);
301
41.3M
    dc_sign += signs[sign];
302
41.3M
  } while (++k < txb_w_unit);
303
304
9.23M
  k = 0;
305
25.8M
  do {
306
25.8M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
307
25.8M
    assert(sign <= 2);
308
25.8M
    dc_sign += signs[sign];
309
25.8M
  } while (++k < txb_h_unit);
310
311
9.22M
  txb_ctx->dc_sign_ctx = dc_sign_contexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
312
313
9.22M
  if (plane == 0) {
314
3.89M
    if (plane_bsize == txsize_to_bsize[tx_size]) {
315
3.57M
      txb_ctx->txb_skip_ctx = 0;
316
3.57M
    } else {
317
      // This is the algorithm to generate table skip_contexts[top][left].
318
      //    const int max = AOMMIN(top | left, 4);
319
      //    const int min = AOMMIN(AOMMIN(top, left), 4);
320
      //    if (!max)
321
      //      txb_skip_ctx = 1;
322
      //    else if (!min)
323
      //      txb_skip_ctx = 2 + (max > 3);
324
      //    else if (max <= 3)
325
      //      txb_skip_ctx = 4;
326
      //    else if (min <= 3)
327
      //      txb_skip_ctx = 5;
328
      //    else
329
      //      txb_skip_ctx = 6;
330
322k
      static const uint8_t skip_contexts[5][5] = { { 1, 2, 2, 2, 3 },
331
322k
                                                   { 2, 4, 4, 4, 5 },
332
322k
                                                   { 2, 4, 4, 4, 5 },
333
322k
                                                   { 2, 4, 4, 4, 5 },
334
322k
                                                   { 3, 5, 5, 5, 6 } };
335
      // For top and left, we only care about which of the following three
336
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
337
      // spec calculates top and left with the Max() function. We can calculate
338
      // an approximate max with bitwise OR because the real max and the
339
      // approximate max belong to the same category.
340
322k
      int top = 0;
341
322k
      int left = 0;
342
343
322k
      k = 0;
344
3.51M
      do {
345
3.51M
        top |= a[k];
346
3.51M
      } while (++k < txb_w_unit);
347
322k
      top &= COEFF_CONTEXT_MASK;
348
322k
      top = AOMMIN(top, 4);
349
350
322k
      k = 0;
351
3.45M
      do {
352
3.45M
        left |= l[k];
353
3.45M
      } while (++k < txb_h_unit);
354
322k
      left &= COEFF_CONTEXT_MASK;
355
322k
      left = AOMMIN(left, 4);
356
357
322k
      txb_ctx->txb_skip_ctx = skip_contexts[top][left];
358
322k
    }
359
5.33M
  } else {
360
5.33M
    const int ctx_base = get_entropy_context(tx_size, a, l);
361
5.33M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
362
5.33M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
363
5.33M
                               ? 10
364
5.33M
                               : 7;
365
5.33M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
366
5.33M
  }
367
9.22M
}
decodetxb.c:get_txb_ctx_general
Line
Count
Source
285
9.23M
                                TXB_CTX *const txb_ctx) {
286
9.23M
#define MAX_TX_SIZE_UNIT 16
287
9.23M
  static const int8_t signs[3] = { 0, -1, 1 };
288
9.23M
  static const int8_t dc_sign_contexts[4 * MAX_TX_SIZE_UNIT + 1] = {
289
9.23M
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
290
9.23M
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
291
9.23M
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
292
9.23M
  };
293
9.23M
  const int txb_w_unit = tx_size_wide_unit[tx_size];
294
9.23M
  const int txb_h_unit = tx_size_high_unit[tx_size];
295
9.23M
  int dc_sign = 0;
296
9.23M
  int k = 0;
297
298
41.3M
  do {
299
41.3M
    const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;
300
41.3M
    assert(sign <= 2);
301
41.3M
    dc_sign += signs[sign];
302
41.3M
  } while (++k < txb_w_unit);
303
304
9.23M
  k = 0;
305
25.8M
  do {
306
25.8M
    const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;
307
25.8M
    assert(sign <= 2);
308
25.8M
    dc_sign += signs[sign];
309
25.8M
  } while (++k < txb_h_unit);
310
311
9.22M
  txb_ctx->dc_sign_ctx = dc_sign_contexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];
312
313
9.22M
  if (plane == 0) {
314
3.89M
    if (plane_bsize == txsize_to_bsize[tx_size]) {
315
3.57M
      txb_ctx->txb_skip_ctx = 0;
316
3.57M
    } else {
317
      // This is the algorithm to generate table skip_contexts[top][left].
318
      //    const int max = AOMMIN(top | left, 4);
319
      //    const int min = AOMMIN(AOMMIN(top, left), 4);
320
      //    if (!max)
321
      //      txb_skip_ctx = 1;
322
      //    else if (!min)
323
      //      txb_skip_ctx = 2 + (max > 3);
324
      //    else if (max <= 3)
325
      //      txb_skip_ctx = 4;
326
      //    else if (min <= 3)
327
      //      txb_skip_ctx = 5;
328
      //    else
329
      //      txb_skip_ctx = 6;
330
322k
      static const uint8_t skip_contexts[5][5] = { { 1, 2, 2, 2, 3 },
331
322k
                                                   { 2, 4, 4, 4, 5 },
332
322k
                                                   { 2, 4, 4, 4, 5 },
333
322k
                                                   { 2, 4, 4, 4, 5 },
334
322k
                                                   { 3, 5, 5, 5, 6 } };
335
      // For top and left, we only care about which of the following three
336
      // categories they belong to: { 0 }, { 1, 2, 3 }, or { 4, 5, ... }. The
337
      // spec calculates top and left with the Max() function. We can calculate
338
      // an approximate max with bitwise OR because the real max and the
339
      // approximate max belong to the same category.
340
322k
      int top = 0;
341
322k
      int left = 0;
342
343
322k
      k = 0;
344
3.51M
      do {
345
3.51M
        top |= a[k];
346
3.51M
      } while (++k < txb_w_unit);
347
322k
      top &= COEFF_CONTEXT_MASK;
348
322k
      top = AOMMIN(top, 4);
349
350
322k
      k = 0;
351
3.45M
      do {
352
3.45M
        left |= l[k];
353
3.45M
      } while (++k < txb_h_unit);
354
322k
      left &= COEFF_CONTEXT_MASK;
355
322k
      left = AOMMIN(left, 4);
356
357
322k
      txb_ctx->txb_skip_ctx = skip_contexts[top][left];
358
322k
    }
359
5.33M
  } else {
360
5.33M
    const int ctx_base = get_entropy_context(tx_size, a, l);
361
5.33M
    const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >
362
5.33M
                            num_pels_log2_lookup[txsize_to_bsize[tx_size]])
363
5.33M
                               ? 10
364
5.33M
                               : 7;
365
5.33M
    txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;
366
5.33M
  }
367
9.22M
}
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
368
369
#define SPECIALIZE_GET_TXB_CTX(w, h)                                          \
370
  static void get_txb_ctx_##w##x##h(                                          \
371
      const BLOCK_SIZE plane_bsize, const int plane,                          \
372
      const ENTROPY_CONTEXT *const a, const ENTROPY_CONTEXT *const l,         \
373
9.46M
      TXB_CTX *const txb_ctx) {                                               \
374
9.46M
    static const int8_t signs[3] = { 0, -1, 1 };                              \
375
9.46M
    static const int8_t dc_sign_contexts[4 * MAX_TX_SIZE_UNIT + 1] = {        \
376
9.46M
      1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,       \
377
9.46M
      1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,       \
378
9.46M
      2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2           \
379
9.46M
    };                                                                        \
380
9.46M
    const TX_SIZE tx_size = TX_##w##X##h;                                     \
381
9.46M
    const int txb_w_unit = tx_size_wide_unit[tx_size];                        \
382
9.46M
    const int txb_h_unit = tx_size_high_unit[tx_size];                        \
383
9.46M
    int dc_sign = 0;                                                          \
384
9.46M
    int k = 0;                                                                \
385
9.46M
                                                                              \
386
25.9M
    do {                                                                      \
387
25.9M
      const unsigned int sign = ((uint8_t)a[k]) >> COEFF_CONTEXT_BITS;        \
388
25.9M
      assert(sign <= 2);                                                      \
389
25.9M
      dc_sign += signs[sign];                                                 \
390
25.9M
    } while (++k < txb_w_unit);                                               \
391
9.46M
                                                                              \
392
9.46M
    k = 0;                                                                    \
393
25.9M
    do {                                                                      \
394
25.9M
      const unsigned int sign = ((uint8_t)l[k]) >> COEFF_CONTEXT_BITS;        \
395
25.9M
      assert(sign <= 2);                                                      \
396
25.9M
      dc_sign += signs[sign];                                                 \
397
25.9M
    } while (++k < txb_h_unit);                                               \
398
9.46M
                                                                              \
399
9.47M
    txb_ctx->dc_sign_ctx = dc_sign_contexts[dc_sign + 2 * MAX_TX_SIZE_UNIT];  \
400
9.47M
                                                                              \
401
9.47M
    if (plane == 0) {                                                         \
402
3.91M
      if (plane_bsize == txsize_to_bsize[tx_size]) {                          \
403
2.03M
        txb_ctx->txb_skip_ctx = 0;                                            \
404
2.03M
      } else {                                                                \
405
1.88M
        static const uint8_t skip_contexts[5][5] = { { 1, 2, 2, 2, 3 },       \
406
1.88M
                                                     { 2, 4, 4, 4, 5 },       \
407
1.88M
                                                     { 2, 4, 4, 4, 5 },       \
408
1.88M
                                                     { 2, 4, 4, 4, 5 },       \
409
1.88M
                                                     { 3, 5, 5, 5, 6 } };     \
410
1.88M
        int top = 0;                                                          \
411
1.88M
        int left = 0;                                                         \
412
1.88M
                                                                              \
413
1.88M
        k = 0;                                                                \
414
3.23M
        do {                                                                  \
415
3.23M
          top |= a[k];                                                        \
416
3.23M
        } while (++k < txb_w_unit);                                           \
417
1.88M
        top &= COEFF_CONTEXT_MASK;                                            \
418
1.88M
        top = AOMMIN(top, 4);                                                 \
419
1.88M
                                                                              \
420
1.88M
        k = 0;                                                                \
421
3.23M
        do {                                                                  \
422
3.23M
          left |= l[k];                                                       \
423
3.23M
        } while (++k < txb_h_unit);                                           \
424
1.88M
        left &= COEFF_CONTEXT_MASK;                                           \
425
1.88M
        left = AOMMIN(left, 4);                                               \
426
1.88M
                                                                              \
427
1.88M
        txb_ctx->txb_skip_ctx = skip_contexts[top][left];                     \
428
1.88M
      }                                                                       \
429
5.56M
    } else {                                                                  \
430
5.56M
      const int ctx_base = get_entropy_context(tx_size, a, l);                \
431
5.56M
      const int ctx_offset = (num_pels_log2_lookup[plane_bsize] >             \
432
5.56M
                              num_pels_log2_lookup[txsize_to_bsize[tx_size]]) \
433
5.56M
                                 ? 10                                         \
434
5.56M
                                 : 7;                                         \
435
5.56M
      txb_ctx->txb_skip_ctx = ctx_base + ctx_offset;                          \
436
5.56M
    }                                                                         \
437
9.47M
  }
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
438
439
3.85M
SPECIALIZE_GET_TXB_CTX(4, 4)
440
2.53M
SPECIALIZE_GET_TXB_CTX(8, 8)
441
1.88M
SPECIALIZE_GET_TXB_CTX(16, 16)
442
1.18M
SPECIALIZE_GET_TXB_CTX(32, 32)
443
444
// Wrapper for get_txb_ctx that calls the specialized version of get_txb_ctc_*
445
// so that the compiler can compile away the while loops.
446
static inline void get_txb_ctx(const BLOCK_SIZE plane_bsize,
447
                               const TX_SIZE tx_size, const int plane,
448
                               const ENTROPY_CONTEXT *const a,
449
                               const ENTROPY_CONTEXT *const l,
450
18.6M
                               TXB_CTX *const txb_ctx) {
451
18.6M
  switch (tx_size) {
452
3.87M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
453
2.54M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
454
1.88M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
455
1.18M
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
456
9.23M
    default:
457
9.23M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
458
9.23M
      break;
459
18.6M
  }
460
18.6M
}
decodetxb.c:get_txb_ctx
Line
Count
Source
450
18.6M
                               TXB_CTX *const txb_ctx) {
451
18.6M
  switch (tx_size) {
452
3.87M
    case TX_4X4: get_txb_ctx_4x4(plane_bsize, plane, a, l, txb_ctx); break;
453
2.54M
    case TX_8X8: get_txb_ctx_8x8(plane_bsize, plane, a, l, txb_ctx); break;
454
1.88M
    case TX_16X16: get_txb_ctx_16x16(plane_bsize, plane, a, l, txb_ctx); break;
455
1.18M
    case TX_32X32: get_txb_ctx_32x32(plane_bsize, plane, a, l, txb_ctx); break;
456
9.23M
    default:
457
9.23M
      get_txb_ctx_general(plane_bsize, tx_size, plane, a, l, txb_ctx);
458
9.23M
      break;
459
18.6M
  }
460
18.6M
}
Unexecuted instantiation: entropy.c:get_txb_ctx
Unexecuted instantiation: entropymode.c:get_txb_ctx
Unexecuted instantiation: txb_common.c:get_txb_ctx
461
#undef MAX_TX_SIZE_UNIT
462
463
#endif  // AOM_AV1_COMMON_TXB_COMMON_H_