[libpng16] Unified pngfix.c source with libpng17.

This commit is contained in:
John Bowler 2013-07-02 23:47:57 -05:00 committed by Glenn Randers-Pehrson
parent f5f1206778
commit b4ec1f8451
3 changed files with 6 additions and 5 deletions

View File

@ -122,6 +122,7 @@ Version 1.6.3beta10 [July 3, 2013]
been clarified, with --strip=transform now stripping the bKGD chunk, been clarified, with --strip=transform now stripping the bKGD chunk,
which was stripped previously with --strip=unused. which was stripped previously with --strip=unused.
Added all documented chunk types to pngpriv.h Added all documented chunk types to pngpriv.h
Unified pngfix.c source with libpng17.
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

View File

@ -4606,6 +4606,7 @@ Version 1.6.3beta10 [July 3, 2013]
been clarified, with --strip=transform now stripping the bKGD chunk, been clarified, with --strip=transform now stripping the bKGD chunk,
which was stripped previously with --strip=unused. which was stripped previously with --strip=unused.
Added all documented chunk types to pngpriv.h Added all documented chunk types to pngpriv.h
Unified pngfix.c source with libpng17.
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

View File

@ -73,15 +73,13 @@
# define png_aligncastconst(type, value) ((const void*)(value)) # define png_aligncastconst(type, value) ((const void*)(value))
#endif /* __cplusplus */ #endif /* __cplusplus */
#if PNG_LIBPNG_VER < 10700
/* Chunk tags (copied from pngpriv.h) */ /* Chunk tags (copied from pngpriv.h) */
#define PNG_32b(b,s) ((png_uint_32)(b) << (s)) #define PNG_32b(b,s) ((png_uint_32)(b) << (s))
#define PNG_U32(b1,b2,b3,b4) \ #define PNG_U32(b1,b2,b3,b4) \
(PNG_32b(b1,24) | PNG_32b(b2,16) | PNG_32b(b3,8) | PNG_32b(b4,0)) (PNG_32b(b1,24) | PNG_32b(b2,16) | PNG_32b(b3,8) | PNG_32b(b4,0))
/* Constants for known chunk types. /* Constants for known chunk types. */
*
* Copied from ../../pngpriv.h.
*/
#define png_IDAT PNG_U32( 73, 68, 65, 84) #define png_IDAT PNG_U32( 73, 68, 65, 84)
#define png_IEND PNG_U32( 73, 69, 78, 68) #define png_IEND PNG_U32( 73, 69, 78, 68)
#define png_IHDR PNG_U32( 73, 72, 68, 82) #define png_IHDR PNG_U32( 73, 72, 68, 82)
@ -108,6 +106,7 @@
#define png_tIME PNG_U32(116, 73, 77, 69) #define png_tIME PNG_U32(116, 73, 77, 69)
#define png_tRNS PNG_U32(116, 82, 78, 83) #define png_tRNS PNG_U32(116, 82, 78, 83)
#define png_zTXt PNG_U32(122, 84, 88, 116) #define png_zTXt PNG_U32(122, 84, 88, 116)
#endif
/* The 8 byte signature as a pair of 32 bit quantities */ /* The 8 byte signature as a pair of 32 bit quantities */
#define sig1 PNG_U32(137, 80, 78, 71) #define sig1 PNG_U32(137, 80, 78, 71)