[libpng16] Added tests for invalid palette index while reading and writing

(work in progress, the latter isn't finished).
This commit is contained in:
Glenn Randers-Pehrson
2012-03-01 21:39:29 -06:00
parent cb129a6234
commit 363ae65e2b
7 changed files with 126 additions and 37 deletions

View File

@@ -586,7 +586,15 @@ option WRITE_COMPRESSED_TEXT enables WRITE_TEXT
option INFO_IMAGE
# Simplified API options
# added at libpng-1.5.10
# Turn this off to disable warning about invalid palette index and
# leave the num_palette_max member out of the png structure.
option CHECK_FOR_INVALID_INDEX
option READ_CHECK_FOR_INVALID_INDEX requires READ CHECK_FOR_INVALID_INDEX
option WRITE_CHECK_FOR_INVALID_INDEX requires WRITE CHECK_FOR_INVALID_INDEX
# Simplified API options (added at libpng-1.6.0)
# Read:
option SIMPLIFIED_READ requires SEQUENTIAL_READ READ_TRANSFORMS SETJMP
option SIMPLIFIED_READ enables READ_EXPAND READ_16BIT READ_EXPAND_16