[Pixman] A6R6G6B6 (or A8R5G6B5)
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
> Maybe this could be a useful example:
> 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),
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pixman