summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_pickmode.c
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2018-06-28 16:08:55 -0700
committerMarco Paniconi <marpan@google.com>2018-06-28 16:43:56 -0700
commit32235a77b78a228b9dfaf058194585355ac16cdc (patch)
treebc580cef8f89e8318af1da44683b7b88e4f61e7b /vp9/encoder/vp9_pickmode.c
parented4a7d58805f760219592065c22bcd57219324e5 (diff)
downloadlibvpx-32235a77b78a228b9dfaf058194585355ac16cdc.tar
libvpx-32235a77b78a228b9dfaf058194585355ac16cdc.tar.gz
libvpx-32235a77b78a228b9dfaf058194585355ac16cdc.tar.bz2
libvpx-32235a77b78a228b9dfaf058194585355ac16cdc.zip
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
Diffstat (limited to 'vp9/encoder/vp9_pickmode.c')
-rw-r--r--vp9/encoder/vp9_pickmode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c
index 1761fa95d..02d97fc82 100644
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -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);