| Index: source/libvpx/vp9/vp9_cx_iface.c
|
| diff --git a/source/libvpx/vp9/vp9_cx_iface.c b/source/libvpx/vp9/vp9_cx_iface.c
|
| index eb10da7ac11e8f73c31c783d3f6aea65ba9722a4..0ce37aae7d10bd1062f31cae8b8a523c32d144c3 100644
|
| --- a/source/libvpx/vp9/vp9_cx_iface.c
|
| +++ b/source/libvpx/vp9/vp9_cx_iface.c
|
| @@ -12,7 +12,7 @@
|
| #include <string.h>
|
|
|
| #include "./vpx_config.h"
|
| -#include "vpx/vpx_codec.h"
|
| +#include "vpx/vpx_encoder.h"
|
| #include "vpx_ports/vpx_once.h"
|
| #include "vpx/internal/vpx_codec_internal.h"
|
| #include "./vpx_version.h"
|
| @@ -1298,7 +1298,9 @@ static vpx_codec_err_t ctrl_set_svc_layer_id(vpx_codec_alg_priv_t *ctx,
|
| VP9_COMP *const cpi = (VP9_COMP *)ctx->cpi;
|
| SVC *const svc = &cpi->svc;
|
|
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| svc->spatial_layer_id = data->spatial_layer_id;
|
| +#endif
|
| svc->temporal_layer_id = data->temporal_layer_id;
|
| // Checks on valid layer_id input.
|
| if (svc->temporal_layer_id < 0 ||
|
| @@ -1318,7 +1320,9 @@ static vpx_codec_err_t ctrl_get_svc_layer_id(vpx_codec_alg_priv_t *ctx,
|
| VP9_COMP *const cpi = (VP9_COMP *)ctx->cpi;
|
| SVC *const svc = &cpi->svc;
|
|
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| data->spatial_layer_id = svc->spatial_layer_id;
|
| +#endif
|
| data->temporal_layer_id = svc->temporal_layer_id;
|
|
|
| return VPX_CODEC_OK;
|
| @@ -1397,8 +1401,10 @@ static vpx_codec_ctrl_fn_map_t encoder_ctrl_maps[] = {
|
| {VP9E_SET_AQ_MODE, ctrl_set_aq_mode},
|
| {VP9E_SET_FRAME_PERIODIC_BOOST, ctrl_set_frame_periodic_boost},
|
| {VP9E_SET_SVC, ctrl_set_svc},
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| {VP9E_SET_SVC_PARAMETERS, ctrl_set_svc_parameters},
|
| {VP9E_REGISTER_CX_CALLBACK, ctrl_register_cx_callback},
|
| +#endif
|
| {VP9E_SET_SVC_LAYER_ID, ctrl_set_svc_layer_id},
|
| {VP9E_SET_TUNE_CONTENT, ctrl_set_tune_content},
|
| {VP9E_SET_COLOR_SPACE, ctrl_set_color_space},
|
| @@ -1408,7 +1414,9 @@ static vpx_codec_ctrl_fn_map_t encoder_ctrl_maps[] = {
|
| {VP8E_GET_LAST_QUANTIZER, ctrl_get_quantizer},
|
| {VP8E_GET_LAST_QUANTIZER_64, ctrl_get_quantizer64},
|
| {VP9_GET_REFERENCE, ctrl_get_reference},
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| {VP9E_GET_SVC_LAYER_ID, ctrl_get_svc_layer_id},
|
| +#endif
|
|
|
| { -1, NULL},
|
| };
|
| @@ -1442,10 +1450,8 @@ static vpx_codec_enc_cfg_map_t encoder_usage_cfg_map[] = {
|
| 30, // rc_resize_up_thresold
|
|
|
| VPX_VBR, // rc_end_usage
|
| -#if VPX_ENCODER_ABI_VERSION > (1 + VPX_CODEC_ABI_VERSION)
|
| {NULL, 0}, // rc_twopass_stats_in
|
| {NULL, 0}, // rc_firstpass_mb_stats_in
|
| -#endif
|
| 256, // rc_target_bandwidth
|
| 0, // rc_min_quantizer
|
| 63, // rc_max_quantizer
|
| @@ -1473,9 +1479,6 @@ static vpx_codec_enc_cfg_map_t encoder_usage_cfg_map[] = {
|
| {0}, // ts_rate_decimator
|
| 0, // ts_periodicity
|
| {0}, // ts_layer_id
|
| -#if VPX_ENCODER_ABI_VERSION == (1 + VPX_CODEC_ABI_VERSION)
|
| - "vp8.fpf" // first pass filename
|
| -#endif
|
| }
|
| },
|
| };
|
|
|