diff options
author | xfengcarl <carl.zhang@intel.com> | 2017-10-24 20:01:08 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-11-21 23:27:31 -0800 |
commit | 846e8bb7fa9fb91f3867547e832b15066c323af1 (patch) | |
tree | df4958df2bd4aaa26b2770f2b83a572c3755c5d6 /va | |
parent | c4218b5df975698e0e4dfda7b23928d95f9c5d0e (diff) | |
download | libva-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.h | 2 | ||||
-rw-r--r-- | va/va_enc_mpeg2.h | 13 |
2 files changed, 15 insertions, 0 deletions
@@ -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 |