[Pixman] A6R6G6B6 (or A8R5G6B5)

Leon Woestenberg sidebranch.linux at gmail.com
Mon Mar 12 17:23:39 PDT 2012


Hello Siarhei, all,

On Mon, Mar 12, 2012 at 1:08 PM, Siarhei Siamashka <
siarhei.siamashka at gmail.com> wrote:

> On Mon, Mar 12, 2012 at 1:04 PM, Leon Woestenberg
> <sidebranch.linux at gmail.com> wrote:
> >
> > I am not a pixman developer, In order to add support a new colour byte
> > packing format (x8a6r6g6b6), can someone point me to an existing patch
> that
>
> Maybe this could be a useful example:
>
> http://cgit.freedesktop.org/pixman/commit/?id=f05a90e5f8d1d0af60e2c684cbe9f1327c33135a
>
> http://cgit.freedesktop.org/pixman/commit/?id=b514e63cfc58af21f7097db5a1b04292a758782a
>
> Thanks, that got me started. I have forked off and started work on this
format here: https://bitbucket.org/likewise/pixman-argb24

Additional questions I came up with so far,

What is the purpose of color_to_pixel()?  Not all formats are supported in
there, why not?

Also, what to do when there would be a 32-bit field with 4 ARGB components
within 24-bit, and a X8 to fill it up?

    PIXMAN_x2b10g10r10 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,0,10,10,10),
    PIXMAN_a2b10g10r10 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,2,10,10,10),

Would this work as expected?

PIXMAN_x8a8r5g6b5 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,8,5,6,5),

Regards,

Leon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pixman/attachments/20120313/4591205b/attachment.html>


More information about the Pixman mailing list