shithub: libvpx

Download patch

ref: 6a42bdd25fde520af6322ef6b59419d30ff13951
parent: 9a71811d98825857e42042344d42822b4b1a7e79
parent: 77e51e2035b8818d2351d7bc6e3af423f91a69cf
author: Marco Paniconi <marpan@google.com>
date: Wed Oct 4 15:38:49 EDT 2017

Merge "Modify early exit for alt_ref in nonrd_pickmode."

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1582,9 +1582,7 @@
       skip_ref_find_pred[LAST_FRAME] = 1;
       skip_ref_find_pred[GOLDEN_FRAME] = 1;
     }
-    if (cm->show_frame == 0) {
-      usable_ref_frame = GOLDEN_FRAME;
-      skip_ref_find_pred[ALTREF_FRAME] = 1;
+    if (!cm->show_frame) {
       if (cpi->rc.frames_since_key == 1) {
         usable_ref_frame = LAST_FRAME;
         skip_ref_find_pred[GOLDEN_FRAME] = 1;
@@ -1679,6 +1677,10 @@
       if (cpi->rc.is_src_frame_alt_ref &&
           (ref_frame != ALTREF_FRAME ||
            frame_mv[this_mode][ref_frame].as_int != 0))
+        continue;
+
+      if (!cm->show_frame && ref_frame == ALTREF_FRAME &&
+          frame_mv[this_mode][ref_frame].as_int != 0)
         continue;
 
       if (cpi->rc.alt_ref_gf_group && cm->show_frame &&