Commit ea190906 authored by Hui Su's avatar Hui Su
Browse files

[NORMATIVE]Fix has_top_right() for 128x* blocks

Before this fix, have_top_right for the complete right half of the
sb128 is disabled.

Borg test results don't show any compression changes. Probably 128x*
blocks are very rarely chosen for intra modes.


Change-Id: I66a0573c029e7e3d440014842b5d031190d89f89
parent 53eaf8f2
......@@ -273,9 +273,11 @@ static int has_top_right(const AV1_COMMON *cm, BLOCK_SIZE bsize, int mi_row,
if (row_off > 0) { // Just need to check if enough pixels on the right.
if (col_off + top_right_count_unit >=
(block_size_wide[BLOCK_64X64] >> (tx_size_wide_log2[0] + ss_x)))
return 0;
if (block_size_wide[bsize] > block_size_wide[BLOCK_64X64]) {
const int plane_bw_unit_64 = mi_size_wide[BLOCK_64X64] >> ss_x;
const int col_off_64 = col_off % plane_bw_unit_64;
return col_off_64 + top_right_count_unit < plane_bw_unit_64;
return col_off + top_right_count_unit < plane_bw_unit;
} else {
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