[devel] Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.

This commit is contained in:
Glenn Randers-Pehrson
2011-06-15 12:07:20 -05:00
parent 039ad872fe
commit b0791f75ad
3 changed files with 7 additions and 0 deletions

View File

@@ -1291,6 +1291,11 @@ png_read_png(png_structp png_ptr, png_infop info_ptr,
*/
if (transforms & PNG_TRANSFORM_STRIP_16)
png_set_strip_16(png_ptr);
# ifdef PNG_READ_CHOP_16_TO_8_SUPPORTED
else
if (transforms & PNG_TRANSFORM_CHOP_16)
png_set_chop_16(png_ptr);
#endif
#endif
#ifdef PNG_READ_STRIP_ALPHA_SUPPORTED