[master] Imported from libpng-1.5.11.tar
							
								
								
									
										69
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						@ -1,5 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Libpng 1.5.10 - March 29, 2012
 | 
					Libpng 1.5.11 - June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is a public release of libpng, intended for use in production codes.
 | 
					This is a public release of libpng, intended for use in production codes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -8,52 +8,43 @@ Files available for download:
 | 
				
			|||||||
Source files with LF line endings (for Unix/Linux) and with a
 | 
					Source files with LF line endings (for Unix/Linux) and with a
 | 
				
			||||||
"configure" script
 | 
					"configure" script
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   libpng-1.5.10.tar.xz (LZMA-compressed, recommended)
 | 
					   libpng-1.5.11.tar.xz (LZMA-compressed, recommended)
 | 
				
			||||||
   libpng-1.5.10.tar.gz
 | 
					   libpng-1.5.11.tar.gz
 | 
				
			||||||
   libpng-1.5.10.tar.bz2
 | 
					   libpng-1.5.11.tar.bz2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Source files with CRLF line endings (for Windows), without the
 | 
					Source files with CRLF line endings (for Windows), without the
 | 
				
			||||||
"configure" script
 | 
					"configure" script
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   lpng1510.7z  (LZMA-compressed, recommended)
 | 
					   lpng1511.7z  (LZMA-compressed, recommended)
 | 
				
			||||||
   lpng1510.zip
 | 
					   lpng1511.zip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Other information:
 | 
					Other information:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   libpng-1.5.10-README.txt
 | 
					   libpng-1.5.11-README.txt
 | 
				
			||||||
   libpng-1.5.10-LICENSE.txt
 | 
					   libpng-1.5.11-LICENSE.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Changes since the last public release (1.5.9):
 | 
					Changes since the last public release (1.5.10):
 | 
				
			||||||
 | 
					  Revised scripts/makefile.darwin: use system zlib; remove quotes around
 | 
				
			||||||
  Removed two useless #ifdef directives from pngread.c and one from pngrutil.c
 | 
					    architecture list; add missing ppc architecture; add architecture options
 | 
				
			||||||
  Always put the CMAKE_LIBRARY in "lib" (removed special WIN32 case).
 | 
					    to shared library link; don't try to create a shared lib based on missing
 | 
				
			||||||
  Removed empty vstudio/pngstest directory (Clifford Yapp).
 | 
					    RELEASE variable.
 | 
				
			||||||
  Eliminated redundant png_push_read_tEXt|zTXt|iTXt|unknown code from
 | 
					  Enable png_set_check_for_invalid_index() for both read and write.
 | 
				
			||||||
    pngpread.c and use the sequential png_handle_tEXt, etc., in pngrutil.c;
 | 
					  Removed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpriv.h around
 | 
				
			||||||
    now that png_ptr->buffer is inaccessible to applications, the special
 | 
					    declaration of png_handle_unknown().
 | 
				
			||||||
    handling is no longer useful.
 | 
					  Added -lssp_nonshared in a comment in scripts/makefile.freebsd
 | 
				
			||||||
  Fixed bug with png_handle_hIST with odd chunk length (Frank Busse).
 | 
					    and changed deprecated NOOBJ and NOPROFILE to NO_OBJ and NO_PROFILE.
 | 
				
			||||||
  Added PNG_SAFE_LIMITS feature to pnglibconf.dfa and code in pngconf.h
 | 
					  Revised CMakeLists.txt to not attempt to make a symlink under mingw.
 | 
				
			||||||
    to reset the user limits to safe ones if PNG_SAFE_LIMITS is defined.
 | 
					  Added two images to contrib/pngsuite (1-bit and 2-bit transparent grayscale),
 | 
				
			||||||
    To enable, use "CPPFLAGS=-DPNG_SAFE_LIMITS_SUPPORTED" on the configure
 | 
					    and renamed three whose names were inconsistent with those in
 | 
				
			||||||
    command or put "#define PNG_SAFE_LIMITS_SUPPORTED" in pnglibconf.h.
 | 
					    pngsuite/README.txt.
 | 
				
			||||||
  Revised the SAFE_LIMITS feature to be the same as the feature in libpng16.
 | 
					  Do not depend upon a GCC feature macro being available for use in generating
 | 
				
			||||||
  Added information about the new limits in the manual.
 | 
					    the linker mapfile symbol prefix.
 | 
				
			||||||
  Updated Makefile.in
 | 
					  Made fixes for new optimization warnings from gcc 4.7.0. The compiler
 | 
				
			||||||
  Removed unused "current_text" members of png_struct and the png_free()
 | 
					    performed an optimization which is safe but then warned about it.
 | 
				
			||||||
    of png_ptr->current_text from pngread.c
 | 
					    Changing the type of 'palette_number' in pngvalid.c removes the warning.
 | 
				
			||||||
  Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition.
 | 
					  Improved efficiency of new do_check_palette_indexes() function.
 | 
				
			||||||
  Fixed CMF optimization of non-IDAT compressed chunks, which was added at
 | 
					  Don't check palette indexes if num_palette is 0 (as it can be in MNG files).
 | 
				
			||||||
    libpng-1.5.4.  It sometimes produced too small of a window.
 | 
					  Include zlib.h in contrib/gregbook and contrib/visupng examples.
 | 
				
			||||||
  Reject all iCCP chunks after the first, even if the first one is invalid.
 | 
					 | 
				
			||||||
  Added palette-index checking. Issue a png_benign_error() if an invalid
 | 
					 | 
				
			||||||
    index is found.
 | 
					 | 
				
			||||||
  Revised example.c to put text strings in a temporary character array
 | 
					 | 
				
			||||||
    instead of directly assigning string constants to png_textp members.
 | 
					 | 
				
			||||||
    This avoids compiler warnings when -Wwrite-strings is enabled.
 | 
					 | 
				
			||||||
  Prevent PNG_EXPAND+PNG_SHIFT doing the shift twice.
 | 
					 | 
				
			||||||
  Revised png_set_text_2() to avoid potential memory corruption (fixes
 | 
					 | 
				
			||||||
    CVE-2011-3048).
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
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
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										37
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						@ -3854,6 +3854,43 @@ Version 1.5.10 [March 29, 2012]
 | 
				
			|||||||
  Revised png_set_text_2() to avoid potential memory corruption (fixes
 | 
					  Revised png_set_text_2() to avoid potential memory corruption (fixes
 | 
				
			||||||
    CVE-2011-3048).
 | 
					    CVE-2011-3048).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11beta01 [April 28, 2012]
 | 
				
			||||||
 | 
					  Revised scripts/makefile.darwin: use system zlib; remove quotes around
 | 
				
			||||||
 | 
					    architecture list; add missing ppc architecture; add architecture options
 | 
				
			||||||
 | 
					    to shared library link; don't try to create a shared lib based on missing
 | 
				
			||||||
 | 
					    RELEASE variable.
 | 
				
			||||||
 | 
					  Enable png_set_check_for_invalid_index() for both read and write.
 | 
				
			||||||
 | 
					  Removed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpriv.h around
 | 
				
			||||||
 | 
					    declaration of png_handle_unknown().
 | 
				
			||||||
 | 
					  Added -lssp_nonshared in a comment in scripts/makefile.freebsd
 | 
				
			||||||
 | 
					    and changed deprecated NOOBJ and NOPROFILE to NO_OBJ and NO_PROFILE.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11rc01 [May 23, 2012]
 | 
				
			||||||
 | 
					  No changes.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11rc02 [May 29, 2012]
 | 
				
			||||||
 | 
					  Fixed some typos in comments.
 | 
				
			||||||
 | 
					  Revised CMakeLists.txt to not attempt to make a symlink under mingw.
 | 
				
			||||||
 | 
					  Added two images to contrib/pngsuite (1-bit and 2-bit transparent grayscale),
 | 
				
			||||||
 | 
					    and renamed three whose names were inconsistent with those in
 | 
				
			||||||
 | 
					    pngsuite/README.txt.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11rc03 [June 4, 2012]
 | 
				
			||||||
 | 
					  Do not depend upon a GCC feature macro being available for use in generating
 | 
				
			||||||
 | 
					    the linker mapfile symbol prefix.
 | 
				
			||||||
 | 
					  Made fixes for new optimization warnings from gcc 4.7.0. The compiler
 | 
				
			||||||
 | 
					    performed an optimization which is safe but then warned about it.
 | 
				
			||||||
 | 
					    Changing the type of 'palette_number' in pngvalid.c removes the warning.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11rc04 [June 6, 2012]
 | 
				
			||||||
 | 
					  Improved performance of new do_check_palette_indexes() function.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11rc05 [June 7, 2012]
 | 
				
			||||||
 | 
					  Don't check palette indexes if num_palette is 0 (as it can be in MNG files).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Version 1.5.11 [June 14, 2012]
 | 
				
			||||||
 | 
					  Include zlib.h in contrib/gregbook and contrib/visupng examples.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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
 | 
				
			||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
 | 
					https://lists.sourceforge.net/lists/listinfo/png-mng-implement
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,7 @@ enable_testing()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set(PNGLIB_MAJOR 1)
 | 
					set(PNGLIB_MAJOR 1)
 | 
				
			||||||
set(PNGLIB_MINOR 5)
 | 
					set(PNGLIB_MINOR 5)
 | 
				
			||||||
set(PNGLIB_RELEASE 10)
 | 
					set(PNGLIB_RELEASE 11)
 | 
				
			||||||
set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR})
 | 
					set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR})
 | 
				
			||||||
set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE})
 | 
					set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -184,7 +184,7 @@ ENDIF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
 | 
				
			|||||||
# copies if different.
 | 
					# copies if different.
 | 
				
			||||||
macro(CREATE_SYMLINK SRC_FILE DEST_FILE)
 | 
					macro(CREATE_SYMLINK SRC_FILE DEST_FILE)
 | 
				
			||||||
  FILE(REMOVE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE})
 | 
					  FILE(REMOVE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE})
 | 
				
			||||||
  if(WIN32 AND NOT CYGWIN AND NOT MINGW)
 | 
					  if(WIN32 AND NOT CYGWIN AND NOT MSYS)
 | 
				
			||||||
    ADD_CUSTOM_COMMAND(
 | 
					    ADD_CUSTOM_COMMAND(
 | 
				
			||||||
        OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}   ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE}
 | 
					        OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}   ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE}
 | 
				
			||||||
        COMMAND ${CMAKE_COMMAND} -E copy        ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}
 | 
					        COMMAND ${CMAKE_COMMAND} -E copy        ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}
 | 
				
			||||||
@ -192,10 +192,10 @@ macro(CREATE_SYMLINK SRC_FILE DEST_FILE)
 | 
				
			|||||||
        DEPENDS ${PNG_LIB_NAME} ${PNG_LIB_NAME_STATIC}
 | 
					        DEPENDS ${PNG_LIB_NAME} ${PNG_LIB_NAME_STATIC}
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE})
 | 
					    ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE})
 | 
				
			||||||
  else(WIN32 AND NOT CYGWIN AND NOT MINGW)
 | 
					  else(WIN32 AND NOT CYGWIN AND NOT MSYS)
 | 
				
			||||||
    execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 | 
					    execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 | 
				
			||||||
    execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 | 
					    execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 | 
				
			||||||
  endif(WIN32 AND NOT CYGWIN AND NOT MINGW)
 | 
					  endif(WIN32 AND NOT CYGWIN AND NOT MSYS)
 | 
				
			||||||
endmacro()
 | 
					endmacro()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# libpng is a library so default to 'lib'
 | 
					# libpng is a library so default to 'lib'
 | 
				
			||||||
@ -225,7 +225,7 @@ endif(NOT WIN32 OR CYGWIN OR MINGW)
 | 
				
			|||||||
# SET UP LINKS
 | 
					# SET UP LINKS
 | 
				
			||||||
if(PNG_SHARED)
 | 
					if(PNG_SHARED)
 | 
				
			||||||
  set_target_properties(${PNG_LIB_NAME} PROPERTIES
 | 
					  set_target_properties(${PNG_LIB_NAME} PROPERTIES
 | 
				
			||||||
#   VERSION 15.${PNGLIB_RELEASE}.1.5.10
 | 
					#   VERSION 15.${PNGLIB_RELEASE}.1.5.11
 | 
				
			||||||
    VERSION 15.${PNGLIB_RELEASE}.0
 | 
					    VERSION 15.${PNGLIB_RELEASE}.0
 | 
				
			||||||
    SOVERSION 15
 | 
					    SOVERSION 15
 | 
				
			||||||
    CLEAN_DIRECT_OUTPUT 1)
 | 
					    CLEAN_DIRECT_OUTPUT 1)
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										6
									
								
								LICENSE
									
									
									
									
									
								
							
							
						
						@ -10,8 +10,8 @@ this sentence.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
This code is released under the libpng license.
 | 
					This code is released under the libpng license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libpng versions 1.2.6, August 15, 2004, through 1.5.10, March 29, 2012, are
 | 
					libpng versions 1.2.6, August 15, 2004, through 1.5.11, June 14, 2012, are
 | 
				
			||||||
Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are
 | 
					Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
 | 
				
			||||||
distributed according to the same disclaimer and license as libpng-1.2.5
 | 
					distributed according to the same disclaimer and license as libpng-1.2.5
 | 
				
			||||||
