diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-04-20 10:34:05 -0700 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-01 09:00:14 +0100 |
commit | 356c4ed9ccb317b29fa7a9bb89b43f73cd70053e (patch) | |
tree | 3b67ecbcdd566d3b63d23c3f04afc1504ffbecd8 /src/cairo-png.c | |
parent | bf75c9542d97533d419ba19c8e2b91e03b0370da (diff) | |
download | cairo-356c4ed9ccb317b29fa7a9bb89b43f73cd70053e.tar.gz |
Expose 30bpp/10bpc support: CAIRO_FORMAT_RGB30
This is a common format used by framebuffers to drive 10bpc displays
and is often hardware accelerated by XRender with underlying support
from pixman's x2r10g10b10 format (which provides coercion paths for
fallbacks).
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-png.c')
-rw-r--r-- | src/cairo-png.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c index f5c7cb547..e176043db 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -241,6 +241,10 @@ write_png (cairo_surface_t *surface, else png_color_type = PNG_COLOR_TYPE_RGB_ALPHA; break; + case CAIRO_FORMAT_RGB30: + depth = 30; + png_color_type = PNG_COLOR_TYPE_RGB; + break; case CAIRO_FORMAT_RGB24: depth = 8; png_color_type = PNG_COLOR_TYPE_RGB; |