Index: source/libvpx/vpx/vp8cx.h |
=================================================================== |
--- source/libvpx/vpx/vp8cx.h (revision 293081) |
+++ source/libvpx/vpx/vp8cx.h (working copy) |
@@ -194,7 +194,34 @@ |
*/ |
VP8E_SET_MAX_INTRA_BITRATE_PCT, |
+ /*!\brief Max data rate for Inter frames |
+ * |
+ * This value controls additional clamping on the maximum size of an |
+ * inter frame. It is expressed as a percentage of the average |
+ * per-frame bitrate, with the special (and default) value 0 meaning |
+ * unlimited, or no additional clamping beyond the codec's built-in |
+ * algorithm. |
+ * |
+ * For example, to allow no more than 4.5 frames worth of bitrate |
+ * to an inter frame, set this to 450. |
+ * |
+ */ |
+ VP8E_SET_MAX_INTER_BITRATE_PCT, |
+ /*!\brief Boost percentage for Golden Frame in CBR mode |
+ * |
+ * This value controls the amount of boost given to Golden Frame in |
+ * CBR mode. It is expressed as a percentage of the average |
+ * per-frame bitrate, with the special (and default) value 0 meaning |
+ * the feature is off, i.e., no golden frame boost in CBR mode and |
+ * average bitrate target is used. |
+ * |
+ * For example, to allow 100% more bits, i.e, 2X, in a golden frame |
+ * than average frame, set this to 100. |
+ * |
+ */ |
+ VP8E_SET_GF_CBR_BOOST_PCT, |
+ |
/* TODO(jkoleszar): Move to vp9cx.h */ |
VP9E_SET_LOSSLESS, |
VP9E_SET_TILE_COLUMNS, |
@@ -210,6 +237,7 @@ |
VP9E_SET_SVC, |
VP9E_SET_SVC_PARAMETERS, |
+ |
/*!\brief control function to set svc layer for spatial and temporal. |
* \note Valid ranges: 0..#vpx_codec_enc_cfg::ss_number_layers for spatial |
* layer and 0..#vpx_codec_enc_cfg::ts_number_layers for |
@@ -216,7 +244,9 @@ |
* temporal layer. |
*/ |
VP9E_SET_SVC_LAYER_ID, |
- VP9E_SET_TUNE_CONTENT |
+ VP9E_SET_TUNE_CONTENT, |
+ VP9E_GET_SVC_LAYER_ID, |
+ VP9E_REGISTER_CX_CALLBACK, |
}; |
/*!\brief vpx 1-D scaling mode |
@@ -338,6 +368,7 @@ |
VPX_CTRL_USE_TYPE(VP9E_SET_SVC, int) |
VPX_CTRL_USE_TYPE(VP9E_SET_SVC_PARAMETERS, void *) |
+VPX_CTRL_USE_TYPE(VP9E_REGISTER_CX_CALLBACK, void *) |
VPX_CTRL_USE_TYPE(VP9E_SET_SVC_LAYER_ID, vpx_svc_layer_id_t *) |
VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int) |
@@ -358,9 +389,12 @@ |
VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER, int *) |
VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER_64, int *) |
+VPX_CTRL_USE_TYPE(VP9E_GET_SVC_LAYER_ID, vpx_svc_layer_id_t *) |
VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTRA_BITRATE_PCT, unsigned int) |
+VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTER_BITRATE_PCT, unsigned int) |
+VPX_CTRL_USE_TYPE(VP8E_SET_GF_CBR_BOOST_PCT, unsigned int) |
VPX_CTRL_USE_TYPE(VP9E_SET_LOSSLESS, unsigned int) |
VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) |