Commit 61bf3d8a authored by Jingning Han's avatar Jingning Han

[NORMATIVE mfmv] Store one mv per decoded block

When the block is coded in the bi-directional compound mode,
store up to one mv that points towards last_frame side, instead
of storing up to two mvs each corresponds to one side.

BUG=aomedia:1412

Change-Id: Id9ec295de28c0831457c8fe9ce5fd2085e3b5459
parent 2680275a
......@@ -1772,7 +1772,7 @@ void av1_setup_motion_field(AV1_COMMON *cm) {
cm->buffer_pool->frame_bufs[lst_buf_idx].alt_frame_offset;
const int is_lst_overlay = (alt_frame_idx == gld_frame_index);
if (!is_lst_overlay) motion_field_projection(cm, LAST_FRAME, ref_stamp, 1);
if (!is_lst_overlay) motion_field_projection(cm, LAST_FRAME, ref_stamp, 2);
--ref_stamp;
}
......@@ -1788,9 +1788,6 @@ void av1_setup_motion_field(AV1_COMMON *cm) {
if (alt_frame_index > cur_frame_index && ref_stamp >= 0)
if (motion_field_projection(cm, ALTREF_FRAME, ref_stamp, 0)) --ref_stamp;
if (ref_stamp >= 0 && lst_buf_idx >= 0)
if (motion_field_projection(cm, LAST_FRAME, ref_stamp, 2)) --ref_stamp;
if (ref_stamp >= 0 && lst2_buf_idx >= 0)
if (motion_field_projection(cm, LAST2_FRAME, ref_stamp, 2)) --ref_stamp;
}
......
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