[cairo-bugs] [Bug 76438] New: Cairo does not expose all Pixman surface formats

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 21 03:25:18 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76438

          Priority: medium
            Bug ID: 76438
          Assignee: chris at chris-wilson.co.uk
           Summary: Cairo does not expose all Pixman surface formats
        QA Contact: cairo-bugs at cairographics.org
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: tal.liron at gmail.com
          Hardware: All
            Status: NEW
           Version: 1.12.16
         Component: image backend
           Product: cairo

For a reason unknown to me, cairo_format_t is much more limited than the many
options Pixman supports.

The _cairo_image_surface_create_with_pixman_format function does let the user
choose a format, but it is not normally exposed.

I can think of many use cases. In particular, my issue was interaction with
OpenGL ES 2.0: I am using Cairo to write to byte arrays which I later turn into
GL textures. However, OpenGL ES 2.0 only support GL_RGBA, whereas Cairo's
CAIRO_FORMAT_ARGB32 is equivalent to PIXMAN_a8r8g8b8. What I really need is
PIXMAN_a8b8g8r8.

Can this API be made public?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140321/0a2b9c42/attachment.html>


More information about the cairo-bugs mailing list