summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */