]> granicus.if.org Git - libvpx/commitdiff
Skip update prev_mi frame in show_existing_frame mode
authorJingning Han <jingning@google.com>
Wed, 22 Aug 2018 17:23:53 +0000 (10:23 -0700)
committerJingning Han <jingning@google.com>
Wed, 22 Aug 2018 22:10:37 +0000 (22:10 +0000)
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

vp9/encoder/vp9_encoder.c

index 2a88e55d90fd9316443f18a44e81827dae34233e..a057ecfbb7f770c3b5433e7c3fb7aebc0a515c10 100644 (file)
@@ -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;