Index: source/libvpx/vpx/vpx_encoder.h |
diff --git a/source/libvpx/vpx/vpx_encoder.h b/source/libvpx/vpx/vpx_encoder.h |
index 8977ec46c7c202c7ebb567bcaf9d5219d27e5434..bf75584d58919b407d4758ec650c5a2a0fc84bed 100644 |
--- a/source/libvpx/vpx/vpx_encoder.h |
+++ b/source/libvpx/vpx/vpx_encoder.h |
@@ -59,7 +59,7 @@ extern "C" { |
* types, removing or reassigning enums, adding/removing/rearranging |
* fields to structures |
*/ |
-#define VPX_ENCODER_ABI_VERSION (3 + VPX_CODEC_ABI_VERSION) /**<\hideinitializer*/ |
+#define VPX_ENCODER_ABI_VERSION (4 + VPX_CODEC_ABI_VERSION) /**<\hideinitializer*/ |
/*! \brief Encoder capabilities bitfield |
@@ -161,9 +161,9 @@ extern "C" { |
VPX_CODEC_STATS_PKT, /**< Two-pass statistics for this frame */ |
VPX_CODEC_FPMB_STATS_PKT, /**< first pass mb statistics for this frame */ |
VPX_CODEC_PSNR_PKT, /**< PSNR statistics for this frame */ |
- // TODO(minghai): This is for testing purporses. The released library can't |
- // depend on vpx_config.h |
-#if defined(CONFIG_SPATIAL_SVC) && CONFIG_SPATIAL_SVC |
+ // Spatial SVC is still experimental and may be removed before the next ABI |
+ // bump. |
+#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION) |
VPX_CODEC_SPATIAL_SVC_LAYER_SIZES, /**< Sizes for each layer in this frame*/ |
VPX_CODEC_SPATIAL_SVC_LAYER_PSNR, /**< PSNR for each layer in this frame*/ |
#endif |
@@ -203,9 +203,9 @@ extern "C" { |
double psnr[4]; /**< PSNR, total/y/u/v */ |
} psnr; /**< data for PSNR packet */ |
vpx_fixed_buf_t raw; /**< data for arbitrary packets */ |
- // TODO(minghai): This is for testing purporses. The released library |
- // can't depend on vpx_config.h |
-#if defined(CONFIG_SPATIAL_SVC) && CONFIG_SPATIAL_SVC |
+ // Spatial SVC is still experimental and may be removed before the next |
+ // ABI bump. |
+#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION) |
size_t layer_sizes[VPX_SS_MAX_LAYERS]; |
struct vpx_psnr_pkt layer_psnr[VPX_SS_MAX_LAYERS]; |
#endif |