[libpng15] Restored unused FILTER_HEURISTIC macros removed at

libpng-1.5.23beta02 to png.h to avoid compatibility warnings.
This commit is contained in:
Glenn Randers-Pehrson 2015-07-13 07:04:17 -05:00
parent ceaf50079a
commit ce12446903
2 changed files with 8 additions and 0 deletions

View File

@ -4362,6 +4362,8 @@ Version 1.5.23beta02 [June 30, 2015]
Version 1.5.23rc01 [July 9, 2015] Version 1.5.23rc01 [July 9, 2015]
Belatedly added Mans Rullgard to the list of Contributing Authors. Belatedly added Mans Rullgard to the list of Contributing Authors.
Restored unused FILTER_HEURISTIC macros removed at libpng-1.5.23beta02
to png.h to avoid compatibility warnings.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

6
png.h
View File

@ -1679,6 +1679,12 @@ PNG_FIXED_EXPORT(209, void, png_set_filter_heuristics_fixed,
filter_weights, png_const_fixed_point_p filter_costs)) filter_weights, png_const_fixed_point_p filter_costs))
#endif /* PNG_WRITE_WEIGHTED_FILTER_SUPPORTED */ #endif /* PNG_WRITE_WEIGHTED_FILTER_SUPPORTED */
/* The following are no longer used and will be removed from libpng-1.7: */
#define PNG_FILTER_HEURISTIC_DEFAULT 0 /* Currently "UNWEIGHTED" */
#define PNG_FILTER_HEURISTIC_UNWEIGHTED 1 /* Used by libpng < 0.95 */
#define PNG_FILTER_HEURISTIC_WEIGHTED 2 /* Experimental feature */
#define PNG_FILTER_HEURISTIC_LAST 3 /* Not a valid value */
#ifdef PNG_WRITE_SUPPORTED #ifdef PNG_WRITE_SUPPORTED
/* Set the library compression level. Currently, valid values range from /* Set the library compression level. Currently, valid values range from
* 0 - 9, corresponding directly to the zlib compression levels 0 - 9 * 0 - 9, corresponding directly to the zlib compression levels 0 - 9