Hello Siarhei, all,<br><br><div class="gmail_quote">On Mon, Mar 12, 2012 at 1:08 PM, Siarhei Siamashka <span dir="ltr"><<a href="mailto:siarhei.siamashka@gmail.com">siarhei.siamashka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Mon, Mar 12, 2012 at 1:04 PM, Leon Woestenberg<br>
<<a href="mailto:sidebranch.linux@gmail.com">sidebranch.linux@gmail.com</a>> wrote:<br>
><br>> I am not a pixman developer, In order to add support a new colour byte<br>
> packing format (x8a6r6g6b6), can someone point me to an existing patch that<br>
<br>
</div>Maybe this could be a useful example:<br>
<a href="http://cgit.freedesktop.org/pixman/commit/?id=f05a90e5f8d1d0af60e2c684cbe9f1327c33135a" target="_blank">http://cgit.freedesktop.org/pixman/commit/?id=f05a90e5f8d1d0af60e2c684cbe9f1327c33135a</a><br>
<a href="http://cgit.freedesktop.org/pixman/commit/?id=b514e63cfc58af21f7097db5a1b04292a758782a" target="_blank">http://cgit.freedesktop.org/pixman/commit/?id=b514e63cfc58af21f7097db5a1b04292a758782a</a><br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote></div>Thanks, that got me started. I have forked off and started work on this format here: <a href="https://bitbucket.org/likewise/pixman-argb24">https://bitbucket.org/likewise/pixman-argb24</a><br>
<br>Additional questions I came up with so far,<br><br>What is the purpose of color_to_pixel()? Not all formats are supported in there, why not?<br><br>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?<br>
<br> PIXMAN_x2b10g10r10 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,0,10,10,10),<br>
PIXMAN_a2b10g10r10 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,2,10,10,10),<br>
<br>Would this work as expected?<br><br>PIXMAN_x8a8r5g6b5 = PIXMAN_FORMAT(32,PIXMAN_TYPE_ABGR,8,5,6,5),<br>
<br>Regards,<br><br>Leon.<br><br><br><br><br><br>