summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2013-05-22 13:40:56 +0800
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-08-27 11:16:45 +0200
commit6b17473364df3c24549368838d7db582ed357f84 (patch)
treef153a5d4d79913633b20969ffc0743833e87570e
parent7bc0083a61e98f33c067e206cbe950f0b84aa5e3 (diff)
downloadlibva-6b17473364df3c24549368838d7db582ed357f84.tar.gz
vaimage: extend VAImage to support 4 planes
Change-Id: I1090f6cb4934cefd4f730e080e5f22ae17f51903 Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--va/va.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/va/va.h b/va/va.h
index fd8e6bd..dcaabb3 100644
--- a/va/va.h
+++ b/va/va.h
@@ -2173,7 +2173,7 @@ typedef struct _VAImage
unsigned short width;
unsigned short height;
unsigned int data_size;
- unsigned int num_planes; /* can not be greater than 3 */
+ unsigned int num_planes; /* can not be greater than 4 */
/*
* An array indicating the scanline pitch in bytes for each plane.
* Each plane may have a different pitch. Maximum 3 planes for planar formats
@@ -2197,6 +2197,12 @@ typedef struct _VAImage
* Only entry_bytes characters of the string are used.
*/
char component_order[4];
+ /*
+ * Pitch and byte offset for the fourth plane if the image format requires 4 planes
+ * Particular use case is JPEG with CMYK profile
+ */
+ unsigned int extra_pitch;
+ unsigned int extra_offset;
} VAImage;
/* Get maximum number of image formats supported by the implementation */