On Tue, Oct 11, 2005 at 06:21:25PM +1000, Emil Mikulic wrote:
> On Tue, Oct 11, 2005 at 05:10:53PM +0900, Carsten Haitzler wrote:
> > aah - but theres 2 bits of endianess handling to be done. 1 at the
> > rgbaimage level which is what that is fidldign with. the OTHER is at
> > the ximage ouptut level.
> 
> That's what I thought.  Problem at the X interface, not the image
> loader.
> 
> > try display form that ppc box onto your fbsd x86 box :)
> 
> Sorry if the previous mail was vague, but we don't have a PPC here.
> Geoff said that PPC works on the basis of Googling around.  =)
> 

Not quite, I based it on a code comment in loader_png.c line 125:

/* note form raster:                                                         */
/* thanks to mustapha for helping debug this on PPC Linux remotely by        */
/* sending across screenshots all the tiem and me figuring out form them     */
/* what the hell was up with the colors                                      */
/* now png loading shoudl work on big endian machines nicely                 */
#ifdef WORDS_BIGENDIAN
        png_set_swap_alpha(png_ptr);
        png_set_filler(png_ptr, 0xff, PNG_FILLER_BEFORE);
#else
        png_set_bgr(png_ptr);
        png_set_filler(png_ptr, 0xff, PNG_FILLER_AFTER);
#endif

I have no idea if swapping the alpha channel around fixes anything with regard
to endianess but it apparently works for someone :/

One final note, we have an 8-bit greyscale PNG which both endian-versions
display in blue, which I guess hints slightly more at the display side of
things causing problems. (this image isn't in the aforementioned test image
sets however)

--Geoff


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to