[devel] Moved macro definitions for PNG_HAVE_IHDR, PNG_HAVE_PLTE, and

PNG_AFTER_IDAT from pngpriv.h to png.h because they must be visible to
applications that call png_set_unknown_chunks().
This commit is contained in:
Glenn Randers-Pehrson
2011-05-10 23:48:00 -05:00
parent f70c7d02e9
commit 2d3fc1ca3b
6 changed files with 31 additions and 14 deletions

View File

@@ -260,12 +260,14 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
*/
/* Various modes of operation. Note that after an init, mode is set to
* zero automatically when the structure is created.
* zero automatically when the structure is created. Three of these
* are defined in png.h because they need to be visible to applications
* that call png_set_unknown_chunk().
*/
#define PNG_HAVE_IHDR 0x01
#define PNG_HAVE_PLTE 0x02
/* #define PNG_HAVE_IHDR 0x01 (defined in png.h) */
/* #define PNG_HAVE_PLTE 0x02 (defined in png.h) */
#define PNG_HAVE_IDAT 0x04
#define PNG_AFTER_IDAT 0x08 /* Have complete zlib datastream */
/* #define PNG_AFTER_IDAT 0x08 (defined in png.h) */
#define PNG_HAVE_IEND 0x10
#define PNG_HAVE_gAMA 0x20
#define PNG_HAVE_cHRM 0x40