mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Imported from libpng-1.5.22rc02.tar
This commit is contained in:
parent
687d018609
commit
9c5ed64946
2
INSTALL
2
INSTALL
@ -184,7 +184,7 @@ run "make install".
|
|||||||
VIII. Configuring libpng for 16-bit platforms
|
VIII. Configuring libpng for 16-bit platforms
|
||||||
|
|
||||||
You will want to look into zconf.h to tell zlib (and thus libpng) that
|
You will want to look into zconf.h to tell zlib (and thus libpng) that
|
||||||
it cannot allocate more then 64K at a time. Even if you can, the memory
|
it cannot allocate more than 64K at a time. Even if you can, the memory
|
||||||
won't be accessible. So limit zlib and libpng to 64K by defining MAXSEG_64K.
|
won't be accessible. So limit zlib and libpng to 64K by defining MAXSEG_64K.
|
||||||
|
|
||||||
IX. Configuring for DOS
|
IX. Configuring for DOS
|
||||||
|
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.5.22rc02, March 6, 2015, are
|
libpng versions 1.2.6, August 15, 2004, through 1.5.22rc02, March 9, 2015, are
|
||||||
Copyright (c) 2004, 2006-2015 Glenn Randers-Pehrson, and are
|
Copyright (c) 2004, 2006-2015 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 6, 2015
|
March 9, 2015
|
||||||
|
2
README
2
README
@ -1,4 +1,4 @@
|
|||||||
README for libpng version 1.5.22rc02 - March 6, 2015 (shared library 15.0)
|
README for libpng version 1.5.22rc02 - March 9, 2015 (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.
|
||||||
|
@ -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.22rc02 - March 6, 2015
|
libpng version 1.5.22rc02 - March 9, 2015
|
||||||
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.5.22rc02 - March 6, 2015
|
libpng versions 0.97, January 1998, through 1.5.22rc02 - March 9, 2015
|
||||||
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
|
||||||
|
|
||||||
@ -1787,7 +1787,7 @@ value when you call it in this position:
|
|||||||
png_set_gamma(png_ptr, screen_gamma, 0.45455);
|
png_set_gamma(png_ptr, screen_gamma, 0.45455);
|
||||||
|
|
||||||
If you need to reduce an RGB file to a paletted file, or if a paletted
|
If you need to reduce an RGB file to a paletted file, or if a paletted
|
||||||
file has more entries then will fit on your screen, png_set_quantize()
|
file has more entries than will fit on your screen, png_set_quantize()
|
||||||
will do that. Note that this is a simple match quantization that merely
|
will do that. Note that this is a simple match quantization that merely
|
||||||
finds the closest color available. This should work fairly well with
|
finds the closest color available. This should work fairly well with
|
||||||
optimized palettes, but fairly badly with linear color cubes. If you
|
optimized palettes, but fairly badly with linear color cubes. If you
|
||||||
@ -2332,7 +2332,7 @@ png_infop info_ptr;
|
|||||||
64K. The library seems to run fine with sizes
|
64K. The library seems to run fine with sizes
|
||||||
of 4K. Although you can give it much less if
|
of 4K. Although you can give it much less if
|
||||||
necessary (I assume you can give it chunks of
|
necessary (I assume you can give it chunks of
|
||||||
1 byte, I haven't tried less then 256 bytes
|
1 byte, I haven't tried less than 256 bytes
|
||||||
yet). When this function returns, you may
|
yet). When this function returns, you may
|
||||||
want to display any rows that were generated
|
want to display any rows that were generated
|
||||||
in the row callback if you don't already do
|
in the row callback if you don't already do
|
||||||
@ -4535,7 +4535,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
XIV. Y2K Compliance in libpng
|
XIV. Y2K Compliance in libpng
|
||||||
|
|
||||||
March 6, 2015
|
March 9, 2015
|
||||||
|
|
||||||
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.
|
||||||
|
18
libpng.3
18
libpng.3
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNG 3 "March 6, 2015"
|
.TH LIBPNG 3 "March 9, 2015"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.22rc02
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.22rc02
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -492,7 +492,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.5.22rc02 - March 6, 2015
|
libpng version 1.5.22rc02 - March 9, 2015
|
||||||
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
|
||||||
@ -503,7 +503,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.22rc02 - March 6, 2015
|
libpng versions 0.97, January 1998, through 1.5.22rc02 - March 9, 2015
|
||||||
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
|
||||||
|
|
||||||
@ -2279,7 +2279,7 @@ value when you call it in this position:
|
|||||||
png_set_gamma(png_ptr, screen_gamma, 0.45455);
|
png_set_gamma(png_ptr, screen_gamma, 0.45455);
|
||||||
|
|
||||||
If you need to reduce an RGB file to a paletted file, or if a paletted
|
If you need to reduce an RGB file to a paletted file, or if a paletted
|
||||||
file has more entries then will fit on your screen, png_set_quantize()
|
file has more entries than will fit on your screen, png_set_quantize()
|
||||||
will do that. Note that this is a simple match quantization that merely
|
will do that. Note that this is a simple match quantization that merely
|
||||||
finds the closest color available. This should work fairly well with
|
finds the closest color available. This should work fairly well with
|
||||||
optimized palettes, but fairly badly with linear color cubes. If you
|
optimized palettes, but fairly badly with linear color cubes. If you
|
||||||
@ -2824,7 +2824,7 @@ png_infop info_ptr;
|
|||||||
64K. The library seems to run fine with sizes
|
64K. The library seems to run fine with sizes
|
||||||
of 4K. Although you can give it much less if
|
of 4K. Although you can give it much less if
|
||||||
necessary (I assume you can give it chunks of
|
necessary (I assume you can give it chunks of
|
||||||
1 byte, I haven't tried less then 256 bytes
|
1 byte, I haven't tried less than 256 bytes
|
||||||
yet). When this function returns, you may
|
yet). When this function returns, you may
|
||||||
want to display any rows that were generated
|
want to display any rows that were generated
|
||||||
in the row callback if you don't already do
|
in the row callback if you don't already do
|
||||||
@ -5027,7 +5027,7 @@ Other rules can be inferred by inspecting the libpng source.
|
|||||||
|
|
||||||
.SH XIV. Y2K Compliance in libpng
|
.SH XIV. Y2K Compliance in libpng
|
||||||
|
|
||||||
March 6, 2015
|
March 9, 2015
|
||||||
|
|
||||||
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.
|
||||||
@ -5335,7 +5335,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.22rc02 - March 6, 2015:
|
Libpng version 1.5.22rc02 - March 9, 2015:
|
||||||
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).
|
||||||
|
|
||||||
@ -5358,7 +5358,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.22rc02, March 6, 2015, are
|
libpng versions 1.2.6, August 15, 2004, through 1.5.22rc02, March 9, 2015, are
|
||||||
Copyright (c) 2004,2006-20014 Glenn Randers-Pehrson, and are
|
Copyright (c) 2004,2006-20014 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
|
||||||
@ -5457,7 +5457,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 6, 2015
|
March 9, 2015
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.TH LIBPNGPF 3 "March 6, 2015"
|
.TH LIBPNGPF 3 "March 9, 2015"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.22rc02
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.5.22rc02
|
||||||
(private functions)
|
(private functions)
|
||||||
|
2
png.5
2
png.5
@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "March 6, 2015"
|
.TH PNG 5 "March 9, 2015"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
png \- Portable Network Graphics (PNG) format
|
png \- Portable Network Graphics (PNG) format
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
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.5.22rc02, March 6, 2015
|
* libpng version 1.5.22rc02, March 9, 2015
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2015 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2015 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -12,7 +12,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.22rc02, March 6, 2015: Glenn
|
* libpng versions 0.97, January 1998, through 1.5.22rc02, March 9, 2015: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -239,7 +239,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.22rc02, March 6, 2015, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.5.22rc02, March 9, 2015, are
|
||||||
* Copyright (c) 2004, 2006-2015 Glenn Randers-Pehrson, and are
|
* Copyright (c) 2004, 2006-2015 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:
|
||||||
@ -351,7 +351,7 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* March 6, 2015
|
* March 9, 2015
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
@ -420,7 +420,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.5.22rc02"
|
#define PNG_LIBPNG_VER_STRING "1.5.22rc02"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.5.22rc02 - March 6, 2015\n"
|
" libpng version 1.5.22rc02 - March 9, 2015\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
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.5.22rc02, March 6, 2015
|
* libpng version 1.5.22rc02, March 9, 2015
|
||||||
*
|
*
|
||||||
* 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)
|
||||||
|
4
pngmem.c
4
pngmem.c
@ -102,7 +102,7 @@ png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate memory. For reasonable files, size should never exceed
|
/* Allocate memory. For reasonable files, size should never exceed
|
||||||
* 64K. However, zlib may allocate more then 64K if you don't tell
|
* 64K. However, zlib may allocate more than 64K if you don't tell
|
||||||
* it not to. See zconf.h and png.h for more information. zlib does
|
* it not to. See zconf.h and png.h for more information. zlib does
|
||||||
* need to allocate exactly 64K, so whatever you call here must
|
* need to allocate exactly 64K, so whatever you call here must
|
||||||
* have the ability to do that.
|
* have the ability to do that.
|
||||||
@ -475,7 +475,7 @@ png_destroy_struct_2(png_voidp struct_ptr, png_free_ptr free_fn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate memory. For reasonable files, size should never exceed
|
/* Allocate memory. For reasonable files, size should never exceed
|
||||||
* 64K. However, zlib may allocate more then 64K if you don't tell
|
* 64K. However, zlib may allocate more than 64K if you don't tell
|
||||||
* it not to. See zconf.h and png.h for more information. zlib does
|
* it not to. See zconf.h and png.h for more information. zlib does
|
||||||
* need to allocate exactly 64K, so whatever you call here must
|
* need to allocate exactly 64K, so whatever you call here must
|
||||||
* have the ability to do that.
|
* have the ability to do that.
|
||||||
|
2
pngrio.c
2
pngrio.c
@ -26,7 +26,7 @@
|
|||||||
* reads from a file pointer. Note that this routine sometimes gets called
|
* reads from a file pointer. Note that this routine sometimes gets called
|
||||||
* with very small lengths, so you should implement some kind of simple
|
* with very small lengths, so you should implement some kind of simple
|
||||||
* buffering if you are using unbuffered reads. This should never be asked
|
* buffering if you are using unbuffered reads. This should never be asked
|
||||||
* to read more then 64K on a 16 bit machine.
|
* to read more than 64K on a 16 bit machine.
|
||||||
*/
|
*/
|
||||||
void /* PRIVATE */
|
void /* PRIVATE */
|
||||||
png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
|
png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
|
||||||
|
@ -468,7 +468,7 @@ pngtest_error(png_structp png_ptr, png_const_charp message)
|
|||||||
#if defined(PNG_USER_MEM_SUPPORTED) && PNG_DEBUG
|
#if defined(PNG_USER_MEM_SUPPORTED) && PNG_DEBUG
|
||||||
|
|
||||||
/* Allocate memory. For reasonable files, size should never exceed
|
/* Allocate memory. For reasonable files, size should never exceed
|
||||||
* 64K. However, zlib may allocate more then 64K if you don't tell
|
* 64K. However, zlib may allocate more than 64K if you don't tell
|
||||||
* it not to. See zconf.h and png.h for more information. zlib does
|
* it not to. See zconf.h and png.h for more information. zlib does
|
||||||
* need to allocate exactly 64K, so whatever you call here must
|
* need to allocate exactly 64K, so whatever you call here must
|
||||||
* have the ability to do that.
|
* have the ability to do that.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
VisualStudio instructions
|
VisualStudio instructions
|
||||||
|
|
||||||
libpng version 1.5.22rc02 - March 6, 2015
|
libpng version 1.5.22rc02 - March 9, 2015
|
||||||
|
|
||||||
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.22rc02 - March 6, 2015
|
* libpng version 1.5.22rc02 - March 9, 2015
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Makefiles for libpng version 1.5.22rc02 - March 6, 2015
|
Makefiles for libpng version 1.5.22rc02 - March 9, 2015
|
||||||
|
|
||||||
pnglibconf.h.prebuilt => Stores configuration settings
|
pnglibconf.h.prebuilt => Stores configuration settings
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
|
@ -500,7 +500,7 @@ setting QUANTIZE_BLUE_BITS default 5
|
|||||||
# are only interested in 8 bits anyway. Increasing this value
|
# are only interested in 8 bits anyway. Increasing this value
|
||||||
# results in more memory being used, and more pow() functions
|
# results in more memory being used, and more pow() functions
|
||||||
# being called to fill in the gamma tables. Don't set this value
|
# being called to fill in the gamma tables. Don't set this value
|
||||||
# less then 8, and even that may not work (I haven't tested it).
|
# less than 8, and even that may not work (I haven't tested it).
|
||||||
|
|
||||||
setting MAX_GAMMA_8 default 11
|
setting MAX_GAMMA_8 default 11
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* 1.5.22rc02 STANDARD API DEFINITION */
|
/* 1.5.22rc02 STANDARD API DEFINITION */
|
||||||
/* pnglibconf.h - library build configuration */
|
/* pnglibconf.h - library build configuration */
|
||||||
|
|
||||||
/* libpng version 1.5.22rc02 - March 6, 2015 */
|
/* libpng version 1.5.22rc02 - March 9, 2015 */
|
||||||
|
|
||||||
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
/* Copyright (c) 1998-2013 Glenn Randers-Pehrson */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user