shithub: libvpx

Download patch

ref: 32235a77b78a228b9dfaf058194585355ac16cdc
parent: ed4a7d58805f760219592065c22bcd57219324e5
author: Marco Paniconi <marpan@google.com>
date: Thu Jun 28 12:08:55 EDT 2018

vp9-svc: Adjust threshold for early exit on golden

Use the avg_frame_low_motion to reduce/turnoff this
early exit for higher motion content. Get some quality
back for higher motion clips and keep the same exit
thresh for low motion clips.

Change-Id: I95daf754dc0048b3e935d1a753f7f1101e6ffb77

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1543,7 +1543,10 @@
       (svc->use_gf_temporal_ref_current_layer &&
        !svc->layer_context[svc->temporal_layer_id].is_key_frame)) {
     gf_temporal_ref = 1;
-    thresh_svc_skip_golden = 500;
+    if (cpi->rc.avg_frame_low_motion > 70)
+      thresh_svc_skip_golden = 500;
+    else
+      thresh_svc_skip_golden = 0;
   }
 
   init_ref_frame_cost(cm, xd, ref_frame_cost);