summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2013-05-22 13:40:56 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2013-08-13 11:01:56 +0800
commitd540f278465929f3a31030e3f18fdc95ceecffa5 (patch)
tree4b9c617e147b8835314210fef6257402ae1fbd64
parent263dfe6fe4be97a5fdce66a00b97ebce8d3de397 (diff)
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 54815c9..ddbef79 100644
--- a/va/va.h
+++ b/va/va.h
@@ -2174,7 +2174,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
@@ -2198,6 +2198,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 */