[Spice-devel] [spice-common PATCH 1/2] ppc: Add macros for color byte ordering

Christophe Fergeau cfergeau at redhat.com
Thu Jul 2 04:43:56 PDT 2015


On Wed, Jul 01, 2015 at 06:20:52PM +0200, Lukas Venhoda wrote:
> When using image compression on PowerPC architecture, colors are in
> wrong order ARGB -> BGRA.
> 
> This commit introduces macros, that will change the color order
> according to machine endianness.

You could mention that this is similar to what qemu is doing.
spice_bitmap_try_as_pixman() could be simplified using these new
constants.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150702/0b541a9b/attachment.sig>


More information about the Spice-devel mailing list