ref: ed4a7d58805f760219592065c22bcd57219324e5
parent: 2916a49c879c2bd228df1ac755ed9092d1cd9067
parent: 2899a9d438ce5243936428baf4b6f4f1e63faae8
author: Marco Paniconi <marpan@google.com>
date: Thu Jun 28 01:33:59 EDT 2018
Merge "vp9-svc: Fix to early golden exit nonrd-pickmode"
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1541,8 +1541,10 @@
if (!cpi->use_svc ||
(svc->use_gf_temporal_ref_current_layer &&
- !svc->layer_context[svc->temporal_layer_id].is_key_frame))
+ !svc->layer_context[svc->temporal_layer_id].is_key_frame)) {
gf_temporal_ref = 1;
+ thresh_svc_skip_golden = 500;
+ }
init_ref_frame_cost(cm, xd, ref_frame_cost);
memset(&mode_checked[0][0], 0, MB_MODE_COUNT * MAX_REF_FRAMES);
@@ -1796,7 +1798,7 @@
// For SVC, skip the golden (spatial) reference search if sse of zeromv_last
// is below threshold.
- if (cpi->use_svc && ref_frame == GOLDEN_FRAME && !gf_temporal_ref &&
+ if (cpi->use_svc && ref_frame == GOLDEN_FRAME &&
sse_zeromv_normalized < thresh_svc_skip_golden)
continue;