hardware/intel/libva
修訂 | 23ccf36af15f2e9df8ae89a68e4a1c3f43d29677 (tree) |
---|---|
時間 | 2016-05-09 17:48:52 |
作者 | pylee <penne.y.lee@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -515,6 +515,10 @@ typedef struct _VAConfigAttrib { | ||
515 | 515 | #define VA_RC_CQP 0x00000010 |
516 | 516 | /** \brief Variable bitrate with peak rate higher than average bitrate. */ |
517 | 517 | #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 | + | |
518 | 522 | /**@}*/ |
519 | 523 | |
520 | 524 | /** @name Attribute values for VAConfigAttribDecSliceMode */ |
@@ -1157,6 +1161,7 @@ typedef struct _VAEncMiscParameterRateControl | ||
1157 | 1161 | unsigned int reset : 1; |
1158 | 1162 | unsigned int disable_frame_skip : 1; /* Disable frame skip in rate control mode */ |
1159 | 1163 | 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*/ | |
1160 | 1165 | } bits; |
1161 | 1166 | unsigned int value; |
1162 | 1167 | } rc_flags; |