Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libva: Commit

hardware/intel/libva


Commit MetaInfo

Revision23ccf36af15f2e9df8ae89a68e4a1c3f43d29677 (tree)
Zeit2016-05-09 17:48:52
Autorpylee <penne.y.lee@inte...>
CommiterXiang, Haihao

Log Message

Add Macroblock based rate control method.

Signed-off-by: pylee <penne.y.lee@intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley@intel.com>

Ändern Zusammenfassung

Diff

--- a/va/va.h
+++ b/va/va.h
@@ -515,6 +515,10 @@ typedef struct _VAConfigAttrib {
515515 #define VA_RC_CQP 0x00000010
516516 /** \brief Variable bitrate with peak rate higher than average bitrate. */
517517 #define VA_RC_VBR_CONSTRAINED 0x00000020
518+/** \brief Macroblock based rate control. Per MB control is decided
519+ * internally in the encoder. It may be combined with other RC modes, except CQP. */
520+#define VA_RC_MB 0x00000080
521+
518522 /**@}*/
519523
520524 /** @name Attribute values for VAConfigAttribDecSliceMode */
@@ -1157,6 +1161,7 @@ typedef struct _VAEncMiscParameterRateControl
11571161 unsigned int reset : 1;
11581162 unsigned int disable_frame_skip : 1; /* Disable frame skip in rate control mode */
11591163 unsigned int disable_bit_stuffing : 1; /* Disable bit stuffing in rate control mode */
1164+ unsigned int mb_rate_control : 4; /* Control VA_RC_MB 0: default, 1: enable, 2: disable, other: reserved*/
11601165 } bits;
11611166 unsigned int value;
11621167 } rc_flags;
Show on old repository browser