with the following individual added to the list of Contributing Authors
 | 
					with the following individual added to the list of Contributing Authors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -108,4 +108,4 @@ certification mark of the Open Source Initiative.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Glenn Randers-Pehrson
 | 
					Glenn Randers-Pehrson
 | 
				
			||||||
glennrp at users.sourceforge.net
 | 
					glennrp at users.sourceforge.net
 | 
				
			||||||
March 29, 2012
 | 
					June 14, 2012
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								README
									
									
									
									
									
								
							
							
						
						@ -1,4 +1,4 @@
 | 
				
			|||||||
README for libpng version 1.5.10 - March 29, 2012 (shared library 15.0)
 | 
					README for libpng version 1.5.11 - June 14, 2012 (shared library 15.0)
 | 
				
			||||||
See the note about version numbers near the top of png.h
 | 
					See the note about version numbers near the top of png.h
 | 
				
			||||||
 | 
					
 | 
				
			||||||
See INSTALL for instructions on how to install libpng.
 | 
					See INSTALL for instructions on how to install libpng.
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						@ -1,6 +1,6 @@
 | 
				
			|||||||
#! /bin/sh
 | 
					#! /bin/sh
 | 
				
			||||||
# Guess values for system-dependent variables and create Makefiles.
 | 
					# Guess values for system-dependent variables and create Makefiles.
 | 
				
			||||||
# Generated by GNU Autoconf 2.68 for libpng 1.5.10.
 | 
					# Generated by GNU Autoconf 2.68 for libpng 1.5.11.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Report bugs to <png-mng-implement@lists.sourceforge.net>.
 | 
					# Report bugs to <png-mng-implement@lists.sourceforge.net>.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
@ -570,8 +570,8 @@ MAKEFLAGS=
 | 
				
			|||||||
# Identity of this package.
 | 
					# Identity of this package.
 | 
				
			||||||
PACKAGE_NAME='libpng'
 | 
					PACKAGE_NAME='libpng'
 | 
				
			||||||
PACKAGE_TARNAME='libpng'
 | 
					PACKAGE_TARNAME='libpng'
 | 
				
			||||||
PACKAGE_VERSION='1.5.10'
 | 
					PACKAGE_VERSION='1.5.11'
 | 
				
			||||||
PACKAGE_STRING='libpng 1.5.10'
 | 
					PACKAGE_STRING='libpng 1.5.11'
 | 
				
			||||||
PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
 | 
					PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
 | 
				
			||||||
PACKAGE_URL=''
 | 
					PACKAGE_URL=''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1321,7 +1321,7 @@ if test "$ac_init_help" = "long"; then
 | 
				
			|||||||
  # Omit some internal or obsolete options to make the list less imposing.
 | 
					  # Omit some internal or obsolete options to make the list less imposing.
 | 
				
			||||||
  # This message is too long to be a string in the A/UX 3.1 sh.
 | 
					  # This message is too long to be a string in the A/UX 3.1 sh.
 | 
				
			||||||
  cat <<_ACEOF
 | 
					  cat <<_ACEOF
 | 
				
			||||||
\`configure' configures libpng 1.5.10 to adapt to many kinds of systems.
 | 
					\`configure' configures libpng 1.5.11 to adapt to many kinds of systems.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
 | 
					Usage: $0 [OPTION]... [VAR=VALUE]...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1391,7 +1391,7 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if test -n "$ac_init_help"; then
 | 
					if test -n "$ac_init_help"; then
 | 
				
			||||||
  case $ac_init_help in
 | 
					  case $ac_init_help in
 | 
				
			||||||
     short | recursive ) echo "Configuration of libpng 1.5.10:";;
 | 
					     short | recursive ) echo "Configuration of libpng 1.5.11:";;
 | 
				
			||||||
   esac
 | 
					   esac
 | 
				
			||||||
  cat <<\_ACEOF
 | 
					  cat <<\_ACEOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1502,7 +1502,7 @@ fi
 | 
				
			|||||||
test -n "$ac_init_help" && exit $ac_status
 | 
					test -n "$ac_init_help" && exit $ac_status
 | 
				
			||||||
if $ac_init_version; then
 | 
					if $ac_init_version; then
 | 
				
			||||||
  cat <<\_ACEOF
 | 
					  cat <<\_ACEOF
 | 
				
			||||||
libpng configure 1.5.10
 | 
					libpng configure 1.5.11
 | 
				
			||||||
generated by GNU Autoconf 2.68
 | 
					generated by GNU Autoconf 2.68
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Copyright (C) 2010 Free Software Foundation, Inc.
 | 
					Copyright (C) 2010 Free Software Foundation, Inc.
 | 
				
			||||||
@ -1925,7 +1925,7 @@ cat >config.log <<_ACEOF
 | 
				
			|||||||
This file contains any messages produced by compilers while
 | 
					This file contains any messages produced by compilers while
 | 
				
			||||||
running configure, to aid debugging if configure makes a mistake.
 | 
					running configure, to aid debugging if configure makes a mistake.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
It was created by libpng $as_me 1.5.10, which was
 | 
					It was created by libpng $as_me 1.5.11, which was
 | 
				
			||||||
generated by GNU Autoconf 2.68.  Invocation command line was
 | 
					generated by GNU Autoconf 2.68.  Invocation command line was
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $ $0 $@
 | 
					  $ $0 $@
 | 
				
			||||||
@ -2740,7 +2740,7 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Define the identity of the package.
 | 
					# Define the identity of the package.
 | 
				
			||||||
 PACKAGE='libpng'
 | 
					 PACKAGE='libpng'
 | 
				
			||||||
 VERSION='1.5.10'
 | 
					 VERSION='1.5.11'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cat >>confdefs.h <<_ACEOF
 | 
					cat >>confdefs.h <<_ACEOF
 | 
				
			||||||
@ -2804,10 +2804,10 @@ fi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PNGLIB_VERSION=1.5.10
 | 
					PNGLIB_VERSION=1.5.11
 | 
				
			||||||
PNGLIB_MAJOR=1
 | 
					PNGLIB_MAJOR=1
 | 
				
			||||||
PNGLIB_MINOR=5
 | 
					PNGLIB_MINOR=5
 | 
				
			||||||
PNGLIB_RELEASE=10
 | 
					PNGLIB_RELEASE=11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -12786,7 +12786,7 @@ $as_echo_n "checking for symbol prefix... " >&6; }
 | 
				
			|||||||
    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
 | 
					    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
 | 
				
			||||||
                  | ${CPP-${CC-gcc} -E} - 2>&1 \
 | 
					                  | ${CPP-${CC-gcc} -E} - 2>&1 \
 | 
				
			||||||
                  | ${EGREP-grep} "^PREFIX=" \
 | 
					                  | ${EGREP-grep} "^PREFIX=" \
 | 
				
			||||||
                   | ${SED-sed} "s:^PREFIX=::"`
 | 
					                  | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
 | 
					    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
 | 
				
			||||||
$as_echo "$SYMBOL_PREFIX" >&6; }
 | 
					$as_echo "$SYMBOL_PREFIX" >&6; }
 | 
				
			||||||
@ -13417,7 +13417,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 | 
				
			|||||||
# report actual input values of CONFIG_FILES etc. instead of their
 | 
					# report actual input values of CONFIG_FILES etc. instead of their
 | 
				
			||||||
# values after options handling.
 | 
					# values after options handling.
 | 
				
			||||||
ac_log="
 | 
					ac_log="
 | 
				
			||||||
This file was extended by libpng $as_me 1.5.10, which was
 | 
					This file was extended by libpng $as_me 1.5.11, which was
 | 
				
			||||||
generated by GNU Autoconf 2.68.  Invocation command line was
 | 
					generated by GNU Autoconf 2.68.  Invocation command line was
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  CONFIG_FILES    = $CONFIG_FILES
 | 
					  CONFIG_FILES    = $CONFIG_FILES
 | 
				
			||||||
@ -13483,7 +13483,7 @@ _ACEOF
 | 
				
			|||||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 | 
					cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 | 
				
			||||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 | 
					ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 | 
				
			||||||
ac_cs_version="\\
 | 
					ac_cs_version="\\
 | 
				
			||||||
libpng config.status 1.5.10
 | 
					libpng config.status 1.5.11
 | 
				
			||||||
configured by $0, generated by GNU Autoconf 2.68,
 | 
					configured by $0, generated by GNU Autoconf 2.68,
 | 
				
			||||||
  with options \\"\$ac_cs_config\\"
 | 
					  with options \\"\$ac_cs_config\\"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -18,15 +18,15 @@ AC_PREREQ(2.59)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
dnl Version number stuff here:
 | 
					dnl Version number stuff here:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AC_INIT([libpng], [1.5.10], [png-mng-implement@lists.sourceforge.net])
 | 
					AC_INIT([libpng], [1.5.11], [png-mng-implement@lists.sourceforge.net])
 | 
				
			||||||
AM_INIT_AUTOMAKE
 | 
					AM_INIT_AUTOMAKE
 | 
				
			||||||
dnl stop configure from automagically running automake
 | 
					dnl stop configure from automagically running automake
 | 
				
			||||||
AM_MAINTAINER_MODE
 | 
					AM_MAINTAINER_MODE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PNGLIB_VERSION=1.5.10
 | 
					PNGLIB_VERSION=1.5.11
 | 
				
			||||||
PNGLIB_MAJOR=1
 | 
					PNGLIB_MAJOR=1
 | 
				
			||||||
PNGLIB_MINOR=5
 | 
					PNGLIB_MINOR=5
 | 
				
			||||||
