Directly use component id instead of component index in VASliceParameterBufferJPEG
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 12 Jan 2012 05:32:10 +0000 (13:32 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 6 Feb 2012 08:26:52 +0000 (16:26 +0800)
The user application doesn't need to calculate the index anymore.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
va/va.h

diff --git a/va/va.h b/va/va.h
index 25c6194..20076a4 100644 (file)
--- a/va/va.h
+++ b/va/va.h
@@ -723,7 +723,7 @@ typedef struct _VASliceParameterBufferJPEG
 
     unsigned int num_components;
     struct {
-        int index;      /* index to the ARRAY components in VAPictureParameterBufferJPEG */
+        int component_id;               /* Csj, it must match one of component_ids specified in VAPictureParameterBufferJPEG */
         int dc_selector;                /* Tdj(0,1,2,3) */
         int ac_selector;                /* Taj(0,1,2,3) */
     } components[4];