diff options
-rw-r--r-- | va/va.h | 9 | ||||
-rw-r--r-- | va/va_enc_h264.h | 9 |
2 files changed, 18 insertions, 0 deletions
@@ -1123,6 +1123,15 @@ typedef enum VAEncMiscParameterBufferType = 27, VAEncMacroblockParameterBufferType = 28, VAEncMacroblockMapBufferType = 29, + + /** + * \brief Encoding QP buffer + * + * This buffer contains QP per MB for encoding. Currently + * VAEncQPBufferH264 is defined for H.264 encoding, see + * #VAEncQPBufferH264 for details + */ + VAEncQPBufferType = 30, /* Following are video processing buffer types */ /** * \brief Video processing pipeline parameter buffer. diff --git a/va/va_enc_h264.h b/va/va_enc_h264.h index 2e7eb8d..c62ec93 100644 --- a/va/va_enc_h264.h +++ b/va/va_enc_h264.h @@ -368,6 +368,15 @@ typedef struct _VAEncPictureParameterBufferH264 { } pic_fields; } VAEncPictureParameterBufferH264; +typedef struct _VAEncQPBufferH264 { + /* + * \brief This structure holds QP per 16x16 macroblock. Buffer size shall be + * sufficient to fit the slice or frame to be encoded depending on if it is a + * slice level or frame level encoding. + */ + uint8_t qp; +} VAEncQPBufferH264; + /** * \brief Slice parameter for H.264 encoding in baseline, main & high profiles. * |