diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-12-03 15:13:40 +0100 |
---|---|---|
committer | Bryce Harrington <bryce@bryceharrington.org> | 2019-01-07 19:10:44 -0800 |
commit | a34cb719cd9cb4f0c5b78be80b80ab0ae22464a6 (patch) | |
tree | a74b88eacb6800be9cb055f2b7bc56d667654071 /src/cairoint.h | |
parent | 87c1c19197a6a3cdae955b320386f5449e17b286 (diff) | |
download | cairo-a34cb719cd9cb4f0c5b78be80b80ab0ae22464a6.tar.gz |
Add support for RGBA128F and RGB96F formats.
IGT wants to add support for planes with a bit depth >10, which
requires a higher precision format than we have currently.
I'm using RGBA as format, because of its existence in OpenGL.
With the new formats we can directly convert our bytes to half float,
or multiply a colro vector with a matrix to go to the Y'CbCr colorspace.
This requires pixman 0.36.0, so bump the version requirement.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
Diffstat (limited to 'src/cairoint.h')
-rw-r--r-- | src/cairoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index cfae18cf9..331ab5357 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -1536,7 +1536,7 @@ _cairo_surface_release_device_reference (cairo_surface_t *surface); * in cairo-xlib-surface.c--again see -Wswitch-enum). */ #define CAIRO_FORMAT_VALID(format) ((format) >= CAIRO_FORMAT_ARGB32 && \ - (format) <= CAIRO_FORMAT_RGB30) + (format) <= CAIRO_FORMAT_RGBA128F) /* pixman-required stride alignment in bytes. */ #define CAIRO_STRIDE_ALIGNMENT (sizeof (uint32_t)) |