shithub: libvpx

Download patch

ref: a2ef180dd021ce591f214d13f4c14cbe5fe4972b
parent: 3b8cc214ef2b2771230d340d2872b89a4bd2a54e
author: Marco <marpan@google.com>
date: Thu Sep 28 06:47:34 EDT 2017

Set rc->high_source_sad = 0  before scene detection.

Only has effect when sf->use_altref_onepass is enabled,
as in that case scene detection is skipped for non-show frame
and so high_source_sad does not get reset to 0.

No change in metrics or speed.

Change-Id: I421f066d239341449c18826089e1810b9fc5967f

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -3531,6 +3531,7 @@
   // Scene detection is always used for VBR mode or screen-content case.
   // For other cases (e.g., CBR mode) use it for 5 <= speed < 8 for now
   // (need to check encoding time cost for doing this for speed 8).
+  cpi->rc.high_source_sad = 0;
   if (cpi->compute_source_sad_onepass &&
       (cpi->oxcf.rc_mode == VPX_VBR ||
        cpi->oxcf.content == VP9E_CONTENT_SCREEN ||