From 883c63ca57a09260dc73e03a688139ee233186ab Mon Sep 17 00:00:00 2001 From: Jingning Han Date: Fri, 30 Sep 2016 09:04:21 -0700 Subject: [PATCH] Search collocated reference block in 16x16 unit Use 16x16 block resolution for collocated reference motion vector search. Change-Id: I1091b5b178e255eb6cc0b994de360994f7661b79 --- av1/common/mvref_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/av1/common/mvref_common.c b/av1/common/mvref_common.c index 0f3f9495e..2b63fd5ca 100644 --- a/av1/common/mvref_common.c +++ b/av1/common/mvref_common.c @@ -399,8 +399,8 @@ static void setup_ref_mv_list(const AV1_COMMON *cm, const MACROBLOCKD *xd, int blk_row, blk_col; int coll_blk_count = 0; - for (blk_row = 0; blk_row < xd->n8_h; ++blk_row) { - for (blk_col = 0; blk_col < xd->n8_w; ++blk_col) { + for (blk_row = 0; blk_row < xd->n8_h; blk_row += 2) { + for (blk_col = 0; blk_col < xd->n8_w; blk_col += 2) { coll_blk_count += add_col_ref_mv( cm, prev_frame_mvs_base, xd, mi_row, mi_col, ref_frame, blk_row, blk_col, refmv_count, ref_mv_stack, mode_context);