]> granicus.if.org Git - libvpx/commitdiff
Adds spatial-svc macros to code to allow disabling
authorDeb Mukherjee <debargha@google.com>
Fri, 8 Aug 2014 23:11:02 +0000 (16:11 -0700)
committerDeb Mukherjee <debargha@google.com>
Fri, 8 Aug 2014 23:11:02 +0000 (16:11 -0700)
Adds a couple of CONFIG_SPATIAL_SVC macros to allow compilation
when spatial-svc is disabled.

Change-Id: I67f84406d1d3fa26f225d9c6518161a0841f2d29

vpx/src/svc_encodeframe.c

index 93e86e3195ebdb6b3d7efc5ba1e706bdf82aac76..7828615b293007adda327ee5f382ad4a93915c71 100644 (file)
@@ -510,8 +510,10 @@ vpx_codec_err_t vpx_svc_init(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
     }
   }
 
+#if CONFIG_SPATIAL_SVC
   for (i = 0; i < si->layers; ++i)
     enc_cfg->ss_enable_auto_alt_ref[i] = si->enable_auto_alt_ref[i];
+#endif
 
   // modify encoder configuration
   enc_cfg->ss_number_layers = si->layers;
@@ -709,12 +711,14 @@ vpx_codec_err_t vpx_svc_encode(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
         si->rc_stats_buf_used += cx_pkt->data.twopass_stats.sz;
         break;
       }
+#if CONFIG_SPATIAL_SVC
       case VPX_CODEC_SPATIAL_SVC_LAYER_SIZES: {
         int i;
         for (i = 0; i < si->layers; ++i)
           si->bytes_sum[i] += cx_pkt->data.layer_sizes[i];
         break;
       }
+#endif
       default: {
         break;
       }