Commit d37b83d8 authored by Jingning Han's avatar Jingning Han

Use 4x4 granularity for nearest neighbor mv search

Search the immediate neighbor for reference motion vectors in the
unit of 4x4 block size. This improves the compression performance
by 0.05%.

Change-Id: Iaf04aa2c8986de6fbc22fd56e137c1f0bcb38185
parent 7f99477a
......@@ -166,7 +166,7 @@ static uint8_t scan_row_mbmi(const AV1_COMMON *cm, const MACROBLOCKD *xd,
? mi_size_wide[BLOCK_4X4]
: mi_size_wide[BLOCK_8X8];
// TODO(jingning): Revisit this part after cb4x4 is stable.
if (bsize >= BLOCK_8X8 || abs(row_offset) > 1) row_offset *= 2;
if (abs(row_offset) > 1) row_offset *= 2;
if (bsize < BLOCK_8X8 && abs(row_offset) > 1) {
if (mi_row & 0x01) row_offset += 1;
......@@ -220,7 +220,7 @@ static uint8_t scan_col_mbmi(const AV1_COMMON *cm, const MACROBLOCKD *xd,
const int mi_offset = (bsize < BLOCK_8X8) || (abs(col_offset) > 1)
? mi_size_high[BLOCK_4X4]
: mi_size_high[BLOCK_8X8];
if (bsize >= BLOCK_8X8 || abs(col_offset) > 1) col_offset *= 2;
if (abs(col_offset) > 1) col_offset *= 2;
if (bsize < BLOCK_8X8 && abs(col_offset) > 1) {
if (mi_row & 0x01) row_offset -= 1;
......
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