mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user