summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorxfengcarl <carl.zhang@intel.com>2017-10-24 20:01:08 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-11-21 23:27:31 -0800
commit846e8bb7fa9fb91f3867547e832b15066c323af1 (patch)
treedf4958df2bd4aaa26b2770f2b83a572c3755c5d6 /va
parentc4218b5df975698e0e4dfda7b23928d95f9c5d0e (diff)
downloadlibva-846e8bb7fa9fb91f3867547e832b15066c323af1.tar.gz
add sequence display extension support for MPEG2 encode
Signed-off-by: Carl.Zhang<carl.zhang@intel.com>
Diffstat (limited to 'va')
-rw-r--r--va/va.h2
-rw-r--r--va/va_enc_mpeg2.h13
2 files changed, 15 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index 666ad7f..8cbde80 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1643,6 +1643,8 @@ typedef enum
VAEncMiscParameterTypeCustomRoundingControl = 17,
/** \brief Buffer type used for FEI input frame level parameters */
VAEncMiscParameterTypeFEIFrameControl = 18,
+ /** \brief encode extension buffer, ect. MPEG2 Sequence extenstion data */
+ VAEncMiscParameterTypeExtensionData = 19
} VAEncMiscParameterType;
/** \brief Packed header type. */
diff --git a/va/va_enc_mpeg2.h b/va/va_enc_mpeg2.h
index 06f0e63..43663bd 100644
--- a/va/va_enc_mpeg2.h
+++ b/va/va_enc_mpeg2.h
@@ -287,6 +287,19 @@ typedef struct _VAEncSliceParameterBufferMPEG2 {
uint32_t va_reserved[VA_PADDING_LOW];
} VAEncSliceParameterBufferMPEG2;
+typedef struct _VAEncMiscParameterExtensionDataSeqDisplayMPEG2
+{
+ /** should always be 0x02 to identify it is Sequence Display Extension ISO-13818 */
+ uint8_t extension_start_code_identifier;
+ /** these field should follow ISO-13818 6.3.6 */
+ uint8_t video_format;
+ uint8_t colour_description;
+ uint8_t colour_primaries;
+ uint8_t transfer_characteristics;
+ uint8_t matrix_coefficients;
+ uint16_t display_horizontal_size;
+ uint16_t display_vertical_size;
+} VAEncMiscParameterExtensionDataSeqDisplayMPEG2;
/**@}*/
#ifdef __cplusplus