Lines Matching full:levels
73 static inline int get_br_ctx_2d(const uint8_t *const levels, in get_br_ctx_2d() argument
81 int mag = AOMMIN(levels[pos + 1], MAX_BASE_BR_RANGE) + in get_br_ctx_2d()
82 AOMMIN(levels[pos + stride], MAX_BASE_BR_RANGE) + in get_br_ctx_2d()
83 AOMMIN(levels[pos + 1 + stride], MAX_BASE_BR_RANGE); in get_br_ctx_2d()
103 static AOM_FORCE_INLINE int get_br_ctx(const uint8_t *const levels, in get_br_ctx() argument
110 int mag = levels[pos + 1]; in get_br_ctx()
111 mag += levels[pos + stride]; in get_br_ctx()
114 mag += levels[pos + stride + 1]; in get_br_ctx()
120 mag += levels[pos + (stride << 1)]; in get_br_ctx()
126 mag += levels[pos + 2]; in get_br_ctx()
150 static AOM_FORCE_INLINE int get_nz_mag(const uint8_t *const levels, in get_nz_mag() argument
155 mag = clip_max3[levels[(1 << bhl) + TX_PAD_HOR]]; // { 0, 1 } in get_nz_mag()
156 mag += clip_max3[levels[1]]; // { 1, 0 } in get_nz_mag()
159 mag += clip_max3[levels[(1 << bhl) + TX_PAD_HOR + 1]]; // { 1, 1 } in get_nz_mag()
160 mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]]; // { 0, 2 } in get_nz_mag()
161 mag += clip_max3[levels[2]]; // { 2, 0 } in get_nz_mag()
163 mag += clip_max3[levels[2]]; // { 2, 0 } in get_nz_mag()
164 mag += clip_max3[levels[3]]; // { 3, 0 } in get_nz_mag()
165 mag += clip_max3[levels[4]]; // { 4, 0 } in get_nz_mag()
167 mag += clip_max3[levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)]]; // { 0, 2 } in get_nz_mag()
168 mag += clip_max3[levels[(3 << bhl) + (3 << TX_PAD_HOR_LOG2)]]; // { 0, 3 } in get_nz_mag()
169 mag += clip_max3[levels[(4 << bhl) + (4 << TX_PAD_HOR_LOG2)]]; // { 0, 4 } in get_nz_mag()
236 static inline int get_lower_levels_ctx_2d(const uint8_t *levels, int coeff_idx, in get_lower_levels_ctx_2d() argument
241 levels = levels + get_padded_idx(coeff_idx, bhl); in get_lower_levels_ctx_2d()
242 mag = AOMMIN(levels[(1 << bhl) + TX_PAD_HOR], 3); // { 0, 1 } in get_lower_levels_ctx_2d()
243 mag += AOMMIN(levels[1], 3); // { 1, 0 } in get_lower_levels_ctx_2d()
244 mag += AOMMIN(levels[(1 << bhl) + TX_PAD_HOR + 1], 3); // { 1, 1 } in get_lower_levels_ctx_2d()
245 mag += AOMMIN(levels[(2 << bhl) + (2 << TX_PAD_HOR_LOG2)], 3); // { 0, 2 } in get_lower_levels_ctx_2d()
246 mag += AOMMIN(levels[2], 3); // { 2, 0 } in get_lower_levels_ctx_2d()
251 static AOM_FORCE_INLINE int get_lower_levels_ctx(const uint8_t *levels, in get_lower_levels_ctx() argument
256 get_nz_mag(levels + get_padded_idx(coeff_idx, bhl), bhl, tx_class); in get_lower_levels_ctx()
262 const uint8_t *levels, in get_lower_levels_ctx_general() argument
271 return get_lower_levels_ctx(levels, coeff_idx, bhl, tx_size, tx_class); in get_lower_levels_ctx_general()