From: Marco Date: Wed, 27 Sep 2017 21:49:58 +0000 (-0700) Subject: Add use_svc condition to the scene detection in 1 pass. X-Git-Tag: v1.7.0~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c493ea1a6b7ade049ac22d8d063b73f12d65bbea;p=libvpx Add use_svc condition to the scene detection in 1 pass. Scene detection is not currently used in SVC 1 pass code. Speedup of ~0.4%. Change-Id: I0ab769300919de710cd2da1402014fa3f22a1f86 --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index bb93da4f4..ebfbfdb70 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -3529,7 +3529,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size, if (cpi->compute_source_sad_onepass && (cpi->oxcf.rc_mode == VPX_VBR || cpi->oxcf.content == VP9E_CONTENT_SCREEN || - (cpi->oxcf.speed >= 5 && cpi->oxcf.speed < 8))) + (cpi->oxcf.speed >= 5 && cpi->oxcf.speed < 8 && !cpi->use_svc))) vp9_scene_detection_onepass(cpi); // For 1 pass CBR SVC, only ZEROMV is allowed for spatial reference frame