@@ -166,6 +166,7 @@ enum vp8e_enc_control_id {
166166 *
167167 * \note Valid range for VP8: -16..16
168168 * \note Valid range for VP9: -9..9
169+ * \note A negative value (-n) is treated as its absolute value (n) in VP9.
169170 *
170171 * Supported in codecs: VP8, VP9
171172 */
@@ -302,7 +303,7 @@ enum vp8e_enc_control_id {
302303 * the feature is off, i.e., no golden frame boost in CBR mode and
303304 * average bitrate target is used.
304305 *
305- * For example, to allow 100% more bits, i.e, 2X, in a golden frame
306+ * For example, to allow 100% more bits, i.e. , 2X, in a golden frame
306307 * than average frame, set this to 100.
307308 *
308309 * Supported in codecs: VP9
@@ -598,7 +599,7 @@ enum vp8e_enc_control_id {
598599 * the feature is off, i.e., no golden frame boost in CBR mode and
599600 * average bitrate target is used.
600601 *
601- * For example, to allow 100% more bits, i.e, 2X, in a golden frame
602+ * For example, to allow 100% more bits, i.e. , 2X, in a golden frame
602603 * than average frame, set this to 100.
603604 *
604605 * Supported in codecs: VP8
@@ -672,7 +673,7 @@ enum vp8e_enc_control_id {
672673 */
673674 VP9E_SET_TPL ,
674675
675- /*!\brief Codec control function to enable postencode frame drop.
676+ /*!\brief Codec control function to enable post encode frame drop.
676677 *
677678 * This will allow encoder to drop frame after it's encoded.
678679 *
@@ -767,6 +768,24 @@ enum vp8e_enc_control_id {
767768 *
768769 */
769770 VP9E_SET_QUANTIZER_ONE_PASS ,
771+
772+ /*!\brief Codec control function to enable key frame temporal filtering.
773+ *
774+ * Vp9 allows the encoder to run key frame temporal filtering and use it to
775+ * improve the compression performance. To enable, set this parameter to be
776+ * 1. The default value is set to be 0.
777+ */
778+ VP9E_SET_KEY_FRAME_FILTERING ,
779+
780+ /*!\brief Codec control function to validate HBD input.
781+ *
782+ * VP9 allows the encoder to validate the high bitdepth (HBD) input and
783+ * ensure that every pixel is within the valid range. To disable/enable,
784+ * set this parameter to 0/1. The default value is set to be 1.
785+ *
786+ * Supported in codecs: VP9
787+ */
788+ VP9E_SET_VALIDATE_HBD_INPUT ,
770789};
771790
772791/*!\brief vpx 1-D scaling mode
@@ -793,8 +812,7 @@ typedef enum vp9e_temporal_layering_mode {
793812 VP9E_TEMPORAL_LAYERING_MODE_NOLAYERING = 0 ,
794813
795814 /*!\brief Bypass mode.
796- * Used when application needs to control temporal layering.
797- * This will only work when the number of spatial layers equals 1.
815+ * Used when application needs to control spatial and temporal layering.
798816 */
799817 VP9E_TEMPORAL_LAYERING_MODE_BYPASS = 1 ,
800818
@@ -868,7 +886,7 @@ typedef enum {
868886 VP8_EIGHT_TOKENPARTITION = 3
869887} vp8e_token_partitions ;
870888
871- /*!brief VP9 encoder content type */
889+ /*!\ brief VP9 encoder content type */
872890typedef enum {
873891 VP9E_CONTENT_DEFAULT ,
874892 VP9E_CONTENT_SCREEN ,
@@ -1097,6 +1115,10 @@ VPX_CTRL_USE_TYPE(VP8E_SET_RTC_EXTERNAL_RATECTRL, int)
10971115#define VPX_CTRL_VP8E_SET_RTC_EXTERNAL_RATECTRL
10981116VPX_CTRL_USE_TYPE (VP9E_SET_QUANTIZER_ONE_PASS , int )
10991117#define VPX_CTRL_VP9E_SET_QUANTIZER_ONE_PASS
1118+ VPX_CTRL_USE_TYPE (VP9E_SET_KEY_FRAME_FILTERING , int )
1119+ #define VPX_CTRL_VP9E_SET_KEY_FRAME_FILTERING
1120+ VPX_CTRL_USE_TYPE (VP9E_SET_VALIDATE_HBD_INPUT , int )
1121+ #define VPX_CTRL_VP9E_SET_VALIDATE_HBD_INPUT
11001122
11011123/*!\endcond */
11021124/*! @} - end defgroup vp8_encoder */
0 commit comments