Imported from libpng-1.2.20rc4.tar
This commit is contained in:
parent
9cc7b03503
commit
d20666a228
31
ANNOUNCE
31
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.2.20rc3 - August 30, 2007
|
Libpng 1.2.20rc4 - September 1, 2007
|
||||||
|
|
||||||
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.
|
||||||
@ -9,32 +9,32 @@ Files available for download:
|
|||||||
Source files with LF line endings (for Unix/Linux) and with a
|
Source files with LF line endings (for Unix/Linux) and with a
|
||||||
"configure" script
|
"configure" script
|
||||||
|
|
||||||
libpng-1.2.20rc3.tar.gz
|
libpng-1.2.20rc4.tar.gz
|
||||||
libpng-1.2.20rc3.tar.bz2
|
libpng-1.2.20rc4.tar.bz2
|
||||||
|
|
||||||
Source files with LF line endings (for Unix/Linux) without the
|
Source files with LF line endings (for Unix/Linux) without the
|
||||||
"configure" script
|
"configure" script
|
||||||
|
|
||||||
libpng-1.2.20rc3-no-config.tar.gz
|
libpng-1.2.20rc4-no-config.tar.gz
|
||||||
libpng-1.2.20rc3-no-config.tar.bz2
|
libpng-1.2.20rc4-no-config.tar.bz2
|
||||||
|
|
||||||
Source files with CRLF line endings (for Windows), without the
|
Source files with CRLF line endings (for Windows), without the
|
||||||
"configure" script
|
"configure" script
|
||||||
|
|
||||||
lp1220r03.zip
|
lp1220r04.zip
|
||||||
lp1220r03.tar.bz2
|
lp1220r04.tar.bz2
|
||||||
|
|
||||||
Project files
|
Project files
|
||||||
|
|
||||||
libpng-1.2.20rc3-project-netware.zip
|
libpng-1.2.20rc4-project-netware.zip
|
||||||
libpng-1.2.20rc3-project-wince.zip
|
libpng-1.2.20rc4-project-wince.zip
|
||||||
|
|
||||||
Other information:
|
Other information:
|
||||||
|
|
||||||
libpng-1.2.20rc3-README.txt
|
libpng-1.2.20rc4-README.txt
|
||||||
libpng-1.2.20rc3-KNOWNBUGS.txt
|
libpng-1.2.20rc4-KNOWNBUGS.txt
|
||||||
libpng-1.2.20rc3-LICENSE.txt
|
libpng-1.2.20rc4-LICENSE.txt
|
||||||
libpng-1.2.20rc3-Y2K-compliance.txt
|
libpng-1.2.20rc4-Y2K-compliance.txt
|
||||||
|
|
||||||
Changes since the last public release (1.2.19):
|
Changes since the last public release (1.2.19):
|
||||||
|
|
||||||
@ -62,13 +62,16 @@ version 1.2.20rc2 [August 27, 2007]
|
|||||||
Revised #ifdefs to ensure one and only one of pnggccrd.c, pngvcrd.c,
|
Revised #ifdefs to ensure one and only one of pnggccrd.c, pngvcrd.c,
|
||||||
or part of pngrutil.c is selected.
|
or part of pngrutil.c is selected.
|
||||||
|
|
||||||
version 1.2.20rc3 [August 30, 2007]
|
version 1.2.20rc3 [September 1, 2007]
|
||||||
Remove a little more code in pngwutil.c when PNG_NO_WRITE_FILTER is selected.
|
Remove a little more code in pngwutil.c when PNG_NO_WRITE_FILTER is selected.
|
||||||
Added /D _CRT_SECURE_NO_WARNINGS to visual6c and visualc71 projects.
|
Added /D _CRT_SECURE_NO_WARNINGS to visual6c and visualc71 projects.
|
||||||
Compile png_mmx_support() in png.c even when PNG_NO_MMX_CODE is defined.
|
Compile png_mmx_support() in png.c even when PNG_NO_MMX_CODE is defined.
|
||||||
Restored a "superfluous" #ifdef that was removed from 1.2.20rc2 pnggccrd.c,
|
Restored a "superfluous" #ifdef that was removed from 1.2.20rc2 pnggccrd.c,
|
||||||
breaking the png_mmx_support() function.
|
breaking the png_mmx_support() function.
|
||||||
|
|
||||||
|
version 1.2.20rc4 [September 1, 2007]
|
||||||
|
Removed Intel contributions (MMX, Optimized C).
|
||||||
|
|
||||||
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
|
||||||
|
3
CHANGES
3
CHANGES
@ -1926,6 +1926,9 @@ version 1.2.20rc3 [August 30, 2007]
|
|||||||
Restored a "superfluous" #ifdef that was removed from 1.2.20rc2 pnggccrd.c,
|
Restored a "superfluous" #ifdef that was removed from 1.2.20rc2 pnggccrd.c,
|
||||||
breaking the png_mmx_support() function.
|
breaking the png_mmx_support() function.
|
||||||
|
|
||||||
|
version 1.2.20rc4 [September 1, 2007]
|
||||||
|
Removed Intel contributions (MMX, Optimized C).
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
27
INSTALL
27
INSTALL
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Installing libpng version 1.2.20rc3 - August 30, 2007
|
Installing libpng version 1.2.20rc4 - September 1, 2007
|
||||||
|
|
||||||
On Unix/Linux and similar systems, you can simply type
|
On Unix/Linux and similar systems, you can simply type
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ to have access to the zlib.h and zconf.h include files that
|
|||||||
correspond to the version of zlib that's installed.
|
correspond to the version of zlib that's installed.
|
||||||
|
|
||||||
You can rename the directories that you downloaded (they
|
You can rename the directories that you downloaded (they
|
||||||
might be called "libpng-1.2.20rc3" or "lpng109" and "zlib-1.2.1"
|
might be called "libpng-1.2.20rc4" or "lpng109" and "zlib-1.2.1"
|
||||||
or "zlib121") so that you have directories called "zlib" and "libpng".
|
or "zlib121") so that you have directories called "zlib" and "libpng".
|
||||||
|
|
||||||
Your directory structure should look like this:
|
Your directory structure should look like this:
|
||||||
@ -101,15 +101,9 @@ include
|
|||||||
CMakeLists.txt => "cmake" script
|
CMakeLists.txt => "cmake" script
|
||||||
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
||||||
makefile.elf => Linux/ELF makefile symbol versioning,
|
makefile.elf => Linux/ELF makefile symbol versioning,
|
||||||
gcc, creates libpng12.so.0.1.2.20rc3)
|
gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3)
|
(gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.gcmmx => Linux/ELF makefile
|
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3,
|
|
||||||
uses assembler code tuned for Intel MMX platform)
|
|
||||||
makefile.nommx => Linux/ELF makefile
|
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3
|
|
||||||
does not use Intel MMX assembler code)
|
|
||||||
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
||||||
makefile.knr => Archaic UNIX Makefile that converts files with
|
makefile.knr => Archaic UNIX Makefile that converts files with
|
||||||
ansi2knr (Requires ansi2knr.c from
|
ansi2knr (Requires ansi2knr.c from
|
||||||
@ -131,14 +125,14 @@ include
|
|||||||
makefile.openbsd => OpenBSD makefile
|
makefile.openbsd => OpenBSD makefile
|
||||||
makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib)
|
makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib)
|
||||||
makefile.sggcc => Silicon Graphics (gcc,
|
makefile.sggcc => Silicon Graphics (gcc,
|
||||||
creates libpng12.so.0.1.2.20rc3)
|
creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile (gcc,
|
makefile.solaris => Solaris 2.X makefile (gcc,
|
||||||
creates libpng12.so.0.1.2.20rc3)
|
creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.solaris-x86 => Solaris/intelMMX 2.X makefile (gcc,
|
makefile.solaris-x86 => Solaris/intelMMX 2.X makefile (gcc,
|
||||||
creates libpng12.so.0.1.2.20rc3)
|
creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.so9 => Solaris 9 makefile (gcc,
|
makefile.so9 => Solaris 9 makefile (gcc,
|
||||||
creates libpng12.so.0.1.2.20rc3)
|
creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.32sunu => Sun Ultra 32-bit makefile
|
makefile.32sunu => Sun Ultra 32-bit makefile
|
||||||
makefile.64sunu => Sun Ultra 64-bit makefile
|
makefile.64sunu => Sun Ultra 64-bit makefile
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
@ -154,10 +148,7 @@ include
|
|||||||
makefile.tc3 => Turbo C 3.0 makefile
|
makefile.tc3 => Turbo C 3.0 makefile
|
||||||
makefile.dj2 => DJGPP 2 makefile
|
makefile.dj2 => DJGPP 2 makefile
|
||||||
makefile.msc => Microsoft C makefile
|
makefile.msc => Microsoft C makefile
|
||||||
makefile.vcawin32 => makefile for Microsoft Visual C++ 5.0 and later (uses
|
makefile.vcwin32 => makefile for Microsoft Visual C++ 4.0 and later
|
||||||
assembler code tuned for Intel MMX platform)
|
|
||||||
makefile.vcwin32 => makefile for Microsoft Visual C++ 4.0 and later (does
|
|
||||||
not use assembler code)
|
|
||||||
makefile.os2 => OS/2 Makefile (gcc and emx, requires pngos2.def)
|
makefile.os2 => OS/2 Makefile (gcc and emx, requires pngos2.def)
|
||||||
pngos2.def => OS/2 module definition file used by makefile.os2
|
pngos2.def => OS/2 module definition file used by makefile.os2
|
||||||
makefile.watcom => Watcom 10a+ Makefile, 32-bit flat memory model
|
makefile.watcom => Watcom 10a+ Makefile, 32-bit flat memory model
|
||||||
|
2
KNOWNBUG
2
KNOWNBUG
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Known bugs in libpng version 1.2.20rc3
|
Known bugs in libpng version 1.2.20rc4
|
||||||
|
|
||||||
1. April 22, 2001: pnggccrd.c has been reported to crash on NetBSD when
|
1. April 22, 2001: pnggccrd.c has been reported to crash on NetBSD when
|
||||||
reading interlaced PNG files, when assembler code is enabled but running
|
reading interlaced PNG files, when assembler code is enabled but running
|
||||||
|
4
LICENSE
4
LICENSE
@ -8,7 +8,7 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
|||||||
If you modify libpng you may insert additional notices immediately following
|
If you modify libpng you may insert additional notices immediately following
|
||||||
this sentence.
|
this sentence.
|
||||||
|
|
||||||
libpng versions 1.2.6, August 15, 2004, through 1.2.20rc3, August 30, 2007, are
|
libpng versions 1.2.6, August 15, 2004, through 1.2.20rc4, September 1, 2007, 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
|
||||||
@ -106,4 +106,4 @@ certification mark of the Open Source Initiative.
|
|||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
glennrp at users.sourceforge.net
|
glennrp at users.sourceforge.net
|
||||||
August 30, 2007
|
September 1, 2007
|
||||||
|
@ -33,7 +33,7 @@ lib_LTLIBRARIES=libpng12.la @compatlib@
|
|||||||
EXTRA_LTLIBRARIES= libpng.la
|
EXTRA_LTLIBRARIES= libpng.la
|
||||||
libpng12_la_SOURCES = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
libpng12_la_SOURCES = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||||
pngwtran.c pngmem.c pngerror.c pngpread.c pnggccrd.c \
|
pngwtran.c pngmem.c pngerror.c pngpread.c \
|
||||||
png.h pngconf.h
|
png.h pngconf.h
|
||||||
libpng_la_SOURCES = $(libpng12_la_SOURCES)
|
libpng_la_SOURCES = $(libpng12_la_SOURCES)
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ EXTRA_DIST= \
|
|||||||
${srcdir}/contrib/pngsuite/* \
|
${srcdir}/contrib/pngsuite/* \
|
||||||
${srcdir}/contrib/visupng/* \
|
${srcdir}/contrib/visupng/* \
|
||||||
$(TESTS) \
|
$(TESTS) \
|
||||||
example.c libpng.txt pngvcrd.c
|
example.c libpng.txt
|
||||||
|
|
||||||
CLEANFILES= pngout.png libpng12.pc libpng12-config libpng.vers \
|
CLEANFILES= pngout.png libpng12.pc libpng12-config libpng.vers \
|
||||||
libpng.sym
|
libpng.sym
|
||||||
|
26
Makefile.in
26
Makefile.in
@ -87,8 +87,7 @@ am__objects_1 = libpng_la-png.lo libpng_la-pngset.lo \
|
|||||||
libpng_la-pngread.lo libpng_la-pngrio.lo libpng_la-pngwio.lo \
|
libpng_la-pngread.lo libpng_la-pngrio.lo libpng_la-pngwio.lo \
|
||||||
libpng_la-pngwrite.lo libpng_la-pngrtran.lo \
|
libpng_la-pngwrite.lo libpng_la-pngrtran.lo \
|
||||||
libpng_la-pngwtran.lo libpng_la-pngmem.lo \
|
libpng_la-pngwtran.lo libpng_la-pngmem.lo \
|
||||||
libpng_la-pngerror.lo libpng_la-pngpread.lo \
|
libpng_la-pngerror.lo libpng_la-pngpread.lo
|
||||||
libpng_la-pnggccrd.lo
|
|
||||||
am_libpng_la_OBJECTS = $(am__objects_1)
|
am_libpng_la_OBJECTS = $(am__objects_1)
|
||||||
libpng_la_OBJECTS = $(am_libpng_la_OBJECTS)
|
libpng_la_OBJECTS = $(am_libpng_la_OBJECTS)
|
||||||
libpng12_la_LIBADD =
|
libpng12_la_LIBADD =
|
||||||
@ -99,7 +98,7 @@ am_libpng12_la_OBJECTS = libpng12_la-png.lo libpng12_la-pngset.lo \
|
|||||||
libpng12_la-pngwio.lo libpng12_la-pngwrite.lo \
|
libpng12_la-pngwio.lo libpng12_la-pngwrite.lo \
|
||||||
libpng12_la-pngrtran.lo libpng12_la-pngwtran.lo \
|
libpng12_la-pngrtran.lo libpng12_la-pngwtran.lo \
|
||||||
libpng12_la-pngmem.lo libpng12_la-pngerror.lo \
|
libpng12_la-pngmem.lo libpng12_la-pngerror.lo \
|
||||||
libpng12_la-pngpread.lo libpng12_la-pnggccrd.lo
|
libpng12_la-pngpread.lo
|
||||||
libpng12_la_OBJECTS = $(am_libpng12_la_OBJECTS)
|
libpng12_la_OBJECTS = $(am_libpng12_la_OBJECTS)
|
||||||
am_pngtest_OBJECTS = pngtest.$(OBJEXT)
|
am_pngtest_OBJECTS = pngtest.$(OBJEXT)
|
||||||
pngtest_OBJECTS = $(am_pngtest_OBJECTS)
|
pngtest_OBJECTS = $(am_pngtest_OBJECTS)
|
||||||
@ -184,7 +183,6 @@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
|||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBPNG_DEFINES = @LIBPNG_DEFINES@
|
LIBPNG_DEFINES = @LIBPNG_DEFINES@
|
||||||
LIBPNG_NO_MMX = @LIBPNG_NO_MMX@
|
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
LIBTOOL = @LIBTOOL@
|
LIBTOOL = @LIBTOOL@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
@ -286,7 +284,7 @@ lib_LTLIBRARIES = libpng12.la @compatlib@
|
|||||||
EXTRA_LTLIBRARIES = libpng.la
|
EXTRA_LTLIBRARIES = libpng.la
|
||||||
libpng12_la_SOURCES = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
libpng12_la_SOURCES = png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||||
pngwtran.c pngmem.c pngerror.c pngpread.c pnggccrd.c \
|
pngwtran.c pngmem.c pngerror.c pngpread.c \
|
||||||
png.h pngconf.h
|
png.h pngconf.h
|
||||||
|
|
||||||
libpng_la_SOURCES = $(libpng12_la_SOURCES)
|
libpng_la_SOURCES = $(libpng12_la_SOURCES)
|
||||||
@ -322,7 +320,7 @@ EXTRA_DIST = \
|
|||||||
${srcdir}/contrib/pngsuite/* \
|
${srcdir}/contrib/pngsuite/* \
|
||||||
${srcdir}/contrib/visupng/* \
|
${srcdir}/contrib/visupng/* \
|
||||||
$(TESTS) \
|
$(TESTS) \
|
||||||
example.c libpng.txt pngvcrd.c
|
example.c libpng.txt
|
||||||
|
|
||||||
CLEANFILES = pngout.png libpng12.pc libpng12-config libpng.vers \
|
CLEANFILES = pngout.png libpng12.pc libpng12-config libpng.vers \
|
||||||
libpng.sym
|
libpng.sym
|
||||||
@ -455,7 +453,6 @@ distclean-compile:
|
|||||||
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-png.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-png.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngerror.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngerror.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pnggccrd.Plo@am__quote@
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngget.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngget.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngmem.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngmem.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngpread.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngpread.Plo@am__quote@
|
||||||
@ -471,7 +468,6 @@ distclean-compile:
|
|||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngwutil.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng12_la-pngwutil.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-png.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-png.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngerror.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngerror.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pnggccrd.Plo@am__quote@
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngget.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngget.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngmem.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngmem.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngpread.Plo@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpng_la-pngpread.Plo@am__quote@
|
||||||
@ -613,13 +609,6 @@ libpng_la-pngpread.lo: pngpread.c
|
|||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng_la-pngpread.lo `test -f 'pngpread.c' || echo '$(srcdir)/'`pngpread.c
|
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng_la-pngpread.lo `test -f 'pngpread.c' || echo '$(srcdir)/'`pngpread.c
|
||||||
|
|
||||||
libpng_la-pnggccrd.lo: pnggccrd.c
|
|
||||||
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libpng_la-pnggccrd.lo -MD -MP -MF "$(DEPDIR)/libpng_la-pnggccrd.Tpo" -c -o libpng_la-pnggccrd.lo `test -f 'pnggccrd.c' || echo '$(srcdir)/'`pnggccrd.c; \
|
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libpng_la-pnggccrd.Tpo" "$(DEPDIR)/libpng_la-pnggccrd.Plo"; else rm -f "$(DEPDIR)/libpng_la-pnggccrd.Tpo"; exit 1; fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pnggccrd.c' object='libpng_la-pnggccrd.lo' libtool=yes @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng_la-pnggccrd.lo `test -f 'pnggccrd.c' || echo '$(srcdir)/'`pnggccrd.c
|
|
||||||
|
|
||||||
libpng12_la-png.lo: png.c
|
libpng12_la-png.lo: png.c
|
||||||
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libpng12_la-png.lo -MD -MP -MF "$(DEPDIR)/libpng12_la-png.Tpo" -c -o libpng12_la-png.lo `test -f 'png.c' || echo '$(srcdir)/'`png.c; \
|
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libpng12_la-png.lo -MD -MP -MF "$(DEPDIR)/libpng12_la-png.Tpo" -c -o libpng12_la-png.lo `test -f 'png.c' || echo '$(srcdir)/'`png.c; \
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libpng12_la-png.Tpo" "$(DEPDIR)/libpng12_la-png.Plo"; else rm -f "$(DEPDIR)/libpng12_la-png.Tpo"; exit 1; fi
|
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libpng12_la-png.Tpo" "$(DEPDIR)/libpng12_la-png.Plo"; else rm -f "$(DEPDIR)/libpng12_la-png.Tpo"; exit 1; fi
|
||||||
@ -725,13 +714,6 @@ libpng12_la-pngpread.lo: pngpread.c
|
|||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng12_la-pngpread.lo `test -f 'pngpread.c' || echo '$(srcdir)/'`pngpread.c
|
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng12_la-pngpread.lo `test -f 'pngpread.c' || echo '$(srcdir)/'`pngpread.c
|
||||||
|
|
||||||
libpng12_la-pnggccrd.lo: pnggccrd.c
|
|
||||||
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libpng12_la-pnggccrd.lo -MD -MP -MF "$(DEPDIR)/libpng12_la-pnggccrd.Tpo" -c -o libpng12_la-pnggccrd.lo `test -f 'pnggccrd.c' || echo '$(srcdir)/'`pnggccrd.c; \
|
|
||||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libpng12_la-pnggccrd.Tpo" "$(DEPDIR)/libpng12_la-pnggccrd.Plo"; else rm -f "$(DEPDIR)/libpng12_la-pnggccrd.Tpo"; exit 1; fi
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pnggccrd.c' object='libpng12_la-pnggccrd.lo' libtool=yes @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpng12_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libpng12_la-pnggccrd.lo `test -f 'pnggccrd.c' || echo '$(srcdir)/'`pnggccrd.c
|
|
||||||
|
|
||||||
mostlyclean-libtool:
|
mostlyclean-libtool:
|
||||||
-rm -f *.lo
|
-rm -f *.lo
|
||||||
|
|
||||||
|
14
README
14
README
@ -1,4 +1,4 @@
|
|||||||
README for libpng version 1.2.20rc3 - August 30, 2007 (shared library 12.0)
|
README for libpng version 1.2.20rc4 - September 1, 2007 (shared library 12.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.
|
||||||
@ -190,11 +190,11 @@ Files in this distribution:
|
|||||||
descrip.mms => VMS makefile for MMS or MMK
|
descrip.mms => VMS makefile for MMS or MMK
|
||||||
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
||||||
makefile.elf => Linux/ELF makefile symbol versioning,
|
makefile.elf => Linux/ELF makefile symbol versioning,
|
||||||
gcc, creates libpng12.so.0.1.2.20rc3)
|
gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3)
|
(gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.gcmmx => Linux/ELF makefile
|
makefile.gcmmx => Linux/ELF makefile
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3,
|
(gcc, creates libpng12.so.0.1.2.20rc4,
|
||||||
uses assembler code tuned for Intel MMX platform)
|
uses assembler code tuned for Intel MMX platform)
|
||||||
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
||||||
makefile.knr => Archaic UNIX Makefile that converts files with
|
makefile.knr => Archaic UNIX Makefile that converts files with
|
||||||
@ -216,12 +216,12 @@ Files in this distribution:
|
|||||||
makefile.openbsd => OpenBSD makefile
|
makefile.openbsd => OpenBSD makefile
|
||||||
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
||||||
makefile.sggcc => Silicon Graphics
|
makefile.sggcc => Silicon Graphics
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3)
|
(gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile
|
makefile.solaris => Solaris 2.X makefile
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3)
|
(gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.so9 => Solaris 9 makefile
|
makefile.so9 => Solaris 9 makefile
|
||||||
(gcc, creates libpng12.so.0.1.2.20rc3)
|
(gcc, creates libpng12.so.0.1.2.20rc4)
|
||||||
makefile.32sunu => Sun Ultra 32-bit makefile
|
makefile.32sunu => Sun Ultra 32-bit makefile
|
||||||
makefile.64sunu => Sun Ultra 64-bit makefile
|
makefile.64sunu => Sun Ultra 64-bit makefile
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
|
4
Y2KINFO
4
Y2KINFO
@ -1,13 +1,13 @@
|
|||||||
Y2K compliance in libpng:
|
Y2K compliance in libpng:
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
August 30, 2007
|
September 1, 2007
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.20rc3 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.20rc4 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer
|
Libpng only has three year fields. One is a 2-byte unsigned integer
|
||||||
|
121
configure
vendored
121
configure
vendored
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for libpng 1.2.20rc3.
|
# Generated by GNU Autoconf 2.61 for libpng 1.2.20rc4.
|
||||||
#
|
#
|
||||||
# Report bugs to <png-mng-implement@lists.sourceforge.net>.
|
# Report bugs to <png-mng-implement@lists.sourceforge.net>.
|
||||||
#
|
#
|
||||||
@ -728,8 +728,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='libpng'
|
PACKAGE_NAME='libpng'
|
||||||
PACKAGE_TARNAME='libpng'
|
PACKAGE_TARNAME='libpng'
|
||||||
PACKAGE_VERSION='1.2.20rc3'
|
PACKAGE_VERSION='1.2.20rc4'
|
||||||
PACKAGE_STRING='libpng 1.2.20rc3'
|
PACKAGE_STRING='libpng 1.2.20rc4'
|
||||||
PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
|
PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
|
||||||
|
|
||||||
ac_unique_file="pngget.c"
|
ac_unique_file="pngget.c"
|
||||||
@ -876,7 +876,6 @@ LIBTOOL
|
|||||||
POW_LIB
|
POW_LIB
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
LIBPNG_DEFINES
|
LIBPNG_DEFINES
|
||||||
LIBPNG_NO_MMX
|
|
||||||
HAVE_LD_VERSION_SCRIPT_TRUE
|
HAVE_LD_VERSION_SCRIPT_TRUE
|
||||||
HAVE_LD_VERSION_SCRIPT_FALSE
|
HAVE_LD_VERSION_SCRIPT_FALSE
|
||||||
PNGLIB_VERSION
|
PNGLIB_VERSION
|
||||||
@ -1405,7 +1404,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures libpng 1.2.20rc3 to adapt to many kinds of systems.
|
\`configure' configures libpng 1.2.20rc4 to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@ -1475,7 +1474,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of libpng 1.2.20rc3:";;
|
short | recursive ) echo "Configuration of libpng 1.2.20rc4:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@ -1585,7 +1584,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit $ac_status
|
test -n "$ac_init_help" && exit $ac_status
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
libpng configure 1.2.20rc3
|
libpng configure 1.2.20rc4
|
||||||
generated by GNU Autoconf 2.61
|
generated by GNU Autoconf 2.61
|
||||||
|
|
||||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
||||||
@ -1599,7 +1598,7 @@ cat >config.log <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by libpng $as_me 1.2.20rc3, which was
|
It was created by libpng $as_me 1.2.20rc4, which was
|
||||||
generated by GNU Autoconf 2.61. Invocation command line was
|
generated by GNU Autoconf 2.61. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@ -2269,7 +2268,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE='libpng'
|
PACKAGE='libpng'
|
||||||
VERSION='1.2.20rc3'
|
VERSION='1.2.20rc4'
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
@ -2440,7 +2439,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
PNGLIB_VERSION=1.2.20rc3
|
PNGLIB_VERSION=1.2.20rc4
|
||||||
PNGLIB_MAJOR=1
|
PNGLIB_MAJOR=1
|
||||||
PNGLIB_MINOR=2
|
PNGLIB_MINOR=2
|
||||||
PNGLIB_RELEASE=20
|
PNGLIB_RELEASE=20
|
||||||
@ -4788,7 +4787,7 @@ ia64-*-hpux*)
|
|||||||
;;
|
;;
|
||||||
*-*-irix6*)
|
*-*-irix6*)
|
||||||
# Find out which ABI we are using.
|
# Find out which ABI we are using.
|
||||||
echo '#line 4791 "configure"' > conftest.$ac_ext
|
echo '#line 4790 "configure"' > conftest.$ac_ext
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
(eval $ac_compile) 2>&5
|
(eval $ac_compile) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
@ -7301,11 +7300,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:7304: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7303: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:7308: \$? = $ac_status" >&5
|
echo "$as_me:7307: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -7591,11 +7590,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:7594: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:7598: \$? = $ac_status" >&5
|
echo "$as_me:7597: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -7695,11 +7694,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:7698: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:7702: \$? = $ac_status" >&5
|
echo "$as_me:7701: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -10044,7 +10043,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 10047 "configure"
|
#line 10046 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -10144,7 +10143,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 10147 "configure"
|
#line 10146 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -12564,11 +12563,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:12567: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:12566: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:12571: \$? = $ac_status" >&5
|
echo "$as_me:12570: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -12668,11 +12667,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:12671: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:12670: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:12675: \$? = $ac_status" >&5
|
echo "$as_me:12674: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -14230,11 +14229,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:14233: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:14232: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:14237: \$? = $ac_status" >&5
|
echo "$as_me:14236: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -14334,11 +14333,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:14337: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:14336: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:14341: \$? = $ac_status" >&5
|
echo "$as_me:14340: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -16521,11 +16520,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:16524: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:16523: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:16528: \$? = $ac_status" >&5
|
echo "$as_me:16527: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -16811,11 +16810,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:16814: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:16813: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:16818: \$? = $ac_status" >&5
|
echo "$as_me:16817: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings other than the usual output.
|
# So say no if there are warnings other than the usual output.
|
||||||
@ -16915,11 +16914,11 @@ else
|
|||||||
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:16918: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:16917: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:16922: \$? = $ac_status" >&5
|
echo "$as_me:16921: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -20713,55 +20712,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
|
LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
|
||||||
{ echo "$as_me:$LINENO: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
|
|
||||||
echo $ECHO_N "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... $ECHO_C" >&6; }
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include "$srcdir/pnggccrd.c"
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext
|
|
||||||
if { (ac_try="$ac_compile"
|
|
||||||
case "(($ac_try" in
|
|
||||||
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
||||||
*) ac_try_echo=$ac_try;;
|
|
||||||
esac
|
|
||||||
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
||||||
(eval "$ac_compile") 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } && {
|
|
||||||
test -z "$ac_c_werror_flag" ||
|
|
||||||
test ! -s conftest.err
|
|
||||||
} && test -s conftest.$ac_objext; then
|
|
||||||
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
||||||
echo "${ECHO_T}yes" >&6; }
|
|
||||||
LIBPNG_NO_MMX=""
|
|
||||||
else
|
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: no" >&5
|
|
||||||
echo "${ECHO_T}no" >&6; }
|
|
||||||
LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
|
{ echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
|
||||||
@ -21282,7 +21232,7 @@ exec 6>&1
|
|||||||
# report actual input values of CONFIG_FILES etc. instead of their
|
# report actual input values of CONFIG_FILES etc. instead of their
|
||||||
# values after options handling.
|
# values after options handling.
|
||||||
ac_log="
|
ac_log="
|
||||||
This file was extended by libpng $as_me 1.2.20rc3, which was
|
This file was extended by libpng $as_me 1.2.20rc4, which was
|
||||||
generated by GNU Autoconf 2.61. Invocation command line was
|
generated by GNU Autoconf 2.61. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@ -21335,7 +21285,7 @@ Report bugs to <bug-autoconf@gnu.org>."
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
cat >>$CONFIG_STATUS <<_ACEOF
|
cat >>$CONFIG_STATUS <<_ACEOF
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
libpng config.status 1.2.20rc3
|
libpng config.status 1.2.20rc4
|
||||||
configured by $0, generated by GNU Autoconf 2.61,
|
configured by $0, generated by GNU Autoconf 2.61,
|
||||||
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
||||||
|
|
||||||
@ -21663,7 +21613,6 @@ LIBTOOL!$LIBTOOL$ac_delim
|
|||||||
POW_LIB!$POW_LIB$ac_delim
|
POW_LIB!$POW_LIB$ac_delim
|
||||||
LIBOBJS!$LIBOBJS$ac_delim
|
LIBOBJS!$LIBOBJS$ac_delim
|
||||||
LIBPNG_DEFINES!$LIBPNG_DEFINES$ac_delim
|
LIBPNG_DEFINES!$LIBPNG_DEFINES$ac_delim
|
||||||
LIBPNG_NO_MMX!$LIBPNG_NO_MMX$ac_delim
|
|
||||||
HAVE_LD_VERSION_SCRIPT_TRUE!$HAVE_LD_VERSION_SCRIPT_TRUE$ac_delim
|
HAVE_LD_VERSION_SCRIPT_TRUE!$HAVE_LD_VERSION_SCRIPT_TRUE$ac_delim
|
||||||
HAVE_LD_VERSION_SCRIPT_FALSE!$HAVE_LD_VERSION_SCRIPT_FALSE$ac_delim
|
HAVE_LD_VERSION_SCRIPT_FALSE!$HAVE_LD_VERSION_SCRIPT_FALSE$ac_delim
|
||||||
PNGLIB_VERSION!$PNGLIB_VERSION$ac_delim
|
PNGLIB_VERSION!$PNGLIB_VERSION$ac_delim
|
||||||
@ -21676,7 +21625,7 @@ compatlib!$compatlib$ac_delim
|
|||||||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
|
||||||
break
|
break
|
||||||
elif $ac_last_try; then
|
elif $ac_last_try; then
|
||||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||||
|
15
configure.ac
15
configure.ac
@ -18,12 +18,12 @@ AC_PREREQ(2.59)
|
|||||||
|
|
||||||
dnl Version number stuff here:
|
dnl Version number stuff here:
|
||||||
|
|
||||||
AC_INIT([libpng], [1.2.20rc3], [png-mng-implement@lists.sourceforge.net])
|
AC_INIT([libpng], [1.2.20rc4], [png-mng-implement@lists.sourceforge.net])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
dnl stop configure from automagically running automake
|
dnl stop configure from automagically running automake
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
PNGLIB_VERSION=1.2.20rc3
|
PNGLIB_VERSION=1.2.20rc4
|
||||||
PNGLIB_MAJOR=1
|
PNGLIB_MAJOR=1
|
||||||
PNGLIB_MINOR=2
|
PNGLIB_MINOR=2
|
||||||
PNGLIB_RELEASE=20
|
PNGLIB_RELEASE=20
|
||||||
@ -59,18 +59,7 @@ AC_CHECK_FUNCS([pow], , AC_CHECK_LIB(m, pow, , AC_ERROR([cannot find pow])) )
|
|||||||
AC_CHECK_LIB(z, zlibVersion, , AC_ERROR([zlib not installed]))
|
AC_CHECK_LIB(z, zlibVersion, , AC_ERROR([zlib not installed]))
|
||||||
|
|
||||||
LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
|
LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
|
||||||
AC_MSG_CHECKING(
|
|
||||||
[if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE])
|
|
||||||
AC_TRY_COMPILE(
|
|
||||||
[#include "$srcdir/pnggccrd.c"],
|
|
||||||
[return 0;],
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
LIBPNG_NO_MMX="",
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE)
|
|
||||||
LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
|
|
||||||
AC_SUBST(LIBPNG_DEFINES)
|
AC_SUBST(LIBPNG_DEFINES)
|
||||||
AC_SUBST(LIBPNG_NO_MMX)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if libraries can be versioned])
|
AC_MSG_CHECKING([if libraries can be versioned])
|
||||||
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
libpng.txt - A description on how to use and modify libpng
|
libpng.txt - A description on how to use and modify libpng
|
||||||
|
|
||||||
libpng version 1.2.20rc3 - August 30, 2007
|
libpng version 1.2.20rc4 - September 1, 2007
|
||||||
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-2007 Glenn Randers-Pehrson
|
Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
||||||
@ -86,9 +86,7 @@ Libpng is thread safe, provided the threads are using different
|
|||||||
instances of the structures. Each thread should have its own
|
instances of the structures. Each thread should have its own
|
||||||
png_struct and png_info instances, and thus its own image.
|
png_struct and png_info instances, and thus its own image.
|
||||||
Libpng does not protect itself against two threads using the
|
Libpng does not protect itself against two threads using the
|
||||||
same instance of a structure. Note: thread safety may be defeated
|
same instance of a structure.
|
||||||
by use of some of the MMX assembler code in pnggccrd.c, which is only
|
|
||||||
compiled when the user defines PNG_THREAD_UNSAFE_OK.
|
|
||||||
|
|
||||||
II. Structures
|
II. Structures
|
||||||
|
|
||||||
@ -2355,17 +2353,13 @@ For a more compact example of writing a PNG image, see the file example.c.
|
|||||||
|
|
||||||
V. Modifying/Customizing libpng:
|
V. Modifying/Customizing libpng:
|
||||||
|
|
||||||
There are three issues here. The first is changing how libpng does
|
There are two issues here. The first is changing how libpng does
|
||||||
standard things like memory allocation, input/output, and error handling.
|
standard things like memory allocation, input/output, and error handling.
|
||||||
The second deals with more complicated things like adding new chunks,
|
The second deals with more complicated things like adding new chunks,
|
||||||
adding new transformations, and generally changing how libpng works.
|
adding new transformations, and generally changing how libpng works.
|
||||||
Both of those are compile-time issues; that is, they are generally
|
Both of those are compile-time issues; that is, they are generally
|
||||||
determined at the time the code is written, and there is rarely a need
|
determined at the time the code is written, and there is rarely a need
|
||||||
to provide the user with a means of changing them. The third is a
|
to provide the user with a means of changing them.
|
||||||
run-time issue: choosing between and/or tuning one or more alternate
|
|
||||||
versions of computationally intensive routines; specifically, optimized
|
|
||||||
assembly-language (and therefore compiler- and platform-dependent)
|
|
||||||
versions.
|
|
||||||
|
|
||||||
Memory allocation, input/output, and error handling
|
Memory allocation, input/output, and error handling
|
||||||
|
|
||||||
@ -2726,172 +2720,6 @@ When PNG_DEBUG = 1, the macros are defined, but only png_debug statements
|
|||||||
having level = 0 will be printed. There aren't any such statements in
|
having level = 0 will be printed. There aren't any such statements in
|
||||||
this version of libpng, but if you insert some they will be printed.
|
this version of libpng, but if you insert some they will be printed.
|
||||||
|
|
||||||
VI. Runtime optimization
|
|
||||||
|
|
||||||
A new feature in libpng 1.2.0 is the ability to dynamically switch between
|
|
||||||
standard and optimized versions of some routines. Currently these are
|
|
||||||
limited to three computationally intensive tasks when reading PNG files:
|
|
||||||
decoding row filters, expanding interlacing, and combining interlaced or
|
|
||||||
transparent row data with previous row data. Currently the optimized
|
|
||||||
versions are available only for x86 (Intel, AMD, etc.) platforms with
|
|
||||||
MMX support, though this may change in future versions. (For example,
|
|
||||||
the non-MMX assembler optimizations for zlib might become similarly
|
|
||||||
runtime-selectable in future releases, in which case libpng could be
|
|
||||||
extended to support them. Alternatively, the compile-time choice of
|
|
||||||
floating-point versus integer routines for gamma correction might become
|
|
||||||
runtime-selectable.)
|
|
||||||
|
|
||||||
Because such optimizations tend to be very platform- and compiler-dependent,
|
|
||||||
both in how they are written and in how they perform, the new runtime code
|
|
||||||
in libpng has been written to allow programs to query, enable, and disable
|
|
||||||
either specific optimizations or all such optimizations. For example, to
|
|
||||||
enable all possible optimizations (bearing in mind that some "optimizations"
|
|
||||||
may actually run more slowly in rare cases):
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
png_uint_32 mask, flags;
|
|
||||||
|
|
||||||
flags = png_get_asm_flags(png_ptr);
|
|
||||||
mask = png_get_asm_flagmask(PNG_SELECT_READ | PNG_SELECT_WRITE);
|
|
||||||
png_set_asm_flags(png_ptr, flags | mask);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
To enable only optimizations relevant to reading PNGs, use PNG_SELECT_READ
|
|
||||||
by itself when calling png_get_asm_flagmask(); similarly for optimizing
|
|
||||||
only writing. To disable all optimizations:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
flags = png_get_asm_flags(png_ptr);
|
|
||||||
mask = png_get_asm_flagmask(PNG_SELECT_READ | PNG_SELECT_WRITE);
|
|
||||||
png_set_asm_flags(png_ptr, flags & ~mask);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
To enable or disable only MMX-related features, use png_get_mmx_flagmask()
|
|
||||||
in place of png_get_asm_flagmask(). The mmx version takes one additional
|
|
||||||
parameter:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
int selection = PNG_SELECT_READ | PNG_SELECT_WRITE;
|
|
||||||
int compilerID;
|
|
||||||
|
|
||||||
mask = png_get_mmx_flagmask(selection, &compilerID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
On return, compilerID will indicate which version of the MMX assembler
|
|
||||||
optimizations was compiled. Currently two flavors exist: Microsoft
|
|
||||||
Visual C++ (compilerID == 1) and GNU C (a.k.a. gcc/gas, compilerID == 2).
|
|
||||||
On non-x86 platforms or on systems compiled without MMX optimizations, a
|
|
||||||
value of -1 is used.
|
|
||||||
|
|
||||||
Note that both png_get_asm_flagmask() and png_get_mmx_flagmask() return
|
|
||||||
all valid, settable optimization bits for the version of the library that's
|
|
||||||
currently in use. In the case of shared (dynamically linked) libraries,
|
|
||||||
this may include optimizations that did not exist at the time the code was
|
|
||||||
written and compiled. It is also possible, of course, to enable only known,
|
|
||||||
specific optimizations; for example:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200) && \
|
|
||||||
defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED)
|
|
||||||
flags = PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_INTERLACE \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_UP \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ;
|
|
||||||
png_set_asm_flags(png_ptr, flags);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
This method would enable only the MMX read-optimizations available at the
|
|
||||||
time of libpng 1.2.0's release, regardless of whether a later version of
|
|
||||||
the DLL were actually being used. (Also note that these functions did not
|
|
||||||
exist in versions older than 1.2.0, so any attempt to run a dynamically
|
|
||||||
linked app on such an older version would fail.)
|
|
||||||
|
|
||||||
To determine whether the processor supports MMX instructions at all, use
|
|
||||||
the png_mmx_support() function:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
mmxsupport = png_mmx_support();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
It returns -1 if MMX support is not compiled into libpng, 0 if MMX code
|
|
||||||
is compiled but MMX is not supported by the processor, or 1 if MMX support
|
|
||||||
is fully available. Note that png_mmx_support(), png_get_mmx_flagmask(),
|
|
||||||
and png_get_asm_flagmask() all may be called without allocating and ini-
|
|
||||||
tializing any PNG structures (for example, as part of a usage screen or
|
|
||||||
"about" box).
|
|
||||||
|
|
||||||
The following code can be used to prevent an application from using the
|
|
||||||
thread_unsafe features, even if libpng was built with PNG_THREAD_UNSAFE_OK
|
|
||||||
defined:
|
|
||||||
|
|
||||||
#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
|
|
||||||
&& defined(PNG_THREAD_UNSAFE_OK)
|
|
||||||
/* Disable thread-unsafe features of pnggccrd */
|
|
||||||
if (png_access_version_number() >= 10200)
|
|
||||||
{
|
|
||||||
png_uint_32 mmx_disable_mask = 0;
|
|
||||||
png_uint_32 asm_flags;
|
|
||||||
|
|
||||||
mmx_disable_mask |= ( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
|
|
||||||
asm_flags = png_get_asm_flags(png_ptr);
|
|
||||||
png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
For more extensive examples of runtime querying, enabling and disabling
|
|
||||||
of optimized features, see contrib/gregbook/readpng2.c in the libpng
|
|
||||||
source-code distribution.
|
|
||||||
|
|
||||||
It is also possible to disable or enable specific optimization features
|
|
||||||
at compile time. To disable them entirely, which may result in slower
|
|
||||||
but smaller and less complex and troublesome code, define
|
|
||||||
|
|
||||||
PNG_NO_ASSEMBLER_CODE
|
|
||||||
|
|
||||||
If you do this, then the run-time code for setting and querying flags
|
|
||||||
described above, and the assembler code in pnggccrd.c or pngvcrd.c will
|
|
||||||
not be built.
|
|
||||||
|
|
||||||
If you have disabled the assembler code, you can also disable the
|
|
||||||
optimized C code, to obtain even slower but smaller code, by defining
|
|
||||||
|
|
||||||
PNG_NO_OPTIMZED_CODE
|
|
||||||
|
|
||||||
To disable only the MMX assembler code, define
|
|
||||||
|
|
||||||
PNG_NO_MMX_CODE
|
|
||||||
|
|
||||||
There are two versions of the MMX code: one for gcc compilers and one for
|
|
||||||
MSVC compilers. Pngconf.h should automatically detect which you are
|
|
||||||
using, and it will set either PNG_USE_PNGGCCRD or PNG_USE_PNGVCRD for you.
|
|
||||||
|
|
||||||
Define one or more of the following to disable specific parts of the
|
|
||||||
assembler code:
|
|
||||||
|
|
||||||
PNG_NO_MMX_COMBINE_ROW
|
|
||||||
PNG_NO_MMX_READ_INTERLACE
|
|
||||||
PNG_NO_MMX_READ_FILTER_ROW
|
|
||||||
|
|
||||||
If the latter is not disabled, you can disable one or more of the
|
|
||||||
individual filter types by defining
|
|
||||||
|
|
||||||
PNG_NO_MMX_FILTER_SUB
|
|
||||||
PNG_NO_MMX_FILTER_UP
|
|
||||||
PNG_NO_MMX_FILTER_AVG
|
|
||||||
PNG_NO_MMX_FILTER_PAETH
|
|
||||||
|
|
||||||
By default, libpng only enables the "sub" filter when gcc-3.x is used
|
|
||||||
because experiments show that gcc-3.x produces bad code for the others.
|
|
||||||
|
|
||||||
When you disable various MMX features, libpng will still be able to decode
|
|
||||||
files with those features. It will fall back upon the optimized C code
|
|
||||||
or the unoptimized C code to decode them.
|
|
||||||
|
|
||||||
|
|
||||||
VII. MNG support
|
VII. MNG support
|
||||||
|
|
||||||
The MNG specification (available at http://www.libpng.org/pub/mng) allows
|
The MNG specification (available at http://www.libpng.org/pub/mng) allows
|
||||||
@ -2968,13 +2796,13 @@ application:
|
|||||||
|
|
||||||
IX. Y2K Compliance in libpng
|
IX. Y2K Compliance in libpng
|
||||||
|
|
||||||
August 30, 2007
|
September 1, 2007
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.20rc3 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.20rc4 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
198
libpng.3
198
libpng.3
@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNG 3 "August 30, 2007"
|
.TH LIBPNG 3 "September 1, 2007"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.20rc3
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.20rc4
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fB
|
\fB
|
||||||
#include <png.h>\fP
|
#include <png.h>\fP
|
||||||
@ -410,7 +410,7 @@ Following is a copy of the libpng.txt file that accompanies libpng.
|
|||||||
.SH LIBPNG.TXT
|
.SH LIBPNG.TXT
|
||||||
libpng.txt - A description on how to use and modify libpng
|
libpng.txt - A description on how to use and modify libpng
|
||||||
|
|
||||||
libpng version 1.2.20rc3 - August 30, 2007
|
libpng version 1.2.20rc4 - September 1, 2007
|
||||||
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-2007 Glenn Randers-Pehrson
|
Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
||||||
@ -496,9 +496,7 @@ Libpng is thread safe, provided the threads are using different
|
|||||||
instances of the structures. Each thread should have its own
|
instances of the structures. Each thread should have its own
|
||||||
png_struct and png_info instances, and thus its own image.
|
png_struct and png_info instances, and thus its own image.
|
||||||
Libpng does not protect itself against two threads using the
|
Libpng does not protect itself against two threads using the
|
||||||
same instance of a structure. Note: thread safety may be defeated
|
same instance of a structure.
|
||||||
by use of some of the MMX assembler code in pnggccrd.c, which is only
|
|
||||||
compiled when the user defines PNG_THREAD_UNSAFE_OK.
|
|
||||||
|
|
||||||
.SH II. Structures
|
.SH II. Structures
|
||||||
|
|
||||||
@ -2765,17 +2763,13 @@ For a more compact example of writing a PNG image, see the file example.c.
|
|||||||
|
|
||||||
.SH V. Modifying/Customizing libpng:
|
.SH V. Modifying/Customizing libpng:
|
||||||
|
|
||||||
There are three issues here. The first is changing how libpng does
|
There are two issues here. The first is changing how libpng does
|
||||||
standard things like memory allocation, input/output, and error handling.
|
standard things like memory allocation, input/output, and error handling.
|
||||||
The second deals with more complicated things like adding new chunks,
|
The second deals with more complicated things like adding new chunks,
|
||||||
adding new transformations, and generally changing how libpng works.
|
adding new transformations, and generally changing how libpng works.
|
||||||
Both of those are compile-time issues; that is, they are generally
|
Both of those are compile-time issues; that is, they are generally
|
||||||
determined at the time the code is written, and there is rarely a need
|
determined at the time the code is written, and there is rarely a need
|
||||||
to provide the user with a means of changing them. The third is a
|
to provide the user with a means of changing them.
|
||||||
run-time issue: choosing between and/or tuning one or more alternate
|
|
||||||
versions of computationally intensive routines; specifically, optimized
|
|
||||||
assembly-language (and therefore compiler- and platform-dependent)
|
|
||||||
versions.
|
|
||||||
|
|
||||||
Memory allocation, input/output, and error handling
|
Memory allocation, input/output, and error handling
|
||||||
|
|
||||||
@ -3136,172 +3130,6 @@ When PNG_DEBUG = 1, the macros are defined, but only png_debug statements
|
|||||||
having level = 0 will be printed. There aren't any such statements in
|
having level = 0 will be printed. There aren't any such statements in
|
||||||
this version of libpng, but if you insert some they will be printed.
|
this version of libpng, but if you insert some they will be printed.
|
||||||
|
|
||||||
.SH VI. Runtime optimization
|
|
||||||
|
|
||||||
A new feature in libpng 1.2.0 is the ability to dynamically switch between
|
|
||||||
standard and optimized versions of some routines. Currently these are
|
|
||||||
limited to three computationally intensive tasks when reading PNG files:
|
|
||||||
decoding row filters, expanding interlacing, and combining interlaced or
|
|
||||||
transparent row data with previous row data. Currently the optimized
|
|
||||||
versions are available only for x86 (Intel, AMD, etc.) platforms with
|
|
||||||
MMX support, though this may change in future versions. (For example,
|
|
||||||
the non-MMX assembler optimizations for zlib might become similarly
|
|
||||||
runtime-selectable in future releases, in which case libpng could be
|
|
||||||
extended to support them. Alternatively, the compile-time choice of
|
|
||||||
floating-point versus integer routines for gamma correction might become
|
|
||||||
runtime-selectable.)
|
|
||||||
|
|
||||||
Because such optimizations tend to be very platform- and compiler-dependent,
|
|
||||||
both in how they are written and in how they perform, the new runtime code
|
|
||||||
in libpng has been written to allow programs to query, enable, and disable
|
|
||||||
either specific optimizations or all such optimizations. For example, to
|
|
||||||
enable all possible optimizations (bearing in mind that some "optimizations"
|
|
||||||
may actually run more slowly in rare cases):
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
png_uint_32 mask, flags;
|
|
||||||
|
|
||||||
flags = png_get_asm_flags(png_ptr);
|
|
||||||
mask = png_get_asm_flagmask(PNG_SELECT_READ | PNG_SELECT_WRITE);
|
|
||||||
png_set_asm_flags(png_ptr, flags | mask);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
To enable only optimizations relevant to reading PNGs, use PNG_SELECT_READ
|
|
||||||
by itself when calling png_get_asm_flagmask(); similarly for optimizing
|
|
||||||
only writing. To disable all optimizations:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
flags = png_get_asm_flags(png_ptr);
|
|
||||||
mask = png_get_asm_flagmask(PNG_SELECT_READ | PNG_SELECT_WRITE);
|
|
||||||
png_set_asm_flags(png_ptr, flags & ~mask);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
To enable or disable only MMX-related features, use png_get_mmx_flagmask()
|
|
||||||
in place of png_get_asm_flagmask(). The mmx version takes one additional
|
|
||||||
parameter:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
int selection = PNG_SELECT_READ | PNG_SELECT_WRITE;
|
|
||||||
int compilerID;
|
|
||||||
|
|
||||||
mask = png_get_mmx_flagmask(selection, &compilerID);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
On return, compilerID will indicate which version of the MMX assembler
|
|
||||||
optimizations was compiled. Currently two flavors exist: Microsoft
|
|
||||||
Visual C++ (compilerID == 1) and GNU C (a.k.a. gcc/gas, compilerID == 2).
|
|
||||||
On non-x86 platforms or on systems compiled without MMX optimizations, a
|
|
||||||
value of -1 is used.
|
|
||||||
|
|
||||||
Note that both png_get_asm_flagmask() and png_get_mmx_flagmask() return
|
|
||||||
all valid, settable optimization bits for the version of the library that's
|
|
||||||
currently in use. In the case of shared (dynamically linked) libraries,
|
|
||||||
this may include optimizations that did not exist at the time the code was
|
|
||||||
written and compiled. It is also possible, of course, to enable only known,
|
|
||||||
specific optimizations; for example:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200) && \
|
|
||||||
defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED)
|
|
||||||
flags = PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_INTERLACE \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_UP \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ;
|
|
||||||
png_set_asm_flags(png_ptr, flags);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
This method would enable only the MMX read-optimizations available at the
|
|
||||||
time of libpng 1.2.0's release, regardless of whether a later version of
|
|
||||||
the DLL were actually being used. (Also note that these functions did not
|
|
||||||
exist in versions older than 1.2.0, so any attempt to run a dynamically
|
|
||||||
linked app on such an older version would fail.)
|
|
||||||
|
|
||||||
To determine whether the processor supports MMX instructions at all, use
|
|
||||||
the png_mmx_support() function:
|
|
||||||
|
|
||||||
#if defined(PNG_LIBPNG_VER) && (PNG_LIBPNG_VER >= 10200)
|
|
||||||
mmxsupport = png_mmx_support();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
It returns -1 if MMX support is not compiled into libpng, 0 if MMX code
|
|
||||||
is compiled but MMX is not supported by the processor, or 1 if MMX support
|
|
||||||
is fully available. Note that png_mmx_support(), png_get_mmx_flagmask(),
|
|
||||||
and png_get_asm_flagmask() all may be called without allocating and ini-
|
|
||||||
tializing any PNG structures (for example, as part of a usage screen or
|
|
||||||
"about" box).
|
|
||||||
|
|
||||||
The following code can be used to prevent an application from using the
|
|
||||||
thread_unsafe features, even if libpng was built with PNG_THREAD_UNSAFE_OK
|
|
||||||
defined:
|
|
||||||
|
|
||||||
#if defined(PNG_USE_PNGGCCRD) && defined(PNG_ASSEMBLER_CODE_SUPPORTED) \
|
|
||||||
&& defined(PNG_THREAD_UNSAFE_OK)
|
|
||||||
/* Disable thread-unsafe features of pnggccrd */
|
|
||||||
if (png_access_version_number() >= 10200)
|
|
||||||
{
|
|
||||||
png_uint_32 mmx_disable_mask = 0;
|
|
||||||
png_uint_32 asm_flags;
|
|
||||||
|
|
||||||
mmx_disable_mask |= ( PNG_ASM_FLAG_MMX_READ_COMBINE_ROW \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG \
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH );
|
|
||||||
asm_flags = png_get_asm_flags(png_ptr);
|
|
||||||
png_set_asm_flags(png_ptr, asm_flags & ~mmx_disable_mask);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
For more extensive examples of runtime querying, enabling and disabling
|
|
||||||
of optimized features, see contrib/gregbook/readpng2.c in the libpng
|
|
||||||
source-code distribution.
|
|
||||||
|
|
||||||
It is also possible to disable or enable specific optimization features
|
|
||||||
at compile time. To disable them entirely, which may result in slower
|
|
||||||
but smaller and less complex and troublesome code, define
|
|
||||||
|
|
||||||
PNG_NO_ASSEMBLER_CODE
|
|
||||||
|
|
||||||
If you do this, then the run-time code for setting and querying flags
|
|
||||||
described above, and the assembler code in pnggccrd.c or pngvcrd.c will
|
|
||||||
not be built.
|
|
||||||
|
|
||||||
If you have disabled the assembler code, you can also disable the
|
|
||||||
optimized C code, to obtain even slower but smaller code, by defining
|
|
||||||
|
|
||||||
PNG_NO_OPTIMZED_CODE
|
|
||||||
|
|
||||||
To disable only the MMX assembler code, define
|
|
||||||
|
|
||||||
PNG_NO_MMX_CODE
|
|
||||||
|
|
||||||
There are two versions of the MMX code: one for gcc compilers and one for
|
|
||||||
MSVC compilers. Pngconf.h should automatically detect which you are
|
|
||||||
using, and it will set either PNG_USE_PNGGCCRD or PNG_USE_PNGVCRD for you.
|
|
||||||
|
|
||||||
Define one or more of the following to disable specific parts of the
|
|
||||||
assembler code:
|
|
||||||
|
|
||||||
PNG_NO_MMX_COMBINE_ROW
|
|
||||||
PNG_NO_MMX_READ_INTERLACE
|
|
||||||
PNG_NO_MMX_READ_FILTER_ROW
|
|
||||||
|
|
||||||
If the latter is not disabled, you can disable one or more of the
|
|
||||||
individual filter types by defining
|
|
||||||
|
|
||||||
PNG_NO_MMX_FILTER_SUB
|
|
||||||
PNG_NO_MMX_FILTER_UP
|
|
||||||
PNG_NO_MMX_FILTER_AVG
|
|
||||||
PNG_NO_MMX_FILTER_PAETH
|
|
||||||
|
|
||||||
By default, libpng only enables the "sub" filter when gcc-3.x is used
|
|
||||||
because experiments show that gcc-3.x produces bad code for the others.
|
|
||||||
|
|
||||||
When you disable various MMX features, libpng will still be able to decode
|
|
||||||
files with those features. It will fall back upon the optimized C code
|
|
||||||
or the unoptimized C code to decode them.
|
|
||||||
|
|
||||||
|
|
||||||
.SH VII. MNG support
|
.SH VII. MNG support
|
||||||
|
|
||||||
The MNG specification (available at http://www.libpng.org/pub/mng) allows
|
The MNG specification (available at http://www.libpng.org/pub/mng) allows
|
||||||
@ -3378,13 +3206,13 @@ application:
|
|||||||
|
|
||||||
.SH IX. Y2K Compliance in libpng
|
.SH IX. Y2K Compliance in libpng
|
||||||
|
|
||||||
August 30, 2007
|
September 1, 2007
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.20rc3 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.20rc4 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
||||||
@ -3579,8 +3407,8 @@ the first widely used release:
|
|||||||
1.0.27 10 10027 10.so.0.27[.0]
|
1.0.27 10 10027 10.so.0.27[.0]
|
||||||
1.2.19 13 10219 12.so.0.19[.0]
|
1.2.19 13 10219 12.so.0.19[.0]
|
||||||
1.2.20beta01-04 13 10220 12.so.0.20[.0]
|
1.2.20beta01-04 13 10220 12.so.0.20[.0]
|
||||||
1.0.28rc1-2 10 10028 10.so.0.28[.0]
|
1.0.28rc1-4 10 10028 10.so.0.28[.0]
|
||||||
1.2.20rc1-2 13 10220 12.so.0.20[.0]
|
1.2.20rc1-4 13 10220 12.so.0.20[.0]
|
||||||
1.0.28 10 10028 10.so.0.28[.0]
|
1.0.28 10 10028 10.so.0.28[.0]
|
||||||
1.2.20 13 10220 12.so.0.20[.0]
|
1.2.20 13 10220 12.so.0.20[.0]
|
||||||
|
|
||||||
@ -3638,7 +3466,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.2.20rc3 - August 30, 2007:
|
Libpng version 1.2.20rc4 - September 1, 2007:
|
||||||
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).
|
||||||
|
|
||||||
@ -3659,7 +3487,7 @@ included in the libpng distribution, the latter shall prevail.)
|
|||||||
If you modify libpng you may insert additional notices immediately following
|
If you modify libpng you may insert additional notices immediately following
|
||||||
this sentence.
|
this sentence.
|
||||||
|
|
||||||
libpng versions 1.2.6, August 15, 2004, through 1.2.20rc3, August 30, 2007, are
|
libpng versions 1.2.6, August 15, 2004, through 1.2.20rc4, September 1, 2007, 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
|
||||||
@ -3758,7 +3586,7 @@ certification mark of the Open Source Initiative.
|
|||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
glennrp at users.sourceforge.net
|
glennrp at users.sourceforge.net
|
||||||
August 30, 2007
|
September 1, 2007
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNGPF 3 "August 30, 2007"
|
.TH LIBPNGPF 3 "September 1, 2007"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.20rc3
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.20rc4
|
||||||
(private functions)
|
(private functions)
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fB#include <png.h>\fP
|
\fB#include <png.h>\fP
|
||||||
|
2
png.5
2
png.5
@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "August 30, 2007"
|
.TH PNG 5 "September 1, 2007"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
png \- Portable Network Graphics (PNG) format
|
png \- Portable Network Graphics (PNG) format
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
52
png.c
52
png.c
@ -13,7 +13,7 @@
|
|||||||
#include "png.h"
|
#include "png.h"
|
||||||
|
|
||||||
/* Generate a compiler error if there is an old png.h in the search path. */
|
/* Generate a compiler error if there is an old png.h in the search path. */
|
||||||
typedef version_1_2_20rc3 Your_png_h_is_not_version_1_2_20rc3;
|
typedef version_1_2_20rc4 Your_png_h_is_not_version_1_2_20rc4;
|
||||||
|
|
||||||
/* Version information for C files. This had better match the version
|
/* Version information for C files. This had better match the version
|
||||||
* string defined in png.h. */
|
* string defined in png.h. */
|
||||||
@ -67,11 +67,6 @@ PNG_CONST int FARDATA png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
|
|||||||
/* offset to next interlace block in the y direction */
|
/* offset to next interlace block in the y direction */
|
||||||
PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
||||||
|
|
||||||
/* width of interlace block (used in assembler routines only) */
|
|
||||||
#if defined(PNG_HAVE_MMX_COMBINE_ROW) || defined(PNG_OPTIMIZED_CODE_SUPPORTED)
|
|
||||||
PNG_CONST int FARDATA png_pass_width[] = {8, 4, 4, 2, 2, 1, 1};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Height of interlace block. This is not currently used - if you need
|
/* Height of interlace block. This is not currently used - if you need
|
||||||
* it, uncomment it here and in png.h
|
* it, uncomment it here and in png.h
|
||||||
PNG_CONST int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
PNG_CONST int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
@ -698,7 +693,7 @@ png_charp PNGAPI
|
|||||||
png_get_copyright(png_structp png_ptr)
|
png_get_copyright(png_structp png_ptr)
|
||||||
{
|
{
|
||||||
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
||||||
return ((png_charp) "\n libpng version 1.2.20rc3 - August 30, 2007\n\
|
return ((png_charp) "\n libpng version 1.2.20rc4 - September 1, 2007\n\
|
||||||
Copyright (c) 1998-2007 Glenn Randers-Pehrson\n\
|
Copyright (c) 1998-2007 Glenn Randers-Pehrson\n\
|
||||||
Copyright (c) 1996-1997 Andreas Dilger\n\
|
Copyright (c) 1996-1997 Andreas Dilger\n\
|
||||||
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
||||||
@ -825,57 +820,18 @@ png_access_version_number(void)
|
|||||||
void /* PRIVATE */
|
void /* PRIVATE */
|
||||||
png_init_mmx_flags (png_structp png_ptr)
|
png_init_mmx_flags (png_structp png_ptr)
|
||||||
{
|
{
|
||||||
if(png_ptr == NULL) return;
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
png_ptr->mmx_rowbytes_threshold = 0;
|
|
||||||
png_ptr->mmx_bitdepth_threshold = 0;
|
|
||||||
|
|
||||||
# if (defined(PNG_USE_PNGVCRD) || defined(PNG_USE_PNGGCCRD))
|
|
||||||
|
|
||||||
png_ptr->asm_flags |= PNG_ASM_FLAG_MMX_SUPPORT_COMPILED;
|
|
||||||
|
|
||||||
if (png_mmx_support() > 0) {
|
|
||||||
png_ptr->asm_flags |= PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU
|
|
||||||
# ifdef PNG_HAVE_MMX_COMBINE_ROW
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_COMBINE_ROW
|
|
||||||
# endif
|
|
||||||
# ifdef PNG_HAVE_MMX_READ_INTERLACE
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_INTERLACE
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_HAVE_MMX_READ_FILTER_ROW
|
|
||||||
;
|
|
||||||
# else
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_SUB
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_UP
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_AVG
|
|
||||||
| PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ;
|
|
||||||
|
|
||||||
png_ptr->mmx_rowbytes_threshold = PNG_MMX_ROWBYTES_THRESHOLD_DEFAULT;
|
|
||||||
png_ptr->mmx_bitdepth_threshold = PNG_MMX_BITDEPTH_THRESHOLD_DEFAULT;
|
|
||||||
# endif
|
|
||||||
} else {
|
|
||||||
png_ptr->asm_flags &= ~( PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU
|
|
||||||
| PNG_MMX_READ_FLAGS
|
|
||||||
| PNG_MMX_WRITE_FLAGS );
|
|
||||||
}
|
|
||||||
|
|
||||||
# else /* !(PNGVCRD || PNGGCCRD) */
|
|
||||||
|
|
||||||
/* clear all MMX flags; no support is compiled in */
|
|
||||||
png_ptr->asm_flags &= ~( PNG_MMX_FLAGS );
|
|
||||||
|
|
||||||
# endif /* ?(PNGVCRD || PNGGCCRD) */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !(PNG_MMX_CODE_SUPPORTED) */
|
#endif /* !(PNG_MMX_CODE_SUPPORTED) */
|
||||||
|
|
||||||
/* this function was added to libpng 1.2.0 */
|
/* this function was added to libpng 1.2.0 */
|
||||||
#if !defined(PNG_USE_PNGGCCRD) && !defined(PNG_USE_PNGVCRD)
|
|
||||||
int PNGAPI
|
int PNGAPI
|
||||||
png_mmx_support(void)
|
png_mmx_support(void)
|
||||||
{
|
{
|
||||||
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif /* PNG_1_0_X */
|
#endif /* PNG_1_0_X */
|
||||||
#endif /* PNG_READ_SUPPORTED && PNG_ASSEMBLER_CODE_SUPPORTED */
|
#endif /* PNG_READ_SUPPORTED && PNG_ASSEMBLER_CODE_SUPPORTED */
|
||||||
|
|
||||||
|
28
png.h
28
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.2.20rc3 - August 30, 2007
|
* libpng version 1.2.20rc4 - September 1, 2007
|
||||||
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2007 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.)
|
||||||
@ -9,7 +9,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.2.20rc3 - August 30, 2007: Glenn
|
* libpng versions 0.97, January 1998, through 1.2.20rc4 - September 1, 2007: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -156,8 +156,8 @@
|
|||||||
* 1.0.27 10 10027 10.so.0.27[.0]
|
* 1.0.27 10 10027 10.so.0.27[.0]
|
||||||
* 1.2.19 13 10219 12.so.0.19[.0]
|
* 1.2.19 13 10219 12.so.0.19[.0]
|
||||||
* 1.2.20beta01-04 13 10220 12.so.0.20[.0]
|
* 1.2.20beta01-04 13 10220 12.so.0.20[.0]
|
||||||
* 1.0.28rc1-2 10 10028 10.so.0.28[.0]
|
* 1.0.28rc1-4 10 10028 10.so.0.28[.0]
|
||||||
* 1.2.20rc1-2 13 10220 12.so.0.20[.0]
|
* 1.2.20rc1-4 13 10220 12.so.0.20[.0]
|
||||||
* 1.0.28 10 10028 10.so.0.28[.0]
|
* 1.0.28 10 10028 10.so.0.28[.0]
|
||||||
* 1.2.20 13 10220 12.so.0.20[.0]
|
* 1.2.20 13 10220 12.so.0.20[.0]
|
||||||
*
|
*
|
||||||
@ -189,7 +189,7 @@
|
|||||||
* If you modify libpng you may insert additional notices immediately following
|
* If you modify libpng you may insert additional notices immediately following
|
||||||
* this sentence.
|
* this sentence.
|
||||||
*
|
*
|
||||||
* libpng versions 1.2.6, August 15, 2004, through 1.2.20rc3, August 30, 2007, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.2.20rc4, September 1, 2007, 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:
|
||||||
@ -301,13 +301,13 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* August 30, 2007
|
* September 1, 2007
|
||||||
*
|
*
|
||||||
* Since the PNG Development group is an ad-hoc body, we can't make
|
* Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
* an official declaration.
|
* an official declaration.
|
||||||
*
|
*
|
||||||
* This is your unofficial assurance that libpng from version 0.71 and
|
* This is your unofficial assurance that libpng from version 0.71 and
|
||||||
* upward through 1.2.20rc3 are Y2K compliant. It is my belief that earlier
|
* upward through 1.2.20rc4 are Y2K compliant. It is my belief that earlier
|
||||||
* versions were also Y2K compliant.
|
* versions were also Y2K compliant.
|
||||||
*
|
*
|
||||||
* Libpng only has three year fields. One is a 2-byte unsigned integer
|
* Libpng only has three year fields. One is a 2-byte unsigned integer
|
||||||
@ -363,9 +363,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Version information for png.h - this should match the version in png.c */
|
/* Version information for png.h - this should match the version in png.c */
|
||||||
#define PNG_LIBPNG_VER_STRING "1.2.20rc3"
|
#define PNG_LIBPNG_VER_STRING "1.2.20rc4"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.2.20rc3 - August 30, 2007\n"
|
" libpng version 1.2.20rc4 - September 1, 2007\n"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 0
|
#define PNG_LIBPNG_VER_SONUM 0
|
||||||
#define PNG_LIBPNG_VER_DLLNUM 13
|
#define PNG_LIBPNG_VER_DLLNUM 13
|
||||||
@ -377,7 +377,7 @@
|
|||||||
/* This should match the numeric part of the final component of
|
/* This should match the numeric part of the final component of
|
||||||
* PNG_LIBPNG_VER_STRING, omitting any leading zero: */
|
* PNG_LIBPNG_VER_STRING, omitting any leading zero: */
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_BUILD 3
|
#define PNG_LIBPNG_VER_BUILD 4
|
||||||
|
|
||||||
/* Release Status */
|
/* Release Status */
|
||||||
#define PNG_LIBPNG_BUILD_ALPHA 1
|
#define PNG_LIBPNG_BUILD_ALPHA 1
|
||||||
@ -504,9 +504,6 @@ PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_ystart[7];
|
|||||||
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_yinc[7];
|
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_yinc[7];
|
||||||
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_mask[7];
|
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_mask[7];
|
||||||
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_dsp_mask[7];
|
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_dsp_mask[7];
|
||||||
#if defined(PNG_HAVE_MMX_COMBINE_ROW) || defined(PNG_OPTIMIZED_CODE_SUPPORTED)
|
|
||||||
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_width[7];
|
|
||||||
#endif
|
|
||||||
/* This isn't currently used. If you need it, see png.c for more details.
|
/* This isn't currently used. If you need it, see png.c for more details.
|
||||||
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_height[7];
|
PNG_EXPORT_VAR (PNG_CONST int FARDATA) png_pass_height[7];
|
||||||
*/
|
*/
|
||||||
@ -1279,8 +1276,7 @@ struct png_struct_def
|
|||||||
png_size_t current_text_left; /* how much text left to read in input */
|
png_size_t current_text_left; /* how much text left to read in input */
|
||||||
png_charp current_text; /* current text chunk buffer */
|
png_charp current_text; /* current text chunk buffer */
|
||||||
png_charp current_text_ptr; /* current location in current_text */
|
png_charp current_text_ptr; /* current location in current_text */
|
||||||
# endif /* PNG_PROGRESSIVE_READ_SUPPORTED && PNG_TEXT_SUPPORTED */
|
# endif /* PNG_TEXT_SUPPORTED */
|
||||||
|
|
||||||
#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
|
#endif /* PNG_PROGRESSIVE_READ_SUPPORTED */
|
||||||
|
|
||||||
#if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
|
#if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
|
||||||
@ -1416,7 +1412,7 @@ struct png_struct_def
|
|||||||
/* This triggers a compiler error in png.c, if png.c and png.h
|
/* This triggers a compiler error in png.c, if png.c and png.h
|
||||||
* do not agree upon the version number.
|
* do not agree upon the version number.
|
||||||
*/
|
*/
|
||||||
typedef png_structp version_1_2_20rc3;
|
typedef png_structp version_1_2_20rc4;
|
||||||
|
|
||||||
typedef png_struct FAR * FAR * png_structpp;
|
typedef png_struct FAR * FAR * png_structpp;
|
||||||
|
|
||||||
|
73
pngconf.h
73
pngconf.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.2.20rc3 - August 30, 2007
|
* libpng version 1.2.20rc4 - September 1, 2007
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -600,7 +600,7 @@
|
|||||||
#endif /* PNG_READ_TRANSFORMS_SUPPORTED */
|
#endif /* PNG_READ_TRANSFORMS_SUPPORTED */
|
||||||
|
|
||||||
#if !defined(PNG_NO_PROGRESSIVE_READ) && \
|
#if !defined(PNG_NO_PROGRESSIVE_READ) && \
|
||||||
!defined(PNG_PROGRESSIVE_READ_NOT_SUPPORTED) /* if you don't do progressive */
|
!defined(PNG_PROGRESSIVE_READ_SUPPORTED) /* if you don't do progressive */
|
||||||
# define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
|
# define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
|
||||||
#endif /* about interlacing capability! You'll */
|
#endif /* about interlacing capability! You'll */
|
||||||
/* still have interlacing unless you change the following line: */
|
/* still have interlacing unless you change the following line: */
|
||||||
@ -727,15 +727,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
|
/* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
|
||||||
* even when PNG_USE_PNGVCRD or PNG_USE_PNGGCCRD is not defined.
|
* and removed from version 1.2.20. The following will be removed
|
||||||
*
|
* from libpng-1.4.0
|
||||||
* PNG_NO_ASSEMBLER_CODE disables use of all assembler code,
|
|
||||||
* and removes several functions from the API.
|
|
||||||
*
|
|
||||||
* PNG_NO_MMX_CODE disables the use of MMX code without changing the API.
|
|
||||||
* When MMX code is off, then optimized C replacement functions are used,
|
|
||||||
* if PNG_NO_OPTIMIZED_CODE is not enabled. This was added in version
|
|
||||||
* 1.2.19.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE)
|
#if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE)
|
||||||
@ -762,6 +755,12 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh))
|
||||||
|
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
||||||
|
# define PNG_NO_MMX_CODE
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
||||||
# define PNG_MMX_CODE_SUPPORTED
|
# define PNG_MMX_CODE_SUPPORTED
|
||||||
# endif
|
# endif
|
||||||
@ -774,14 +773,11 @@
|
|||||||
# if !defined(PNG_USE_PNGGCCRD) && defined(PNG_MMX_CODE_SUPPORTED) && \
|
# if !defined(PNG_USE_PNGGCCRD) && defined(PNG_MMX_CODE_SUPPORTED) && \
|
||||||
!defined(PNG_USE_PNGVCRD)
|
!defined(PNG_USE_PNGVCRD)
|
||||||
# define PNG_USE_PNGGCCRD
|
# define PNG_USE_PNGGCCRD
|
||||||
/* If you are sure that you don't need thread safety and you are compiling
|
|
||||||
with PNG_USE_PNGCCRD for an MMX application, you can define this for
|
|
||||||
faster execution. See pnggccrd.c.
|
|
||||||
# define PNG_THREAD_UNSAFE_OK
|
# define PNG_THREAD_UNSAFE_OK
|
||||||
*/
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
/* end of obsolete code to be removed from libpng-1.4.0 */
|
||||||
|
|
||||||
#if !defined(PNG_1_0_X)
|
#if !defined(PNG_1_0_X)
|
||||||
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
||||||
@ -1489,53 +1485,6 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# define PNG_ZBUF_SIZE 65536L
|
# define PNG_ZBUF_SIZE 65536L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_READ_SUPPORTED
|
|
||||||
/* Prior to libpng-1.0.9, this block was in pngasmrd.h */
|
|
||||||
#if defined(PNG_INTERNAL)
|
|
||||||
|
|
||||||
#if defined(PNG_USE_PNGGCCRD) || defined(PNG_USE_PNGVCRD)
|
|
||||||
/* Platform must be Pentium. Makefile must assemble and load
|
|
||||||
* pnggccrd.c or pngvcrd.c. MMX will be detected at run time and
|
|
||||||
* used if present.
|
|
||||||
*/
|
|
||||||
# ifndef PNG_NO_MMX_COMBINE_ROW
|
|
||||||
# define PNG_HAVE_MMX_COMBINE_ROW
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_NO_MMX_READ_INTERLACE
|
|
||||||
# define PNG_HAVE_MMX_READ_INTERLACE
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_NO_MMX_READ_FILTER_ROW
|
|
||||||
# define PNG_HAVE_MMX_READ_FILTER_ROW
|
|
||||||
# ifndef PNG_NO_MMX_FILTER_SUB
|
|
||||||
# define PNG_MMX_READ_FILTER_SUB_SUPPORTED
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_NO_MMX_FILTER_UP
|
|
||||||
# define PNG_MMX_READ_FILTER_UP_SUPPORTED
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_NO_MMX_FILTER_AVG
|
|
||||||
# define PNG_MMX_READ_FILTER_AVG_SUPPORTED
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_NO_MMX_FILTER_PAETH
|
|
||||||
# define PNG_MMX_READ_FILTER_PAETH_SUPPORTED
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
/* These are the default thresholds before the MMX code kicks in; if either
|
|
||||||
* rowbytes or bitdepth is below the threshold, plain C code is used. These
|
|
||||||
* can be overridden at runtime via the png_set_mmx_thresholds() call in
|
|
||||||
* libpng 1.2.0 and later. The values below were chosen by Intel.
|
|
||||||
*/
|
|
||||||
# ifndef PNG_MMX_ROWBYTES_THRESHOLD_DEFAULT
|
|
||||||
# define PNG_MMX_ROWBYTES_THRESHOLD_DEFAULT 128 /* >= */
|
|
||||||
# endif
|
|
||||||
# ifndef PNG_MMX_BITDEPTH_THRESHOLD_DEFAULT
|
|
||||||
# define PNG_MMX_BITDEPTH_THRESHOLD_DEFAULT 9 /* >= */
|
|
||||||
# endif
|
|
||||||
#endif /* PNG_USE_PNGGCCRD || PNG_USE_PNGVCRD */
|
|
||||||
/* - see pngvcrd.c or pnggccrd.c for info about what is currently enabled */
|
|
||||||
|
|
||||||
#endif /* PNG_INTERNAL */
|
|
||||||
#endif /* PNG_READ_SUPPORTED */
|
|
||||||
|
|
||||||
/* Added at libpng-1.2.8 */
|
/* Added at libpng-1.2.8 */
|
||||||
#endif /* PNG_VERSION_INFO_ONLY */
|
#endif /* PNG_VERSION_INFO_ONLY */
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngerror.c - stub functions for i/o and memory allocation
|
/* pngerror.c - stub functions for i/o and memory allocation
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.2.20 August 30, 2007
|
* Last changed in libpng 1.2.20 September 1, 2007
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
6043
pnggccrd.c
6043
pnggccrd.c
File diff suppressed because it is too large
Load Diff
75
pngget.c
75
pngget.c
@ -841,6 +841,7 @@ png_get_compression_buffer_size(png_structp png_ptr)
|
|||||||
png_uint_32 PNGAPI
|
png_uint_32 PNGAPI
|
||||||
png_get_asm_flags (png_structp png_ptr)
|
png_get_asm_flags (png_structp png_ptr)
|
||||||
{
|
{
|
||||||
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
#ifdef PNG_MMX_CODE_SUPPORTED
|
||||||
return (png_uint_32)(png_ptr? png_ptr->asm_flags : 0L);
|
return (png_uint_32)(png_ptr? png_ptr->asm_flags : 0L);
|
||||||
#else
|
#else
|
||||||
@ -852,94 +853,36 @@ png_get_asm_flags (png_structp png_ptr)
|
|||||||
png_uint_32 PNGAPI
|
png_uint_32 PNGAPI
|
||||||
png_get_asm_flagmask (int flag_select)
|
png_get_asm_flagmask (int flag_select)
|
||||||
{
|
{
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
png_uint_32 settable_asm_flags = 0;
|
flag_select=flag_select;
|
||||||
|
return 0L;
|
||||||
if (flag_select & PNG_SELECT_READ)
|
|
||||||
settable_asm_flags |=
|
|
||||||
PNG_ASM_FLAG_MMX_READ_COMBINE_ROW |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_INTERLACE |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_SUB |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_UP |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_AVG |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ;
|
|
||||||
/* no non-MMX flags yet */
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* GRR: no write-flags yet, either, but someday... */
|
|
||||||
if (flag_select & PNG_SELECT_WRITE)
|
|
||||||
settable_asm_flags |=
|
|
||||||
PNG_ASM_FLAG_MMX_WRITE_ [whatever] ;
|
|
||||||
#endif /* 0 */
|
|
||||||
|
|
||||||
return settable_asm_flags; /* _theoretically_ settable capabilities only */
|
|
||||||
#else
|
|
||||||
return (0L);
|
|
||||||
#endif /* PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* GRR: could add this: && defined(PNG_MMX_CODE_SUPPORTED) */
|
/* GRR: could add this: && defined(PNG_MMX_CODE_SUPPORTED) */
|
||||||
/* this function was added to libpng 1.2.0 */
|
/* this function was added to libpng 1.2.0 */
|
||||||
png_uint_32 PNGAPI
|
png_uint_32 PNGAPI
|
||||||
png_get_mmx_flagmask (int flag_select, int *compilerID)
|
png_get_mmx_flagmask (int flag_select, int *compilerID)
|
||||||
{
|
{
|
||||||
#if defined(PNG_MMX_CODE_SUPPORTED)
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
png_uint_32 settable_mmx_flags = 0;
|
flag_select=flag_select;
|
||||||
|
|
||||||
if (flag_select & PNG_SELECT_READ)
|
|
||||||
settable_mmx_flags |=
|
|
||||||
PNG_ASM_FLAG_MMX_READ_COMBINE_ROW |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_INTERLACE |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_SUB |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_UP |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_AVG |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_PAETH ;
|
|
||||||
#if 0
|
|
||||||
/* GRR: no MMX write support yet, but someday... */
|
|
||||||
if (flag_select & PNG_SELECT_WRITE)
|
|
||||||
settable_mmx_flags |=
|
|
||||||
PNG_ASM_FLAG_MMX_WRITE_ [whatever] ;
|
|
||||||
#endif /* 0 */
|
|
||||||
|
|
||||||
if (compilerID != NULL) {
|
|
||||||
#ifdef PNG_USE_PNGVCRD
|
|
||||||
*compilerID = 1; /* MSVC */
|
|
||||||
#else
|
|
||||||
#ifdef PNG_USE_PNGGCCRD
|
|
||||||
*compilerID = 2; /* gcc/gas */
|
|
||||||
#else
|
|
||||||
*compilerID = -1; /* unknown (i.e., no asm/MMX code compiled) */
|
*compilerID = -1; /* unknown (i.e., no asm/MMX code compiled) */
|
||||||
#endif
|
return 0L;
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
return settable_mmx_flags; /* _theoretically_ settable capabilities only */
|
|
||||||
#else
|
|
||||||
return (0L);
|
|
||||||
#endif /* ?PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this function was added to libpng 1.2.0 */
|
/* this function was added to libpng 1.2.0 */
|
||||||
png_byte PNGAPI
|
png_byte PNGAPI
|
||||||
png_get_mmx_bitdepth_threshold (png_structp png_ptr)
|
png_get_mmx_bitdepth_threshold (png_structp png_ptr)
|
||||||
{
|
{
|
||||||
#if defined(PNG_MMX_CODE_SUPPORTED)
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
return (png_byte)(png_ptr? png_ptr->mmx_bitdepth_threshold : 0);
|
|
||||||
#else
|
|
||||||
return (png_ptr? 0: 0);
|
return (png_ptr? 0: 0);
|
||||||
#endif /* ?PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this function was added to libpng 1.2.0 */
|
/* this function was added to libpng 1.2.0 */
|
||||||
png_uint_32 PNGAPI
|
png_uint_32 PNGAPI
|
||||||
png_get_mmx_rowbytes_threshold (png_structp png_ptr)
|
png_get_mmx_rowbytes_threshold (png_structp png_ptr)
|
||||||
{
|
{
|
||||||
#if defined(PNG_MMX_CODE_SUPPORTED)
|
/* obsolete, to be removed from libpng-1.4.0 */
|
||||||
return (png_uint_32)(png_ptr? png_ptr->mmx_rowbytes_threshold : 0L);
|
|
||||||
#else
|
|
||||||
return (png_ptr? 0L: 0L);
|
return (png_ptr? 0L: 0L);
|
||||||
#endif /* ?PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
#endif /* ?PNG_1_0_X */
|
#endif /* ?PNG_1_0_X */
|
||||||
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
|
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngpread.c - read a png file in push mode
|
/* pngpread.c - read a png file in push mode
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.2.20 August 30, 2007
|
* Last changed in libpng 1.2.20 September 1, 2007
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -1001,11 +1001,6 @@ png_read_push_finish_row(png_structp png_ptr)
|
|||||||
/* offset to next interlace block in the y direction */
|
/* offset to next interlace block in the y direction */
|
||||||
PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
||||||
|
|
||||||
/* Width of interlace block. This is not currently used - if you need
|
|
||||||
* it, uncomment it here and in png.h
|
|
||||||
PNG_CONST int FARDATA png_pass_width[] = {8, 4, 4, 2, 2, 1, 1};
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Height of interlace block. This is not currently used - if you need
|
/* Height of interlace block. This is not currently used - if you need
|
||||||
* it, uncomment it here and in png.h
|
* it, uncomment it here and in png.h
|
||||||
PNG_CONST int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
PNG_CONST int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
|
@ -55,12 +55,6 @@ png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
#if !defined(PNG_1_0_X)
|
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
|
||||||
png_init_mmx_flags(png_ptr); /* 1.2.0 addition */
|
|
||||||
#endif
|
|
||||||
#endif /* PNG_1_0_X */
|
|
||||||
|
|
||||||
/* added at libpng-1.2.6 */
|
/* added at libpng-1.2.6 */
|
||||||
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
||||||
png_ptr->user_width_max=PNG_USER_WIDTH_MAX;
|
png_ptr->user_width_max=PNG_USER_WIDTH_MAX;
|
||||||
|
1053
pngrutil.c
1053
pngrutil.c
File diff suppressed because it is too large
Load Diff
51
pngset.c
51
pngset.c
@ -1202,51 +1202,13 @@ png_set_invalid(png_structp png_ptr, png_infop info_ptr, int mask)
|
|||||||
|
|
||||||
#ifndef PNG_1_0_X
|
#ifndef PNG_1_0_X
|
||||||
#ifdef PNG_ASSEMBLER_CODE_SUPPORTED
|
#ifdef PNG_ASSEMBLER_CODE_SUPPORTED
|
||||||
/* this function was added to libpng 1.2.0 and should always exist by default */
|
/* function was added to libpng 1.2.0 and should always exist by default */
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
png_set_asm_flags (png_structp png_ptr, png_uint_32 asm_flags)
|
png_set_asm_flags (png_structp png_ptr, png_uint_32 asm_flags)
|
||||||
{
|
{
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
/* Obsolete as of libpng-1.2.20 and will be removed from libpng-1.4.0 */
|
||||||
png_uint_32 settable_asm_flags;
|
if (png_ptr != NULL)
|
||||||
png_uint_32 settable_mmx_flags;
|
png_ptr->asm_flags = 0;
|
||||||
#endif
|
|
||||||
if (png_ptr == NULL)
|
|
||||||
return;
|
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
|
||||||
|
|
||||||
settable_mmx_flags =
|
|
||||||
#ifdef PNG_HAVE_MMX_COMBINE_ROW
|
|
||||||
PNG_ASM_FLAG_MMX_READ_COMBINE_ROW |
|
|
||||||
#endif
|
|
||||||
#ifdef PNG_HAVE_MMX_READ_INTERLACE
|
|
||||||
PNG_ASM_FLAG_MMX_READ_INTERLACE |
|
|
||||||
#endif
|
|
||||||
#ifdef PNG_HAVE_MMX_READ_FILTER_ROW
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_SUB |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_UP |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_AVG |
|
|
||||||
PNG_ASM_FLAG_MMX_READ_FILTER_PAETH |
|
|
||||||
#endif
|
|
||||||
0;
|
|
||||||
|
|
||||||
/* could be some non-MMX ones in the future, but not currently: */
|
|
||||||
settable_asm_flags = settable_mmx_flags;
|
|
||||||
|
|
||||||
if (!(png_ptr->asm_flags & PNG_ASM_FLAG_MMX_SUPPORT_COMPILED) ||
|
|
||||||
!(png_ptr->asm_flags & PNG_ASM_FLAG_MMX_SUPPORT_IN_CPU))
|
|
||||||
{
|
|
||||||
/* clear all MMX flags if MMX isn't supported */
|
|
||||||
settable_asm_flags &= ~settable_mmx_flags;
|
|
||||||
png_ptr->asm_flags &= ~settable_mmx_flags;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we're replacing the settable bits with those passed in by the user,
|
|
||||||
* so first zero them out of the master copy, then bitwise-OR in the
|
|
||||||
* allowed subset that was requested */
|
|
||||||
|
|
||||||
png_ptr->asm_flags &= ~settable_asm_flags; /* zero them */
|
|
||||||
png_ptr->asm_flags |= (asm_flags & settable_asm_flags); /* set them */
|
|
||||||
#endif /* ?PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this function was added to libpng 1.2.0 */
|
/* this function was added to libpng 1.2.0 */
|
||||||
@ -1255,12 +1217,9 @@ png_set_mmx_thresholds (png_structp png_ptr,
|
|||||||
png_byte mmx_bitdepth_threshold,
|
png_byte mmx_bitdepth_threshold,
|
||||||
png_uint_32 mmx_rowbytes_threshold)
|
png_uint_32 mmx_rowbytes_threshold)
|
||||||
{
|
{
|
||||||
|
/* Obsolete as of libpng-1.2.20 and will be removed from libpng-1.4.0 */
|
||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
|
||||||
png_ptr->mmx_bitdepth_threshold = mmx_bitdepth_threshold;
|
|
||||||
png_ptr->mmx_rowbytes_threshold = mmx_rowbytes_threshold;
|
|
||||||
#endif /* ?PNG_MMX_CODE_SUPPORTED */
|
|
||||||
}
|
}
|
||||||
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
|
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
|
||||||
|
|
||||||
|
@ -1548,4 +1548,4 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Generate a compiler error if there is an old png.h in the search path. */
|
/* Generate a compiler error if there is an old png.h in the search path. */
|
||||||
typedef version_1_2_20rc3 your_png_h_is_not_version_1_2_20rc3;
|
typedef version_1_2_20rc4 your_png_h_is_not_version_1_2_20rc4;
|
||||||
|
16
pngwrite.c
16
pngwrite.c
@ -454,14 +454,6 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
#if !defined(PNG_1_0_X)
|
|
||||||
#ifdef PNG_ASSEMBLER_CODE_SUPPORTED
|
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
|
||||||
png_init_mmx_flags(png_ptr); /* 1.2.0 addition */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif /* PNG_1_0_X */
|
|
||||||
|
|
||||||
/* added at libpng-1.2.6 */
|
/* added at libpng-1.2.6 */
|
||||||
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
||||||
png_ptr->user_width_max=PNG_USER_WIDTH_MAX;
|
png_ptr->user_width_max=PNG_USER_WIDTH_MAX;
|
||||||
@ -670,14 +662,6 @@ png_write_init_3(png_structpp ptr_ptr, png_const_charp user_png_ver,
|
|||||||
png_ptr->user_height_max=PNG_USER_HEIGHT_MAX;
|
png_ptr->user_height_max=PNG_USER_HEIGHT_MAX;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(PNG_1_0_X)
|
|
||||||
#ifdef PNG_ASSEMBLER_CODE_SUPPORTED
|
|
||||||
#ifdef PNG_MMX_CODE_SUPPORTED
|
|
||||||
png_init_mmx_flags(png_ptr); /* 1.2.0 addition */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif /* PNG_1_0_X */
|
|
||||||
|
|
||||||
#ifdef PNG_SETJMP_SUPPORTED
|
#ifdef PNG_SETJMP_SUPPORTED
|
||||||
/* restore jump buffer */
|
/* restore jump buffer */
|
||||||
png_memcpy(png_ptr->jmpbuf, tmp_jmp, png_sizeof (jmp_buf));
|
png_memcpy(png_ptr->jmpbuf, tmp_jmp, png_sizeof (jmp_buf));
|
||||||
|
@ -62,8 +62,6 @@ else(NOT WIN32)
|
|||||||
endif("$ENV{${TEXT}}" STREQUAL "")
|
endif("$ENV{${TEXT}}" STREQUAL "")
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
option(PNG_MMX "Use MMX assembler code (x86 only)" ${png_asm_tmp})
|
|
||||||
|
|
||||||
# SET LIBNAME
|
# SET LIBNAME
|
||||||
# msvc does not append 'lib' - do it here to have consistent name
|
# msvc does not append 'lib' - do it here to have consistent name
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
@ -101,21 +99,8 @@ set(pngtest_sources
|
|||||||
# SOME NEEDED DEFINITIONS
|
# SOME NEEDED DEFINITIONS
|
||||||
add_definitions(-DZLIB_DLL)
|
add_definitions(-DZLIB_DLL)
|
||||||
|
|
||||||
if(PNG_MMX)
|
add_definitions(-DLIBPNG_NO_MMX)
|
||||||
if(MSVC)
|
add_definitions(-DPNG_NO_MMX_CODE)
|
||||||
add_definitions(-DPNG_NO_MODULEDEF -D_CRT_SECURE_NO_DEPRECATE)
|
|
||||||
set(libpng_sources ${libpng_sources}
|
|
||||||
pngvcrd.c
|
|
||||||
)
|
|
||||||
else(MSVC)
|
|
||||||
set(libpng_sources ${libpng_sources}
|
|
||||||
pnggccrd.c
|
|
||||||
)
|
|
||||||
endif(MSVC)
|
|
||||||
else(PNG_MMX)
|
|
||||||
add_definitions(-DLIBPNG_NO_MMX)
|
|
||||||
add_definitions(-DPNG_NO_MMX_CODE)
|
|
||||||
endif(PNG_MMX)
|
|
||||||
|
|
||||||
if(PNG_CONSOLE_IO_SUPPORTED)
|
if(PNG_CONSOLE_IO_SUPPORTED)
|
||||||
add_definitions(-DPNG_CONSOLE_IO_SUPPORTED)
|
add_definitions(-DPNG_CONSOLE_IO_SUPPORTED)
|
||||||
@ -180,7 +165,7 @@ configure_file(${PNG_SOURCE_DIR}/scripts/libpng-config.in
|
|||||||
|
|
||||||
# SET UP LINKS
|
# SET UP LINKS
|
||||||
set_target_properties(${PNG_LIB_NAME} PROPERTIES
|
set_target_properties(${PNG_LIB_NAME} PROPERTIES
|
||||||
# VERSION 0.${PNGLIB_RELEASE}.1.2.20rc3
|
# VERSION 0.${PNGLIB_RELEASE}.1.2.20rc4
|
||||||
VERSION 0.${PNGLIB_RELEASE}.0
|
VERSION 0.${PNGLIB_RELEASE}.0
|
||||||
SOVERSION 0
|
SOVERSION 0
|
||||||
CLEAN_DIRECT_OUTPUT 1)
|
CLEAN_DIRECT_OUTPUT 1)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# Modeled after libxml-config.
|
# Modeled after libxml-config.
|
||||||
|
|
||||||
version=1.2.20rc3
|
version=1.2.20rc4
|
||||||
prefix=""
|
prefix=""
|
||||||
libdir=""
|
libdir=""
|
||||||
libs=""
|
libs=""
|
||||||
|
@ -5,6 +5,6 @@ includedir=@includedir@/libpng12
|
|||||||
|
|
||||||
Name: libpng
|
Name: libpng
|
||||||
Description: Loads and saves PNG files
|
Description: Loads and saves PNG files
|
||||||
Version: 1.2.20rc3
|
Version: 1.2.20rc4
|
||||||
Libs: -L${libdir} -lpng12
|
Libs: -L${libdir} -lpng12
|
||||||
Cflags: -I${includedir} @LIBPNG_NO_MMX@
|
Cflags: -I${includedir} @LIBPNG_NO_MMX@
|
||||||
|
@ -5,6 +5,6 @@ includedir=@includedir@/libpng12
|
|||||||
|
|
||||||
Name: libpng
|
Name: libpng
|
||||||
Description: Loads and saves PNG files
|
Description: Loads and saves PNG files
|
||||||
Version: 1.2.20rc3
|
Version: 1.2.20rc4
|
||||||
Libs: -L${libdir} -lpng12
|
Libs: -L${libdir} -lpng12
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -20,7 +20,7 @@ LN_SF = ln -f -s
|
|||||||
|
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -31,9 +31,6 @@ endif
|
|||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
# To disable assembler optimizations, add '-DPNG_NO_MMX_CODE' to
|
|
||||||
# $CFLAGS. To enable, add pnggccrd.o to the dependencies.
|
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
ifdef MINGW
|
ifdef MINGW
|
||||||
MINGW_CCFLAGS=-mno-cygwin -I/usr/include/mingw
|
MINGW_CCFLAGS=-mno-cygwin -I/usr/include/mingw
|
||||||
@ -77,7 +74,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
|||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
CYGDLL = 12
|
CYGDLL = 12
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
SHAREDLIB=cygpng$(CYGDLL).dll
|
SHAREDLIB=cygpng$(CYGDLL).dll
|
||||||
@ -112,7 +109,7 @@ DL =$(D)$(LIBPATH)
|
|||||||
|
|
||||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o # pnggccrd.o
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
@ -156,20 +153,6 @@ shared: all-shared
|
|||||||
all-static: $(STATLIB) pngtest-stat$(EXE)
|
all-static: $(STATLIB) pngtest-stat$(EXE)
|
||||||
all-shared: $(SHAREDLIB) pngtest$(EXE)
|
all-shared: $(SHAREDLIB) pngtest$(EXE)
|
||||||
|
|
||||||
# pnggccrd.o: pnggccrd.c png.h pngconf.h
|
|
||||||
# @echo ""
|
|
||||||
# @echo ' You can ignore the "control reaches end of non-void function"'
|
|
||||||
# @echo ' warning and "<variable> defined but not used" warnings:'
|
|
||||||
# @echo ""
|
|
||||||
# $(CC) -c $(CFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
# pnggccrd.pic.o: pnggccrd.c png.h pngconf.h
|
|
||||||
# @echo ""
|
|
||||||
# @echo ' You can ignore the "control reaches end of non-void function"'
|
|
||||||
# @echo ' warning and "<variable> defined but not used" warnings:'
|
|
||||||
# @echo ""
|
|
||||||
# $(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $<
|
|
||||||
|
|
||||||
$(STATLIB): $(OBJS)
|
$(STATLIB): $(OBJS)
|
||||||
ar rc $@ $(OBJS)
|
ar rc $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
@ -19,7 +19,7 @@ ZLIBINC=../zlib
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
# Library name:
|
# Library name:
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
# CAUTION: Do not use this makefile with gcc versions 2.7.2.2 and earlier.
|
# CAUTION: Do not use this makefile with gcc versions 2.7.2.2 and earlier.
|
||||||
|
|
||||||
# WARNING: The assembler code in pnggccrd.c may not be thread safe.
|
|
||||||
|
|
||||||
# NOTE: When testing MMX performance on a multitasking system, make sure
|
# NOTE: When testing MMX performance on a multitasking system, make sure
|
||||||
# there are no floating-point programs (e.g., SETI@Home) running in
|
# there are no floating-point programs (e.g., SETI@Home) running in
|
||||||
# the background! Context switches between MMX and FPU are expensive.
|
# the background! Context switches between MMX and FPU are expensive.
|
||||||
@ -16,7 +14,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
@ -98,7 +96,7 @@ DM=$(DESTDIR)$(MANPATH)
|
|||||||
|
|
||||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o pnggccrd.o
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
@ -127,12 +125,6 @@ libpng-config:
|
|||||||
cat scripts/libpng-config-body.in ) > libpng-config
|
cat scripts/libpng-config-body.in ) > libpng-config
|
||||||
chmod +x libpng-config
|
chmod +x libpng-config
|
||||||
|
|
||||||
pnggccrd.o: pnggccrd.c png.h pngconf.h
|
|
||||||
$(CC) -c $(CFLAGS) -o $@ $*.c
|
|
||||||
|
|
||||||
pnggccrd.pic.o: pnggccrd.c png.h pngconf.h
|
|
||||||
$(CC) -c $(CFLAGS) -fPIC -o $@ pnggccrd.c
|
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
$(LN_SF) $(LIBSOMAJ) $(LIBSO)
|
$(LN_SF) $(LIBSOMAJ) $(LIBSO)
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ ZLIBINC=/opt/zlib/include
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -18,7 +18,7 @@ ZLIBINC=/opt/zlib/include
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -36,7 +36,7 @@ O=.obj
|
|||||||
|
|
||||||
OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
|
OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
|
||||||
pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
|
pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
|
||||||
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O) pnggccrd$(O)
|
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
@ -61,12 +61,6 @@ pngrtran$(O): png.h pngconf.h
|
|||||||
pngrutil$(O): png.h pngconf.h
|
pngrutil$(O): png.h pngconf.h
|
||||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
||||||
|
|
||||||
pnggccrd$(O): png.h pngconf.h
|
|
||||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
|
||||||
|
|
||||||
pngvcrd$(O): png.h pngconf.h
|
|
||||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
|
||||||
|
|
||||||
pngerror$(O): png.h pngconf.h
|
pngerror$(O): png.h pngconf.h
|
||||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -39,10 +39,6 @@ RANLIB=ranlib
|
|||||||
|
|
||||||
MKDIR_P=/bin/mkdir -pv
|
MKDIR_P=/bin/mkdir -pv
|
||||||
|
|
||||||
|
|
||||||
# To disable assembler optimizations, add '-DPNG_NO_MMX_CODE' to
|
|
||||||
# $CFLAGS. To enable them, add pnggccrd.o to the dependencies.
|
|
||||||
|
|
||||||
# Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
|
# Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
|
||||||
ifndef prefix
|
ifndef prefix
|
||||||
prefix=/usr
|
prefix=/usr
|
||||||
@ -78,7 +74,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
|||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
MINGDLL = 12
|
MINGDLL = 12
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
SHAREDLIB=libpng$(MINGDLL).dll
|
SHAREDLIB=libpng$(MINGDLL).dll
|
||||||
@ -109,7 +105,7 @@ DL =$(D)$(LIBPATH)
|
|||||||
|
|
||||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o # pnggccrd.o
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
@ -282,7 +278,6 @@ pngwrite.o pngwrite.pic.o: png.h pngconf.h pngwrite.c
|
|||||||
pngwtran.o pngwtran.pic.o: png.h pngconf.h pngwtran.c
|
pngwtran.o pngwtran.pic.o: png.h pngconf.h pngwtran.c
|
||||||
pngwutil.o pngwutil.pic.o: png.h pngconf.h pngwutil.c
|
pngwutil.o pngwutil.pic.o: png.h pngconf.h pngwutil.c
|
||||||
pngpread.o pngpread.pic.o: png.h pngconf.h pngpread.c
|
pngpread.o pngpread.pic.o: png.h pngconf.h pngpread.c
|
||||||
# pnggccrd.o pnggccrd.pic.o: png.h pngconf.h pnggccrd.c
|
|
||||||
|
|
||||||
pngtest.o pngtest.pic.o: png.h pngconf.h pngtest.c
|
pngtest.o pngtest.pic.o: png.h pngconf.h pngtest.c
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ INCSDIR=${LOCALBASE}/include/libpng12
|
|||||||
|
|
||||||
LIB= png12
|
LIB= png12
|
||||||
SHLIB_MAJOR= 0
|
SHLIB_MAJOR= 0
|
||||||
SHLIB_MINOR= 1.2.20rc3
|
SHLIB_MINOR= 1.2.20rc4
|
||||||
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||||
pngwtran.c pngmem.c pngerror.c pngpread.c
|
pngwtran.c pngmem.c pngerror.c pngpread.c
|
||||||
INCS= png.h pngconf.h
|
INCS= png.h pngconf.h
|
||||||
|
@ -14,8 +14,8 @@ INCSDIR=${LOCALBASE}/include/libpng
|
|||||||
|
|
||||||
LIB= png
|
LIB= png
|
||||||
SHLIB_MAJOR= 3
|
SHLIB_MAJOR= 3
|
||||||
SHLIB_MINOR= 1.2.20rc3
|
SHLIB_MINOR= 1.2.20rc4
|
||||||
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||||
pngwtran.c pngmem.c pngerror.c pngpread.c
|
pngwtran.c pngmem.c pngerror.c pngpread.c
|
||||||
INCS= png.h pngconf.h
|
INCS= png.h pngconf.h
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -8,10 +8,10 @@ LIBDIR= ${PREFIX}/lib
|
|||||||
MANDIR= ${PREFIX}/man/cat
|
MANDIR= ${PREFIX}/man/cat
|
||||||
|
|
||||||
SHLIB_MAJOR= 0
|
SHLIB_MAJOR= 0
|
||||||
SHLIB_MINOR= 1.2.20rc3
|
SHLIB_MINOR= 1.2.20rc4
|
||||||
|
|
||||||
LIB= png
|
LIB= png
|
||||||
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \
|
||||||
pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
|
pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
|
||||||
pngwio.c pngwrite.c pngwtran.c pngwutil.c
|
pngwio.c pngwrite.c pngwtran.c pngwutil.c
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# Library name:
|
# Library name:
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Library name:
|
# Library name:
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.20rc3
|
PNGMIN = 1.2.20rc4
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# Shared library names:
|
# Shared library names:
|
||||||
@ -69,7 +69,7 @@ DM=$(DESTDIR)$(MANPATH)
|
|||||||
|
|
||||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
pngwtran.o pngmem.o pngerror.o pngpread.o pnggccrd.o
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
@ -232,7 +232,6 @@ pngwio.o pngwio.pic.o: png.h pngconf.h
|
|||||||
pngmem.o pngmem.pic.o: png.h pngconf.h
|
pngmem.o pngmem.pic.o: png.h pngconf.h
|
||||||
pngset.o pngset.pic.o: png.h pngconf.h
|
pngset.o pngset.pic.o: png.h pngconf.h
|
||||||
pngget.o pngget.pic.o: png.h pngconf.h
|
pngget.o pngget.pic.o: png.h pngconf.h
|
||||||
pnggccrd.o pnggccrd.pic.o: png.h pngconf.h
|
|
||||||
pngread.o pngread.pic.o: png.h pngconf.h
|
pngread.o pngread.pic.o: png.h pngconf.h
|
||||||
pngrtran.o pngrtran.pic.o: png.h pngconf.h
|
pngrtran.o pngrtran.pic.o: png.h pngconf.h
|
||||||
pngrutil.o pngrutil.pic.o: png.h pngconf.h
|
pngrutil.o pngrutil.pic.o: png.h pngconf.h
|
||||||
|
@ -26,8 +26,7 @@ O=.obj
|
|||||||
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
||||||
OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O)
|
OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O)
|
||||||
OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
|
OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
|
||||||
OBJS4 = pngvcrd$(O)
|
OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
|
||||||
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
|
|
||||||
|
|
||||||
# Targets
|
# Targets
|
||||||
all: libpng.lib
|
all: libpng.lib
|
||||||
@ -80,9 +79,6 @@ pngwtran$(O): png.h pngconf.h
|
|||||||
pngwutil$(O): png.h pngconf.h
|
pngwutil$(O): png.h pngconf.h
|
||||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||||
|
|
||||||
pngvcrd$(O): png.h pngconf.h
|
|
||||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
|
||||||
|
|
||||||
libpng.lib: $(OBJS)
|
libpng.lib: $(OBJS)
|
||||||
-$(RM) $@
|
-$(RM) $@
|
||||||
$(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
|
$(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
; PNG.LIB module definition file for OS/2
|
; PNG.LIB module definition file for OS/2
|
||||||
;----------------------------------------
|
;----------------------------------------
|
||||||
|
|
||||||
; Version 1.2.20rc3
|
; Version 1.2.20rc4
|
||||||
|
|
||||||
LIBRARY PNG
|
LIBRARY PNG
|
||||||
DESCRIPTION "PNG image compression library for OS/2"
|
DESCRIPTION "PNG image compression library for OS/2"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
LIBRARY
|
LIBRARY
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
;Version 1.2.20rc3
|
;Version 1.2.20rc4
|
||||||
png_build_grayscale_palette @1
|
png_build_grayscale_palette @1
|
||||||
png_check_sig @2
|
png_check_sig @2
|
||||||
png_chunk_error @3
|
png_chunk_error @3
|
||||||
|
Reference in New Issue
Block a user