From 6b17473364df3c24549368838d7db582ed357f84 Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Wed, 22 May 2013 13:40:56 +0800 Subject: vaimage: extend VAImage to support 4 planes Change-Id: I1090f6cb4934cefd4f730e080e5f22ae17f51903 Signed-off-by: Austin Yuan --- va/va.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.1