[Libva] [PATCH 40/42] Added aspect ratio related fields to VAEncSequenceParameterBufferH264

Xiang, Haihao haihao.xiang at intel.com
Mon May 13 00:52:04 PDT 2013


From: Jonathan Bian <jonathan.bian at intel.com>

Signed-off-by: Jonathan Bian <jonathan.bian at intel.com>
---
 va/va_enc_h264.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

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;
-- 
1.7.4.1



More information about the Libva mailing list