]> granicus.if.org Git - libvpx/commitdiff
Add use_svc condition to the scene detection in 1 pass.
authorMarco <marpan@google.com>
Wed, 27 Sep 2017 21:49:58 +0000 (14:49 -0700)
committerMarco <marpan@google.com>
Wed, 27 Sep 2017 21:51:46 +0000 (14:51 -0700)
Scene detection is not currently used in SVC 1 pass code.
Speedup of ~0.4%.

Change-Id: I0ab769300919de710cd2da1402014fa3f22a1f86

vp9/encoder/vp9_encoder.c

index bb93da4f4763e3c228d4614d630917fa84048504..ebfbfdb7066f5334662faa9776a74353a2a7c2eb 100644 (file)
@@ -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