Index: source/libvpx/vpx/vp8cx.h |
=================================================================== |
--- source/libvpx/vpx/vp8cx.h (revision 251189) |
+++ source/libvpx/vpx/vp8cx.h (working copy) |
@@ -194,7 +194,8 @@ |
VP9E_SET_AQ_MODE, |
VP9E_SET_SVC, |
- VP9E_SET_SVC_PARAMETERS |
+ VP9E_SET_SVC_PARAMETERS, |
+ VP9E_SET_SVC_LAYER_ID |
}; |
/*!\brief vpx 1-D scaling mode |
@@ -285,7 +286,8 @@ |
typedef struct vpx_svc_parameters { |
unsigned int width; /**< width of current spatial layer */ |
unsigned int height; /**< height of current spatial layer */ |
- int layer; /**< current layer number - 0 = base */ |
+ int spatial_layer; /**< current spatial layer number - 0 = base */ |
+ int temporal_layer; /**< current temporal layer number - 0 = base */ |
int flags; /**< encode frame flags */ |
int max_quantizer; /**< max quantizer for current layer */ |
int min_quantizer; /**< min quantizer for current layer */ |
@@ -295,6 +297,11 @@ |
int alt_fb_idx; /**< alt reference frame frame buffer index */ |
} vpx_svc_parameters_t; |
+typedef struct vpx_svc_layer_id { |
+ int spatial_layer_id; |
+ int temporal_layer_id; |
+} vpx_svc_layer_id_t; |
+ |
/*!\brief VP8 encoder control function parameter type |
* |
* Defines the data types that VP8E control functions take. Note that |
@@ -316,6 +323,7 @@ |
VPX_CTRL_USE_TYPE(VP9E_SET_SVC, int) |
VPX_CTRL_USE_TYPE(VP9E_SET_SVC_PARAMETERS, vpx_svc_parameters_t *) |
+VPX_CTRL_USE_TYPE(VP9E_SET_SVC_LAYER_ID, vpx_svc_layer_id_t *) |
VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int) |
VPX_CTRL_USE_TYPE(VP8E_SET_ENABLEAUTOALTREF, unsigned int) |