[Gdal-dev] Re: Fix for PNG byte order problems under x86

Robert Osfield robert at openscenegraph.com
Thu Jan 29 09:22:55 EST 2004


Oopps, last minute change to the code which I submited didn't compile... the 
#if should have been an #ifdef :

#ifdef CPL_LSB        
    // png are stored as MSB/big endian, so we'll need to swap bytes if on a
    // LSB/little endian machine.
    if (poDS->nBitDepth>8)
        png_set_swap(poDS->hPNG);
#endif

File attached.

Robert.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pngdataset.cpp
Type: text/x-c++src
Size: 36972 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040129/91c610d3/pngdataset.bin


More information about the Gdal-dev mailing list