mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Check for READ_CHOP_16_TO_8 support in pngvalid,
not libpng version for presence of png_set_chop_16_to_8(), in pngvalid.c
This commit is contained in:
parent
2232baa41b
commit
677819fe66
@ -5297,7 +5297,7 @@ IT(strip_16);
|
|||||||
#undef PT
|
#undef PT
|
||||||
#define PT ITSTRUCT(strip_16)
|
#define PT ITSTRUCT(strip_16)
|
||||||
|
|
||||||
#if PNG_LIBPNG_VER >= 10504 /* API added in 1.5.4 */
|
#ifdef PNG_READ_CHOP_16_TO_8_SUPPORTED /* API added in 1.5.4 */
|
||||||
/* png_set_chop_16 */
|
/* png_set_chop_16 */
|
||||||
static void
|
static void
|
||||||
image_transform_png_set_chop_16_set(PNG_CONST image_transform *this,
|
image_transform_png_set_chop_16_set(PNG_CONST image_transform *this,
|
||||||
@ -5349,7 +5349,7 @@ image_transform_png_set_chop_16_add(image_transform *this,
|
|||||||
IT(chop_16);
|
IT(chop_16);
|
||||||
#undef PT
|
#undef PT
|
||||||
#define PT ITSTRUCT(chop_16)
|
#define PT ITSTRUCT(chop_16)
|
||||||
#endif /* From libpng 1.5.4 */
|
#endif /* PNG_READ_CHOP_16_TO_8_SUPPORTED, from libpng 1.5.4 */
|
||||||
#endif /* PNG_READ_16_TO_8_SUPPORTED */
|
#endif /* PNG_READ_16_TO_8_SUPPORTED */
|
||||||
|
|
||||||
#ifdef PNG_READ_STRIP_ALPHA_SUPPORTED
|
#ifdef PNG_READ_STRIP_ALPHA_SUPPORTED
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user