Change option (SUPPORTED) names, dummy code

The filter selection options are made more intuitive (IMO, but I am not an
Intuitive User).  Dummy code added for methodical filter selection.

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler
2015-12-02 19:03:28 -08:00
parent 71c5123a4d
commit 9fce04fcd6
5 changed files with 102 additions and 61 deletions

View File

@@ -925,24 +925,24 @@ option CONVERT_tIME requires WRITE_ANCILLARY_CHUNKS
#
# WRITE_FILTER
# Enables code to do PNG row filtering on write. If not enabled rows will
# be written without filtering, the 'NONE' filter. This enables the
# be written without filtering; the 'NONE' filter. This enables the
# png_set_filter interface allowing the application to select the filter
# used for each row.
#
# WRITE_HEURISTIC_FILTER
# SELECT_FILTER_HEURISTICALLY
# Enables code to cause libpng to choose a filter from a set passed to
# png_set_filter. Without this code libpng just chooses the first filter in
# the list if multiple are given.
#
# WRITE_OPTIMIZE_FILTER
# SELECT_FILTER_METHODICALLY
# Enables code to try all the filters in the list passed to png_set_filter
# and choose the one which results in the least number of compressed bytes
# added by the current row.
#
# See png.h for more description of these options.
option WRITE_FILTER requires WRITE
option WRITE_HEURISTIC_FILTER requires WRITE_FILTER enables SET_OPTION
option WRITE_OPTIMIZE_FILTER requires WRITE_FILTER enables SET_OPTION
option SELECT_FILTER_HEURISTICALLY requires WRITE_FILTER enables SET_OPTION
option SELECT_FILTER_METHODICALLY requires WRITE_FILTER enables SET_OPTION
# added at libpng-1.5.4

View File

@@ -134,13 +134,13 @@
#define PNG_WRITE_FILTER_SUPPORTED
#define PNG_WRITE_FLUSH_SUPPORTED
#define PNG_WRITE_GET_PALETTE_MAX_SUPPORTED
#define PNG_WRITE_HEURISTIC_FILTER_SUPPORTED
#define PNG_SELECT_FILTER_HEURISTICALLY_SUPPORTED
#define PNG_WRITE_INTERLACING_SUPPORTED
#define PNG_WRITE_INT_FUNCTIONS_SUPPORTED
#define PNG_WRITE_INVERT_ALPHA_SUPPORTED
#define PNG_WRITE_INVERT_SUPPORTED
#define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED
#define PNG_WRITE_OPTIMIZE_FILTER_SUPPORTED
#define PNG_SELECT_FILTER_METHODICALLY_SUPPORTED
#define PNG_WRITE_PACKSWAP_SUPPORTED
#define PNG_WRITE_PACK_SUPPORTED
#define PNG_WRITE_PNG_SUPPORTED