From 6c0d11159cf3c1c68b9adfd929840534d2c2a76d Mon Sep 17 00:00:00 2001 From: Jonathan Bian Date: Fri, 2 Mar 2012 16:29:41 -0800 Subject: [PATCH] Added aspect ratio related fields to VAEncSequenceParameterBufferH264 Signed-off-by: Jonathan Bian --- va/va_enc_h264.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/va/va_enc_h264.h b/va/va_enc_h264.h index 974e7dc..ae14cb5 100644 --- a/va/va_enc_h264.h +++ b/va/va_enc_h264.h @@ -231,6 +231,8 @@ typedef struct _VAEncSequenceParameterBufferH264 { union { struct { /** \brief Same as the H.264 bitstream syntax element. */ + unsigned int aspect_ratio_info_present_flag : 1; + /** \brief Same as the H.264 bitstream syntax element. */ unsigned int timing_info_present_flag : 1; /** \brief Same as the H.264 bitstream syntax element. */ unsigned int bitstream_restriction_flag : 1; @@ -242,6 +244,12 @@ typedef struct _VAEncSequenceParameterBufferH264 { unsigned int value; } vui_fields; /** \brief Same as the H.264 bitstream syntax element. */ + unsigned char aspect_ratio_idc; + /** \brief Same as the H.264 bitstream syntax element. */ + unsigned int sar_width; + /** \brief Same as the H.264 bitstream syntax element. */ + unsigned int sar_height; + /** \brief Same as the H.264 bitstream syntax element. */ unsigned int num_units_in_tick; /** \brief Same as the H.264 bitstream syntax element. */ unsigned int time_scale; -- 2.11.0