Commit d1ba92a6 authored by Jingning Han's avatar Jingning Han

Select effective reference frame for motion field projection

Use the valid reference frames' motion information to perform
motion field projection.

Change-Id: I942d62043c7a7bec820e4d13c1fdab8e04719735
parent 522c989b
......@@ -1780,10 +1780,12 @@ void av1_setup_motion_field(AV1_COMMON *cm) {
}
}
motion_field_projection(cm, BWDREF_FRAME, 1);
if (bwd_frame_index > cur_frame_index)
motion_field_projection(cm, BWDREF_FRAME, 1);
if (alt2_frame_index > cur_frame_index)
motion_field_projection(cm, ALTREF2_FRAME, 2);
motion_field_projection(cm, ALTREF_FRAME, 3);
if (alt_frame_index > cur_frame_index)
motion_field_projection(cm, ALTREF_FRAME, 3);
}
#endif // CONFIG_MFMV
......
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