[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

@ -215,6 +215,7 @@ Version 1.5.4beta03 [June 15, 2011]
Version 1.5.4beta04 [June 15, 2011]
Added a missing "#ifdef PNG_READ_BACKGROUND_SUPPORTED/#endif" in pngrtran.c
Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit

View File

@ -3478,6 +3478,7 @@ Version 1.5.4beta03 [June 15, 2011]
Version 1.5.4beta04 [June 15, 2011]
Added a missing "#ifdef PNG_READ_BACKGROUND_SUPPORTED/#endif" in pngrtran.c
Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

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