PNGLIB_RELEASE=10
 | 
					PNGLIB_RELEASE=11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dnl End of version number stuff
 | 
					dnl End of version number stuff
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -147,7 +147,7 @@ if test "$have_ld_version_script" = "yes"; then
 | 
				
			|||||||
    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
 | 
					    SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
 | 
				
			||||||
                  | ${CPP-${CC-gcc} -E} - 2>&1 \
 | 
					                  | ${CPP-${CC-gcc} -E} - 2>&1 \
 | 
				
			||||||
                  | ${EGREP-grep} "^PREFIX=" \
 | 
					                  | ${EGREP-grep} "^PREFIX=" \
 | 
				
			||||||
                   | ${SED-sed} "s:^PREFIX=::"`
 | 
					                  | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
 | 
				
			||||||
    AC_SUBST(SYMBOL_PREFIX)
 | 
					    AC_SUBST(SYMBOL_PREFIX)
 | 
				
			||||||
    AC_MSG_RESULT($SYMBOL_PREFIX)
 | 
					    AC_MSG_RESULT($SYMBOL_PREFIX)
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
@ -55,8 +55,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					#include <zlib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "png.h"        /* libpng header; includes zlib.h */
 | 
					#include "png.h"        /* libpng header */
 | 
				
			||||||
#include "readpng.h"    /* typedefs, common macros, public prototypes */
 | 
					#include "readpng.h"    /* typedefs, common macros, public prototypes */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* future versions of libpng will provide this macro: */
 | 
					/* future versions of libpng will provide this macro: */
 | 
				
			||||||
 | 
				
			|||||||
@ -55,8 +55,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>     /* for exit() prototype */
 | 
					#include <stdlib.h>     /* for exit() prototype */
 | 
				
			||||||
 | 
					#include <zlib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "png.h"        /* libpng header; includes zlib.h and setjmp.h */
 | 
					#include "png.h"        /* libpng header, includes setjmp.h */
 | 
				
			||||||
#include "writepng.h"   /* typedefs, common macros, public prototypes */
 | 
					#include "writepng.h"   /* typedefs, common macros, public prototypes */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngvalid.c - validate libpng by constructing then reading png files.
 | 
					/* pngvalid.c - validate libpng by constructing then reading png files.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.8 [%RDATE%]
 | 
					 * Last changed in libpng 1.5.8 [February 1, 2012]
 | 
				
			||||||
 * Copyright (c) 2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * Written by John Cunningham Bowler
 | 
					 * Written by John Cunningham Bowler
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@ -244,7 +244,7 @@ random_choice(void)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define COL_FROM_ID(id) ((png_byte)((id)& 0x7U))
 | 
					#define COL_FROM_ID(id) ((png_byte)((id)& 0x7U))
 | 
				
			||||||
#define DEPTH_FROM_ID(id) ((png_byte)(((id) >> 3) & 0x1fU))
 | 
					#define DEPTH_FROM_ID(id) ((png_byte)(((id) >> 3) & 0x1fU))
 | 
				
			||||||
#define PALETTE_FROM_ID(id) ((int)(((id) >> 8) & 0x1f))
 | 
					#define PALETTE_FROM_ID(id) (((id) >> 8) & 0x1f)
 | 
				
			||||||
#define INTERLACE_FROM_ID(id) ((int)(((id) >> 13) & 0x3))
 | 
					#define INTERLACE_FROM_ID(id) ((int)(((id) >> 13) & 0x3))
 | 
				
			||||||
#define DO_INTERLACE_FROM_ID(id) ((int)(((id)>>15) & 1))
 | 
					#define DO_INTERLACE_FROM_ID(id) ((int)(((id)>>15) & 1))
 | 
				
			||||||
#define WIDTH_FROM_ID(id) (((id)>>16) & 0xff)
 | 
					#define WIDTH_FROM_ID(id) (((id)>>16) & 0xff)
 | 
				
			||||||
@ -253,7 +253,7 @@ random_choice(void)
 | 
				
			|||||||
/* Utility to construct a standard name for a standard image. */
 | 
					/* Utility to construct a standard name for a standard image. */
 | 
				
			||||||
static size_t
 | 
					static size_t
 | 
				
			||||||
standard_name(char *buffer, size_t bufsize, size_t pos, png_byte colour_type,
 | 
					standard_name(char *buffer, size_t bufsize, size_t pos, png_byte colour_type,
 | 
				
			||||||
    int bit_depth, int npalette, int interlace_type,
 | 
					    int bit_depth, unsigned int npalette, int interlace_type,
 | 
				
			||||||
    png_uint_32 w, png_uint_32 h, int do_interlace)
 | 
					    png_uint_32 w, png_uint_32 h, int do_interlace)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
   pos = safecat(buffer, bufsize, pos, colour_types[colour_type]);
 | 
					   pos = safecat(buffer, bufsize, pos, colour_types[colour_type]);
 | 
				
			||||||
@ -315,10 +315,11 @@ standard_name_from_id(char *buffer, size_t bufsize, size_t pos, png_uint_32 id)
 | 
				
			|||||||
/* The following defines the number of different palettes to generate for
 | 
					/* The following defines the number of different palettes to generate for
 | 
				
			||||||
 * each log bit depth of a colour type 3 standard image.
 | 
					 * each log bit depth of a colour type 3 standard image.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#define PALETTE_COUNT(bit_depth) ((bit_depth) > 4 ? 1 : 16)
 | 
					#define PALETTE_COUNT(bit_depth) ((bit_depth) > 4 ? 1U : 16U)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int
 | 
					static int
 | 
				
			||||||
next_format(png_bytep colour_type, png_bytep bit_depth, int* palette_number)
 | 
					next_format(png_bytep colour_type, png_bytep bit_depth,
 | 
				
			||||||
 | 
					   unsigned int* palette_number)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
   if (*bit_depth == 0)
 | 
					   if (*bit_depth == 0)
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
@ -3256,8 +3257,8 @@ transform_row(png_structp pp, png_byte buffer[TRANSFORM_ROWMAX],
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
make_transform_image(png_store* PNG_CONST ps, png_byte PNG_CONST colour_type,
 | 
					make_transform_image(png_store* PNG_CONST ps, png_byte PNG_CONST colour_type,
 | 
				
			||||||
    png_byte PNG_CONST bit_depth, int palette_number, int interlace_type,
 | 
					    png_byte PNG_CONST bit_depth, unsigned int palette_number,
 | 
				
			||||||
    png_const_charp name)
 | 
					    int interlace_type, png_const_charp name)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
   context(ps, fault);
 | 
					   context(ps, fault);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3384,7 +3385,7 @@ make_transform_images(png_store *ps)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
   png_byte colour_type = 0;
 | 
					   png_byte colour_type = 0;
 | 
				
			||||||
   png_byte bit_depth = 0;
 | 
					   png_byte bit_depth = 0;
 | 
				
			||||||
   int palette_number = 0;
 | 
					   unsigned int palette_number = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   /* This is in case of errors. */
 | 
					   /* This is in case of errors. */
 | 
				
			||||||
   safecat(ps->test, sizeof ps->test, 0, "make standard images");
 | 
					   safecat(ps->test, sizeof ps->test, 0, "make standard images");
 | 
				
			||||||
@ -7069,7 +7070,7 @@ perform_transform_test(png_modifier *pm)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
   png_byte colour_type = 0;
 | 
					   png_byte colour_type = 0;
 | 
				
			||||||
   png_byte bit_depth = 0;
 | 
					   png_byte bit_depth = 0;
 | 
				
			||||||
   int palette_number = 0;
 | 
					   unsigned int palette_number = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   while (next_format(&colour_type, &bit_depth, &palette_number))
 | 
					   while (next_format(&colour_type, &bit_depth, &palette_number))
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
@ -8428,7 +8429,7 @@ perform_gamma_threshold_tests(png_modifier *pm)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
   png_byte colour_type = 0;
 | 
					   png_byte colour_type = 0;
 | 
				
			||||||
   png_byte bit_depth = 0;
 | 
					   png_byte bit_depth = 0;
 | 
				
			||||||
   int palette_number = 0;
 | 
					   unsigned int palette_number = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   /* Don't test more than one instance of each palette - it's pointless, in
 | 
					   /* Don't test more than one instance of each palette - it's pointless, in
 | 
				
			||||||
    * fact this test is somewhat excessive since libpng doesn't make this
 | 
					    * fact this test is somewhat excessive since libpng doesn't make this
 | 
				
			||||||
@ -8493,7 +8494,7 @@ static void perform_gamma_transform_tests(png_modifier *pm)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
   png_byte colour_type = 0;
 | 
					   png_byte colour_type = 0;
 | 
				
			||||||
   png_byte bit_depth = 0;
 | 
					   png_byte bit_depth = 0;
 | 
				
			||||||
   int palette_number = 0;
 | 
					   unsigned int palette_number = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   while (next_format(&colour_type, &bit_depth, &palette_number))
 | 
					   while (next_format(&colour_type, &bit_depth, &palette_number))
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
@ -8522,11 +8523,8 @@ static void perform_gamma_sbit_tests(png_modifier *pm)
 | 
				
			|||||||
    */
 | 
					    */
 | 
				
			||||||
   for (sbit=pm->sbitlow; sbit<(1<<READ_BDHI); ++sbit)
 | 
					   for (sbit=pm->sbitlow; sbit<(1<<READ_BDHI); ++sbit)
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      png_byte colour_type, bit_depth;
 | 
					      png_byte colour_type = 0, bit_depth = 0;
 | 
				
			||||||
      int npalette;
 | 
					      unsigned int npalette = 0;
 | 
				
			||||||
 | 
					 | 
				
			||||||
      colour_type = bit_depth = 0;
 | 
					 | 
				
			||||||
      npalette = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      while (next_format(&colour_type, &bit_depth, &npalette))
 | 
					      while (next_format(&colour_type, &bit_depth, &npalette))
 | 
				
			||||||
         if ((colour_type & PNG_COLOR_MASK_ALPHA) == 0 &&
 | 
					         if ((colour_type & PNG_COLOR_MASK_ALPHA) == 0 &&
 | 
				
			||||||
@ -8742,7 +8740,7 @@ perform_gamma_composition_tests(png_modifier *pm, int do_background,
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
   png_byte colour_type = 0;
 | 
					   png_byte colour_type = 0;
 | 
				
			||||||
   png_byte bit_depth = 0;
 | 
					   png_byte bit_depth = 0;
 | 
				
			||||||
   int palette_number = 0;
 | 
					   unsigned int palette_number = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   /* Skip the non-alpha cases - there is no setting of a transparency colour at
 | 
					   /* Skip the non-alpha cases - there is no setting of a transparency colour at
 | 
				
			||||||
    * present.
 | 
					    * present.
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
pngsuite
 | 
					pngsuite
 | 
				
			||||||
--------
 | 
					--------
 | 
				
			||||||
(c) Willem van Schaik, 1999, 2011
 | 
					(c) Willem van Schaik, 1999, 2011, 2012
 | 
				
			||||||
 | 
					Two images are by Glenn Randers-Pehrson, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Permission to use, copy, modify, and distribute these images for any
 | 
					Permission to use, copy, modify, and distribute these images for any
 | 
				
			||||||
purpose and without fee is hereby granted.
 | 
					purpose and without fee is hereby granted.
 | 
				
			||||||
@ -38,6 +39,8 @@ can use them to test the proper functioning of PNG software.
 | 
				
			|||||||
    basn6a08.png   8-bit RGBA
 | 
					    basn6a08.png   8-bit RGBA
 | 
				
			||||||
    basn6a16.png  16-bit RGBA
 | 
					    basn6a16.png  16-bit RGBA
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    ftbbn0g01.png  1-bit grayscale, black bKGD
 | 
				
			||||||
 | 
					    ftbbn0g02.png  2-bit grayscale, black bKGD
 | 
				
			||||||
    ftbbn0g04.png  4-bit grayscale, black bKGD
 | 
					    ftbbn0g04.png  4-bit grayscale, black bKGD
 | 
				
			||||||
    ftbbn2c16.png 16-bit truecolor, black bKGD
 | 
					    ftbbn2c16.png 16-bit truecolor, black bKGD
 | 
				
			||||||
    ftbbn3p08.png  8-bit paletted, black bKGD
 | 
					    ftbbn3p08.png  8-bit paletted, black bKGD
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								contrib/pngsuite/ftbbn0g01.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 176 B  | 
							
								
								
									
										
											BIN
										
									
								
								contrib/pngsuite/ftbbn0g02.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 197 B  | 
| 
		 Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 429 B  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 719 B  | 
@ -13,6 +13,7 @@
 | 
				
			|||||||
#include <commdlg.h>
 | 
					#include <commdlg.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					#include <zlib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "png.h"
 | 
					#include "png.h"
 | 
				
			||||||
#include "pngfile.h"
 | 
					#include "pngfile.h"
 | 
				
			||||||
 | 
				
			|||||||
@ -27,6 +27,7 @@
 | 
				
			|||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <windows.h>
 | 
					#include <windows.h>
 | 
				
			||||||
 | 
					#include <zlib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* application includes */
 | 
					/* application includes */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
libpng-manual.txt - A description on how to use and modify libpng
 | 
					Libpng-manual.txt - A description on how to use and modify libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 libpng version 1.5.10 - March 29, 2012
 | 
					 libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 Updated and distributed by Glenn Randers-Pehrson
 | 
					 Updated and distributed by Glenn Randers-Pehrson
 | 
				
			||||||
 <glennrp at users.sourceforge.net>
 | 
					 <glennrp at users.sourceforge.net>
 | 
				
			||||||
 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
@ -11,7 +11,7 @@ libpng-manual.txt - A description on how to use and modify libpng
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 Based on:
 | 
					 Based on:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 libpng versions 0.97, January 1998, through 1.5.10 - March 29, 2012
 | 
					 libpng versions 0.97, January 1998, through 1.5.11 - June 14, 2012
 | 
				
			||||||
 Updated and distributed by Glenn Randers-Pehrson
 | 
					 Updated and distributed by Glenn Randers-Pehrson
 | 
				
			||||||
 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -141,8 +141,8 @@ APIs.  Most of these are fairly obvious; for example types corresponding
 | 
				
			|||||||
to integers of particular sizes and types for passing color values.
 | 
					to integers of particular sizes and types for passing color values.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
One exception is how non-integral numbers are handled.  For application
 | 
					One exception is how non-integral numbers are handled.  For application
 | 
				
			||||||
convenience most APIs that take such numbers have C (double) arguments,
 | 
					convenience most APIs that take such numbers have C (double) arguments;
 | 
				
			||||||
however internally PNG, and libpng, use 32 bit signed integers and encode
 | 
					however, internally PNG, and libpng, use 32 bit signed integers and encode
 | 
				
			||||||
the value by multiplying by 100,000.  As of libpng 1.5.0 a convenience
 | 
					the value by multiplying by 100,000.  As of libpng 1.5.0 a convenience
 | 
				
			||||||
macro PNG_FP_1 is defined in png.h along with a type (png_fixed_point)
 | 
					macro PNG_FP_1 is defined in png.h along with a type (png_fixed_point)
 | 
				
			||||||
which is simply (png_int_32).
 | 
					which is simply (png_int_32).
 | 
				
			||||||
@ -799,7 +799,7 @@ the screen_gamma value.  Pixels with alpha less than 1.0
 | 
				
			|||||||
will still have linear components.
 | 
					will still have linear components.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Use this format if you have control over your
 | 
					Use this format if you have control over your
 | 
				
			||||||
compositing software and do don't do other arithmetic
 | 
					compositing software and so don't do other arithmetic
 | 
				
			||||||
(such as scaling) on the data you get from libpng.  Your
 | 
					(such as scaling) on the data you get from libpng.  Your
 | 
				
			||||||
compositing software can simply copy opaque pixels to
 | 
					compositing software can simply copy opaque pixels to
 | 
				
			||||||
the output but still has linear values for the
 | 
					the output but still has linear values for the
 | 
				
			||||||
@ -1130,6 +1130,11 @@ data has been read, or zero if it is missing.  The parameters to the
 | 
				
			|||||||
png_get_<chunk> are set directly if they are simple data types, or a
 | 
					png_get_<chunk> are set directly if they are simple data types, or a
 | 
				
			||||||
pointer into the info_ptr is returned for any complex types.
 | 
					pointer into the info_ptr is returned for any complex types.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The colorspace data from gAMA, cHRM, sRGB, iCCP, and sBIT chunks
 | 
				
			||||||
 | 
					is simply returned to give the application information about how the
 | 
				
			||||||
 | 
					image was encoded.  Libpng itself only does transformations using the file
 | 
				
			||||||
 | 
					gamma when combining semitransparent pixels with the background color.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_get_PLTE(png_ptr, info_ptr, &palette,
 | 
					    png_get_PLTE(png_ptr, info_ptr, &palette,
 | 
				
			||||||
                     &num_palette);
 | 
					                     &num_palette);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1141,7 +1146,7 @@ pointer into the info_ptr is returned for any complex types.
 | 
				
			|||||||
    png_get_gAMA(png_ptr, info_ptr, &file_gamma);
 | 
					    png_get_gAMA(png_ptr, info_ptr, &file_gamma);
 | 
				
			||||||
    png_get_gAMA_fixed(png_ptr, info_ptr, &int_file_gamma);
 | 
					    png_get_gAMA_fixed(png_ptr, info_ptr, &int_file_gamma);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    file_gamma     - the gamma at which the file is
 | 
					    file_gamma     - the gamma at which the file was
 | 
				
			||||||
                     written (PNG_INFO_gAMA)
 | 
					                     written (PNG_INFO_gAMA)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    int_file_gamma - 100,000 times the gamma at which the
 | 
					    int_file_gamma - 100,000 times the gamma at which the
 | 
				
			||||||
@ -1733,7 +1738,7 @@ the current display (e.g., the background color from a web page).  You
 | 
				
			|||||||
need to tell libpng how the color is represented, both the format of the
 | 
					need to tell libpng how the color is represented, both the format of the
 | 
				
			||||||
component values in the color (the number of bits) and the gamma encoding of the
 | 
					component values in the color (the number of bits) and the gamma encoding of the
 | 
				
			||||||
color.  The function takes two arguments, background_gamma_mode and need_expand
 | 
					color.  The function takes two arguments, background_gamma_mode and need_expand
 | 
				
			||||||
to convey this information, however only two combinations are likely to be
 | 
					to convey this information; however, only two combinations are likely to be
 | 
				
			||||||
useful:
 | 
					useful:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_color_16 my_background;
 | 
					    png_color_16 my_background;
 | 
				
			||||||
@ -2027,7 +2032,7 @@ the second parameter NULL.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If you don't want libpng to handle the interlacing details, just call
 | 
					If you don't want libpng to handle the interlacing details, just call
 | 
				
			||||||
png_read_rows() PNG_INTERLACE_ADAM7_PASSES times to read in all the images.
 | 
					png_read_rows() PNG_INTERLACE_ADAM7_PASSES times to read in all the images.
 | 
				
			||||||
Each of the images is a valid image by itself, however you will almost
 | 
					Each of the images is a valid image by itself; however, you will almost
 | 
				
			||||||
certainly need to distribute the pixels from each sub-image to the
 | 
					certainly need to distribute the pixels from each sub-image to the
 | 
				
			||||||
correct place.  This is where everything gets very tricky.
 | 
					correct place.  This is where everything gets very tricky.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3685,7 +3690,7 @@ available to set these separately for non-IDAT
 | 
				
			|||||||
compressed chunks such as zTXt, iTXt, and iCCP:
 | 
					compressed chunks such as zTXt, iTXt, and iCCP:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #include zlib.h
 | 
					    #include zlib.h
 | 
				
			||||||
    #if PNG_LIBPNG_VER <= 10504
 | 
					    #if PNG_LIBPNG_VER >= 10504
 | 
				
			||||||
    png_set_text_compression_level(png_ptr, level);
 | 
					    png_set_text_compression_level(png_ptr, level);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_set_text_compression_mem_level(png_ptr, level);
 | 
					    png_set_text_compression_mem_level(png_ptr, level);
 | 
				
			||||||
@ -4155,7 +4160,7 @@ This is enabled by default but can be disabled in each png_ptr with
 | 
				
			|||||||
A. Changes that affect users of libpng
 | 
					A. Changes that affect users of libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are no substantial API changes between the non-deprecated parts of
 | 
					There are no substantial API changes between the non-deprecated parts of
 | 
				
			||||||
the 1.4.5 API and the 1.5.0 API, however the ability to directly access
 | 
					the 1.4.5 API and the 1.5.0 API; however, the ability to directly access
 | 
				
			||||||
the main libpng control structures, png_struct and png_info, deprecated
 | 
					the main libpng control structures, png_struct and png_info, deprecated
 | 
				
			||||||
in earlier versions of libpng, has been completely removed from
 | 
					in earlier versions of libpng, has been completely removed from
 | 
				
			||||||
libpng 1.5.
 | 
					libpng 1.5.
 | 
				
			||||||
@ -4288,12 +4293,12 @@ B. Changes to the build and configuration of libpng
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Details of internal changes to the library code can be found in the CHANGES
 | 
					Details of internal changes to the library code can be found in the CHANGES
 | 
				
			||||||
file and in the GIT repository logs.  These will be of no concern to the vast
 | 
					file and in the GIT repository logs.  These will be of no concern to the vast
 | 
				
			||||||
majority of library users or builders, however the few who configure libpng
 | 
					majority of library users or builders; however, the few who configure libpng
 | 
				
			||||||
to a non-default feature set may need to change how this is done.
 | 
					to a non-default feature set may need to change how this is done.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There should be no need for library builders to alter build scripts if
 | 
					There should be no need for library builders to alter build scripts if
 | 
				
			||||||
these use the distributed build support - configure or the makefiles -
 | 
					these use the distributed build support - configure or the makefiles -
 | 
				
			||||||
however users of the makefiles may care to update their build scripts
 | 
					however, users of the makefiles may care to update their build scripts
 | 
				
			||||||
to build pnglibconf.h where the corresponding makefile does not do so.
 | 
					to build pnglibconf.h where the corresponding makefile does not do so.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Building libpng with a non-default configuration has changed completely.
 | 
					Building libpng with a non-default configuration has changed completely.
 | 
				
			||||||
@ -4399,7 +4404,7 @@ merely stops the function from being exported.
 | 
				
			|||||||
PNG_FLOATING_ARITHMETIC_SUPPORTED chooses between the internal floating
 | 
					PNG_FLOATING_ARITHMETIC_SUPPORTED chooses between the internal floating
 | 
				
			||||||
point implementation or the fixed point one.  Typically the fixed point
 | 
					point implementation or the fixed point one.  Typically the fixed point
 | 
				
			||||||
implementation is larger and slower than the floating point implementation
 | 
					implementation is larger and slower than the floating point implementation
 | 
				
			||||||
on a system that supports floating point, however it may be faster on a
 | 
					on a system that supports floating point; however, it may be faster on a
 | 
				
			||||||
system which lacks floating point hardware and therefore uses a software
 | 
					system which lacks floating point hardware and therefore uses a software
 | 
				
			||||||
emulation.
 | 
					emulation.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -4428,7 +4433,7 @@ pngconf.h no longer includes pngusr.h, therefore pngusr.h is ignored after the
 | 
				
			|||||||
build of pnglibconf.h and it is never included in an application build.
 | 
					build of pnglibconf.h and it is never included in an application build.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The rarely used alternative of adding a list of feature macros to the
 | 
					The rarely used alternative of adding a list of feature macros to the
 | 
				
			||||||
CFLAGS setting in the build also still works, however the macros will be
 | 
					CFLAGS setting in the build also still works; however, the macros will be
 | 
				
			||||||
copied to pnglibconf.h and this may produce macro redefinition warnings
 | 
					copied to pnglibconf.h and this may produce macro redefinition warnings
 | 
				
			||||||
when the individual C files are compiled.
 | 
					when the individual C files are compiled.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -4597,25 +4602,25 @@ Other rules can be inferred by inspecting the libpng source.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
XIV. Y2K Compliance in libpng
 | 
					XIV. Y2K Compliance in libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
March 29, 2012
 | 
					June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Since the PNG Development group is an ad-hoc body, we can't make
 | 
					Since the PNG Development group is an ad-hoc body, we can't make
 | 
				
			||||||
an official declaration.
 | 
					an official declaration.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is your unofficial assurance that libpng from version 0.71 and
 | 
					This is your unofficial assurance that libpng from version 0.71 and
 | 
				
			||||||
upward through 1.5.10 are Y2K compliant.  It is my belief that earlier
 | 
					upward through 1.5.11 are Y2K compliant.  It is my belief that earlier
 | 
				
			||||||
versions were also Y2K compliant.
 | 
					versions were also Y2K compliant.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Libpng only has three year fields.  One is a 2-byte unsigned integer that
 | 
					Libpng only has two year fields.  One is a 2-byte unsigned integer that
 | 
				
			||||||
will hold years up to 65535.  The other two hold the date in text
 | 
					will hold years up to 65535.  The other holds the date in text
 | 
				
			||||||
format, and will hold years up to 9999.
 | 
					format, and will hold years up to 9999.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The integer is
 | 
					The integer is
 | 
				
			||||||
    "png_uint_16 year" in png_time_struct.
 | 
					    "png_uint_16 year" in png_time_struct.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The strings are
 | 
					The string is
 | 
				
			||||||
    "png_charp time_buffer" in png_struct and
 | 
					    "char time_buffer[29]" in png_struct.  This will no
 | 
				
			||||||
    "near_time_buffer", which is a local character string in png.c.
 | 
					longer be used in libpng-1.6.x and will be removed from libpng-1.7.0.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are seven time-related functions:
 | 
					There are seven time-related functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										62
									
								
								libpng.3
									
									
									
									
									
								
							
							
						
						@ -1,6 +1,6 @@
 | 
				
			|||||||
.TH LIBPNG 3 "March 29, 2012"
 | 
					.TH LIBPNG 3 "June 14, 2012"
 | 
				
			||||||
.SH NAME
 | 
					.SH NAME
 | 
				
			||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.10
 | 
					libpng \- Portable Network Graphics (PNG) Reference Library 1.5.11
 | 
				
			||||||
.SH SYNOPSIS
 | 
					.SH SYNOPSIS
 | 
				
			||||||
\fI\fB
 | 
					\fI\fB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -979,9 +979,9 @@ the Portable Network Graphics (PNG) format image files.  It uses the
 | 
				
			|||||||
compression library.
 | 
					compression library.
 | 
				
			||||||
Following is a copy of the libpng-manual.txt file that accompanies libpng.
 | 
					Following is a copy of the libpng-manual.txt file that accompanies libpng.
 | 
				
			||||||
.SH LIBPNG.TXT
 | 
					.SH LIBPNG.TXT
 | 
				
			||||||
libpng-manual.txt - A description on how to use and modify libpng
 | 
					Libpng-manual.txt - A description on how to use and modify libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 libpng version 1.5.10 - March 29, 2012
 | 
					 libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 Updated and distributed by Glenn Randers-Pehrson
 | 
					 Updated and distributed by Glenn Randers-Pehrson
 | 
				
			||||||
 <glennrp at users.sourceforge.net>
 | 
					 <glennrp at users.sourceforge.net>
 | 
				
			||||||
 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
@ -992,7 +992,7 @@ libpng-manual.txt - A description on how to use and modify libpng
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 Based on:
 | 
					 Based on:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 libpng versions 0.97, January 1998, through 1.5.10 - March 29, 2012
 | 
					 libpng versions 0.97, January 1998, through 1.5.11 - June 14, 2012
 | 
				
			||||||
 Updated and distributed by Glenn Randers-Pehrson
 | 
					 Updated and distributed by Glenn Randers-Pehrson
 | 
				
			||||||
 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1122,8 +1122,8 @@ APIs.  Most of these are fairly obvious; for example types corresponding
 | 
				
			|||||||
to integers of particular sizes and types for passing color values.
 | 
					to integers of particular sizes and types for passing color values.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
One exception is how non-integral numbers are handled.  For application
 | 
					One exception is how non-integral numbers are handled.  For application
 | 
				
			||||||
convenience most APIs that take such numbers have C (double) arguments,
 | 
					convenience most APIs that take such numbers have C (double) arguments;
 | 
				
			||||||
however internally PNG, and libpng, use 32 bit signed integers and encode
 | 
					however, internally PNG, and libpng, use 32 bit signed integers and encode
 | 
				
			||||||
the value by multiplying by 100,000.  As of libpng 1.5.0 a convenience
 | 
					the value by multiplying by 100,000.  As of libpng 1.5.0 a convenience
 | 
				
			||||||
macro PNG_FP_1 is defined in png.h along with a type (png_fixed_point)
 | 
					macro PNG_FP_1 is defined in png.h along with a type (png_fixed_point)
 | 
				
			||||||
which is simply (png_int_32).
 | 
					which is simply (png_int_32).
 | 
				
			||||||
@ -1780,7 +1780,7 @@ the screen_gamma value.  Pixels with alpha less than 1.0
 | 
				
			|||||||
will still have linear components.
 | 
					will still have linear components.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Use this format if you have control over your
 | 
					Use this format if you have control over your
 | 
				
			||||||
compositing software and do don't do other arithmetic
 | 
					compositing software and so don't do other arithmetic
 | 
				
			||||||
(such as scaling) on the data you get from libpng.  Your
 | 
					(such as scaling) on the data you get from libpng.  Your
 | 
				
			||||||
compositing software can simply copy opaque pixels to
 | 
					compositing software can simply copy opaque pixels to
 | 
				
			||||||
the output but still has linear values for the
 | 
					the output but still has linear values for the
 | 
				
			||||||
@ -2111,6 +2111,11 @@ data has been read, or zero if it is missing.  The parameters to the
 | 
				
			|||||||
png_get_<chunk> are set directly if they are simple data types, or a
 | 
					png_get_<chunk> are set directly if they are simple data types, or a
 | 
				
			||||||
pointer into the info_ptr is returned for any complex types.
 | 
					pointer into the info_ptr is returned for any complex types.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The colorspace data from gAMA, cHRM, sRGB, iCCP, and sBIT chunks
 | 
				
			||||||
 | 
					is simply returned to give the application information about how the
 | 
				
			||||||
 | 
					image was encoded.  Libpng itself only does transformations using the file
 | 
				
			||||||
 | 
					gamma when combining semitransparent pixels with the background color.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_get_PLTE(png_ptr, info_ptr, &palette,
 | 
					    png_get_PLTE(png_ptr, info_ptr, &palette,
 | 
				
			||||||
                     &num_palette);
 | 
					                     &num_palette);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -2122,7 +2127,7 @@ pointer into the info_ptr is returned for any complex types.
 | 
				
			|||||||
    png_get_gAMA(png_ptr, info_ptr, &file_gamma);
 | 
					    png_get_gAMA(png_ptr, info_ptr, &file_gamma);
 | 
				
			||||||
    png_get_gAMA_fixed(png_ptr, info_ptr, &int_file_gamma);
 | 
					    png_get_gAMA_fixed(png_ptr, info_ptr, &int_file_gamma);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    file_gamma     - the gamma at which the file is
 | 
					    file_gamma     - the gamma at which the file was
 | 
				
			||||||
                     written (PNG_INFO_gAMA)
 | 
					                     written (PNG_INFO_gAMA)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    int_file_gamma - 100,000 times the gamma at which the
 | 
					    int_file_gamma - 100,000 times the gamma at which the
 | 
				
			||||||
@ -2714,7 +2719,7 @@ the current display (e.g., the background color from a web page).  You
 | 
				
			|||||||
need to tell libpng how the color is represented, both the format of the
 | 
					need to tell libpng how the color is represented, both the format of the
 | 
				
			||||||
component values in the color (the number of bits) and the gamma encoding of the
 | 
					component values in the color (the number of bits) and the gamma encoding of the
 | 
				
			||||||
color.  The function takes two arguments, background_gamma_mode and need_expand
 | 
					color.  The function takes two arguments, background_gamma_mode and need_expand
 | 
				
			||||||
to convey this information, however only two combinations are likely to be
 | 
					to convey this information; however, only two combinations are likely to be
 | 
				
			||||||
useful:
 | 
					useful:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_color_16 my_background;
 | 
					    png_color_16 my_background;
 | 
				
			||||||
@ -3008,7 +3013,7 @@ the second parameter NULL.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If you don't want libpng to handle the interlacing details, just call
 | 
					If you don't want libpng to handle the interlacing details, just call
 | 
				
			||||||
png_read_rows() PNG_INTERLACE_ADAM7_PASSES times to read in all the images.
 | 
					png_read_rows() PNG_INTERLACE_ADAM7_PASSES times to read in all the images.
 | 
				
			||||||
Each of the images is a valid image by itself, however you will almost
 | 
					Each of the images is a valid image by itself; however, you will almost
 | 
				
			||||||
certainly need to distribute the pixels from each sub-image to the
 | 
					certainly need to distribute the pixels from each sub-image to the
 | 
				
			||||||
correct place.  This is where everything gets very tricky.
 | 
					correct place.  This is where everything gets very tricky.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -4667,7 +4672,7 @@ available to set these separately for non-IDAT
 | 
				
			|||||||
compressed chunks such as zTXt, iTXt, and iCCP:
 | 
					compressed chunks such as zTXt, iTXt, and iCCP:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #include zlib.h
 | 
					    #include zlib.h
 | 
				
			||||||
    #if PNG_LIBPNG_VER <= 10504
 | 
					    #if PNG_LIBPNG_VER >= 10504
 | 
				
			||||||
    png_set_text_compression_level(png_ptr, level);
 | 
					    png_set_text_compression_level(png_ptr, level);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    png_set_text_compression_mem_level(png_ptr, level);
 | 
					    png_set_text_compression_mem_level(png_ptr, level);
 | 
				
			||||||
@ -5137,7 +5142,7 @@ This is enabled by default but can be disabled in each png_ptr with
 | 
				
			|||||||
A. Changes that affect users of libpng
 | 
					A. Changes that affect users of libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are no substantial API changes between the non-deprecated parts of
 | 
					There are no substantial API changes between the non-deprecated parts of
 | 
				
			||||||
the 1.4.5 API and the 1.5.0 API, however the ability to directly access
 | 
					the 1.4.5 API and the 1.5.0 API; however, the ability to directly access
 | 
				
			||||||
the main libpng control structures, png_struct and png_info, deprecated
 | 
					the main libpng control structures, png_struct and png_info, deprecated
 | 
				
			||||||
in earlier versions of libpng, has been completely removed from
 | 
					in earlier versions of libpng, has been completely removed from
 | 
				
			||||||
libpng 1.5.
 | 
					libpng 1.5.
 | 
				
			||||||
@ -5270,12 +5275,12 @@ B. Changes to the build and configuration of libpng
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Details of internal changes to the library code can be found in the CHANGES
 | 
					Details of internal changes to the library code can be found in the CHANGES
 | 
				
			||||||
file and in the GIT repository logs.  These will be of no concern to the vast
 | 
					file and in the GIT repository logs.  These will be of no concern to the vast
 | 
				
			||||||
majority of library users or builders, however the few who configure libpng
 | 
					majority of library users or builders; however, the few who configure libpng
 | 
				
			||||||
to a non-default feature set may need to change how this is done.
 | 
					to a non-default feature set may need to change how this is done.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There should be no need for library builders to alter build scripts if
 | 
					There should be no need for library builders to alter build scripts if
 | 
				
			||||||
these use the distributed build support - configure or the makefiles -
 | 
					these use the distributed build support - configure or the makefiles -
 | 
				
			||||||
however users of the makefiles may care to update their build scripts
 | 
					however, users of the makefiles may care to update their build scripts
 | 
				
			||||||
to build pnglibconf.h where the corresponding makefile does not do so.
 | 
					to build pnglibconf.h where the corresponding makefile does not do so.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Building libpng with a non-default configuration has changed completely.
 | 
					Building libpng with a non-default configuration has changed completely.
 | 
				
			||||||
@ -5381,7 +5386,7 @@ merely stops the function from being exported.
 | 
				
			|||||||
PNG_FLOATING_ARITHMETIC_SUPPORTED chooses between the internal floating
 | 
					PNG_FLOATING_ARITHMETIC_SUPPORTED chooses between the internal floating
 | 
				
			||||||
point implementation or the fixed point one.  Typically the fixed point
 | 
					point implementation or the fixed point one.  Typically the fixed point
 | 
				
			||||||
implementation is larger and slower than the floating point implementation
 | 
					implementation is larger and slower than the floating point implementation
 | 
				
			||||||
on a system that supports floating point, however it may be faster on a
 | 
					on a system that supports floating point; however, it may be faster on a
 | 
				
			||||||
system which lacks floating point hardware and therefore uses a software
 | 
					system which lacks floating point hardware and therefore uses a software
 | 
				
			||||||
emulation.
 | 
					emulation.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -5410,7 +5415,7 @@ pngconf.h no longer includes pngusr.h, therefore pngusr.h is ignored after the
 | 
				
			|||||||
build of pnglibconf.h and it is never included in an application build.
 | 
					build of pnglibconf.h and it is never included in an application build.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The rarely used alternative of adding a list of feature macros to the
 | 
					The rarely used alternative of adding a list of feature macros to the
 | 
				
			||||||
CFLAGS setting in the build also still works, however the macros will be
 | 
					CFLAGS setting in the build also still works; however, the macros will be
 | 
				
			||||||
copied to pnglibconf.h and this may produce macro redefinition warnings
 | 
					copied to pnglibconf.h and this may produce macro redefinition warnings
 | 
				
			||||||
when the individual C files are compiled.
 | 
					when the individual C files are compiled.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -5579,25 +5584,25 @@ Other rules can be inferred by inspecting the libpng source.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.SH XIV. Y2K Compliance in libpng
 | 
					.SH XIV. Y2K Compliance in libpng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
March 29, 2012
 | 
					June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Since the PNG Development group is an ad-hoc body, we can't make
 | 
					Since the PNG Development group is an ad-hoc body, we can't make
 | 
				
			||||||
an official declaration.
 | 
					an official declaration.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is your unofficial assurance that libpng from version 0.71 and
 | 
					This is your unofficial assurance that libpng from version 0.71 and
 | 
				
			||||||
upward through 1.5.10 are Y2K compliant.  It is my belief that earlier
 | 
					upward through 1.5.11 are Y2K compliant.  It is my belief that earlier
 | 
				
			||||||
versions were also Y2K compliant.
 | 
					versions were also Y2K compliant.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Libpng only has three year fields.  One is a 2-byte unsigned integer that
 | 
					Libpng only has two year fields.  One is a 2-byte unsigned integer that
 | 
				
			||||||
will hold years up to 65535.  The other two hold the date in text
 | 
					will hold years up to 65535.  The other holds the date in text
 | 
				
			||||||
format, and will hold years up to 9999.
 | 
					format, and will hold years up to 9999.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The integer is
 | 
					The integer is
 | 
				
			||||||
    "png_uint_16 year" in png_time_struct.
 | 
					    "png_uint_16 year" in png_time_struct.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The strings are
 | 
					The string is
 | 
				
			||||||
    "png_charp time_buffer" in png_struct and
 | 
					    "char time_buffer[29]" in png_struct.  This will no
 | 
				
			||||||
    "near_time_buffer", which is a local character string in png.c.
 | 
					longer be used in libpng-1.6.x and will be removed from libpng-1.7.0.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are seven time-related functions:
 | 
					There are seven time-related functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -5798,6 +5803,9 @@ the first widely used release:
 | 
				
			|||||||
 1.5.9               15    10509  15.so.15.9[.0]
 | 
					 1.5.9               15    10509  15.so.15.9[.0]
 | 
				
			||||||
 1.5.10beta01-05     15    10510  15.so.15.10[.0]
 | 
					 1.5.10beta01-05     15    10510  15.so.15.10[.0]
 | 
				
			||||||
 1.5.10              15    10510  15.so.15.10[.0]
 | 
					 1.5.10              15    10510  15.so.15.10[.0]
 | 
				
			||||||
 | 
					 1.5.11beta01        15    10511  15.so.15.11[.0]
 | 
				
			||||||
 | 
					 1.5.11rc01-05       15    10511  15.so.15.11[.0]
 | 
				
			||||||
 | 
					 1.5.11              15    10511  15.so.15.11[.0]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Henceforth the source version will match the shared-library minor
 | 
					Henceforth the source version will match the shared-library minor
 | 
				
			||||||
and patch numbers; the shared-library major version number will be
 | 
					and patch numbers; the shared-library major version number will be
 | 
				
			||||||
@ -5854,7 +5862,7 @@ possible without all of you.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Thanks to Frank J. T. Wojcik for helping with the documentation.
 | 
					Thanks to Frank J. T. Wojcik for helping with the documentation.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Libpng version 1.5.10 - March 29, 2012:
 | 
					Libpng version 1.5.11 - June 14, 2012:
 | 
				
			||||||
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
 | 
					Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
 | 
				
			||||||
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
 | 
					Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -5877,7 +5885,7 @@ this sentence.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
This code is released under the libpng license.
 | 
					This code is released under the libpng license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libpng versions 1.2.6, August 15, 2004, through 1.5.10, March 29, 2012, are
 | 
					libpng versions 1.2.6, August 15, 2004, through 1.5.11, June 14, 2012, are
 | 
				
			||||||
Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
 | 
					Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
 | 
				
			||||||
distributed according to the same disclaimer and license as libpng-1.2.5
 | 
					distributed according to the same disclaimer and license as libpng-1.2.5
 | 
				
			||||||
with the following individual added to the list of Contributing Authors
 | 
					with the following individual added to the list of Contributing Authors
 | 
				
			||||||
@ -5976,7 +5984,7 @@ certification mark of the Open Source Initiative.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Glenn Randers-Pehrson
 | 
					Glenn Randers-Pehrson
 | 
				
			||||||
glennrp at users.sourceforge.net
 | 
					glennrp at users.sourceforge.net
 | 
				
			||||||
March 29, 2012
 | 
					June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.\" end of man page
 | 
					.\" end of man page
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
.TH LIBPNGPF 3 "March 29, 2012"
 | 
					.TH LIBPNGPF 3 "June 14, 2012"
 | 
				
			||||||
.SH NAME
 | 
					.SH NAME
 | 
				
			||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.10
 | 
					libpng \- Portable Network Graphics (PNG) Reference Library 1.5.11
 | 
				
			||||||
(private functions)
 | 
					(private functions)
 | 
				
			||||||
.SH SYNOPSIS
 | 
					.SH SYNOPSIS
 | 
				
			||||||
\fB#include \fI"pngpriv.h"
 | 
					\fB#include \fI"pngpriv.h"
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								png.5
									
									
									
									
									
								
							
							
						
						@ -1,4 +1,4 @@
 | 
				
			|||||||
.TH PNG 5 "March 29, 2012"
 | 
					.TH PNG 5 "June 14, 2012"
 | 
				
			||||||
.SH NAME
 | 
					.SH NAME
 | 
				
			||||||
png \- Portable Network Graphics (PNG) format
 | 
					png \- Portable Network Graphics (PNG) format
 | 
				
			||||||
.SH DESCRIPTION
 | 
					.SH DESCRIPTION
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										18
									
								
								png.c
									
									
									
									
									
								
							
							
						
						@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* png.c - location for general purpose libpng functions
 | 
					/* png.c - location for general purpose libpng functions
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.10 [March 8, 2012]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -14,7 +14,7 @@
 | 
				
			|||||||
#include "pngpriv.h"
 | 
					#include "pngpriv.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Generate a compiler error if there is an old png.h in the search path. */
 | 
					/* Generate a compiler error if there is an old png.h in the search path. */
 | 
				
			||||||
typedef png_libpng_version_1_5_10 Your_png_h_is_not_version_1_5_10;
 | 
					typedef png_libpng_version_1_5_11 Your_png_h_is_not_version_1_5_11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Tells libpng that we have already handled the first "num_bytes" bytes
 | 
					/* Tells libpng that we have already handled the first "num_bytes" bytes
 | 
				
			||||||
 * of the PNG file signature.  If the PNG data is embedded into another
 | 
					 * of the PNG file signature.  If the PNG data is embedded into another
 | 
				
			||||||
@ -655,14 +655,14 @@ png_get_copyright(png_const_structp png_ptr)
 | 
				
			|||||||
#else
 | 
					#else
 | 
				
			||||||
#  ifdef __STDC__
 | 
					#  ifdef __STDC__
 | 
				
			||||||
   return PNG_STRING_NEWLINE \
 | 
					   return PNG_STRING_NEWLINE \
 | 
				
			||||||
     "libpng version 1.5.10 - March 29, 2012" PNG_STRING_NEWLINE \
 | 
					     "libpng version 1.5.11 - June 14, 2012" PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1998-2011 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
 | 
					     "Copyright (c) 1998-2012 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
 | 
					     "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
 | 
				
			||||||
     "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
 | 
					     "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
 | 
				
			||||||
     PNG_STRING_NEWLINE;
 | 
					     PNG_STRING_NEWLINE;
 | 
				
			||||||
#  else
 | 
					#  else
 | 
				
			||||||
      return "libpng version 1.5.10 - March 29, 2012\
 | 
					      return "libpng version 1.5.11 - June 14, 2012\
 | 
				
			||||||
      Copyright (c) 1998-2011 Glenn Randers-Pehrson\
 | 
					      Copyright (c) 1998-2012 Glenn Randers-Pehrson\
 | 
				
			||||||
      Copyright (c) 1996-1997 Andreas Dilger\
 | 
					      Copyright (c) 1996-1997 Andreas Dilger\
 | 
				
			||||||
      Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
 | 
					      Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
 | 
				
			||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
@ -969,8 +969,8 @@ int png_XYZ_from_xy(png_XYZ *XYZ, png_xy xy)
 | 
				
			|||||||
    * and it is certain that it becomes unstable where the end points are close
 | 
					    * and it is certain that it becomes unstable where the end points are close
 | 
				
			||||||
    * together.
 | 
					    * together.
 | 
				
			||||||
    *
 | 
					    *
 | 
				
			||||||
    * So this code uses the perhaps slighly less optimal but more understandable
 | 
					    * So this code uses the perhaps slightly less optimal but more
 | 
				
			||||||
    * and totally obvious approach of calculating color-scale.
 | 
					    * understandable and totally obvious approach of calculating color-scale.
 | 
				
			||||||
    *
 | 
					    *
 | 
				
			||||||
    * This algorithm depends on the precision in white-scale and that is
 | 
					    * This algorithm depends on the precision in white-scale and that is
 | 
				
			||||||
    * (1/white-y), so we can immediately see that as white-y approaches 0 the
 | 
					    * (1/white-y), so we can immediately see that as white-y approaches 0 the
 | 
				
			||||||
@ -2044,7 +2044,7 @@ png_muldiv_warn(png_structp png_ptr, png_fixed_point a, png_int_32 times,
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef PNG_READ_GAMMA_SUPPORTED /* more fixed point functions for gammma */
 | 
					#ifdef PNG_READ_GAMMA_SUPPORTED /* more fixed point functions for gamma */
 | 
				
			||||||
/* Calculate a reciprocal, return 0 on div-by-zero or overflow. */
 | 
					/* Calculate a reciprocal, return 0 on div-by-zero or overflow. */
 | 
				
			||||||
png_fixed_point
 | 
					png_fixed_point
 | 
				
			||||||
png_reciprocal(png_fixed_point a)
 | 
					png_reciprocal(png_fixed_point a)
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										26
									
								
								png.h
									
									
									
									
									
								
							
							
						
						@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* png.h - header file for PNG reference library
 | 
					/* png.h - header file for PNG reference library
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * libpng version 1.5.10 - March 29, 2012
 | 
					 * libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
 * Authors and maintainers:
 | 
					 * Authors and maintainers:
 | 
				
			||||||
 *   libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
 | 
					 *   libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
 | 
				
			||||||
 *   libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
 | 
					 *   libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
 | 
				
			||||||
 *   libpng versions 0.97, January 1998, through 1.5.10 - March 29, 2012: Glenn
 | 
					 *   libpng versions 0.97, January 1998, through 1.5.11 - June 14, 2012: Glenn
 | 
				
			||||||
 *   See also "Contributing Authors", below.
 | 
					 *   See also "Contributing Authors", below.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Note about libpng version numbers:
 | 
					 * Note about libpng version numbers:
 | 
				
			||||||
@ -174,6 +174,9 @@
 | 
				
			|||||||
 *    1.5.9                   15    10509  15.so.15.9[.0]
 | 
					 *    1.5.9                   15    10509  15.so.15.9[.0]
 | 
				
			||||||
 *    1.5.10beta01-05         15    10510  15.so.15.10[.0]
 | 
					 *    1.5.10beta01-05         15    10510  15.so.15.10[.0]
 | 
				
			||||||
 *    1.5.10                  15    10510  15.so.15.10[.0]
 | 
					 *    1.5.10                  15    10510  15.so.15.10[.0]
 | 
				
			||||||
 | 
					 *    1.5.11beta01            15    10511  15.so.15.11[.0]
 | 
				
			||||||
 | 
					 *    1.5.11rc01-05           15    10511  15.so.15.11[.0]
 | 
				
			||||||
 | 
					 *    1.5.11                  15    10511  15.so.15.11[.0]
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *   Henceforth the source version will match the shared-library major
 | 
					 *   Henceforth the source version will match the shared-library major
 | 
				
			||||||
 *   and minor numbers; the shared-library major version number will be
 | 
					 *   and minor numbers; the shared-library major version number will be
 | 
				
			||||||
@ -205,7 +208,7 @@
 | 
				
			|||||||
 *
 | 
					 *
 | 
				
			||||||
 * This code is released under the libpng license.
 | 
					 * This code is released under the libpng license.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * libpng versions 1.2.6, August 15, 2004, through 1.5.10, March 29, 2012, are
 | 
					 * libpng versions 1.2.6, August 15, 2004, through 1.5.11, June 14, 2012, are
 | 
				
			||||||
 * Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
 | 
					 * Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
 | 
				
			||||||
 * distributed according to the same disclaimer and license as libpng-1.2.5
 | 
					 * distributed according to the same disclaimer and license as libpng-1.2.5
 | 
				
			||||||
 * with the following individual added to the list of Contributing Authors:
 | 
					 * with the following individual added to the list of Contributing Authors:
 | 
				
			||||||
@ -317,13 +320,13 @@
 | 
				
			|||||||
 * Y2K compliance in libpng:
 | 
					 * Y2K compliance in libpng:
 | 
				
			||||||
 * =========================
 | 
					 * =========================
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    March 29, 2012
 | 
					 *    June 14, 2012
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    Since the PNG Development group is an ad-hoc body, we can't make
 | 
					 *    Since the PNG Development group is an ad-hoc body, we can't make
 | 
				
			||||||
 *    an official declaration.
 | 
					 *    an official declaration.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    This is your unofficial assurance that libpng from version 0.71 and
 | 
					 *    This is your unofficial assurance that libpng from version 0.71 and
 | 
				
			||||||
 *    upward through 1.5.10 are Y2K compliant.  It is my belief that
 | 
					 *    upward through 1.5.11 are Y2K compliant.  It is my belief that
 | 
				
			||||||
 *    earlier versions were also Y2K compliant.
 | 
					 *    earlier versions were also Y2K compliant.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    Libpng only has two year fields.  One is a 2-byte unsigned integer
 | 
					 *    Libpng only has two year fields.  One is a 2-byte unsigned integer
 | 
				
			||||||
@ -334,7 +337,8 @@
 | 
				
			|||||||
 *        "png_uint_16 year" in png_time_struct.
 | 
					 *        "png_uint_16 year" in png_time_struct.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    The string is
 | 
					 *    The string is
 | 
				
			||||||
 *        "png_char time_buffer" in png_struct
 | 
					 *        "char time_buffer[29]" in png_struct.  This will be no
 | 
				
			||||||
 | 
					 *    longer used in libpng-1.6.0 and will be removed from libpng-1.7.0.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *    There are seven time-related functions:
 | 
					 *    There are seven time-related functions:
 | 
				
			||||||
 *        png.c: png_convert_to_rfc_1123() in png.c
 | 
					 *        png.c: png_convert_to_rfc_1123() in png.c
 | 
				
			||||||
@ -381,9 +385,9 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Version information for png.h - this should match the version in png.c */
 | 
					/* Version information for png.h - this should match the version in png.c */
 | 
				
			||||||
#define PNG_LIBPNG_VER_STRING "1.5.10"
 | 
					#define PNG_LIBPNG_VER_STRING "1.5.11"
 | 
				
			||||||
#define PNG_HEADER_VERSION_STRING \
 | 
					#define PNG_HEADER_VERSION_STRING \
 | 
				
			||||||
     " libpng version 1.5.10 - March 29, 2012\n"
 | 
					     " libpng version 1.5.11 - June 14, 2012\n"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define PNG_LIBPNG_VER_SONUM   15
 | 
					#define PNG_LIBPNG_VER_SONUM   15
 | 
				
			||||||
#define PNG_LIBPNG_VER_DLLNUM  15
 | 
					#define PNG_LIBPNG_VER_DLLNUM  15
 | 
				
			||||||
@ -391,7 +395,7 @@
 | 
				
			|||||||
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
 | 
					/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
 | 
				
			||||||
#define PNG_LIBPNG_VER_MAJOR   1
 | 
					#define PNG_LIBPNG_VER_MAJOR   1
 | 
				
			||||||
#define PNG_LIBPNG_VER_MINOR   5
 | 
					#define PNG_LIBPNG_VER_MINOR   5
 | 
				
			||||||
#define PNG_LIBPNG_VER_RELEASE 10
 | 
					#define PNG_LIBPNG_VER_RELEASE 11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* This should match the numeric part of the final component of
 | 
					/* This should match the numeric part of the final component of
 | 
				
			||||||
 * PNG_LIBPNG_VER_STRING, omitting any leading zero:
 | 
					 * PNG_LIBPNG_VER_STRING, omitting any leading zero:
 | 
				
			||||||
@ -422,7 +426,7 @@
 | 
				
			|||||||
 * version 1.0.0 was mis-numbered 100 instead of 10000).  From
 | 
					 * version 1.0.0 was mis-numbered 100 instead of 10000).  From
 | 
				
			||||||
 * version 1.0.1 it's    xxyyzz, where x=major, y=minor, z=release
 | 
					 * version 1.0.1 it's    xxyyzz, where x=major, y=minor, z=release
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#define PNG_LIBPNG_VER 10510 /* 1.5.10 */
 | 
					#define PNG_LIBPNG_VER 10511 /* 1.5.11 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Library configuration: these options cannot be changed after
 | 
					/* Library configuration: these options cannot be changed after
 | 
				
			||||||
 * the library has been built.
 | 
					 * the library has been built.
 | 
				
			||||||
@ -544,7 +548,7 @@ extern "C" {
 | 
				
			|||||||
/* This triggers a compiler error in png.c, if png.c and png.h
 | 
					/* This triggers a compiler error in png.c, if png.c and png.h
 | 
				
			||||||
 * do not agree upon the version number.
 | 
					 * do not agree upon the version number.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
typedef char* png_libpng_version_1_5_10;
 | 
					typedef char* png_libpng_version_1_5_11;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Three color definitions.  The order of the red, green, and blue, (and the
 | 
					/* Three color definitions.  The order of the red, green, and blue, (and the
 | 
				
			||||||
 * exact size) is not important, although the size of the fields need to
 | 
					 * exact size) is not important, although the size of the fields need to
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngconf.h - machine configurable file for libpng
 | 
					/* pngconf.h - machine configurable file for libpng
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * libpng version 1.5.10 - March 29, 2012
 | 
					 * libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
@ -25,7 +25,7 @@
 | 
				
			|||||||
#ifndef PNG_BUILDING_SYMBOL_TABLE
 | 
					#ifndef PNG_BUILDING_SYMBOL_TABLE
 | 
				
			||||||
/* PNG_NO_LIMITS_H may be used to turn off the use of the standard C
 | 
					/* PNG_NO_LIMITS_H may be used to turn off the use of the standard C
 | 
				
			||||||
 * definition file for  machine specific limits, this may impact the
 | 
					 * definition file for  machine specific limits, this may impact the
 | 
				
			||||||
 * correctness of the definitons below (see uses of INT_MAX).
 | 
					 * correctness of the definitions below (see uses of INT_MAX).
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#  ifndef PNG_NO_LIMITS_H
 | 
					#  ifndef PNG_NO_LIMITS_H
 | 
				
			||||||
#    include <limits.h>
 | 
					#    include <limits.h>
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
/* pngerror.c - stub functions for i/o and memory allocation
 | 
					/* pngerror.c - stub functions for i/o and memory allocation
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.8 [February 1, 2011]
 | 
					 * Last changed in libpng 1.5.8 [February 1, 2011]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngpread.c - read a png file in push mode
 | 
					/* pngpread.c - read a png file in push mode
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.9 [February 18, 2012]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -282,8 +282,8 @@ png_push_read_chunk(png_structp png_ptr, png_infop info_ptr)
 | 
				
			|||||||
            png_error(png_ptr, "Missing PLTE before IDAT");
 | 
					            png_error(png_ptr, "Missing PLTE before IDAT");
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   else if (chunk_name == png_PLTE)
 | 
					   else if (chunk_name == png_PLTE)
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      if (png_ptr->push_length + 4 > png_ptr->buffer_size)
 | 
					      if (png_ptr->push_length + 4 > png_ptr->buffer_size)
 | 
				
			||||||
@ -550,6 +550,7 @@ png_push_read_chunk(png_structp png_ptr, png_infop info_ptr)
 | 
				
			|||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   else
 | 
					   else
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      if (png_ptr->push_length + 4 > png_ptr->buffer_size)
 | 
					      if (png_ptr->push_length + 4 > png_ptr->buffer_size)
 | 
				
			||||||
 | 
				
			|||||||
@ -1259,10 +1259,8 @@ PNG_EXTERN void png_handle_zTXt PNGARG((png_structp png_ptr, png_infop info_ptr,
 | 
				
			|||||||
    png_uint_32 length));
 | 
					    png_uint_32 length));
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
 | 
					 | 
				
			||||||
PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr,
 | 
					PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr,
 | 
				
			||||||
    png_infop info_ptr, png_uint_32 length));
 | 
					    png_infop info_ptr, png_uint_32 length));
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
PNG_EXTERN void png_check_chunk_name PNGARG((png_structp png_ptr,
 | 
					PNG_EXTERN void png_check_chunk_name PNGARG((png_structp png_ptr,
 | 
				
			||||||
    png_uint_32 chunk_name));
 | 
					    png_uint_32 chunk_name));
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngrtran.c - transforms the data in a row for PNG readers
 | 
					/* pngrtran.c - transforms the data in a row for PNG readers
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.10 [March 8, 2012]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -1770,8 +1770,8 @@ png_init_read_transformations(png_structp png_ptr)
 | 
				
			|||||||
         int num_palette = png_ptr->num_palette;
 | 
					         int num_palette = png_ptr->num_palette;
 | 
				
			||||||
         int i;
 | 
					         int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         /*NOTE: there are other transformations that should probably be in here
 | 
					         /* NOTE: there are other transformations that should probably be in
 | 
				
			||||||
          * too.
 | 
					          * here too.
 | 
				
			||||||
          */
 | 
					          */
 | 
				
			||||||
         for (i = 0; i < num_palette; i++)
 | 
					         for (i = 0; i < num_palette; i++)
 | 
				
			||||||
         {
 | 
					         {
 | 
				
			||||||
@ -2301,7 +2301,8 @@ png_do_read_transformations(png_structp png_ptr, png_row_infop row_info)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
					#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
				
			||||||
   /* Added at libpng-1.5.10 */
 | 
					   /* Added at libpng-1.5.10 */
 | 
				
			||||||
   if (row_info->color_type == PNG_COLOR_TYPE_PALETTE)
 | 
					   if (row_info->color_type == PNG_COLOR_TYPE_PALETTE &&
 | 
				
			||||||
 | 
					       png_ptr->num_palette_max >= 0)
 | 
				
			||||||
      png_do_check_palette_indexes(png_ptr, row_info);
 | 
					      png_do_check_palette_indexes(png_ptr, row_info);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								pngset.c
									
									
									
									
									
								
							
							
						
						@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngset.c - storage of image information into info struct
 | 
					/* pngset.c - storage of image information into info struct
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.10 [(PENDING RELEASE)]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -149,7 +149,7 @@ png_set_gAMA_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point
 | 
				
			|||||||
    * possible for 1/gamma to overflow the limit of 21474 and this means the
 | 
					    * possible for 1/gamma to overflow the limit of 21474 and this means the
 | 
				
			||||||
    * gamma value must be at least 5/100000 and hence at most 20000.0.  For
 | 
					    * gamma value must be at least 5/100000 and hence at most 20000.0.  For
 | 
				
			||||||
    * safety the limits here are a little narrower.  The values are 0.00016 to
 | 
					    * safety the limits here are a little narrower.  The values are 0.00016 to
 | 
				
			||||||
    * 6250.0, which are truly ridiculous gammma values (and will produce
 | 
					    * 6250.0, which are truly ridiculous gamma values (and will produce
 | 
				
			||||||
    * displays that are all black or all white.)
 | 
					    * displays that are all black or all white.)
 | 
				
			||||||
    */
 | 
					    */
 | 
				
			||||||
   if (file_gamma < 16 || file_gamma > 625000000)
 | 
					   if (file_gamma < 16 || file_gamma > 625000000)
 | 
				
			||||||
@ -1291,8 +1291,10 @@ png_set_benign_errors(png_structp png_ptr, int allowed)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
#endif /* PNG_BENIGN_ERRORS_SUPPORTED */
 | 
					#endif /* PNG_BENIGN_ERRORS_SUPPORTED */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
					#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
				
			||||||
   /* Do not report invalid palette index; added at libng-1.5.10 */
 | 
					/* Whether to report invalid palette index; added at libng-1.5.10
 | 
				
			||||||
 | 
					 *   allowed  - one of 0: disable; 1: enable
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
void PNGAPI
 | 
					void PNGAPI
 | 
				
			||||||
png_set_check_for_invalid_index(png_structp png_ptr, int allowed)
 | 
					png_set_check_for_invalid_index(png_structp png_ptr, int allowed)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,11 +1,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngstruct.h - header file for PNG reference library
 | 
					/* pngstruct.h - header file for PNG reference library
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.9 [March 29, 2012]
 | 
					 * Last changed in libpng 1.5.9 [February 18, 2012]
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * This code is released under the libpng license.
 | 
					 * This code is released under the libpng license.
 | 
				
			||||||
 * For conditions of distribution and use, see the disclaimer
 | 
					 * For conditions of distribution and use, see the disclaimer
 | 
				
			||||||
@ -248,6 +248,7 @@ struct png_struct_def
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef PNG_TIME_RFC1123_SUPPORTED
 | 
					#ifdef PNG_TIME_RFC1123_SUPPORTED
 | 
				
			||||||
 | 
					   /* This is going to be unused in libpng16 and removed from libpng17 */
 | 
				
			||||||
   char time_buffer[29]; /* String to hold RFC 1123 time text */
 | 
					   char time_buffer[29]; /* String to hold RFC 1123 time text */
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1817,4 +1817,4 @@ main(int argc, char *argv[])
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Generate a compiler error if there is an old png.h in the search path. */
 | 
					/* Generate a compiler error if there is an old png.h in the search path. */
 | 
				
			||||||
typedef png_libpng_version_1_5_10 Your_png_h_is_not_version_1_5_10;
 | 
					typedef png_libpng_version_1_5_11 Your_png_h_is_not_version_1_5_11;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
 | 
					/* pngtrans.c - transforms the data in a row (used by both readers and writers)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.10 [March 8, 2012]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -626,7 +626,7 @@ void /* PRIVATE */
 | 
				
			|||||||
png_do_check_palette_indexes(png_structp png_ptr, png_row_infop row_info)
 | 
					png_do_check_palette_indexes(png_structp png_ptr, png_row_infop row_info)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
   if (png_ptr->num_palette < (1 << row_info->bit_depth) &&
 | 
					   if (png_ptr->num_palette < (1 << row_info->bit_depth) &&
 | 
				
			||||||
      png_ptr->num_palette_max >= 0)
 | 
					      png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */
 | 
				
			||||||
   {
 | 
					   {
 | 
				
			||||||
      /* Calculations moved outside switch in an attempt to stop different
 | 
					      /* Calculations moved outside switch in an attempt to stop different
 | 
				
			||||||
       * compiler warnings.  'padding' is in *bits* within the last byte, it is
 | 
					       * compiler warnings.  'padding' is in *bits* within the last byte, it is
 | 
				
			||||||
@ -708,7 +708,7 @@ png_do_check_palette_indexes(png_structp png_ptr, png_row_infop row_info)
 | 
				
			|||||||
         {
 | 
					         {
 | 
				
			||||||
            for (; rp > png_ptr->row_buf; rp--)
 | 
					            for (; rp > png_ptr->row_buf; rp--)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
               if (*rp >= png_ptr->num_palette_max)
 | 
					               if (*rp > png_ptr->num_palette_max)
 | 
				
			||||||
                  png_ptr->num_palette_max = (int) *rp;
 | 
					                  png_ptr->num_palette_max = (int) *rp;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngwrite.c - general routines to write a PNG file
 | 
					/* pngwrite.c - general routines to write a PNG file
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.10 [March 8, 2012]
 | 
					 * Last changed in libpng 1.5.11 [June 14, 2012]
 | 
				
			||||||
 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2012 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
@ -806,7 +806,8 @@ png_write_row(png_structp png_ptr, png_const_bytep row)
 | 
				
			|||||||
/* Added at libpng-1.5.10 */
 | 
					/* Added at libpng-1.5.10 */
 | 
				
			||||||
#ifdef PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
					#ifdef PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED
 | 
				
			||||||
   /* Check for out-of-range palette index */
 | 
					   /* Check for out-of-range palette index */
 | 
				
			||||||
   if(row_info.color_type == PNG_COLOR_TYPE_PALETTE)
 | 
					   if (row_info.color_type == PNG_COLOR_TYPE_PALETTE &&
 | 
				
			||||||
 | 
					       png_ptr->num_palette_max >= 0)
 | 
				
			||||||
      png_do_check_palette_indexes(png_ptr, &row_info);
 | 
					      png_do_check_palette_indexes(png_ptr, &row_info);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
VisualStudio instructions
 | 
					VisualStudio instructions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libpng version 1.5.10 - March 29, 2012
 | 
					libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Copyright (c) 1998-2010 Glenn Randers-Pehrson
 | 
					Copyright (c) 1998-2010 Glenn Randers-Pehrson
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
<!--
 | 
					<!--
 | 
				
			||||||
 * zlib.props - location of zlib source
 | 
					 * zlib.props - location of zlib source
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * libpng version 1.5.10 - March 29, 2012
 | 
					 * libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Makefiles for  libpng version 1.5.10 - March 29, 2012
 | 
					Makefiles for  libpng version 1.5.11 - June 14, 2012
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pnglibconf.h.prebuilt       =>  Stores configuration settings
 | 
					pnglibconf.h.prebuilt       =>  Stores configuration settings
 | 
				
			||||||
 makefile.linux    =>  Linux/ELF makefile
 | 
					 makefile.linux    =>  Linux/ELF makefile
 | 
				
			||||||
                       (gcc, creates libpng15.so.15.1.5.10)
 | 
					                       (gcc, creates libpng15.so.15.1.5.11)
 | 
				
			||||||
 makefile.gcc      =>  Generic makefile (gcc, creates static libpng.a)
 | 
					 makefile.gcc      =>  Generic makefile (gcc, creates static libpng.a)
 | 
				
			||||||
 makefile.knr      =>  Archaic UNIX Makefile that converts files with
 | 
					 makefile.knr      =>  Archaic UNIX Makefile that converts files with
 | 
				
			||||||
                       ansi2knr (Requires ansi2knr.c from
 | 
					                       ansi2knr (Requires ansi2knr.c from
 | 
				
			||||||
@ -20,7 +20,7 @@ pnglibconf.h.prebuilt       =>  Stores configuration settings
 | 
				
			|||||||
 makefile.dec      =>  DEC Alpha UNIX makefile
 | 
					 makefile.dec      =>  DEC Alpha UNIX makefile
 | 
				
			||||||
 makefile.dj2      =>  DJGPP 2 makefile
 | 
					 makefile.dj2      =>  DJGPP 2 makefile
 | 
				
			||||||
 makefile.elf      =>  Linux/ELF makefile symbol versioning,
 | 
					 makefile.elf      =>  Linux/ELF makefile symbol versioning,
 | 
				
			||||||
                       (gcc, creates libpng15.so.15.1.5.10)
 | 
					                       (gcc, creates libpng15.so.15.1.5.11)
 | 
				
			||||||
 makefile.freebsd  =>  FreeBSD makefile
 | 
					 makefile.freebsd  =>  FreeBSD makefile
 | 
				
			||||||
 makefile.gcc      =>  Generic gcc makefile
 | 
					 makefile.gcc      =>  Generic gcc makefile
 | 
				
			||||||
 makefile.hpgcc    =>  HPUX makefile using gcc
 | 
					 makefile.hpgcc    =>  HPUX makefile using gcc
 | 
				
			||||||
@ -35,12 +35,12 @@ pnglibconf.h.prebuilt       =>  Stores configuration settings
 | 
				
			|||||||
 makefile.os2      =>  OS/2 Makefile (gcc and emx, requires libpng.def)
 | 
					 makefile.os2      =>  OS/2 Makefile (gcc and emx, requires libpng.def)
 | 
				
			||||||
 makefile.sco      =>  For SCO OSr5  ELF and Unixware 7 with Native cc
 | 
					 makefile.sco      =>  For SCO OSr5  ELF and Unixware 7 with Native cc
 | 
				
			||||||
 makefile.sggcc    =>  Silicon Graphics (gcc,
 | 
					 makefile.sggcc    =>  Silicon Graphics (gcc,
 | 
				
			||||||
                       creates libpng15.so.15.1.5.10)
 | 
					                       creates libpng15.so.15.1.5.11)
 | 
				
			||||||
 makefile.sgi      =>  Silicon Graphics IRIX makefile (cc, creates static lib)
 | 
					 makefile.sgi      =>  Silicon Graphics IRIX makefile (cc, creates static lib)
 | 
				
			||||||
 makefile.solaris  =>  Solaris 2.X makefile (gcc,
 | 
					 makefile.solaris  =>  Solaris 2.X makefile (gcc,
 | 
				
			||||||
                       creates libpng15.so.15.1.5.10)
 | 
					                       creates libpng15.so.15.1.5.11)
 | 
				
			||||||
 makefile.so9      =>  Solaris 9 makefile (gcc,
 | 
					 makefile.so9      =>  Solaris 9 makefile (gcc,
 | 
				
			||||||
                       creates libpng15.so.15.1.5.10)
 | 
					                       creates libpng15.so.15.1.5.11)
 | 
				
			||||||
 makefile.std      =>  Generic UNIX makefile (cc, creates static libpng.a)
 | 
					 makefile.std      =>  Generic UNIX makefile (cc, creates static libpng.a)
 | 
				
			||||||
 makefile.sunos    =>  Sun makefile
 | 
					 makefile.sunos    =>  Sun makefile
 | 
				
			||||||
 makefile.32sunu   =>  Sun Ultra 32-bit makefile
 | 
					 makefile.32sunu   =>  Sun Ultra 32-bit makefile
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Modeled after libxml-config.
 | 
					# Modeled after libxml-config.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version=1.5.10
 | 
					version=1.5.11
 | 
				
			||||||
prefix=""
 | 
					prefix=""
 | 
				
			||||||
libdir=""
 | 
					libdir=""
 | 
				
			||||||
libs=""
 | 
					libs=""
 | 
				
			||||||
 | 
				
			|||||||
@ -5,6 +5,6 @@ includedir=@includedir@/libpng15
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Name: libpng
 | 
					Name: libpng
 | 
				
			||||||
Description: Loads and saves PNG files
 | 
					Description: Loads and saves PNG files
 | 
				
			||||||
Version: 1.5.10
 | 
					Version: 1.5.11
 | 
				
			||||||
Libs: -L${libdir} -lpng15
 | 
					Libs: -L${libdir} -lpng15
 | 
				
			||||||
Cflags: -I${includedir}
 | 
					Cflags: -I${includedir}
 | 
				
			||||||
 | 
				
			|||||||
@ -23,7 +23,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
VERMAJ = 1
 | 
					VERMAJ = 1
 | 
				
			||||||
VERMIN = 5
 | 
					VERMIN = 5
 | 
				
			||||||
VERMIC = 10
 | 
					VERMIC = 11
 | 
				
			||||||
VER = $(VERMAJ).$(VERMIN).$(VERMIC)
 | 
					VER = $(VERMAJ).$(VERMIN).$(VERMIC)
 | 
				
			||||||
NAME = libpng
 | 
					NAME = libpng
 | 
				
			||||||
PACKAGE = $(NAME)-$(VER)
 | 
					PACKAGE = $(NAME)-$(VER)
 | 
				
			||||||
 | 
				
			|||||||
@ -15,10 +15,8 @@ prefix=/usr/local
 | 
				
			|||||||
exec_prefix=$(prefix)
 | 
					exec_prefix=$(prefix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Where the zlib library and include files are located
 | 
					# Where the zlib library and include files are located
 | 
				
			||||||
#ZLIBLIB=/usr/local/lib
 | 
					ZLIBLIB=/usr/lib
 | 
				
			||||||
#ZLIBINC=/usr/local/include
 | 
					ZLIBINC=/usr/include
 | 
				
			||||||
ZLIBLIB=../zlib
 | 
					 | 
				
			||||||
ZLIBINC=../zlib
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Library name:
 | 
					# Library name:
 | 
				
			||||||
LIBNAME = libpng15
 | 
					LIBNAME = libpng15
 | 
				
			||||||
@ -37,7 +35,7 @@ MKDIR_P=mkdir -p
 | 
				
			|||||||
LN_SF=ln -sf
 | 
					LN_SF=ln -sf
 | 
				
			||||||
RANLIB=ranlib
 | 
					RANLIB=ranlib
 | 
				
			||||||
RM_F=/bin/rm -f
 | 
					RM_F=/bin/rm -f
 | 
				
			||||||
ARCH="-arch i386 -arch x86_64"
 | 
					ARCH=-arch ppc -arch i386 -arch x86_64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops
 | 
					# CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops
 | 
				
			||||||
CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops $(ARCH)
 | 
					CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops $(ARCH)
 | 
				
			||||||
@ -107,7 +105,7 @@ $(LIBSOMAJ): $(OBJSDLL)
 | 
				
			|||||||
	$(CC) -dynamiclib \
 | 
						$(CC) -dynamiclib \
 | 
				
			||||||
	 -install_name $(LIBPATH)/$(LIBSOMAJ) \
 | 
						 -install_name $(LIBPATH)/$(LIBSOMAJ) \
 | 
				
			||||||
	 -current_version 15 -compatibility_version 15 \
 | 
						 -current_version 15 -compatibility_version 15 \
 | 
				
			||||||
	 -o $(LIBSOMAJ) \
 | 
					 	 $(ARCH) -o $(LIBSOMAJ) \
 | 
				
			||||||
	 $(OBJSDLL) -L$(ZLIBLIB) -lz
 | 
						 $(OBJSDLL) -L$(ZLIBLIB) -lz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pngtest: pngtest.o $(LIBSO)
 | 
					pngtest: pngtest.o $(LIBSO)
 | 
				
			||||||
@ -136,10 +134,10 @@ install-static: install-headers libpng.a
 | 
				
			|||||||
install-shared: install-headers $(LIBSOMAJ) libpng.pc
 | 
					install-shared: install-headers $(LIBSOMAJ) libpng.pc
 | 
				
			||||||
	-@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
 | 
						-@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
 | 
				
			||||||
	-@$(RM_F) $(DL)/$(LIBSO)
 | 
						-@$(RM_F) $(DL)/$(LIBSO)
 | 
				
			||||||
	-@$(RM_F) $(DL)/$(LIBSOREL)
 | 
						-@$(RM_F) $(DL)/$(LIBSOMAJ)
 | 
				
			||||||
	-@$(RM_F) $(DL)/$(OLDSO)
 | 
						-@$(RM_F) $(DL)/$(OLDSO)
 | 
				
			||||||
	cp $(LIBSOMAJ) $(DL)/$(LIBSOREL)
 | 
						cp $(LIBSOMAJ) $(DL)
 | 
				
			||||||
	chmod 755 $(DL)/$(LIBSOREL)
 | 
						chmod 755 $(DL)/$(LIBSOMAJ)
 | 
				
			||||||
	(cd $(DL); \
 | 
						(cd $(DL); \
 | 
				
			||||||
	$(LN_SF) $(LIBSOREL) $(LIBSO); \
 | 
						$(LN_SF) $(LIBSOREL) $(LIBSO); \
 | 
				
			||||||
	$(LN_SF) $(LIBSO) $(OLDSO))
 | 
						$(LN_SF) $(LIBSO) $(OLDSO))
 | 
				
			||||||
 | 
				
			|||||||
@ -11,8 +11,8 @@ SHLIB_VER?=     15
 | 
				
			|||||||
LIB=		png
 | 
					LIB=		png
 | 
				
			||||||
SHLIB_MAJOR=	${SHLIB_VER}
 | 
					SHLIB_MAJOR=	${SHLIB_VER}
 | 
				
			||||||
SHLIB_MINOR=	0
 | 
					SHLIB_MINOR=	0
 | 
				
			||||||
NOPROFILE=	YES
 | 
					NO_PROFILE=	YES
 | 
				
			||||||
NOOBJ=          YES
 | 
					NO_OBJ=          YES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# where make install puts libpng.a and png.h
 | 
					# where make install puts libpng.a and png.h
 | 
				
			||||||
DESTDIR=	${PREFIX}
 | 
					DESTDIR=	${PREFIX}
 | 
				
			||||||
@ -25,7 +25,10 @@ MANDIR=		/man/man
 | 
				
			|||||||
SYMLINKS=       libpng/png.h ${INCSDIR}/../png.h \
 | 
					SYMLINKS=       libpng/png.h ${INCSDIR}/../png.h \
 | 
				
			||||||
		libpng/pngconf.h ${INCSDIR}/../pngconf.h \
 | 
							libpng/pngconf.h ${INCSDIR}/../pngconf.h \
 | 
				
			||||||
		libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
 | 
							libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LDADD+=         -lm -lz
 | 
					LDADD+=         -lm -lz
 | 
				
			||||||
 | 
					#LDADD+=         -lm -lz -lssp_nonshared   # for OSVERSION >= 800000 ?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DPADD+=         ${LIBM} ${LIBZ}
 | 
					DPADD+=         ${LIBM} ${LIBZ}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CFLAGS+= -I.
 | 
					CFLAGS+= -I.
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@
 | 
				
			|||||||
# Library name:
 | 
					# Library name:
 | 
				
			||||||
LIBNAME = libpng15
 | 
					LIBNAME = libpng15
 | 
				
			||||||
PNGMAJ = 15
 | 
					PNGMAJ = 15
 | 
				
			||||||
RELEASE = 10
 | 
					RELEASE = 11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Shared library names:
 | 
					# Shared library names:
 | 
				
			||||||
LIBSO=$(LIBNAME).so
 | 
					LIBSO=$(LIBNAME).so
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,7 @@ INCSDIR=${LOCALBASE}/include/libpng15
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
LIB=	png15
 | 
					LIB=	png15
 | 
				
			||||||
SHLIB_MAJOR=	0
 | 
					SHLIB_MAJOR=	0
 | 
				
			||||||
SHLIB_MINOR=	1.5.10
 | 
					SHLIB_MINOR=	1.5.11
 | 
				
			||||||
SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
 | 
					SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
 | 
				
			||||||
	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
 | 
						pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
 | 
				
			||||||
	pngwtran.c pngmem.c pngerror.c pngpread.c
 | 
						pngwtran.c pngmem.c pngerror.c pngpread.c
 | 
				
			||||||
 | 
				
			|||||||
@ -17,7 +17,7 @@ INCSDIR=${LOCALBASE}/include
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
LIB=	png
 | 
					LIB=	png
 | 
				
			||||||
SHLIB_MAJOR=	15
 | 
					SHLIB_MAJOR=	15
 | 
				
			||||||
SHLIB_MINOR=	1.5.10
 | 
					SHLIB_MINOR=	1.5.11
 | 
				
			||||||
SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
 | 
					SRCS=	png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
 | 
				
			||||||
	pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
 | 
						pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
 | 
				
			||||||
	pngwtran.c pngmem.c pngerror.c pngpread.c
 | 
						pngwtran.c pngmem.c pngerror.c pngpread.c
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@ LIBDIR=	${PREFIX}/lib
 | 
				
			|||||||
MANDIR= ${PREFIX}/man/cat
 | 
					MANDIR= ${PREFIX}/man/cat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SHLIB_MAJOR=	15
 | 
					SHLIB_MAJOR=	15
 | 
				
			||||||
SHLIB_MINOR=	1.5.10
 | 
					SHLIB_MINOR=	1.5.11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LIB=	png
 | 
					LIB=	png
 | 
				
			||||||
SRCS=	png.c pngerror.c pngget.c pngmem.c pngpread.c \
 | 
					SRCS=	png.c pngerror.c pngget.c pngmem.c pngpread.c \
 | 
				
			||||||
 | 
				
			|||||||
@ -21,7 +21,7 @@ file pnglibconf.h scripts/pnglibconf.dfa PNGLCONF_H
 | 
				
			|||||||
# C compiler to generate 'pnglibconf.h' - a list of all the
 | 
					# C compiler to generate 'pnglibconf.h' - a list of all the
 | 
				
			||||||
# configuration options.  The file lists the various options
 | 
					# configuration options.  The file lists the various options
 | 
				
			||||||
# that can *only* be specified during the libpng build;
 | 
					# that can *only* be specified during the libpng build;
 | 
				
			||||||
# pnglibconf.h freezes the definitons selected for the specific
 | 
					# pnglibconf.h freezes the definitions selected for the specific
 | 
				
			||||||
# build.
 | 
					# build.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# The syntax is detailed in scripts/options.awk, this is a summary
 | 
					# The syntax is detailed in scripts/options.awk, this is a summary
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pnglibconf.h - library build configuration */
 | 
					/* pnglibconf.h - library build configuration */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Libpng 1.5.10 - March 29, 2012 */
 | 
					/* Libpng 1.5.11 - June 14, 2012 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
 | 
					/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -5,7 +5,7 @@
 | 
				
			|||||||
LIBRARY
 | 
					LIBRARY
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPORTS
 | 
					EXPORTS
 | 
				
			||||||
;Version 1.5.10
 | 
					;Version 1.5.11
 | 
				
			||||||
 png_access_version_number @1
 | 
					 png_access_version_number @1
 | 
				
			||||||
 png_set_sig_bytes @2
 | 
					 png_set_sig_bytes @2
 | 
				
			||||||
 png_sig_cmp @3
 | 
					 png_sig_cmp @3
 | 
				
			||||||
 | 
				
			|||||||