diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2013-05-22 13:40:56 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2013-08-13 11:01:56 +0800 |
commit | d540f278465929f3a31030e3f18fdc95ceecffa5 (patch) | |
tree | 4b9c617e147b8835314210fef6257402ae1fbd64 | |
parent | 263dfe6fe4be97a5fdce66a00b97ebce8d3de397 (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.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |