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.0alpha10.tar
This commit is contained in:
parent
f15a5006c8
commit
6afcee826f
4
ANNOUNCE
4
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.7.0alpha10 - February 6, 2013
|
Libpng 1.7.0alpha10 - February 7, 2013
|
||||||
|
|
||||||
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.
|
||||||
@ -116,7 +116,7 @@ Version 1.7.0alpha08 [January 17, 2013]
|
|||||||
Version 1.7.0alpha09 [January 21, 2013]
|
Version 1.7.0alpha09 [January 21, 2013]
|
||||||
Pulled changes to multi-chunk handling from libpng-1.6.0beta40.
|
Pulled changes to multi-chunk handling from libpng-1.6.0beta40.
|
||||||
|
|
||||||
Version 1.7.0alpha10 [February 6, 2013]
|
Version 1.7.0alpha10 [February 7, 2013]
|
||||||
Make symbol prefixing work with the ARM neon optimizations. Also
|
Make symbol prefixing work with the ARM neon optimizations. Also
|
||||||
allow pngpriv.h to be included for preprocessor definitions only, so
|
allow pngpriv.h to be included for preprocessor definitions only, so
|
||||||
it can be used in non-C/C++ files.
|
it can be used in non-C/C++ files.
|
||||||
|
2
CHANGES
2
CHANGES
@ -4402,7 +4402,7 @@ Version 1.7.0alpha08 [January 17, 2013]
|
|||||||
Version 1.7.0alpha09 [January 21, 2013]
|
Version 1.7.0alpha09 [January 21, 2013]
|
||||||
Pulled changes to multi-chunk handling from libpng-1.6.0beta40.
|
Pulled changes to multi-chunk handling from libpng-1.6.0beta40.
|
||||||
|
|
||||||
Version 1.7.0alpha10 [February 6, 2013]
|
Version 1.7.0alpha10 [February 7, 2013]
|
||||||
Make symbol prefixing work with the ARM neon optimizations. Also
|
Make symbol prefixing work with the ARM neon optimizations. Also
|
||||||
allow pngpriv.h to be included for preprocessor definitions only, so
|
allow pngpriv.h to be included for preprocessor definitions only, so
|
||||||
it can be used in non-C/C++ files.
|
it can be used in non-C/C++ files.
|
||||||
|
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.0alpha10, January 21, 2013, are
|
libpng versions 1.2.6, August 15, 2004, through 1.7.0alpha10, February 7, 2013, 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
|
||||||
@ -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
|
||||||
January 21, 2013
|
February 7, 2013
|
||||||
|
2
README
2
README
@ -1,4 +1,4 @@
|
|||||||
README for libpng version 1.7.0alpha10 - January 21, 2013 (shared library 17.0)
|
README for libpng version 1.7.0alpha10 - February 7, 2013 (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.
|
||||||
|
@ -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.0alpha10 - February 5, 2013
|
libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
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-2013 Glenn Randers-Pehrson
|
Copyright (c) 1998-2013 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.0alpha10 - February 5, 2013
|
libpng versions 0.97, January 1998, through 1.7.0alpha10 - February 7, 2013
|
||||||
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
|
||||||
|
|
||||||
@ -5166,7 +5166,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
XVII. Y2K Compliance in libpng
|
XVII. Y2K Compliance in libpng
|
||||||
|
|
||||||
February 5, 2013
|
February 7, 2013
|
||||||
|
|
||||||
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.
|
||||||
|
14
libpng.3
14
libpng.3
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNG 3 "February 5, 2013"
|
.TH LIBPNG 3 "February 7, 2013"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0alpha10
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0alpha10
|
||||||
.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.0alpha10 - February 5, 2013
|
libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
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-2013 Glenn Randers-Pehrson
|
Copyright (c) 1998-2013 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.0alpha10 - February 5, 2013
|
libpng versions 0.97, January 1998, through 1.7.0alpha10 - February 7, 2013
|
||||||
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
|
||||||
|
|
||||||
@ -5661,7 +5661,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
.SH XVII. Y2K Compliance in libpng
|
.SH XVII. Y2K Compliance in libpng
|
||||||
|
|
||||||
February 5, 2013
|
February 7, 2013
|
||||||
|
|
||||||
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.
|
||||||
@ -5930,7 +5930,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.0alpha10 - February 5, 2013:
|
Libpng version 1.7.0alpha10 - February 7, 2013:
|
||||||
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).
|
||||||
|
|
||||||
@ -5953,7 +5953,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.0alpha10, February 5, 2013, are
|
libpng versions 1.2.6, August 15, 2004, through 1.7.0alpha10, February 7, 2013, 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
|
||||||
@ -6052,7 +6052,7 @@ certification mark of the Open Source Initiative.
|
|||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
glennrp at users.sourceforge.net
|
glennrp at users.sourceforge.net
|
||||||
February 5, 2013
|
February 7, 2013
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNGPF 3 "January 21, 2013"
|
.TH LIBPNGPF 3 "February 7, 2013"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0alpha10
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.7.0alpha10
|
||||||
(private functions)
|
(private functions)
|
||||||
|
2
png.5
2
png.5
@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "January 21, 2013"
|
.TH PNG 5 "February 7, 2013"
|
||||||
.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
@ -691,13 +691,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.0alpha10 - February 5, 2013" PNG_STRING_NEWLINE \
|
"libpng version 1.7.0alpha10 - February 7, 2013" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1998-2013 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
"Copyright (c) 1998-2013 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.0alpha10 - February 5, 2013\
|
return "libpng version 1.7.0alpha10 - February 7, 2013\
|
||||||
Copyright (c) 1998-2013 Glenn Randers-Pehrson\
|
Copyright (c) 1998-2013 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.";
|
||||||
|
10
png.h
10
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.0alpha10 - February 6, 2013
|
* libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
* 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.0alpha10 - February 6, 2013: Glenn
|
* libpng versions 0.97, January 1998, through 1.7.0alpha10 - February 7, 2013: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -199,7 +199,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.0alpha10, February 6, 2013, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.7.0alpha10, February 7, 2013, 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:
|
||||||
@ -311,7 +311,7 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* February 6, 2013
|
* February 7, 2013
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
@ -379,7 +379,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.0alpha10"
|
#define PNG_LIBPNG_VER_STRING "1.7.0alpha10"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.7.0alpha10 - February 6, 2013\n"
|
" libpng version 1.7.0alpha10 - February 7, 2013\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.0alpha10 - February 5, 2013
|
* libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
*
|
*
|
||||||
* 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)
|
||||||
|
105
pngpriv.h
105
pngpriv.h
@ -40,10 +40,17 @@
|
|||||||
#define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
|
#define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */
|
||||||
|
|
||||||
#ifndef PNG_VERSION_INFO_ONLY
|
#ifndef PNG_VERSION_INFO_ONLY
|
||||||
|
/* Keep standard libraries at the top of this file */
|
||||||
|
|
||||||
/* Standard library headers not required by png.h: */
|
/* Standard library headers not required by png.h: */
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
#endif
|
|
||||||
|
/* For headers only required with some build configurations see the lines after
|
||||||
|
* pnglibconf.h is included!
|
||||||
|
*/
|
||||||
|
|
||||||
|
#endif /* VERSION_INFO_ONLY */
|
||||||
|
|
||||||
#define PNGLIB_BUILD /*libpng is being built, not used*/
|
#define PNGLIB_BUILD /*libpng is being built, not used*/
|
||||||
|
|
||||||
@ -88,6 +95,36 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PNG_VERSION_INFO_ONLY
|
||||||
|
/* Additional standard libaries required in certain cases, put only standard
|
||||||
|
* ANSI-C89 headers here. If not available, or non-functional, the problem
|
||||||
|
* should be fixed by writing a wrapper for the header and the file on your
|
||||||
|
* include path.
|
||||||
|
*/
|
||||||
|
#if defined PNG_sCAL_SUPPORTED && defined PNG_FLOATING_POINT_SUPPORTED
|
||||||
|
/* png.c requires the following ANSI-C constants if the conversion of
|
||||||
|
* floating point to ASCII is implemented therein:
|
||||||
|
*
|
||||||
|
* DBL_MIN_10_EXP Minimum negative integer such that 10^integer is a
|
||||||
|
* normalized (double) value.
|
||||||
|
* DBL_DIG Maximum number of decimal digits (can be set to any constant)
|
||||||
|
* DBL_MIN Smallest normalized fp number (can be set to an arbitrary value)
|
||||||
|
* DBL_MAX Maximum floating point number (can be set to an arbitrary value)
|
||||||
|
*/
|
||||||
|
# include <float.h>
|
||||||
|
#endif /* sCAL && FLOATING_POINT */
|
||||||
|
|
||||||
|
#if defined PNG_FLOATING_ARITHMETIC_SUPPORTED ||\
|
||||||
|
defined PNG_FLOATING_POINT_SUPPORTED
|
||||||
|
/* ANSI-C90 math functions are required. Full compliance with the standard
|
||||||
|
* is probably not a requirement, but the functions must exist and be
|
||||||
|
* declared in <math.h>
|
||||||
|
*/
|
||||||
|
# include <math.h>
|
||||||
|
#endif /* FLOATING_ARITHMETIC || FLOATING_POINT */
|
||||||
|
|
||||||
|
#endif /* VERSION_INFO_ONLY */
|
||||||
|
|
||||||
/* Is this a build of a DLL where compilation of the object modules requires
|
/* Is this a build of a DLL where compilation of the object modules requires
|
||||||
* different preprocessor settings to those required for a simple library? If
|
* different preprocessor settings to those required for a simple library? If
|
||||||
* so PNG_BUILD_DLL must be set.
|
* so PNG_BUILD_DLL must be set.
|
||||||
@ -194,11 +231,27 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Include png.h here to get the version info and other macros, pngstruct.h and
|
||||||
|
* pnginfo.h are included later under the protection of !PNG_VERSION_INFO_ONLY
|
||||||
|
*/
|
||||||
|
#include "png.h"
|
||||||
|
|
||||||
/* pngconf.h does not set PNG_DLL_EXPORT unless it is required, so: */
|
/* pngconf.h does not set PNG_DLL_EXPORT unless it is required, so: */
|
||||||
#ifndef PNG_DLL_EXPORT
|
#ifndef PNG_DLL_EXPORT
|
||||||
# define PNG_DLL_EXPORT
|
# define PNG_DLL_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* asserts are turned off in release code, but are in even in release candidates
|
||||||
|
* because often system builders only check future libpng releases when a
|
||||||
|
* release candidate is available.
|
||||||
|
*/
|
||||||
|
#if PNG_LIBPNG_BUILD_BASE_TYPE == PNG_LIBPNG_BUILD_STABLE
|
||||||
|
# define NDEBUG
|
||||||
|
#endif
|
||||||
|
#ifndef PNG_VERSION_INFO_ONLY
|
||||||
|
# include <assert.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SECURITY and SAFETY:
|
/* SECURITY and SAFETY:
|
||||||
*
|
*
|
||||||
* By default libpng is built without any internal limits on image size,
|
* By default libpng is built without any internal limits on image size,
|
||||||
@ -326,50 +379,6 @@
|
|||||||
# define PNGFAPI /* PRIVATE */
|
# define PNGFAPI /* PRIVATE */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PNG_VERSION_INFO_ONLY
|
|
||||||
/* Other defines specific to compilers can go here. Try to keep
|
|
||||||
* them inside an appropriate ifdef/endif pair for portability.
|
|
||||||
*/
|
|
||||||
#if defined PNG_sCAL_SUPPORTED && defined PNG_FLOATING_POINT_SUPPORTED
|
|
||||||
/* png.c requires the following ANSI-C constants if the conversion of
|
|
||||||
* floating point to ASCII is implemented therein:
|
|
||||||
*
|
|
||||||
* DBL_MIN_10_EXP Minimum negative integer such that 10^integer is a
|
|
||||||
* normalized (double) value.
|
|
||||||
* DBL_DIG Maximum number of decimal digits (can be set to any constant)
|
|
||||||
* DBL_MIN Smallest normalized fp number (can be set to an arbitrary value)
|
|
||||||
* DBL_MAX Maximum floating point number (can be set to an arbitrary value)
|
|
||||||
*/
|
|
||||||
# include <float.h>
|
|
||||||
#endif /* sCAL && FLOATING_POINT */
|
|
||||||
|
|
||||||
#if defined PNG_FLOATING_ARITHMETIC_SUPPORTED ||\
|
|
||||||
defined PNG_FLOATING_POINT_SUPPORTED
|
|
||||||
/* Certain floating point functions are used internally; only floor and ceil
|
|
||||||
* if FLOATING_POINT is supported, but if FLOATING_ARITHMETIC is used then
|
|
||||||
* pow and exp are needed too.
|
|
||||||
*/
|
|
||||||
# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
|
|
||||||
defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
|
|
||||||
/* We need to check that <math.h> hasn't already been included earlier
|
|
||||||
* as it seems it doesn't agree with <fp.h>, yet we should really use
|
|
||||||
* <fp.h> if possible.
|
|
||||||
*/
|
|
||||||
# if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__)
|
|
||||||
# include <fp.h>
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# include <math.h>
|
|
||||||
# endif
|
|
||||||
# if defined(_AMIGA) && defined(__SASC) && defined(_M68881)
|
|
||||||
/* Amiga SAS/C: We must include builtin FPU functions when compiling using
|
|
||||||
* MATH=68881
|
|
||||||
*/
|
|
||||||
# include <m68881.h>
|
|
||||||
# endif
|
|
||||||
#endif /* FLOATING_ARITHMETIC || FLOATING_POINT */
|
|
||||||
#endif /* VERSION_INFO_ONLY */
|
|
||||||
|
|
||||||
/* These macros may need to be architecture dependent. */
|
/* These macros may need to be architecture dependent. */
|
||||||
#define PNG_ALIGN_NONE 0 /* do not use data alignment */
|
#define PNG_ALIGN_NONE 0 /* do not use data alignment */
|
||||||
#define PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */
|
#define PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */
|
||||||
@ -533,12 +542,15 @@
|
|||||||
abs((int)((c1).green) - (int)((c2).green)) + \
|
abs((int)((c1).green) - (int)((c2).green)) + \
|
||||||
abs((int)((c1).blue) - (int)((c2).blue)))
|
abs((int)((c1).blue) - (int)((c2).blue)))
|
||||||
|
|
||||||
|
#if defined PNG_SIMPLIFIED_READ_SUPPORTED ||\
|
||||||
|
defined PNG_SIMPLIFIED_WRITE_SUPPORTED
|
||||||
/* See below for the definitions of the tables used in these macros */
|
/* See below for the definitions of the tables used in these macros */
|
||||||
#define PNG_sRGB_FROM_LINEAR(linear) ((png_byte)((png_sRGB_base[(linear)>>15] +\
|
#define PNG_sRGB_FROM_LINEAR(linear) ((png_byte)((png_sRGB_base[(linear)>>15] +\
|
||||||
((((linear)&0x7fff)*png_sRGB_delta[(linear)>>15])>>12)) >> 8))
|
((((linear)&0x7fff)*png_sRGB_delta[(linear)>>15])>>12)) >> 8))
|
||||||
/* Given a value 'linear' in the range 0..255*65535 calculate the 8-bit sRGB
|
/* Given a value 'linear' in the range 0..255*65535 calculate the 8-bit sRGB
|
||||||
* encoded value with maximum error 0.646365. Note that the input is not a
|
* encoded value with maximum error 0.646365. Note that the input is not a
|
||||||
* 16-bit value; it has been multiplied by 255! */
|
* 16-bit value; it has been multiplied by 255! */
|
||||||
|
#endif /* PNG_SIMPLIFIED_READ/WRITE */
|
||||||
|
|
||||||
/* Added to libpng-1.6.0: scale a 16-bit value in the range 0..65535 to 0..255
|
/* Added to libpng-1.6.0: scale a 16-bit value in the range 0..65535 to 0..255
|
||||||
* by dividing by 257 *with rounding*. This macro is exact for the given range.
|
* by dividing by 257 *with rounding*. This macro is exact for the given range.
|
||||||
@ -679,7 +691,6 @@
|
|||||||
*/
|
*/
|
||||||
#ifndef PNG_VERSION_INFO_ONLY
|
#ifndef PNG_VERSION_INFO_ONLY
|
||||||
|
|
||||||
#include "png.h"
|
|
||||||
#include "pngstruct.h"
|
#include "pngstruct.h"
|
||||||
#include "pnginfo.h"
|
#include "pnginfo.h"
|
||||||
|
|
||||||
@ -691,6 +702,7 @@ typedef const png_uint_16p * png_const_uint_16pp;
|
|||||||
/* Added to libpng-1.5.7: sRGB conversion tables */
|
/* Added to libpng-1.5.7: sRGB conversion tables */
|
||||||
#if defined PNG_SIMPLIFIED_READ_SUPPORTED ||\
|
#if defined PNG_SIMPLIFIED_READ_SUPPORTED ||\
|
||||||
defined PNG_SIMPLIFIED_WRITE_SUPPORTED
|
defined PNG_SIMPLIFIED_WRITE_SUPPORTED
|
||||||
|
#ifdef PNG_SIMPLIFIED_READ_SUPPORTED
|
||||||
PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
|
PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
|
||||||
/* Convert from an sRGB encoded value 0..255 to a 16-bit linear value,
|
/* Convert from an sRGB encoded value 0..255 to a 16-bit linear value,
|
||||||
* 0..65535. This table gives the closest 16-bit answers (no errors).
|
* 0..65535. This table gives the closest 16-bit answers (no errors).
|
||||||
@ -699,6 +711,7 @@ PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_table, [256]);
|
|||||||
|
|
||||||
PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_base, [512]);
|
PNG_INTERNAL_DATA(const png_uint_16, png_sRGB_base, [512]);
|
||||||
PNG_INTERNAL_DATA(const png_byte, png_sRGB_delta, [512]);
|
PNG_INTERNAL_DATA(const png_byte, png_sRGB_delta, [512]);
|
||||||
|
#endif /* PNG_SIMPLIFIED_READ/WRITE */
|
||||||
|
|
||||||
|
|
||||||
/* Inhibit C++ name-mangling for libpng functions but not for system calls. */
|
/* Inhibit C++ name-mangling for libpng functions but not for system calls. */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
VisualStudio instructions
|
VisualStudio instructions
|
||||||
|
|
||||||
libpng version 1.7.0alpha10 - January 21, 2013
|
libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
|
|
||||||
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.0alpha10 - January 21, 2013
|
* libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Makefiles for libpng version 1.7.0alpha10 - February 5, 2013
|
Makefiles for libpng version 1.7.0alpha10 - February 7, 2013
|
||||||
|
|
||||||
pnglibconf.h.prebuilt => Stores configuration settings
|
pnglibconf.h.prebuilt => Stores configuration settings
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
# are copied to the preprocessed file).
|
# are copied to the preprocessed file).
|
||||||
|
|
||||||
BEGIN{
|
BEGIN{
|
||||||
out="/dev/null" # intermediate, preprocessed, file
|
out="" # intermediate, preprocessed, file
|
||||||
pre=-1 # preprocess (first line)
|
pre=-1 # preprocess (first line)
|
||||||
version="libpng version unknown" # version information
|
version="libpng version unknown" # version information
|
||||||
version_file="" # where to find the version
|
version_file="" # where to find the version
|
||||||
@ -79,7 +79,7 @@ BEGIN{
|
|||||||
}
|
}
|
||||||
|
|
||||||
# The output file must be specified before any input:
|
# The output file must be specified before any input:
|
||||||
out == "/dev/null" {
|
out == "" {
|
||||||
print "out=output.file must be given on the command line"
|
print "out=output.file must be given on the command line"
|
||||||
err = 1
|
err = 1
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* pnglibconf.h - library build configuration */
|
/* pnglibconf.h - library build configuration */
|
||||||
|
|
||||||
/* libpng version 1.7.0alpha10 - February 5, 2013 */
|
/* libpng version 1.7.0alpha10 - February 7, 2013 */
|
||||||
|
|
||||||
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user