I'm sorry about my previous question to you Andrea, because I missed the first part of your post. Now that you kindly have explained it twice to me I understand that it is needed to access the data using a 32 bits unsigned int to get it with the correct endianess. Thanks!
> For a code example, see the difference between the code I wrote and yours. > In your code you are accessing each channel independently. > Instead, in the code I wrote, each channel is provided as part of a > 32-bit value, independent of the byte order. > > Basically, whenever you're doing pointer arithmetic to access a > channel in a pixel, you're probably doing it wrong (well, it might be > ok on your architecture, but the code is going to be > endian-dependent). > Use pointer arithmetic to get the pixel value and shift/masking to > access channels. -- Carlos http://synfig.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl