• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

修订版4033745a571c228133347446cdeacf80800e78ed (tree)
时间2017-08-21 17:37:24
作者Sreerenj Balachandran <sreerenj.balachandran@inte...>
CommiterXiang, Haihao

Log Message

Add support for encoding QP buffer

VAEncQPBufferH264 structure is defined to hold QP per 16x16 macroblock
for H.264 encoding, we can add similar structures for other codecs in
the future. VAEncQPBufferType is added to pass the corresponding
QP buffer to the driver for each codec.

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Jonathan Bian <jonathan.bian@intel.com>

更改概述

差异

--- a/va/va.h
+++ b/va/va.h
@@ -1123,6 +1123,15 @@ typedef enum
11231123 VAEncMiscParameterBufferType = 27,
11241124 VAEncMacroblockParameterBufferType = 28,
11251125 VAEncMacroblockMapBufferType = 29,
1126+
1127+ /**
1128+ * \brief Encoding QP buffer
1129+ *
1130+ * This buffer contains QP per MB for encoding. Currently
1131+ * VAEncQPBufferH264 is defined for H.264 encoding, see
1132+ * #VAEncQPBufferH264 for details
1133+ */
1134+ VAEncQPBufferType = 30,
11261135 /* Following are video processing buffer types */
11271136 /**
11281137 * \brief Video processing pipeline parameter buffer.
--- a/va/va_enc_h264.h
+++ b/va/va_enc_h264.h
@@ -368,6 +368,15 @@ typedef struct _VAEncPictureParameterBufferH264 {
368368 } pic_fields;
369369 } VAEncPictureParameterBufferH264;
370370
371+typedef struct _VAEncQPBufferH264 {
372+ /*
373+ * \brief This structure holds QP per 16x16 macroblock. Buffer size shall be
374+ * sufficient to fit the slice or frame to be encoded depending on if it is a
375+ * slice level or frame level encoding.
376+ */
377+ uint8_t qp;
378+} VAEncQPBufferH264;
379+
371380 /**
372381 * \brief Slice parameter for H.264 encoding in baseline, main & high profiles.
373382 *