]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Adjust threshold for early exit on golden
authorMarco Paniconi <marpan@google.com>
Thu, 28 Jun 2018 23:08:55 +0000 (16:08 -0700)
committerMarco Paniconi <marpan@google.com>
Thu, 28 Jun 2018 23:43:56 +0000 (16:43 -0700)
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

vp9/encoder/vp9_pickmode.c

index 1761fa95d175d26ab19f9d07b225221daf6a397a..02d97fc82ad30ff4e38216691f78d1181d0aa328 100644 (file)
@@ -1543,7 +1543,10 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, TileDataEnc *tile_data,
       (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);