[Libva] [PATCH 4/6] Add Macroblock based rate control method.

Xiang, Haihao haihao.xiang at intel.com
Wed May 4 02:54:54 UTC 2016


From: pylee <penne.y.lee at intel.com>

Signed-off-by: pylee <penne.y.lee at intel.com>
Reviewed-By: Sean V Kelley <sean.v.kelley at intel.com>
---
 va/va.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/va/va.h b/va/va.h
index dcfafbb..54a7b53 100644
--- a/va/va.h
+++ b/va/va.h
@@ -515,6 +515,10 @@ typedef struct _VAConfigAttrib {
 #define VA_RC_CQP                       0x00000010
 /** \brief Variable bitrate with peak rate higher than average bitrate. */
 #define VA_RC_VBR_CONSTRAINED           0x00000020
+/** \brief Macroblock based rate control.  Per MB control is decided
+ *  internally in the encoder. It may be combined with other RC modes, except CQP. */
+#define VA_RC_MB                        0x00000080
+
 /**@}*/
 
 /** @name Attribute values for VAConfigAttribDecSliceMode */
@@ -1157,6 +1161,7 @@ typedef struct _VAEncMiscParameterRateControl
             unsigned int reset : 1;
             unsigned int disable_frame_skip : 1; /* Disable frame skip in rate control mode */
             unsigned int disable_bit_stuffing : 1; /* Disable bit stuffing in rate control mode */
+            unsigned int mb_rate_control : 4; /* Control VA_RC_MB 0: default, 1: enable, 2: disable, other: reserved*/
         } bits;
         unsigned int value;
     } rc_flags;
-- 
1.9.1



More information about the Libva mailing list