]> granicus.if.org Git - libvpx/commitdiff
vp9: 1 pass SVC: Fix comment and condition for up-sampling reference.
authorMarco <marpan@google.com>
Thu, 20 Apr 2017 21:13:57 +0000 (14:13 -0700)
committerMarco <marpan@google.com>
Thu, 20 Apr 2017 21:21:05 +0000 (14:21 -0700)
No change in behavior.

Change-Id: I218fb30289091da623acb23324027435b8510d0e

vp9/encoder/vp9_encoder.c

index d9027e001d7c8423da1d42d1e5c53b8ccd361487..d82b706be424d514923183bc35bab845b26ebd41 100644 (file)
@@ -3229,10 +3229,11 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
        cpi->oxcf.content == VP9E_CONTENT_SCREEN))
     vp9_scene_detection_onepass(cpi);
 
-  // For 1 pass SVC, since only ZEROMV is allowed for upsampled reference
-  // frame (i.e, svc->force_zero_mode_spatial_ref = 0), we can avoid this
-  // frame-level upsampling.
-  if (frame_is_intra_only(cm) == 0 && !is_one_pass_cbr_svc(cpi)) {
+  // For 1 pass CBR SVC, only ZEROMV is allowed for spatial reference frame
+  // when svc->force_zero_mode_spatial_ref = 1. Under those conditions we can
+  // avoid this frame-level upsampling (for non intra_only frames).
+  if (frame_is_intra_only(cm) == 0 &&
+      !(is_one_pass_cbr_svc(cpi) && cpi->svc.force_zero_mode_spatial_ref)) {
     vp9_scale_references(cpi);
   }