mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Imported from libpng-1.7.0beta35.tar
This commit is contained in:
parent
f3b1eb68a6
commit
1a9c06b11a
9
ANNOUNCE
9
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.7.0beta35 - April 10, 2014
|
Libpng 1.7.0beta35 - August 6, 2014
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -574,7 +574,7 @@ Version 1.7.0beta34 [March 17, 2014]
|
|||||||
Changed ZlibSrcDir from 1.2.5 to 1.2.8 in projects/vstudio.
|
Changed ZlibSrcDir from 1.2.5 to 1.2.8 in projects/vstudio.
|
||||||
Moved configuration information from the manual to the INSTALL file.
|
Moved configuration information from the manual to the INSTALL file.
|
||||||
|
|
||||||
Version 1.7.0beta35 [April 10, 2014]
|
Version 1.7.0beta35 [August 6, 2014]
|
||||||
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
||||||
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
||||||
when using its "__builtin_pow()" function.
|
when using its "__builtin_pow()" function.
|
||||||
@ -587,6 +587,11 @@ Version 1.7.0beta35 [April 10, 2014]
|
|||||||
macro.
|
macro.
|
||||||
Fixed a typo in pngrutil.c, introduced in libpng-1.5.6, that interferes
|
Fixed a typo in pngrutil.c, introduced in libpng-1.5.6, that interferes
|
||||||
with "blocky" expansion of sub-8-bit interlaced PNG files (Eric Huss).
|
with "blocky" expansion of sub-8-bit interlaced PNG files (Eric Huss).
|
||||||
|
Removed scripts/makefile.elf. It has not worked since libpng-1.5.0beta14
|
||||||
|
due to elimination of the PNG_FUNCTION_EXPORT and PNG_DATA_EXPORT
|
||||||
|
definitions from pngconf.h.
|
||||||
|
Ensure that CMakeLists.txt makes the target "lib" directory before making
|
||||||
|
symbolic link into it (SourceForge bug report #226 by Rolf Timmermans).
|
||||||
|
|
||||||
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
|
||||||
|
7
CHANGES
7
CHANGES
@ -4863,7 +4863,7 @@ Version 1.7.0beta34 [March 17, 2014]
|
|||||||
Changed ZlibSrcDir from 1.2.5 to 1.2.8 in projects/vstudio.
|
Changed ZlibSrcDir from 1.2.5 to 1.2.8 in projects/vstudio.
|
||||||
Moved configuration information from the manual to the INSTALL file.
|
Moved configuration information from the manual to the INSTALL file.
|
||||||
|
|
||||||
Version 1.7.0beta35 [April 10, 2014]
|
Version 1.7.0beta35 [August 6, 2014]
|
||||||
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
||||||
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
||||||
when using its "__builtin_pow()" function.
|
when using its "__builtin_pow()" function.
|
||||||
@ -4876,6 +4876,11 @@ Version 1.7.0beta35 [April 10, 2014]
|
|||||||
macro.
|
macro.
|
||||||
Fixed a typo in pngrutil.c, introduced in libpng-1.5.6, that interferes
|
Fixed a typo in pngrutil.c, introduced in libpng-1.5.6, that interferes
|
||||||
with "blocky" expansion of sub-8-bit interlaced PNG files (Eric Huss).
|
with "blocky" expansion of sub-8-bit interlaced PNG files (Eric Huss).
|
||||||
|
Removed scripts/makefile.elf. It has not worked since libpng-1.5.0beta14
|
||||||
|
due to elimination of the PNG_FUNCTION_EXPORT and PNG_DATA_EXPORT
|
||||||
|
definitions from pngconf.h.
|
||||||
|
Ensure that CMakeLists.txt makes the target "lib" directory before making
|
||||||
|
symbolic link into it (SourceForge bug report #226 by Rolf Timmermans).
|
||||||
|
|
||||||
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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# CMakeLists.txt
|
# CMakeLists.txt
|
||||||
|
|
||||||
# Copyright (C) 2007-2013 Glenn Randers-Pehrson
|
# Copyright (C) 2007-2014 Glenn Randers-Pehrson
|
||||||
|
|
||||||
# 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
|
||||||
@ -220,6 +220,7 @@ macro(CREATE_SYMLINK SRC_FILE DEST_FILE)
|
|||||||
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 MSYS)
|
else(WIN32 AND NOT CYGWIN AND NOT MSYS)
|
||||||
get_filename_component(LINK_TARGET "${SRC_FILE}" NAME)
|
get_filename_component(LINK_TARGET "${SRC_FILE}" NAME)
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${LINK_TARGET}" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${LINK_TARGET}" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${LINK_TARGET}" ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${LINK_TARGET}" ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
endif(WIN32 AND NOT CYGWIN AND NOT MSYS)
|
endif(WIN32 AND NOT CYGWIN AND NOT MSYS)
|
||||||
@ -350,7 +351,7 @@ if(PNG_EXPORT_RULE AND NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL )
|
|||||||
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake)
|
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# what's with libpng-$VER%.txt and all the extra files?
|
# what's with libpng-manual.txt and all the extra files?
|
||||||
|
|
||||||
# UNINSTALL
|
# UNINSTALL
|
||||||
# do we need this?
|
# do we need this?
|
||||||
|
4
LICENSE
4
LICENSE
@ -10,7 +10,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.7.0beta35, March 17, 2014, are
|
libpng versions 1.2.6, August 15, 2004, through 1.7.0beta35, August 6, 2014, are
|
||||||
Copyright (c) 2004, 2006-2014 Glenn Randers-Pehrson, and are
|
Copyright (c) 2004, 2006-2014 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 17, 2014
|
August 6, 2014
|
||||||
|
2
README
2
README
@ -1,4 +1,4 @@
|
|||||||
README for libpng version 1.7.0beta35 - March 17, 2014 (shared library 17.0)
|
README for libpng version 1.7.0beta35 - August 6, 2014 (shared library 17.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.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2014 Glenn Randers-Pehrson
|
* Copyright (c) 2014 Glenn Randers-Pehrson
|
||||||
* Written by Mans Rullgard, 2011.
|
* Written by Mans Rullgard, 2011.
|
||||||
* Last changed in libpng 1.6.10 [(PENDING RELEASE)]
|
* Last changed in libpng 1.6.10 [March 6, 2014]
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
@ -6776,6 +6776,14 @@ image_transform_png_set_rgb_to_gray_ini(PNG_CONST image_transform *this,
|
|||||||
* conversion adds another +/-2 in the 16-bit case and
|
* conversion adds another +/-2 in the 16-bit case and
|
||||||
* +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case.
|
* +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case.
|
||||||
*/
|
*/
|
||||||
|
that->pm->limit +=
|
||||||
|
# if PNG_MAX_GAMMA_8 < 14
|
||||||
|
pow((that->this.bit_depth == 16 ?
|
||||||
|
8. : 6. + (1<<(15-PNG_MAX_GAMMA_8)))/65535, data.gamma);
|
||||||
|
# else
|
||||||
|
pow((that->this.bit_depth == 16 ?
|
||||||
|
8. : 8. + (1<<(15-PNG_MAX_GAMMA_8)))/65535, data.gamma);
|
||||||
|
# endif
|
||||||
that->pm->limit += pow(
|
that->pm->limit += pow(
|
||||||
# if PNG_MAX_GAMMA_8 < 14
|
# if PNG_MAX_GAMMA_8 < 14
|
||||||
(that->this.bit_depth == 16 ? 8. :
|
(that->this.bit_depth == 16 ? 8. :
|
||||||
@ -6801,13 +6809,12 @@ image_transform_png_set_rgb_to_gray_ini(PNG_CONST image_transform *this,
|
|||||||
* internal calculation errors, not the actual limit imposed by
|
* internal calculation errors, not the actual limit imposed by
|
||||||
* pngvalid on the output errors.
|
* pngvalid on the output errors.
|
||||||
*/
|
*/
|
||||||
that->pm->limit += pow(
|
that->pm->limit +=
|
||||||
# if DIGITIZE
|
# if DIGITIZE
|
||||||
1.1
|
pow(1.1 /255, data.gamma);
|
||||||
# else
|
# else
|
||||||
1.
|
pow(1.0 /255, data.gamma);
|
||||||
# endif
|
# endif
|
||||||
/255, data.gamma);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
0
contrib/pngminus/png2pnm.bat
Normal file → Executable file
0
contrib/pngminus/png2pnm.bat
Normal file → Executable file
0
contrib/pngminus/png2pnm.sh
Normal file → Executable file
0
contrib/pngminus/png2pnm.sh
Normal file → Executable file
0
contrib/pngminus/pngminus.bat
Normal file → Executable file
0
contrib/pngminus/pngminus.bat
Normal file → Executable file
0
contrib/pngminus/pngminus.sh
Normal file → Executable file
0
contrib/pngminus/pngminus.sh
Normal file → Executable file
0
contrib/pngminus/pnm2png.bat
Normal file → Executable file
0
contrib/pngminus/pnm2png.bat
Normal file → Executable file
0
contrib/pngminus/pnm2png.sh
Normal file → Executable file
0
contrib/pngminus/pnm2png.sh
Normal file → Executable file
@ -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.7.0beta35 - March 17, 2014
|
libpng version 1.7.0beta35 - August 6, 2014
|
||||||
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-2014 Glenn Randers-Pehrson
|
Copyright (c) 1998-2014 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.7.0beta35 - March 17, 2014
|
libpng versions 0.97, January 1998, through 1.7.0beta35 - August 6, 2014
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
||||||
|
|
||||||
@ -4291,6 +4291,8 @@ zlib.h for more information on what these mean.
|
|||||||
|
|
||||||
png_set_compression_method(png_ptr, method);
|
png_set_compression_method(png_ptr, method);
|
||||||
|
|
||||||
|
This controls the size of the IDAT chunks (default 8192):
|
||||||
|
|
||||||
png_set_compression_buffer_size(png_ptr, size);
|
png_set_compression_buffer_size(png_ptr, size);
|
||||||
|
|
||||||
As of libpng version 1.5.4, additional APIs became
|
As of libpng version 1.5.4, additional APIs became
|
||||||
@ -4752,8 +4754,6 @@ does not account for any palette index used by ancillary chunks such as the
|
|||||||
bKGD chunk; you must check those separately to determine the maximum
|
bKGD chunk; you must check those separately to determine the maximum
|
||||||
palette index actually used.
|
palette index actually used.
|
||||||
|
|
||||||
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
|
||||||
members of the main libpng control structures, png_struct and png_info,
|
members of the main libpng control structures, png_struct and png_info,
|
||||||
@ -5074,16 +5074,16 @@ Libpng-1.6.0 through 1.6.2 used the CMF bytes at the beginning of the IDAT
|
|||||||
stream to set the size of the sliding window for reading instead of using the
|
stream to set the size of the sliding window for reading instead of using the
|
||||||
default 32-kbyte sliding window size. It was discovered that there are
|
default 32-kbyte sliding window size. It was discovered that there are
|
||||||
hundreds of PNG files in the wild that have incorrect CMF bytes that caused
|
hundreds of PNG files in the wild that have incorrect CMF bytes that caused
|
||||||
libpng to issue a "too far back" error and reject the file. Libpng-1.6.3 and
|
zlib to issue the "invalid distance too far back" error and reject the file.
|
||||||
later calculate their own safe CMF from the image dimensions, provide a way
|
Libpng-1.6.3 and later calculate their own safe CMF from the image dimensions,
|
||||||
to revert to the libpng-1.5.x behavior (ignoring the CMF bytes and using a
|
provide a way to revert to the libpng-1.5.x behavior (ignoring the CMF bytes
|
||||||
32-kbyte sliding window), by using
|
and using a 32-kbyte sliding window), by using
|
||||||
|
|
||||||
png_set_option(png_ptr, PNG_MAXIMUM_INFLATE_WINDOW,
|
png_set_option(png_ptr, PNG_MAXIMUM_INFLATE_WINDOW,
|
||||||
PNG_OPTION_ON);
|
PNG_OPTION_ON);
|
||||||
|
|
||||||
and provide a tool (contrib/tools/pngfix) for optimizing the CMF bytes
|
and provide a tool (contrib/tools/pngfix) for rewriting a PNG file while
|
||||||
correctly.
|
optimizing the CMF bytes in its IDAT chunk correctly.
|
||||||
|
|
||||||
Libpng-1.6.0 and libpng-1.6.1 wrote uncompressed iTXt chunks with the wrong
|
Libpng-1.6.0 and libpng-1.6.1 wrote uncompressed iTXt chunks with the wrong
|
||||||
length, which resulted in PNG files that cannot be read beyond the bad iTXt
|
length, which resulted in PNG files that cannot be read beyond the bad iTXt
|
||||||
@ -5158,7 +5158,8 @@ mailing list, or directly to glennrp.
|
|||||||
|
|
||||||
XVI. Coding style
|
XVI. Coding style
|
||||||
|
|
||||||
Our coding style is similar to the "Allman" style, with curly
|
Our coding style is similar to the "Allman" style
|
||||||
|
(See http://en.wikipedia.org/wiki/Indent_style#Allman_style), with curly
|
||||||
braces on separate lines:
|
braces on separate lines:
|
||||||
|
|
||||||
if (condition)
|
if (condition)
|
||||||
@ -5291,7 +5292,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
XVII. Y2K Compliance in libpng
|
XVII. Y2K Compliance in libpng
|
||||||
|
|
||||||
March 17, 2014
|
August 6, 2014
|
||||||
|
|
||||||
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.
|
||||||
|
33
libpng.3
33
libpng.3
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNG 3 "March 17, 2014"
|
.TH LIBPNG 3 "August 6, 2014"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta35
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta35
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -494,7 +494,7 @@ 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.7.0beta35 - March 17, 2014
|
libpng version 1.7.0beta35 - August 6, 2014
|
||||||
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-2014 Glenn Randers-Pehrson
|
Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
||||||
@ -505,7 +505,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.7.0beta35 - March 17, 2014
|
libpng versions 0.97, January 1998, through 1.7.0beta35 - August 6, 2014
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
||||||
|
|
||||||
@ -4785,6 +4785,8 @@ zlib.h for more information on what these mean.
|
|||||||
|
|
||||||
png_set_compression_method(png_ptr, method);
|
png_set_compression_method(png_ptr, method);
|
||||||
|
|
||||||
|
This controls the size of the IDAT chunks (default 8192):
|
||||||
|
|
||||||
png_set_compression_buffer_size(png_ptr, size);
|
png_set_compression_buffer_size(png_ptr, size);
|
||||||
|
|
||||||
As of libpng version 1.5.4, additional APIs became
|
As of libpng version 1.5.4, additional APIs became
|
||||||
@ -5246,8 +5248,6 @@ does not account for any palette index used by ancillary chunks such as the
|
|||||||
bKGD chunk; you must check those separately to determine the maximum
|
bKGD chunk; you must check those separately to determine the maximum
|
||||||
palette index actually used.
|
palette index actually used.
|
||||||
|
|
||||||
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
|
||||||
members of the main libpng control structures, png_struct and png_info,
|
members of the main libpng control structures, png_struct and png_info,
|
||||||
@ -5568,16 +5568,16 @@ Libpng-1.6.0 through 1.6.2 used the CMF bytes at the beginning of the IDAT
|
|||||||
stream to set the size of the sliding window for reading instead of using the
|
stream to set the size of the sliding window for reading instead of using the
|
||||||
default 32-kbyte sliding window size. It was discovered that there are
|
default 32-kbyte sliding window size. It was discovered that there are
|
||||||
hundreds of PNG files in the wild that have incorrect CMF bytes that caused
|
hundreds of PNG files in the wild that have incorrect CMF bytes that caused
|
||||||
libpng to issue a "too far back" error and reject the file. Libpng-1.6.3 and
|
zlib to issue the "invalid distance too far back" error and reject the file.
|
||||||
later calculate their own safe CMF from the image dimensions, provide a way
|
Libpng-1.6.3 and later calculate their own safe CMF from the image dimensions,
|
||||||
to revert to the libpng-1.5.x behavior (ignoring the CMF bytes and using a
|
provide a way to revert to the libpng-1.5.x behavior (ignoring the CMF bytes
|
||||||
32-kbyte sliding window), by using
|
and using a 32-kbyte sliding window), by using
|
||||||
|
|
||||||
png_set_option(png_ptr, PNG_MAXIMUM_INFLATE_WINDOW,
|
png_set_option(png_ptr, PNG_MAXIMUM_INFLATE_WINDOW,
|
||||||
PNG_OPTION_ON);
|
PNG_OPTION_ON);
|
||||||
|
|
||||||
and provide a tool (contrib/tools/pngfix) for optimizing the CMF bytes
|
and provide a tool (contrib/tools/pngfix) for rewriting a PNG file while
|
||||||
correctly.
|
optimizing the CMF bytes in its IDAT chunk correctly.
|
||||||
|
|
||||||
Libpng-1.6.0 and libpng-1.6.1 wrote uncompressed iTXt chunks with the wrong
|
Libpng-1.6.0 and libpng-1.6.1 wrote uncompressed iTXt chunks with the wrong
|
||||||
length, which resulted in PNG files that cannot be read beyond the bad iTXt
|
length, which resulted in PNG files that cannot be read beyond the bad iTXt
|
||||||
@ -5652,7 +5652,8 @@ mailing list, or directly to glennrp.
|
|||||||
|
|
||||||
.SH XVI. Coding style
|
.SH XVI. Coding style
|
||||||
|
|
||||||
Our coding style is similar to the "Allman" style, with curly
|
Our coding style is similar to the "Allman" style
|
||||||
|
(See http://en.wikipedia.org/wiki/Indent_style#Allman_style), with curly
|
||||||
braces on separate lines:
|
braces on separate lines:
|
||||||
|
|
||||||
if (condition)
|
if (condition)
|
||||||
@ -5785,7 +5786,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
.SH XVII. Y2K Compliance in libpng
|
.SH XVII. Y2K Compliance in libpng
|
||||||
|
|
||||||
March 17, 2014
|
August 6, 2014
|
||||||
|
|
||||||
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.
|
||||||
@ -6055,7 +6056,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.7.0beta35 - March 17, 2014:
|
Libpng version 1.7.0beta35 - August 6, 2014:
|
||||||
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).
|
||||||
|
|
||||||
@ -6078,7 +6079,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.7.0beta35, March 17, 2014, are
|
libpng versions 1.2.6, August 15, 2004, through 1.7.0beta35, August 6, 2014, 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
|
||||||
@ -6177,7 +6178,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 17, 2014
|
August 6, 2014
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNGPF 3 "March 17, 2014"
|
.TH LIBPNGPF 3 "August 6, 2014"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta35
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0beta35
|
||||||
(private functions)
|
(private functions)
|
||||||
|
2
png.5
2
png.5
@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "March 17, 2014"
|
.TH PNG 5 "August 6, 2014"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
png \- Portable Network Graphics (PNG) format
|
png \- Portable Network Graphics (PNG) format
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
4
png.c
4
png.c
@ -696,13 +696,13 @@ png_get_copyright(png_const_structrp png_ptr)
|
|||||||
#else
|
#else
|
||||||
# ifdef __STDC__
|
# ifdef __STDC__
|
||||||
return PNG_STRING_NEWLINE \
|
return PNG_STRING_NEWLINE \
|
||||||
"libpng version 1.7.0beta35 - March 22, 2014" PNG_STRING_NEWLINE \
|
"libpng version 1.7.0beta35 - August 6, 2014" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1998-2014 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
"Copyright (c) 1998-2014 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.7.0beta35 - March 22, 2014\
|
return "libpng version 1.7.0beta35 - August 6, 2014\
|
||||||
Copyright (c) 1998-2014 Glenn Randers-Pehrson\
|
Copyright (c) 1998-2014 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.";
|
||||||
|
14
png.h
14
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.7.0beta35 - March 17, 2014
|
* libpng version 1.7.0beta35 - August 6, 2014
|
||||||
* Copyright (c) 1998-2013 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2013 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.7.0beta35 - March 17, 2014: Glenn
|
* libpng versions 0.97, January 1998, through 1.7.0beta35 - August 6, 2014: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -200,7 +200,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.7.0beta35, March 17, 2014, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.7.0beta35, August 6, 2014, are
|
||||||
* Copyright (c) 2004, 2006-2013 Glenn Randers-Pehrson, and are
|
* Copyright (c) 2004, 2006-2013 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:
|
||||||
@ -312,7 +312,7 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* March 17, 2014
|
* August 6, 2014
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
@ -371,7 +371,9 @@
|
|||||||
/* This is not the place to learn how to use libpng. The file libpng-manual.txt
|
/* This is not the place to learn how to use libpng. The file libpng-manual.txt
|
||||||
* describes how to use libpng, and the file example.c summarizes it
|
* describes how to use libpng, and the file example.c summarizes it
|
||||||
* with some code on which to build. This file is useful for looking
|
* with some code on which to build. This file is useful for looking
|
||||||
* at the actual function definitions and structure components.
|
* at the actual function definitions and structure components. If that
|
||||||
|
* file has been stripped from your copy of libpng, you can find it at
|
||||||
|
* <http://www.libpng.org/pub/png/libpng-manual.txt>
|
||||||
*
|
*
|
||||||
* If you just need to read a PNG file and don't want to read the documentation
|
* If you just need to read a PNG file and don't want to read the documentation
|
||||||
* skip to the end of this file and read the section entitled 'simplified API'.
|
* skip to the end of this file and read the section entitled 'simplified API'.
|
||||||
@ -380,7 +382,7 @@
|
|||||||
/* 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.7.0beta35"
|
#define PNG_LIBPNG_VER_STRING "1.7.0beta35"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.7.0beta35 - March 17, 2014\n"
|
" libpng version 1.7.0beta35 - August 6, 2014\n"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 17
|
#define PNG_LIBPNG_VER_SONUM 17
|
||||||
#define PNG_LIBPNG_VER_DLLNUM 17
|
#define PNG_LIBPNG_VER_DLLNUM 17
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.7.0beta35 - March 17, 2014
|
* libpng version 1.7.0beta35 - August 6, 2014
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2013 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2013 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -360,7 +360,7 @@
|
|||||||
* version 1.2.41. Disabling these removes the warnings but may also produce
|
* version 1.2.41. Disabling these removes the warnings but may also produce
|
||||||
* less efficient code.
|
* less efficient code.
|
||||||
*/
|
*/
|
||||||
# if defined(__clang__)
|
# if defined(__clang__) && defined(__has_attribute)
|
||||||
/* Clang defines both __clang__ and __GNUC__. Check __clang__ first. */
|
/* Clang defines both __clang__ and __GNUC__. Check __clang__ first. */
|
||||||
# if !defined(PNG_USE_RESULT) && __has_attribute(__warn_unused_result__)
|
# if !defined(PNG_USE_RESULT) && __has_attribute(__warn_unused_result__)
|
||||||
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
||||||
|
@ -979,7 +979,7 @@ png_push_process_row(png_structrp png_ptr)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
||||||
/* Blow up interlaced rows to full size */
|
/* Expand interlaced rows to full size */
|
||||||
if (png_ptr->interlaced && (png_ptr->transformations & PNG_INTERLACE))
|
if (png_ptr->interlaced && (png_ptr->transformations & PNG_INTERLACE))
|
||||||
{
|
{
|
||||||
if (png_ptr->pass < 6)
|
if (png_ptr->pass < 6)
|
||||||
@ -1262,7 +1262,7 @@ png_progressive_combine_row(png_const_structrp png_ptr, png_bytep old_row,
|
|||||||
* it must be png_ptr->row_buf+1
|
* it must be png_ptr->row_buf+1
|
||||||
*/
|
*/
|
||||||
if (new_row != NULL)
|
if (new_row != NULL)
|
||||||
png_combine_row(png_ptr, old_row, 1/*display*/);
|
png_combine_row(png_ptr, old_row, 1/*blocky display*/);
|
||||||
}
|
}
|
||||||
#endif /* PNG_READ_INTERLACING_SUPPORTED */
|
#endif /* PNG_READ_INTERLACING_SUPPORTED */
|
||||||
|
|
||||||
|
24
pngread.c
24
pngread.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngread.c - read a PNG file
|
/* pngread.c - read a PNG file
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.7.0 [(PENDING RELEASE)]
|
* Last changed in libpng 1.6.11 [June 5, 2014]
|
||||||
* Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2014 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.)
|
||||||
@ -572,7 +572,7 @@ png_read_row(png_structrp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
png_error(png_ptr, "internal sequential row size calculation error");
|
png_error(png_ptr, "internal sequential row size calculation error");
|
||||||
|
|
||||||
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
||||||
/* Blow up interlaced rows to full size */
|
/* Expand interlaced rows to full size */
|
||||||
if (png_ptr->interlaced &&
|
if (png_ptr->interlaced &&
|
||||||
(png_ptr->transformations & PNG_INTERLACE))
|
(png_ptr->transformations & PNG_INTERLACE))
|
||||||
{
|
{
|
||||||
@ -1220,7 +1220,7 @@ png_read_png(png_structrp png_ptr, png_inforp info_ptr,
|
|||||||
# define P_LINEAR8 4 /* 8-bit linear: only from a file value */
|
# define P_LINEAR8 4 /* 8-bit linear: only from a file value */
|
||||||
|
|
||||||
/* Color-map processing: after libpng has run on the PNG image further
|
/* Color-map processing: after libpng has run on the PNG image further
|
||||||
* processing may be needed to conver the data to color-map indicies.
|
* processing may be needed to convert the data to color-map indices.
|
||||||
*/
|
*/
|
||||||
#define PNG_CMAP_NONE 0
|
#define PNG_CMAP_NONE 0
|
||||||
#define PNG_CMAP_GA 1 /* Process GA data to a color-map with alpha */
|
#define PNG_CMAP_GA 1 /* Process GA data to a color-map with alpha */
|
||||||
@ -2187,7 +2187,7 @@ png_image_read_colormap(png_voidp argument)
|
|||||||
data_encoding = P_FILE;
|
data_encoding = P_FILE;
|
||||||
|
|
||||||
/* The rows from libpng, while technically gray values, are now also
|
/* The rows from libpng, while technically gray values, are now also
|
||||||
* color-map indicies; however, they may need to be expanded to 1
|
* color-map indices; however, they may need to be expanded to 1
|
||||||
* byte per pixel. This is what png_set_packing does (i.e., it
|
* byte per pixel. This is what png_set_packing does (i.e., it
|
||||||
* unpacks the bit values into bytes.)
|
* unpacks the bit values into bytes.)
|
||||||
*/
|
*/
|
||||||
@ -2273,8 +2273,8 @@ png_image_read_colormap(png_voidp argument)
|
|||||||
* 8-bit GA and it has to be processing to single byte color-map
|
* 8-bit GA and it has to be processing to single byte color-map
|
||||||
* values. Entry 254 is replaced by either a completely
|
* values. Entry 254 is replaced by either a completely
|
||||||
* transparent entry or by the background color at full
|
* transparent entry or by the background color at full
|
||||||
* precision (and the background color is not a simple gray leve
|
* precision (and the background color is not a simple gray
|
||||||
* in this case.)
|
* level in this case.)
|
||||||
*/
|
*/
|
||||||
expand_tRNS = 1;
|
expand_tRNS = 1;
|
||||||
output_processing = PNG_CMAP_TRANS;
|
output_processing = PNG_CMAP_TRANS;
|
||||||
@ -2752,7 +2752,7 @@ png_image_read_colormap(png_voidp argument)
|
|||||||
num_trans = 0;
|
num_trans = 0;
|
||||||
|
|
||||||
output_processing = PNG_CMAP_NONE;
|
output_processing = PNG_CMAP_NONE;
|
||||||
data_encoding = P_FILE; /* Don't change from color-map indicies */
|
data_encoding = P_FILE; /* Don't change from color-map indices */
|
||||||
cmap_entries = png_ptr->num_palette;
|
cmap_entries = png_ptr->num_palette;
|
||||||
if (cmap_entries > 256)
|
if (cmap_entries > 256)
|
||||||
cmap_entries = 256;
|
cmap_entries = 256;
|
||||||
@ -2792,7 +2792,7 @@ png_image_read_colormap(png_voidp argument)
|
|||||||
i < num_trans ? trans[i] : 255U, P_FILE/*8-bit*/);
|
i < num_trans ? trans[i] : 255U, P_FILE/*8-bit*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The PNG data may have indicies packed in fewer than 8 bits, it
|
/* The PNG data may have indices packed in fewer than 8 bits, it
|
||||||
* must be expanded if so.
|
* must be expanded if so.
|
||||||
*/
|
*/
|
||||||
if (png_ptr->bit_depth < 8)
|
if (png_ptr->bit_depth < 8)
|
||||||
@ -3317,11 +3317,11 @@ png_image_read_composite(png_voidp argument)
|
|||||||
* PNG_COMPOSITE
|
* PNG_COMPOSITE
|
||||||
* PNG_GAMMA
|
* PNG_GAMMA
|
||||||
*
|
*
|
||||||
* This is a work-round for the fact that both the PNG_RGB_TO_GRAY and
|
* This is a work-around for the fact that both the PNG_RGB_TO_GRAY and
|
||||||
* PNG_COMPOSITE code performs gamma correction, so we get double gamma
|
* PNG_COMPOSITE code performs gamma correction, so we get double gamma
|
||||||
* correction. The fix-up is to prevent the PNG_COMPOSITE operation happening
|
* correction. The fix-up is to prevent the PNG_COMPOSITE operation from
|
||||||
* inside libpng, so this routine sees an 8 or 16-bit gray+alpha row and handles
|
* happening inside libpng, so this routine sees an 8 or 16-bit gray+alpha
|
||||||
* the removal or pre-multiplication of the alpha channel.
|
* row and handles the removal or pre-multiplication of the alpha channel.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
png_image_read_background(png_voidp argument)
|
png_image_read_background(png_voidp argument)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
VisualStudio instructions
|
VisualStudio instructions
|
||||||
|
|
||||||
libpng version 1.7.0beta35 - March 17, 2014
|
libpng version 1.7.0beta35 - August 6, 2014
|
||||||
|
|
||||||
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.7.0beta35 - March 17, 2014
|
* libpng version 1.7.0beta35 - August 6, 2014
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Makefiles for libpng version 1.7.0beta35 - March 22, 2014
|
Makefiles for libpng version 1.7.0beta35 - August 6, 2014
|
||||||
|
|
||||||
pnglibconf.h.prebuilt => Stores configuration settings
|
pnglibconf.h.prebuilt => Stores configuration settings
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
@ -19,8 +19,6 @@ pnglibconf.h.prebuilt => Stores configuration settings
|
|||||||
makefile.darwin => Darwin makefile, can use on MacosX
|
makefile.darwin => Darwin makefile, can use on MacosX
|
||||||
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,
|
|
||||||
(gcc, creates libpng17.so.17.1.7.0beta35)
|
|
||||||
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
|
||||||
|
2
scripts/dfn.awk
Normal file → Executable file
2
scripts/dfn.awk
Normal file → Executable file
@ -1,7 +1,7 @@
|
|||||||
#!/bin/awk -f
|
#!/bin/awk -f
|
||||||
# scripts/dfn.awk - process a .dfn file
|
# scripts/dfn.awk - process a .dfn file
|
||||||
#
|
#
|
||||||
# last changed in libpng version 1.5.19 - $RDATE%
|
# last changed in libpng version 1.5.19 - (PENDING RELEASE)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2014 Glenn Randers-Pehrson
|
# Copyright (c) 2013-2014 Glenn Randers-Pehrson
|
||||||
#
|
#
|
||||||
|
@ -46,7 +46,7 @@ $(AR) libpng.lib r $(OBJS)
|
|||||||
$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
|
$(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h
|
||||||
|
|
||||||
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
||||||
COPY scripts/pnglibconf.h.prebuilt TO pnglibconf.h
|
COPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.lib
|
pngtest: pngtest.o libpng.lib
|
||||||
$(LN) <WITH <
|
$(LN) <WITH <
|
||||||
|
@ -51,8 +51,8 @@ CFLAGS=-O2 -d -k- -w $(TARGET_CPU) $(CDEBUG)
|
|||||||
LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
|
LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG)
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
OBJS = \
|
OBJS = \
|
||||||
|
@ -59,8 +59,8 @@ CFLAGS=-O2 -Z -X- -w -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG)
|
|||||||
LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG)
|
LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG)
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
|
|
||||||
|
@ -1,270 +0,0 @@
|
|||||||
# makefile for libpng.a and libpng17.so on Linux ELF with gcc
|
|
||||||
# Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2014 Greg Roelofs
|
|
||||||
# and Glenn Randers-Pehrson
|
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
|
||||||
#
|
|
||||||
# This code is released under the libpng license.
|
|
||||||
# For conditions of distribution and use, see the disclaimer
|
|
||||||
# and license in png.h
|
|
||||||
|
|
||||||
# Modified for Debian by Junichi Uekawa and Josselin Mouette
|
|
||||||
# Major modifications are:
|
|
||||||
# * link libpng explicitly with libz and libm
|
|
||||||
# * $(OLDSO).17 is a symlink rather than a different library
|
|
||||||
# * versioned symbols
|
|
||||||
|
|
||||||
# Library name:
|
|
||||||
LIBNAME = libpng17
|
|
||||||
PNGMAJ = 17
|
|
||||||
|
|
||||||
# Shared library names:
|
|
||||||
LIBSO=$(LIBNAME).so
|
|
||||||
LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|
||||||
LIBSOREL=$(LIBSOMAJ).$(RELEASE)
|
|
||||||
OLDSO=libpng.so
|
|
||||||
OLDSOMAJ=libpng.so.17
|
|
||||||
|
|
||||||
# Utilities:
|
|
||||||
AR_RC=ar rc
|
|
||||||
CC=gcc
|
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
|
||||||
RANLIB=ranlib
|
|
||||||
CP=cp
|
|
||||||
RM_F=/bin/rm -f
|
|
||||||
|
|
||||||
# where "make install" puts libpng17.a, libpng17.so*,
|
|
||||||
# libpng17/png.h, libpng17/pngconf.h, and libpng17/pnglibconf.h
|
|
||||||
# Prefix must be a full pathname.
|
|
||||||
prefix=/usr/local
|
|
||||||
exec_prefix=$(prefix)
|
|
||||||
|
|
||||||
# Where the zlib library and include files are located.
|
|
||||||
ZLIBLIB=/usr/local/lib
|
|
||||||
ZLIBINC=/usr/local/include
|
|
||||||
# ZLIBLIB=../zlib
|
|
||||||
# ZLIBINC=../zlib
|
|
||||||
|
|
||||||
ALIGN=
|
|
||||||
# for i386:
|
|
||||||
#ALIGN=-malign-loops=2 -malign-functions=2
|
|
||||||
|
|
||||||
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|
||||||
-Wmissing-declarations -Wtraditional -Wcast-align \
|
|
||||||
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
|
||||||
|
|
||||||
# for pgcc version 2.95.1, -O3 is buggy; don't use it.
|
|
||||||
|
|
||||||
CPPFLAGS=-D_REENTRANT # -DPNG_DEBUG=5
|
|
||||||
CFLAGS=-W -Wall -O2 $(ALIGN) # $(WARNMORE) -g
|
|
||||||
|
|
||||||
LDFLAGS=-L. -lpng17
|
|
||||||
LDFLAGS_A=libpng.a -lz -lm
|
|
||||||
LIBADDFLAGS=-lz -lm
|
|
||||||
|
|
||||||
|
|
||||||
INCPATH=$(prefix)/include
|
|
||||||
LIBPATH=$(exec_prefix)/lib
|
|
||||||
MANPATH=$(prefix)/man
|
|
||||||
BINPATH=$(exec_prefix)/bin
|
|
||||||
|
|
||||||
# override DESTDIR= on the make install command line to easily support
|
|
||||||
# installing into a temporary location. Example:
|
|
||||||
#
|
|
||||||
# make install DESTDIR=/tmp/build/libpng
|
|
||||||
#
|
|
||||||
# If you're going to install into a temporary location
|
|
||||||
# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
|
|
||||||
# you execute make install.
|
|
||||||
DESTDIR=
|
|
||||||
|
|
||||||
DB=$(DESTDIR)$(BINPATH)
|
|
||||||
DI=$(DESTDIR)$(INCPATH)
|
|
||||||
DL=$(DESTDIR)$(LIBPATH)
|
|
||||||
DM=$(DESTDIR)$(MANPATH)
|
|
||||||
|
|
||||||
# Pre-built configuration
|
|
||||||
# See scripts/pnglibconf.mak for more options
|
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
|
||||||
|
|
||||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o
|
|
||||||
|
|
||||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
|
||||||
|
|
||||||
.SUFFIXES: .c .o .pic.o
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
.c.pic.o:
|
|
||||||
$(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
|
|
||||||
|
|
||||||
all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config
|
|
||||||
|
|
||||||
pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|
||||||
$(CP) $< $@
|
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
|
||||||
$(AR_RC) $@ $(OBJS)
|
|
||||||
$(RANLIB) $@
|
|
||||||
|
|
||||||
libpng.pc:
|
|
||||||
cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \
|
|
||||||
-e s!@exec_prefix@!$(exec_prefix)! \
|
|
||||||
-e s!@libdir@!$(LIBPATH)! \
|
|
||||||
-e s!@includedir@!$(INCPATH)! \
|
|
||||||
-e s!-lpng17!-lpng17\ -lz\ -lm! > libpng.pc
|
|
||||||
|
|
||||||
libpng.syms: png.h pngconf.h pnglibconf.h
|
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -E -DPNG_BUILDSYMS -DPNG_INTERNAL png.h |\
|
|
||||||
awk -F '[\t [\\]();]' -v PNGMAJ=$(PNGMAJ) 'BEGIN{printf("PNG17_%s {global:\n",PNGMAJ)}\
|
|
||||||
{ for (i=1;i+2<=NF;++i)\
|
|
||||||
if ($$(i)=="PNG_FUNCTION_EXPORT" && $$(i+2)=="END")\
|
|
||||||
print $$(i+1) ";";\
|
|
||||||
for (i=1;i+1<=NF;++i)\
|
|
||||||
if ($$(i)=="PNG_DATA_EXPORT")\
|
|
||||||
print $$(i+1) ";";}\
|
|
||||||
END{print "local: *; };"}' >$@.new
|
|
||||||
$(RM_F) $@
|
|
||||||
mv $@.new $@
|
|
||||||
|
|
||||||
libpng-config:
|
|
||||||
( cat scripts/libpng-config-head.in; \
|
|
||||||
echo prefix=\"$(prefix)\"; \
|
|
||||||
echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
|
|
||||||
echo L_opts=\"\"; \
|
|
||||||
echo R_opts=\"\"; \
|
|
||||||
echo libs=\"-lpng17\"; \
|
|
||||||
echo all_libs=\"-lpng17 $(LIBADDFLAGS)\"; \
|
|
||||||
cat scripts/libpng-config-body.in ) > libpng-config
|
|
||||||
chmod +x libpng-config
|
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
|
||||||
$(LN_SF) $(LIBSOMAJ) $(LIBSO)
|
|
||||||
|
|
||||||
$(LIBSOMAJ): $(OBJSDLL) libpng.syms
|
|
||||||
$(CC) -shared -Wl,-soname,$(LIBSOMAJ) \
|
|
||||||
-Wl,-version-script,libpng.syms \
|
|
||||||
-o $(LIBSOMAJ) \
|
|
||||||
$(OBJSDLL)
|
|
||||||
|
|
||||||
pngtest: pngtest.o $(LIBSO)
|
|
||||||
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
|
||||||
|
|
||||||
pngtest-static: pngtest.o libpng.a
|
|
||||||
$(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
|
|
||||||
|
|
||||||
test: pngtest pngtest-static
|
|
||||||
@echo ""
|
|
||||||
@echo " Running pngtest dynamically linked with $(LIBSO):"
|
|
||||||
@echo ""
|
|
||||||
LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ./pngtest
|
|
||||||
@echo ""
|
|
||||||
@echo " Running pngtest statically linked with libpng.a:"
|
|
||||||
@echo ""
|
|
||||||
./pngtest-static
|
|
||||||
|
|
||||||
install-headers: png.h pngconf.h pnglibconf.h
|
|
||||||
-@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi
|
|
||||||
-@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi
|
|
||||||
cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME)
|
|
||||||
chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h
|
|
||||||
-@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h
|
|
||||||
-@$(RM_F) $(DI)/libpng
|
|
||||||
(cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .)
|
|
||||||
|
|
||||||
install-static: install-headers libpng.a
|
|
||||||
-@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
|
|
||||||
cp libpng.a $(DL)/$(LIBNAME).a
|
|
||||||
chmod 644 $(DL)/$(LIBNAME).a
|
|
||||||
-@$(RM_F) $(DL)/libpng.a
|
|
||||||
(cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a)
|
|
||||||
|
|
||||||
install-shared: install-headers $(LIBSOMAJ) libpng.pc
|
|
||||||
-@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
|
|
||||||
-@$(RM_F) $(DL)/$(LIBSO)
|
|
||||||
-@$(RM_F) $(DL)/$(LIBSOREL)
|
|
||||||
-@$(RM_F) $(DL)/$(OLDSO)
|
|
||||||
cp $(LIBSOMAJ) $(DL)/$(LIBSOREL)
|
|
||||||
chmod 755 $(DL)/$(LIBSOREL)
|
|
||||||
(cd $(DL); \
|
|
||||||
$(LN_SF) $(LIBSOREL) $(LIBSO); \
|
|
||||||
$(LN_SF) $(LIBSO) $(OLDSO))
|
|
||||||
-@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi
|
|
||||||
-@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc
|
|
||||||
-@$(RM_F) $(DL)/pkgconfig/libpng.pc
|
|
||||||
cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
|
|
||||||
chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
|
|
||||||
(cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc)
|
|
||||||
|
|
||||||
install-man: libpng.3 libpngpf.3 png.5
|
|
||||||
-@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi
|
|
||||||
-@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi
|
|
||||||
-@$(RM_F) $(DM)/man3/libpng.3
|
|
||||||
-@$(RM_F) $(DM)/man3/libpngpf.3
|
|
||||||
cp libpng.3 $(DM)/man3
|
|
||||||
cp libpngpf.3 $(DM)/man3
|
|
||||||
-@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi
|
|
||||||
-@$(RM_F) $(DM)/man5/png.5
|
|
||||||
cp png.5 $(DM)/man5
|
|
||||||
|
|
||||||
install-config: libpng-config
|
|
||||||
-@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi
|
|
||||||
-@$(RM_F) $(DB)/libpng-config
|
|
||||||
-@$(RM_F) $(DB)/$(LIBNAME)-config
|
|
||||||
cp libpng-config $(DB)/$(LIBNAME)-config
|
|
||||||
chmod 755 $(DB)/$(LIBNAME)-config
|
|
||||||
(cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config)
|
|
||||||
|
|
||||||
install: install-static install-shared install-man install-config
|
|
||||||
|
|
||||||
# If you installed in $(DESTDIR), test-installed won't work until you
|
|
||||||
# move the library to its final location. Use test-dd to test it
|
|
||||||
# before then.
|
|
||||||
|
|
||||||
test-dd:
|
|
||||||
echo
|
|
||||||
echo Testing installed dynamic shared library in $(DL).
|
|
||||||
$(CC) -I$(DI) $(CPPFLAGS) \
|
|
||||||
`$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
|
|
||||||
-L$(DL) -L$(ZLIBLIB) -Wl, -rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \
|
|
||||||
-o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags`
|
|
||||||
./pngtestd pngtest.png
|
|
||||||
|
|
||||||
test-installed:
|
|
||||||
$(CC) $(CPPFLAGS) \
|
|
||||||
`$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \
|
|
||||||
-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
|
|
||||||
-o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags`
|
|
||||||
./pngtesti pngtest.png
|
|
||||||
|
|
||||||
clean:
|
|
||||||
$(RM_F) *.o libpng.a libpng.syms pngtest pngout.png libpng-config \
|
|
||||||
$(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \
|
|
||||||
libpng.pc pnglibconf.h
|
|
||||||
|
|
||||||
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
|
||||||
writelock:
|
|
||||||
chmod a-w *.[ch35] $(DOCS) scripts/*
|
|
||||||
|
|
||||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
||||||
|
|
||||||
png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
|
|
||||||
|
|
||||||
pngtest.o: png.h pngconf.h pnglibconf.h
|
|
@ -39,8 +39,8 @@ LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
|
|||||||
CP=cp
|
CP=cp
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
O=.obj
|
O=.obj
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@ CP=copy
|
|||||||
O=.obj
|
O=.obj
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
#uncomment next to put error messages in a file
|
#uncomment next to put error messages in a file
|
||||||
ERRFILE= >> pngerrs
|
ERRFILE= >> pngerrs
|
||||||
|
@ -15,8 +15,8 @@ LDFLAGS=-m$(MODEL) -L..\zlib
|
|||||||
CP=copy
|
CP=copy
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
O=.obj
|
O=.obj
|
||||||
E=.exe
|
E=.exe
|
||||||
|
@ -23,8 +23,8 @@ CP = copy
|
|||||||
RM = del
|
RM = del
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts\pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
# File extensions
|
# File extensions
|
||||||
O=.obj
|
O=.obj
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/* pnglibconf.h - library build configuration */
|
/* pnglibconf.h - library build configuration */
|
||||||
|
|
||||||
/* Libpng version 1.7.0beta35 - March 22, 2014 */
|
/* Libpng version 1.7.0beta35 - August 6, 2014 */
|
||||||
|
|
||||||
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
||||||
|
|
||||||
|
@ -16,12 +16,6 @@
|
|||||||
* scripts/pnglibconf.dfa then this checks the .dfa file too.
|
* scripts/pnglibconf.dfa then this checks the .dfa file too.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
|
||||||
PNG_DFN "@" name "@ @@" ordinal "@"
|
|
||||||
#define PNG_REMOVED(ordinal, type, name, args, attributes)\
|
|
||||||
PNG_DFN "; @" name "@ @@" ordinal "@"
|
|
||||||
#define PNG_EXPORT_LAST_ORDINAL(ordinal)\
|
|
||||||
|
|
||||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
||||||
PNG_DFN "@" name "@ @@" ordinal "@"
|
PNG_DFN "@" name "@ @@" ordinal "@"
|
||||||
#define PNG_REMOVED(ordinal, type, name, args, attributes)\
|
#define PNG_REMOVED(ordinal, type, name, args, attributes)\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user