Commit 676c25cd authored by Ryan's avatar Ryan Committed by Ryan Lei

fix the calculation for super_block_upper_left

the original calculation for super_block_upper_left calculation is
wrong. this flag is true even for 32x32 block boundary. also it is not
consistent with other places where this flag is calculated.

Change-Id: I6b7b613d1f81eb11d27c67491375f6c1a47878e1
parent 8fd5c128
......@@ -1611,7 +1611,8 @@ static void update_stats(const AV1_COMMON *const cm, ThreadData *td, int mi_row,
#if CONFIG_DELTA_Q
// delta quant applies to both intra and inter
const int super_block_upper_left = ((mi_row & 7) == 0) && ((mi_col & 7) == 0);
int super_block_upper_left =
((mi_row & MAX_MIB_MASK) == 0) && ((mi_col & MAX_MIB_MASK) == 0);
if (cm->delta_q_present_flag && (bsize != BLOCK_64X64 || !mbmi->skip) &&
super_block_upper_left) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment