Commit 906be078 authored by Jingning Han's avatar Jingning Han

Synchronize tx_size counts in the decoder

Make both encoder and decoder use depth index for frame count.

Change-Id: I96dddffc0a83ad5e4e2847b15391e01ba01ee502
parent 70c0df29
......@@ -353,7 +353,7 @@ static TX_SIZE read_selected_tx_size(AV1_COMMON *cm, MACROBLOCKD *xd,
int depth = aom_read_tree(r, av1_tx_size_tree[tx_size_cat],
cm->fc->tx_size_probs[tx_size_cat][ctx], ACCT_STR);
TX_SIZE tx_size = depth_to_tx_size(depth);
if (counts) ++counts->tx_size[tx_size_cat][ctx][tx_size];
if (counts) ++counts->tx_size[tx_size_cat][ctx][depth];
return tx_size;
}
......
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