From: Jingning Han Date: Wed, 22 Aug 2018 17:23:53 +0000 (-0700) Subject: Skip update prev_mi frame in show_existing_frame mode X-Git-Tag: v1.8.0~391^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b9b38bd5ebb9844707be8e5874dfa7532331d3b;p=libvpx Skip update prev_mi frame in show_existing_frame mode When the current frame is coded by directly using a reference frame in buffer, no need to update the prev_mi frame information for next frame encoding control. Change-Id: I33fda8e70cdb31eb5b13b63e3dbd6e96ff85154d --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 2a88e55d9..a057ecfbb 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -851,6 +851,10 @@ static void vp9_swap_mi_and_prev_mi(VP9_COMMON *cm) { // Current mip will be the prev_mip for the next frame. MODE_INFO **temp_base = cm->prev_mi_grid_base; MODE_INFO *temp = cm->prev_mip; + + // Skip update prev_mi frame in show_existing_frame mode. + if (cm->show_existing_frame) return; + cm->prev_mip = cm->mip; cm->mip = temp;