[Boost-bugs] [Boost C++ Libraries] #1144: GIL 2.1 PNG IO fix for endianness problem with bit_depth == 16.

Subject: [Boost-bugs] [Boost C++ Libraries] #1144: GIL 2.1 PNG IO fix for endianness problem with bit_depth == 16.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-06 10:51:29


#1144: GIL 2.1 PNG IO fix for endianness problem with bit_depth == 16.
----------------------------------------------------+-----------------------
 Reporter: William Gallafent <william_at_[hidden]> | Type: Patches
   Status: new | Milestone: To Be Determined
Component: None | Version: release 1.34.0
 Severity: Problem | Keywords: GIL
----------------------------------------------------+-----------------------
 When loading or saving PNGs with bit depth 16 on a little endian
 architecture, the bytes in each channel were not being swapped to match
 PNG's big endian byte ordering. This patch switches this byte-swapping on
 in LibPNG when loading and saving PNGs of bit-depth 16 on a little-endian
 architecture.

 Patch is against GIL 2.1 release, but I submit it here rather than in the
 GIL sourceforge, since I gather GIL is now in Boost, as of the next Boost
 release! Let me know if this is not the right place for this patch. I note
 that there is no GIL component in this Trac yet, so I left that set to
 none.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1144>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC