From 80656a1f19d086da1e34ef2481e9d6af87fa0e34 Mon Sep 17 00:00:00 2001 From: Deb Mukherjee Date: Fri, 8 Aug 2014 16:11:02 -0700 Subject: [PATCH] Adds spatial-svc macros to code to allow disabling Adds a couple of CONFIG_SPATIAL_SVC macros to allow compilation when spatial-svc is disabled. Change-Id: I67f84406d1d3fa26f225d9c6518161a0841f2d29 --- vpx/src/svc_encodeframe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c index 93e86e3..7828615 100644 --- a/vpx/src/svc_encodeframe.c +++ b/vpx/src/svc_encodeframe.c @@ -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; } -- 2.7.4