[gephex-devel] Dealing with endianness

georg at kexbox.org georg at kexbox.org
Thu Mar 24 08:09:14 CET 2005


>    How do you deal with endianness issues in GePhex? In Drone, we 
> have lots of filters that make use of shift/bitwise operators. When 
> we run them on a big-endian machine, it seems to affect the output.

We don't have many effects that work on the colors directly.
Those that do cast a pixel tu uint8_t[4] and access the pixels
by position.

So inside gephex we do not get problems, but we often had (and still
have) problems with wrong colors from inputs and in outputs because
for example in X11 the pixel format seems to depend on endianess...

Best regards,

Georg


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the gephex-devel mailing list