[Libva] [PATCH 3/6] Changes to VASliceParameterBufferVP8 to make it consistent with slice parameter buffer structure for other formats.

Xiang, Haihao haihao.xiang at intel.com
Thu Feb 13 08:39:35 CET 2014


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

---
 va/va_dec_vp8.h |   29 ++++++++++++++++++-----------
 1 file changed, 18 insertions(+), 11 deletions(-)

diff --git a/va/va_dec_vp8.h b/va/va_dec_vp8.h
index 0f45d44..a3526f7 100644
--- a/va/va_dec_vp8.h
+++ b/va/va_dec_vp8.h
@@ -161,25 +161,32 @@ typedef struct  _VAPictureParameterBufferVP8
  * \brief VP8 Slice Parameter Buffer Structure
  *
  * This structure conveys parameters related to data partitions and should be 
- * sent once per frame.
+ * sent once per frame. Slice data buffer of VASliceDataBufferType is used
+ * to send the partition data.
  *
  */
 typedef struct  _VASliceParameterBufferVP8
 {
-    /* Partitions */
-    unsigned char num_of_partitions;
-    unsigned int partition_size[9];
-    /* 
-     * slice data buffer of VASliceDataBufferType is used to send the 
-     * partition data. This field specifies the offset to the first byte of 
-     * partition data in the buffer.
+    /*
+     * number of bytes in the slice data buffer for the partitions 
      */
-    unsigned int partition_data_offset;
-
+    unsigned int slice_data_size;
+    /*
+     * offset to the first byte of partition data
+     */
+    unsigned int slice_data_offset;
+    /*
+     * see VA_SLICE_DATA_FLAG_XXX definitions
+     */
+    unsigned int slice_data_flag; 
     /*
-     * offset to the first bit of MB from the first byte of slice data buffer
+     * offset to the first bit of MB from the first byte of partition data
      */
     unsigned int macroblock_offset;
+
+    /* Partitions */
+    unsigned char num_of_partitions;
+    unsigned int partition_size[9];
 } VASliceParameterBufferVP8;
 
 /**
-- 
1.7.9.5



More information about the Libva mailing list