Commit a06e0598 authored by Jingning Han's avatar Jingning Han

Skip scaled reference frame for motion vector projection

When the reference frame size differs from the current coding
frame, skip the use of its motion information for motion field
estimation.

BUG=aomedia:1194

Change-Id: I1a32395367228f4ac86a21099b6b7b2c25e60270
parent 70f61b22
......@@ -1455,6 +1455,10 @@ static int motion_field_projection(AV1_COMMON *cm, MV_REFERENCE_FRAME ref_frame,
int ref_frame_idx = cm->frame_refs[FWD_RF_OFFSET(ref_frame)].idx;
if (ref_frame_idx < 0) return 0;
if (cm->buffer_pool->frame_bufs[ref_frame_idx].mi_rows != cm->mi_rows ||
cm->buffer_pool->frame_bufs[ref_frame_idx].mi_cols != cm->mi_cols)
return 0;
int ref_frame_index =
cm->buffer_pool->frame_bufs[ref_frame_idx].cur_frame_offset;
int cur_frame_index = cm->cur_frame->cur_frame_offset;
......
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