Commit 2837b417 authored by Jingning Han's avatar Jingning Han
Browse files

Fix has_top_right() logic

If a coding block is in the top row of a 64x64 (or 128x128) block,
its top-right corner should be available. No major coding performance
change is observed.

Change-Id: I0ee23db313cd53b34b7bc28230705f1cb1f8fe89
parent 637590cd
......@@ -258,6 +258,8 @@ static int has_top_right(const MACROBLOCKD *xd, int mi_row, int mi_col,
// bs > 0 and bs is a power of 2
assert(bs > 0 && !(bs & (bs - 1)));
if ((mi_row & MAX_MIB_MASK) == 0) return has_tr;
// For each 4x4 group of blocks, when the bottom right is decoded the blocks
// to the right have not been decoded therefore the bottom right does
// not have a top right
Supports Markdown
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