mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Made PNG_READ_16_TO_8_ACCURATE_SCALE configurable again.
If this is not enabled, png_set_strip_16() and png_do_scale_16_to_8() aren't built.
This commit is contained in:
@@ -1289,8 +1289,10 @@ png_read_png(png_structp png_ptr, png_infop info_ptr,
|
||||
#ifdef PNG_READ_16_TO_8_SUPPORTED
|
||||
/* Tell libpng to strip 16-bit/color files down to 8 bits per color.
|
||||
*/
|
||||
# ifdef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
||||
if (transforms & PNG_TRANSFORM_STRIP_16)
|
||||
png_set_strip_16(png_ptr);
|
||||
# endif
|
||||
# ifdef PNG_READ_CHOP_16_TO_8_SUPPORTED
|
||||
/* Added at libpng-1.5.4. "chop_16" produces the same result that "strip_16"
|
||||
* did in earlier versions, while "strip_16" is now more accurate.
|
||||
|
||||
Reference in New Issue
Block a user