Add support for RGBA128F and RGB96F formats

Graphics / Cairo - Maarten Lankhorst [linux.intel.com] - 8 January 2019 03:10 EST

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.

a34cb719c Add support for RGBA128F and RGB96F formats.
configure.ac | 2 +-
perf/micro/fill-clip.c | 2 ++
perf/micro/pixel.c | 2 ++
src/cairo-debug.c | 6 ++++++
src/cairo-image-compositor.c | 4 ++++
src/cairo-image-source.c | 27 +++++++++++++++++++++++++++
src/cairo-image-surface.c | 16 ++++++++++++++++
src/cairo-png.c | 2 ++
src/cairo-script-surface.c | 20 ++++++++++++++++++++
src/cairo-xlib-display.c | 12 ++++++++++++
src/cairo.h | 6 +++++-
src/cairoint.h | 2 +-
test/any2ppm.c | 2 ++
test/map-to-image.c | 2 ++
test/png.c | 2 ++
util/cairo-script/cairo-script-operators.c | 12 ++++++++++++
util/cairo-trace/trace.c | 12 +++++++++++-
17 files changed, 127 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share