mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Compare commits
7 Commits
v1.0.8beta
...
v1.0.9beta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d56aca7104 | ||
|
|
f5ed0e130c | ||
|
|
fbbb5ecb52 | ||
|
|
5e5c1e1f56 | ||
|
|
32fc5ceb91 | ||
|
|
4766a244b2 | ||
|
|
a4d54bdb4a |
41
ANNOUNCE
41
ANNOUNCE
@@ -1,20 +1,37 @@
|
|||||||
|
|
||||||
Libpng 1.0.8beta3 - July 11, 2000
|
Libpng 1.0.9beta3 - November 23, 2000
|
||||||
|
|
||||||
This is a public release of libpng, intended for use in production codes.
|
This is a public release of libpng, intended for use in production codes.
|
||||||
|
|
||||||
Changes since the last public release (1.0.7):
|
Changes since the last public release (1.0.8):
|
||||||
|
|
||||||
Added png_free(png_ptr, key) two places in pngpread.c to stop memory leaks.
|
Fixed typo in scripts/makefile.hpux
|
||||||
Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in pngrutil.c and
|
Fixed seqence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
|
||||||
pngwutil.c.
|
Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser)
|
||||||
Changed PNG_EXPORT_VAR to use PNG_IMPEXP, in pngconf.h.
|
Changed "cdrom.com" in documentation to "libpng.org"
|
||||||
Removed unused "#include <assert.h>" from png.c
|
Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg).
|
||||||
Added WindowsCE support.
|
Changed type of "params" from voidp to png_voidp in png_read|write_png().
|
||||||
Revised pnggccrd.c to work with gcc-2.95.2 and in the Cygwin environment.
|
Added MNG_EXTENSIONS_SUPPORTED macro and support for some proposed MNG
|
||||||
Only set the PNG_FLAG_FREE_TRNS or PNG_FREE_TRNS flag in png_handle_tRNS()
|
features, for testing purposes.
|
||||||
for indexed-color input files to avoid potential double-freeing trans array
|
Make sure PNGAPI and PNG_IMPEXP are defined in pngconf.h.
|
||||||
under some unusual conditions; problem was introduced in version 1.0.7.
|
Revised the 3 instances of WRITEFILE in pngtest.c.
|
||||||
|
Updated png.rc in dll/msvc project
|
||||||
|
Revised makefile.dec to define and use LIBPATH and INCPATH
|
||||||
|
Increased size of global png_libpng_ver[] array from 12 to 18 chars.
|
||||||
|
Made global png_libpng_ver[], png_sig[] and png_pass_*[] arrays const.
|
||||||
|
Removed duplicate png_crc_finish() from png_handle_bKGD() function.
|
||||||
|
Added a warning when application calls png_read_update_info() multiple times.
|
||||||
|
Revised makefile.cygwin
|
||||||
|
Fixed bugs in iCCP support in pngrutil.c and pngwutil.c.
|
||||||
|
Replaced png_set_empty_plte_permitted() with png_permit_mng_features().
|
||||||
|
Relocated "msvc" and "wince" project subdirectories into "projects"
|
||||||
|
subdirectory and added projects/borland project subdirectory.
|
||||||
|
Set VS_FF_PRERELEASE and VS_FF_PATCHED flags in msvc/png.rc when appropriate.
|
||||||
|
Add error message in png_set_compression_buffer_size() when malloc fails.
|
||||||
|
Revised PNG_LIBPNG_BUILD_TYPE macro in png.h, used in the msvc project.
|
||||||
|
Ifdef'ed out the png_flush() in pngwrite.c that crashes some applications
|
||||||
|
that don't set png_output_flush_fn.
|
||||||
|
Added makefile.macosx and makefile.aix to scripts directory.
|
||||||
|
|
||||||
Send comments/corrections/commendations to
|
Send comments/corrections/commendations to
|
||||||
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
||||||
|
|||||||
47
CHANGES
47
CHANGES
@@ -379,7 +379,7 @@ version 1.0.2a [December 30, 1998]
|
|||||||
Changed "ln -sf" to "ln -s -f" in makefile.s2x, makefile.lnx, and makefile.sco.
|
Changed "ln -sf" to "ln -s -f" in makefile.s2x, makefile.lnx, and makefile.sco.
|
||||||
Removed lines after Dynamic Dependencies" in makefile.aco .
|
Removed lines after Dynamic Dependencies" in makefile.aco .
|
||||||
Revised makefile.dec to make a shared library (Jeremie Petit).
|
Revised makefile.dec to make a shared library (Jeremie Petit).
|
||||||
Removed trailing blanks from all files.
|
Removed trailing blanks from all files.
|
||||||
version 1.0.2a [January 6, 1999]
|
version 1.0.2a [January 6, 1999]
|
||||||
Removed misplaced #endif and #ifdef PNG_NO_EXTERN near the end of png.h
|
Removed misplaced #endif and #ifdef PNG_NO_EXTERN near the end of png.h
|
||||||
Added "if" tests to silence complaints about unused png_ptr in png.h and png.c
|
Added "if" tests to silence complaints about unused png_ptr in png.h and png.c
|
||||||
@@ -718,7 +718,7 @@ version 1.0.6i [May 2, 2000]
|
|||||||
the high-level interface, and unknown chunks support (all new in 1.0.6).
|
the high-level interface, and unknown chunks support (all new in 1.0.6).
|
||||||
This was necessary because of old applications that allocate the structs
|
This was necessary because of old applications that allocate the structs
|
||||||
directly as authors were instructed to do in libpng-0.88 and earlier,
|
directly as authors were instructed to do in libpng-0.88 and earlier,
|
||||||
instead of using png_create_*().
|
instead of using png_create_*().
|
||||||
Added modes PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT which
|
Added modes PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT which
|
||||||
can be used to detect codes that directly allocate the structs, and
|
can be used to detect codes that directly allocate the structs, and
|
||||||
code to check these modes in png_read_init() and png_write_init() and
|
code to check these modes in png_read_init() and png_write_init() and
|
||||||
@@ -778,7 +778,8 @@ version 1.0.7beta16 [June 4, 2000]
|
|||||||
Added a check for overlength PLTE chunk in pngrutil.c.
|
Added a check for overlength PLTE chunk in pngrutil.c.
|
||||||
Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
|
Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
|
||||||
indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
|
indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
|
||||||
Added a warning in png_decompress_chunk() when it runs out of data.
|
Added a warning in png_decompress_chunk() when it runs out of data, e.g.
|
||||||
|
when it tries to read an erroneous PhotoShop iCCP chunk.
|
||||||
Added PNG_USE_DLL macro.
|
Added PNG_USE_DLL macro.
|
||||||
Revised the copyright/disclaimer/license notice.
|
Revised the copyright/disclaimer/license notice.
|
||||||
Added contrib/msvctest directory
|
Added contrib/msvctest directory
|
||||||
@@ -797,7 +798,7 @@ version 1.0.7rc2 [June 28, 2000]
|
|||||||
Fixed "DJBPP" typo in pnggccrd.c introduced in beta18.
|
Fixed "DJBPP" typo in pnggccrd.c introduced in beta18.
|
||||||
version 1.0.7 [July 1, 2000]
|
version 1.0.7 [July 1, 2000]
|
||||||
Revised the definition of "trans_values" in libpng.3/libpng.txt
|
Revised the definition of "trans_values" in libpng.3/libpng.txt
|
||||||
version 1.0.8beta3 [July 11, 2000]
|
version 1.0.9beta3 [November 23, 2000]
|
||||||
version 1.0.8beta1 [July 8, 2000]
|
version 1.0.8beta1 [July 8, 2000]
|
||||||
Added png_free(png_ptr, key) two places in pngpread.c to stop memory leaks.
|
Added png_free(png_ptr, key) two places in pngpread.c to stop memory leaks.
|
||||||
Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in pngrutil.c and
|
Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in pngrutil.c and
|
||||||
@@ -814,6 +815,44 @@ version 1.0.8beta3 [July 11, 2000]
|
|||||||
for indexed-color input files to avoid potential double-freeing trans array
|
for indexed-color input files to avoid potential double-freeing trans array
|
||||||
under some unusual conditions; problem was introduced in version 1.0.6f.
|
under some unusual conditions; problem was introduced in version 1.0.6f.
|
||||||
Further revisions to pngtest.c and files in the wince subdirectory.
|
Further revisions to pngtest.c and files in the wince subdirectory.
|
||||||
|
version 1.0.8beta4 [July 14, 2000]
|
||||||
|
Added the files pngbar.png and pngbar.jpg to the distribution.
|
||||||
|
Added makefile.cygwin, and cygwin support in pngconf.h
|
||||||
|
Added PNG_NO_ZALLOC_ZERO macro (makes png_zalloc skip zeroing memory)
|
||||||
|
version 1.0.8rc1 [July 16, 2000]
|
||||||
|
Revised png_debug() macros and statements to eliminate compiler warnings.
|
||||||
|
version 1.0.8 [July 24, 2000]
|
||||||
|
Added png_flush() in pngwrite.c, after png_write_IEND().
|
||||||
|
Updated makefile.hpux to build a shared library.
|
||||||
|
version 1.0.9beta1 [November 10, 2000]
|
||||||
|
Fixed typo in scripts/makefile.hpux
|
||||||
|
Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser)
|
||||||
|
Fixed seqence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
|
||||||
|
Changed "cdrom.com" in documentation to "libpng.org"
|
||||||
|
Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg).
|
||||||
|
Changed type of "params" from voidp to png_voidp in png_read|write_png().
|
||||||
|
Make sure PNGAPI and PNG_IMPEXP are defined in pngconf.h.
|
||||||
|
Revised the 3 instances of WRITEFILE in pngtest.c.
|
||||||
|
Relocated "msvc" and "wince" project subdirectories into "dll" subdirectory.
|
||||||
|
Updated png.rc in dll/msvc project
|
||||||
|
Revised makefile.dec to define and use LIBPATH and INCPATH
|
||||||
|
Increased size of global png_libpng_ver[] array from 12 to 18 chars.
|
||||||
|
Made global png_libpng_ver[], png_sig[] and png_pass_*[] arrays const.
|
||||||
|
Removed duplicate png_crc_finish() from png_handle_bKGD() function.
|
||||||
|
Added a warning when application calls png_read_update_info() multiple times.
|
||||||
|
Revised makefile.cygwin
|
||||||
|
Fixed bugs in iCCP support in pngrutil.c and pngwutil.c.
|
||||||
|
Replaced png_set_empty_plte_permitted() with png_permit_mng_features().
|
||||||
|
version 1.0.9beta2 [November 19, 2000]
|
||||||
|
Renamed the "dll" subdirectory "projects".
|
||||||
|
Added borland project files to "projects" subdirectory.
|
||||||
|
Set VS_FF_PRERELEASE and VS_FF_PATCHED flags in msvc/png.rc when appropriate.
|
||||||
|
Add error message in png_set_compression_buffer_size() when malloc fails.
|
||||||
|
version 1.0.9beta3 [November 23, 2000]
|
||||||
|
Revised PNG_LIBPNG_BUILD_TYPE macro in png.h, used in the msvc project.
|
||||||
|
Ifdef'ed out the png_flush() in pngwrite.c that crashes some applications
|
||||||
|
that don't set png_output_flush_fn.
|
||||||
|
Added makefile.macosx and makefile.aix to scripts directory.
|
||||||
|
|
||||||
Send comments/corrections/commendations to
|
Send comments/corrections/commendations to
|
||||||
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
||||||
|
|||||||
27
INSTALL
27
INSTALL
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Installing libpng version 1.0.8beta3 - July 11, 2000
|
Installing libpng version 1.0.9beta3 - November 23, 2000
|
||||||
|
|
||||||
Before installing libpng, you must first install zlib. zlib
|
Before installing libpng, you must first install zlib. zlib
|
||||||
can usually be found wherever you got libpng. zlib can be
|
can usually be found wherever you got libpng. zlib can be
|
||||||
@@ -10,7 +10,7 @@ zlib.h and zconf.h include files that correspond to the
|
|||||||
version of zlib that's installed.
|
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.0.8beta3" or "lpng107" and "zlib-1.1.3"
|
might be called "libpng-1.0.9beta3" or "lpng109" and "zlib-1.1.3"
|
||||||
or "zlib113") so that you have directories called "zlib" and "libpng".
|
or "zlib113") so that you have directories called "zlib" and "libpng".
|
||||||
|
|
||||||
Your directory structure should look like this:
|
Your directory structure should look like this:
|
||||||
@@ -27,11 +27,13 @@ Your directory structure should look like this:
|
|||||||
pngminus
|
pngminus
|
||||||
pngsuite
|
pngsuite
|
||||||
visupng
|
visupng
|
||||||
msvc
|
projects
|
||||||
|
borland
|
||||||
|
msvc
|
||||||
|
wince
|
||||||
scripts
|
scripts
|
||||||
makefile.*
|
makefile.*
|
||||||
pngtest.png
|
pngtest.png
|
||||||
wince
|
|
||||||
etc.
|
etc.
|
||||||
zlib
|
zlib
|
||||||
README
|
README
|
||||||
@@ -51,28 +53,31 @@ instructions in the README* files.
|
|||||||
|
|
||||||
Else enter the zlib directory and follow the instructions in zlib/README,
|
Else enter the zlib directory and follow the instructions in zlib/README,
|
||||||
then come back here and choose the appropriate makefile.sys in the scripts
|
then come back here and choose the appropriate makefile.sys in the scripts
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
The files that are presently available in the scripts directory
|
The files that are presently available in the scripts directory
|
||||||
include
|
include
|
||||||
|
|
||||||
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
||||||
makefile.linux => Linux/ELF makefile (gcc, creates libpng.so.2.1.0.8beta3)
|
makefile.linux => Linux/ELF makefile (gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.gcmmx => Linux/ELF makefile (gcc, creates libpng.so.2.1.0.8beta3,
|
makefile.gcmmx => Linux/ELF makefile (gcc, creates libpng.so.2.1.0.9beta3,
|
||||||
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
|
||||||
ansi2knr (Requires ansi2knr.c from
|
ansi2knr (Requires ansi2knr.c from
|
||||||
ftp://ftp.cs.wisc.edu/ghost)
|
ftp://ftp.cs.wisc.edu/ghost)
|
||||||
|
makefile.aix => AIX makefile
|
||||||
|
makefile.cygwin => Cygwin/gcc makefile
|
||||||
makefile.dec => DEC Alpha UNIX makefile
|
makefile.dec => DEC Alpha UNIX makefile
|
||||||
makefile.hpux => HPUX (10.20 and 11.00) makefile
|
makefile.hpux => HPUX (10.20 and 11.00) makefile
|
||||||
makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static)
|
makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static)
|
||||||
makefile.intel => Intel C/C++ version 4.0 and later
|
makefile.intel => Intel C/C++ version 4.0 and later
|
||||||
libpng.icc => Project file for IBM VisualAge/C++ version 4.0 or later
|
libpng.icc => Project file for IBM VisualAge/C++ version 4.0 or later
|
||||||
|
makefile.macosx => MACOS X 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, creates libpng.so.2.1.0.8beta3)
|
makefile.sggcc => Silicon Graphics (gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile (gcc, creates libpng.so.2.1.0.8beta3)
|
makefile.solaris => Solaris 2.X makefile (gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
makefile.mips => MIPS makefile
|
makefile.mips => MIPS makefile
|
||||||
makefile.acorn => Acorn makefile
|
makefile.acorn => Acorn makefile
|
||||||
@@ -125,5 +130,5 @@ put the library in its final resting place (if you want to
|
|||||||
do that, run "make install" in the zlib directory first if necessary).
|
do that, run "make install" in the zlib directory first if necessary).
|
||||||
|
|
||||||
Further information can be found in the README and libpng.txt
|
Further information can be found in the README and libpng.txt
|
||||||
files, in the individual makefiles, in png.h, and the manual pages
|
files, in the individual makefiles, in png.h, in the README files in
|
||||||
libpng.3 and png.5.
|
subdirectories of the LIB directory, and the manual pages libpng.3 and png.5.
|
||||||
|
|||||||
62
KNOWNBUG
62
KNOWNBUG
@@ -1,48 +1,32 @@
|
|||||||
|
|
||||||
Known bugs and suggested enhancements in libpng-1.0.7
|
Known bugs and suggested enhancements in libpng-1.0.8
|
||||||
|
|
||||||
1. July 2, 2000 -- BUG -- pnggccrd.c
|
0: November 3, 2000 -- BUG -- incorrect iCCP chunk is written
|
||||||
|
|
||||||
Some programs compiled with PNG_USE_PNGGCCRD crash in pnggccrd.c.
|
The compression_type byte in the iCCP chunk written by libpng is
|
||||||
Also, pnggccrd.c will not compile under gcc-2.95-2.
|
usually incorrect.
|
||||||
|
|
||||||
STATUS: Under investigation. Experts on MMX assembler code are
|
Status: Fixed in libpng-1.0.9beta1
|
||||||
invited to help with the debugging. Note that pngvcrd.c works fine.
|
|
||||||
|
|
||||||
2. July 3, 2000 -- BUG -- MEMORY LEAK
|
1. October 12, 2000 -- BUG -- pngtest fails
|
||||||
|
|
||||||
There is a memory leak in pngpread.c; it doesn't free "key".
|
The three WRITEFILE calls in pngtest.c are incorrect. They must be
|
||||||
|
changed to read
|
||||||
|
|
||||||
STATUS: Fixed in libpng-1.0.8beta1, by adding.
|
WRITEFILE((png_FILE_p)png_ptr->io_ptr, data, length, check);
|
||||||
|
WRITEFILE(io_ptr, near_data, length, check);
|
||||||
|
WRITEFILE(io_ptr, buf, written, err);
|
||||||
|
|
||||||
png_free(png_ptr, text_ptr);
|
2. August 28, 2000 -- BUG -- pnggccrd.c
|
||||||
|
|
||||||
after lines 1221 and 1038 in pngpread.c
|
The interlacing() function has still not been fully converted and
|
||||||
|
will not compile under gcc-2.95.2; it is currently ifdef'ed out.
|
||||||
|
|
||||||
3. July 3, 2000 -- BUG -- PNG_EXPORT_VAR
|
STATUS: Fixed in libpng-1.0.9. There were also bugs in pngvcrd.c
|
||||||
|
which have been fixed. The replacement files are available at the
|
||||||
|
PNG web site (http://www.libpng.org/pub/png).
|
||||||
|
|
||||||
The definition of PNG_EXPORT_VAR, in pngconf.h, should be
|
3. March 15, 1998 -- OPTIMIZATION -- Kevin Bracey
|
||||||
# define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type
|
|
||||||
|
|
||||||
STATUS: Fixed in libpng-1.0.8beta1.
|
|
||||||
|
|
||||||
4. July 3, 2000 -- BUG -- PNG_NO_STDIO
|
|
||||||
|
|
||||||
Several places in pngrutil.c and pngwutil.c, there are printf statements
|
|
||||||
inside PNG_NO_STDIO blocks (should be PNG_NO_CONSOLE_IO)
|
|
||||||
|
|
||||||
STATUS: Fixed in libpng-1.0.8beta1.
|
|
||||||
|
|
||||||
5. July 3, 2000 -- ENHANCEMENT -- WindowsCE support
|
|
||||||
|
|
||||||
Libpng-1.0.7 does not support WindowsCE.
|
|
||||||
|
|
||||||
STATUS: Libpng-1.0.8 and libpng-2.0.0 will support WindowsCE. A
|
|
||||||
new typedef, png_file_p, will be added which is normally FILE * but
|
|
||||||
will be HANDLE if libpng is being built for WindowsCE. Other patches
|
|
||||||
required for WindowsCE support have been provided and will be applied.
|
|
||||||
|
|
||||||
6. March 15, 1998 -- OPTIMIZATION -- Kevin Bracey
|
|
||||||
|
|
||||||
Loops need to be optimized everywhere
|
Loops need to be optimized everywhere
|
||||||
|
|
||||||
@@ -54,10 +38,10 @@ Known bugs and suggested enhancements in libpng-1.0.7
|
|||||||
Question whether i-- or --i is better.
|
Question whether i-- or --i is better.
|
||||||
|
|
||||||
STATUS: Under investigation, postponed until after
|
STATUS: Under investigation, postponed until after
|
||||||
libpng-1.1.0. About 160 loops will be turned around
|
libpng-2.0.0. About 160 loops will be turned around
|
||||||
in libpng-2.0.x betaxx, for testing.
|
in libpng-2.0.x betaxx, for testing.
|
||||||
|
|
||||||
7. July 4, 1998 -- ENHANCEMENT -- Glenn R-P
|
4. July 4, 1998 -- ENHANCEMENT -- Glenn R-P
|
||||||
|
|
||||||
libpng-1.0.5 and earlier transform colors to gamma=1.0 space for
|
libpng-1.0.5 and earlier transform colors to gamma=1.0 space for
|
||||||
merging with background, and then back to the image's gamma. The
|
merging with background, and then back to the image's gamma. The
|
||||||
@@ -69,12 +53,12 @@ Known bugs and suggested enhancements in libpng-1.0.7
|
|||||||
|
|
||||||
STATUS: under development.
|
STATUS: under development.
|
||||||
|
|
||||||
8. September 1999 -- ENHANCEMENT --
|
5. September 1999 -- ENHANCEMENT --
|
||||||
|
|
||||||
It should be possible to use libpng without floating-point aritmetic.
|
It should be possible to use libpng without floating-point arithmetic.
|
||||||
|
|
||||||
STATUS: Under investigation, implementation postponed until after
|
STATUS: Under investigation, implementation postponed until after
|
||||||
libpng-1.0.7.
|
libpng-2.0.0.
|
||||||
|
|
||||||
Much of this was completed in libpng-1.0.6, but gamma compensation
|
Much of this was completed in libpng-1.0.6, but gamma compensation
|
||||||
is not yet done in fixed-point arithmetic.
|
is not yet done in fixed-point arithmetic.
|
||||||
|
|||||||
17
LICENSE
17
LICENSE
@@ -1,11 +1,16 @@
|
|||||||
|
|
||||||
|
This copy of the libpng notices is provided for your convenience. In case of
|
||||||
|
any discrepancy between this copy and the notices in the file png.h that is
|
||||||
|
included in the libpng distribution, the latter shall prevail.
|
||||||
|
|
||||||
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
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 version 1.0.8beta3, July 11, 2000 is Copyright (c) 2000 Glenn Randers-Pehrson
|
libpng versions 1.0.7, July 1, 2000, through 1.0.9beta3, November 23, 2000, are
|
||||||
Distributed according to the same disclaimer and license as libpng-1.0.6
|
Copyright (c) 2000 Glenn Randers-Pehrson
|
||||||
|
and are distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
with the following individuals added to the list of Contributing Authors
|
with the following individuals added to the list of Contributing Authors
|
||||||
|
|
||||||
Simon-Pierre Cadieux
|
Simon-Pierre Cadieux
|
||||||
@@ -22,8 +27,8 @@ and with the following additions to the disclaimer:
|
|||||||
the user.
|
the user.
|
||||||
|
|
||||||
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
|
libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
|
||||||
Copyright (c) 1998, 1999 Glenn Randers-Pehrson
|
Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are
|
||||||
Distributed according to the same disclaimer and license as libpng-0.96,
|
distributed according to the same disclaimer and license as libpng-0.96,
|
||||||
with the following individuals added to the list of Contributing Authors:
|
with the following individuals added to the list of Contributing Authors:
|
||||||
|
|
||||||
Tom Lane
|
Tom Lane
|
||||||
@@ -87,11 +92,11 @@ boxes and the like:
|
|||||||
printf("%s",png_get_copyright(NULL));
|
printf("%s",png_get_copyright(NULL));
|
||||||
|
|
||||||
Also, the PNG logo (in PNG format, of course) is supplied in the
|
Also, the PNG logo (in PNG format, of course) is supplied in the
|
||||||
file "pngnow.png".
|
files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
|
||||||
|
|
||||||
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
|
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
|
||||||
certification mark of the Open Source Initiative.
|
certification mark of the Open Source Initiative.
|
||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
randeg@alum.rpi.edu
|
randeg@alum.rpi.edu
|
||||||
July 11, 2000
|
November 23, 2000
|
||||||
|
|||||||
27
README
27
README
@@ -1,4 +1,4 @@
|
|||||||
README for libpng 1.0.8beta3 - July 11, 2000 (shared library 2.1)
|
README for libpng 1.0.9beta3 - November 23, 2000 (shared library 2.1)
|
||||||
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.
|
||||||
@@ -148,7 +148,8 @@ Files in this distribution:
|
|||||||
pngerror.c => Error/warning message I/O functions
|
pngerror.c => Error/warning message I/O functions
|
||||||
pngget.c => Functions for retrieving info from struct
|
pngget.c => Functions for retrieving info from struct
|
||||||
pngmem.c => Memory handling functions
|
pngmem.c => Memory handling functions
|
||||||
pngnow.png => PNG logo
|
pngbar.png => PNG logo, 88x31
|
||||||
|
pngnow.png => PNG logo, 98x31
|
||||||
pngpread.c => Progressive reading functions
|
pngpread.c => Progressive reading functions
|
||||||
pngread.c => Read data/helper high-level functions
|
pngread.c => Read data/helper high-level functions
|
||||||
pngrio.c => Lowest-level data read I/O functions
|
pngrio.c => Lowest-level data read I/O functions
|
||||||
@@ -170,30 +171,38 @@ Files in this distribution:
|
|||||||
pngminus => Simple pnm2png and png2pnm programs
|
pngminus => Simple pnm2png and png2pnm programs
|
||||||
pngsuite => Test images
|
pngsuite => Test images
|
||||||
visupng => Contains a MSVC workspace for VisualPng
|
visupng => Contains a MSVC workspace for VisualPng
|
||||||
msvc => Contains a Microsoft Visual C++ (MSVC) workspace
|
projects => Contains project files and workspaces for building DLL
|
||||||
for building libpng and zlib
|
borland => Contains a Borland workspace for building libpng
|
||||||
|
and zlib
|
||||||
|
msvc => Contains a Microsoft Visual C++ (MSVC) workspace
|
||||||
|
for building libpng and zlib
|
||||||
|
wince => Contains a Microsoft Visual C++ (Windows CD Toolkit)
|
||||||
|
workspace for building libpng and zlib on WindowsCE
|
||||||
scripts => Directory containing scripts for building libpng:
|
scripts => Directory containing scripts for building libpng:
|
||||||
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.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
(gcc, creates libpng.so.2.1.0.8beta3)
|
(gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.gcmmx => Linux/ELF makefile (gcc, creates
|
makefile.gcmmx => Linux/ELF makefile (gcc, creates
|
||||||
libpng.so.2.1.0.8beta3, uses assembler code
|
libpng.so.2.1.0.9beta3, uses assembler code
|
||||||
tuned for Intel MMX platform)
|
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
|
||||||
ansi2knr (Requires ansi2knr.c from
|
ansi2knr (Requires ansi2knr.c from
|
||||||
ftp://ftp.cs.wisc.edu/ghost)
|
ftp://ftp.cs.wisc.edu/ghost)
|
||||||
|
makefile.aix => AIX makefile
|
||||||
|
makefile.cygwin => Cygwin/gcc makefile
|
||||||
makefile.dec => DEC Alpha UNIX makefile
|
makefile.dec => DEC Alpha UNIX makefile
|
||||||
makefile.hpux => HPUX (10.20 and 11.00) makefile
|
makefile.hpux => HPUX (10.20 and 11.00) makefile
|
||||||
makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static)
|
makefile.ibmc => IBM C/C++ version 3.x for Win32 and OS/2 (static)
|
||||||
makefile.intel => Intel C/C++ version 4.0 and later
|
makefile.intel => Intel C/C++ version 4.0 and later
|
||||||
libpng.icc => Project file, IBM VisualAge/C++ 4.0 or later
|
libpng.icc => Project file, IBM VisualAge/C++ 4.0 or later
|
||||||
|
makefile.macosx => MACOS X Makefile
|
||||||
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
||||||
makefile.sggcc => Silicon Graphics (gcc, creates libpng.so.2.1.0.8beta3)
|
makefile.sggcc => Silicon Graphics (gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile
|
makefile.solaris => Solaris 2.X makefile
|
||||||
(gcc, creates libpng.so.2.1.0.8beta3)
|
(gcc, creates libpng.so.2.1.0.9beta3)
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
makefile.mips => MIPS makefile
|
makefile.mips => MIPS makefile
|
||||||
makefile.acorn => Acorn makefile
|
makefile.acorn => Acorn makefile
|
||||||
@@ -220,8 +229,6 @@ Files in this distribution:
|
|||||||
makevms.com => VMS build script
|
makevms.com => VMS build script
|
||||||
pngdef.pas => Defines for a png32bd.dll with Borland C++ 4.5
|
pngdef.pas => Defines for a png32bd.dll with Borland C++ 4.5
|
||||||
SCOPTIONS.ppc => Used with smakefile.ppc
|
SCOPTIONS.ppc => Used with smakefile.ppc
|
||||||
wince => Contains a Microsoft Visual C++ (Windows CD Toolkit)
|
|
||||||
workspace for building libpng and zlib on WindowsCE
|
|
||||||
|
|
||||||
Good luck, and happy coding.
|
Good luck, and happy coding.
|
||||||
|
|
||||||
|
|||||||
1
TODO
1
TODO
@@ -17,3 +17,4 @@ Better filter selection
|
|||||||
(counting huffman bits/precompression? filter inertia? filter costs?).
|
(counting huffman bits/precompression? filter inertia? filter costs?).
|
||||||
Histogram creation.
|
Histogram creation.
|
||||||
Text conversion between different code pages (Latin-1 -> Mac and DOS).
|
Text conversion between different code pages (Latin-1 -> Mac and DOS).
|
||||||
|
Should we always malloc 2^bit_depth PLTE/tRNS/hIST entries for safety?
|
||||||
|
|||||||
4
Y2KINFO
4
Y2KINFO
@@ -1,13 +1,13 @@
|
|||||||
Y2K compliance in libpng:
|
Y2K compliance in libpng:
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
July 11, 2000
|
November 23, 2000
|
||||||
|
|
||||||
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.0.8beta3 are Y2K compliant. It is my belief that earlier
|
upward through 1.0.9beta3 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
|
||||||
|
|||||||
2
configure
vendored
2
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
echo "
|
echo "
|
||||||
There is no \"configure\" script for Libpng-1.0.8beta3. Instead, please
|
There is no \"configure\" script for Libpng-1.0.9beta3. Instead, please
|
||||||
copy the appropriate makefile for your system from the \"scripts\"
|
copy the appropriate makefile for your system from the \"scripts\"
|
||||||
directory. Read the INSTALL file for more details.
|
directory. Read the INSTALL file for more details.
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -7,12 +7,25 @@ $!
|
|||||||
$!
|
$!
|
||||||
$! Set locations where zlib and libpng sources live.
|
$! Set locations where zlib and libpng sources live.
|
||||||
$!
|
$!
|
||||||
$ zpath = "[-.zlib]"
|
$ zpath = ""
|
||||||
$ pngpath = "[-.libpng]"
|
$ pngpath = ""
|
||||||
|
$ if f$search("[-.zlib]zlib.h").nes."" then zpath = "[-.zlib]"
|
||||||
|
$ if f$search("[-.libpng]png.h").nes."" then pngpath = "[-.libpng]"
|
||||||
$!
|
$!
|
||||||
$! USE THESE INSTEAD if building from libpng's [.contrib.gregbook] directory:
|
$ if f$search("[---.zlib]zlib.h").nes."" then zpath = "[---.zlib]"
|
||||||
$! zpath = "[---.zlib]"
|
$ if f$search("[--]png.h").nes."" then pngpath = "[--]"
|
||||||
$! pngpath = "[--]"
|
$!
|
||||||
|
$ if zpath .eqs. ""
|
||||||
|
$ then
|
||||||
|
$ write sys$output "Zlib include not found. Exiting..."
|
||||||
|
$ exit 2
|
||||||
|
$ endif
|
||||||
|
$!
|
||||||
|
$ if pngpath .eqs. ""
|
||||||
|
$ then
|
||||||
|
$ write sys$output "Libpng include not found. Exiting..."
|
||||||
|
$ exit 2
|
||||||
|
$ endif
|
||||||
$!
|
$!
|
||||||
$! Look for the compiler used.
|
$! Look for the compiler used.
|
||||||
$!
|
$!
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
Microsoft Developer Studio Build File, Format Version 6.00 for
|
Microsoft Developer Studio Build File, Format Version 6.00 for
|
||||||
msvctest
|
msvctest
|
||||||
|
|
||||||
Assumes that libpng DLLs and LIBs are in ..\..\msvc\win32\libpng
|
Assumes that libpng DLLs and LIBs are in ..\..\projects\msvc\win32\libpng
|
||||||
Assumes that zlib DLLs and LIBs are in ..\..\msvc\win32\zlib
|
Assumes that zlib DLLs and LIBs are in ..\..\projects\msvc\win32\zlib
|
||||||
|
|
||||||
To build:
|
To build:
|
||||||
|
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\dll\libpng1.lib /nologo /subsystem:console /machine:I386
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\dll\libpng1.lib /nologo /subsystem:console /machine:I386
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll
|
OutDir=.\dll
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=[Run Test]
|
PostBuild_Desc=[Run Test]
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll;..\..\msvc\win32\zlib\dll; $(outdir)\msvctest.exe ..\..\pngtest.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll;..\..\projects\msvc\win32\zlib\dll; $(outdir)\msvctest.exe ..\..\pngtest.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "msvctest - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "msvctest - Win32 Debug DLL"
|
||||||
@@ -84,12 +84,12 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\dll_dbg\libpng1d.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\dll_dbg\libpng1d.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll_dbg
|
OutDir=.\dll_dbg
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=[Run Test]
|
PostBuild_Desc=[Run Test]
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll_dbg;..\..\msvc\win32\zlib\dll_dbg; $(outdir)\msvctest.exe ..\..\pngtest.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll_dbg;..\..\projects\msvc\win32\zlib\dll_dbg; $(outdir)\msvctest.exe ..\..\pngtest.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "msvctest - Win32 ASM DLL"
|
!ELSEIF "$(CFG)" == "msvctest - Win32 ASM DLL"
|
||||||
@@ -114,12 +114,12 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\dll_asm\libpng1a.lib /nologo /subsystem:console /machine:I386
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\dll_asm\libpng1a.lib /nologo /subsystem:console /machine:I386
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll_asm
|
OutDir=.\dll_asm
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=[Run Test]
|
PostBuild_Desc=[Run Test]
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll_asm;..\..\msvc\win32\zlib\dll_asm; $(outdir)\msvctest.exe ..\..\pngtest.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll_asm;..\..\projects\msvc\win32\zlib\dll_asm; $(outdir)\msvctest.exe ..\..\pngtest.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "msvctest - Win32 Debug ASM DLL"
|
!ELSEIF "$(CFG)" == "msvctest - Win32 Debug ASM DLL"
|
||||||
@@ -144,12 +144,12 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\dll_dbga\libpng1b.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\dll_dbga\libpng1b.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll_dbga
|
OutDir=.\dll_dbga
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=[Run Test]
|
PostBuild_Desc=[Run Test]
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll_dbga;..\..\msvc\win32\zlib\dll_dbga; $(outdir)\msvctest.exe ..\..\pngtest.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll_dbga;..\..\projects\msvc\win32\zlib\dll_dbga; $(outdir)\msvctest.exe ..\..\pngtest.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "msvctest - Win32 LIB"
|
!ELSEIF "$(CFG)" == "msvctest - Win32 LIB"
|
||||||
@@ -174,7 +174,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
# ADD BASE LINK32 /nologo /subsystem:console /machine:I386
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\lib\libpng.lib /nologo /subsystem:console /machine:I386
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\lib\libpng.lib /nologo /subsystem:console /machine:I386
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\lib
|
OutDir=.\lib
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
@@ -204,7 +204,7 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD BASE LINK32 /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# ADD LINK32 ..\..\msvc\win32\libpng\lib_dbg\libpng.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
# ADD LINK32 ..\..\projects\msvc\win32\libpng\lib_dbg\libpng.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\lib_dbg
|
OutDir=.\lib_dbg
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ $ call make pnm2png.exe -
|
|||||||
$ write sys$output "Building png2pnm..."
|
$ write sys$output "Building png2pnm..."
|
||||||
$ CALL MAKE png2pnm.OBJ "cc ''CCOPT' png2pnm" -
|
$ CALL MAKE png2pnm.OBJ "cc ''CCOPT' png2pnm" -
|
||||||
png2pnm.c
|
png2pnm.c
|
||||||
$ call make pnm2png.exe -
|
$ call make png2pnm.exe -
|
||||||
"LINK pnm2png,lib.opt/opt" -
|
"LINK png2pnm,lib.opt/opt" -
|
||||||
pnm2png.obj
|
png2pnm.obj
|
||||||
$ exit
|
$ exit
|
||||||
$!
|
$!
|
||||||
$!
|
$!
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL a
|
|||||||
int row, col;
|
int row, col;
|
||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
long dep_16;
|
||||||
|
|
||||||
/* read and check signature in PNG file */
|
/* read and check signature in PNG file */
|
||||||
ret = fread (buf, 1, 8, png_file);
|
ret = fread (buf, 1, 8, png_file);
|
||||||
@@ -379,8 +380,10 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL a
|
|||||||
if (raw)
|
if (raw)
|
||||||
fputc ((int) *pix_ptr++ , pnm_file);
|
fputc ((int) *pix_ptr++ , pnm_file);
|
||||||
else
|
else
|
||||||
if (bit_depth == 16)
|
if (bit_depth == 16){
|
||||||
fprintf (pnm_file, "%ld ", ((long) *pix_ptr++ << 8) + (long) *pix_ptr++);
|
dep_16 = (long) *pix_ptr++;
|
||||||
|
fprintf (pnm_file, "%ld ", (dep_16 << 8) + ((long) *pix_ptr++));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fprintf (pnm_file, "%ld ", (long) *pix_ptr++);
|
fprintf (pnm_file, "%ld ", (long) *pix_ptr++);
|
||||||
}
|
}
|
||||||
@@ -397,8 +400,10 @@ BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL a
|
|||||||
if (raw)
|
if (raw)
|
||||||
fputc ((int) *pix_ptr++ , alpha_file);
|
fputc ((int) *pix_ptr++ , alpha_file);
|
||||||
else
|
else
|
||||||
if (bit_depth == 16)
|
if (bit_depth == 16){
|
||||||
fprintf (alpha_file, "%ld ", ((long) *pix_ptr++ << 8) + (long) *pix_ptr++);
|
dep_16 = (long) *pix_ptr++;
|
||||||
|
fprintf (alpha_file, "%ld ", (dep_16 << 8) + (long) *pix_ptr++);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fprintf (alpha_file, "%ld ", (long) *pix_ptr++);
|
fprintf (alpha_file, "%ld ", (long) *pix_ptr++);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ binaries, go to "http://www.schaik.com/png/visualpng.html".
|
|||||||
|
|
||||||
Assumes that
|
Assumes that
|
||||||
|
|
||||||
libpng DLLs and LIBs are in ..\..\msvc\win32\libpng
|
libpng DLLs and LIBs are in ..\..\projects\msvc\win32\libpng
|
||||||
zlib DLLs and LIBs are in ..\..\msvc\win32\zlib
|
zlib DLLs and LIBs are in ..\..\projects\msvc\win32\zlib
|
||||||
libpng header files are in ..\..\..\libpng
|
libpng header files are in ..\..\..\libpng
|
||||||
zlib header files are in ..\..\..\zlib
|
zlib header files are in ..\..\..\zlib
|
||||||
the pngsuite images are in ..\pngsuite
|
the pngsuite images are in ..\pngsuite
|
||||||
|
|||||||
@@ -60,11 +60,11 @@ BSC32=bscmake.exe
|
|||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 libpng1.lib zlibd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"libpng" /libpath:"zlib"
|
# ADD BASE LINK32 libpng1.lib zlibd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"libpng" /libpath:"zlib"
|
||||||
# ADD LINK32 libpng1.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\msvc\win32\libpng\dll"
|
# ADD LINK32 libpng1.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\projects\msvc\win32\libpng\dll"
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll
|
OutDir=.\dll
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll;..\..\msvc\win32\zlib\dll; $(outdir)\VisualPng.exe ..\..\contrib\pngsuite\basn6a16.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll;..\..\projects\msvc\win32\zlib\dll; $(outdir)\VisualPng.exe ..\..\contrib\pngsuite\basn6a16.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "VisualPng - Win32 Debug DLL"
|
!ELSEIF "$(CFG)" == "VisualPng - Win32 Debug DLL"
|
||||||
@@ -94,12 +94,12 @@ BSC32=bscmake.exe
|
|||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 libpng1.lib zlibd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"libpng" /libpath:"zlib"
|
# ADD BASE LINK32 libpng1.lib zlibd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"libpng" /libpath:"zlib"
|
||||||
# SUBTRACT BASE LINK32 /nodefaultlib
|
# SUBTRACT BASE LINK32 /nodefaultlib
|
||||||
# ADD LINK32 libpng1d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\msvc\win32\libpng\dll_dbg"
|
# ADD LINK32 libpng1d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\projects\msvc\win32\libpng\dll_dbg"
|
||||||
# SUBTRACT LINK32 /nodefaultlib
|
# SUBTRACT LINK32 /nodefaultlib
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\dll_dbg
|
OutDir=.\dll_dbg
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Cmds=set path=..\..\msvc\win32\libpng\dll_dbg;..\..\msvc\win32\zlib\dll_dbg; $(outdir)\VisualPng.exe ..\..\contrib\pngsuite\basn6a16.png
|
PostBuild_Cmds=set path=..\..\projects\msvc\win32\libpng\dll_dbg;..\..\projects\msvc\win32\zlib\dll_dbg; $(outdir)\VisualPng.exe ..\..\contrib\pngsuite\basn6a16.png
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "VisualPng - Win32 LIB"
|
!ELSEIF "$(CFG)" == "VisualPng - Win32 LIB"
|
||||||
@@ -128,8 +128,8 @@ BSC32=bscmake.exe
|
|||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 libpng1.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\msvc\win32\libpng\dll"
|
# ADD BASE LINK32 libpng1.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\projects\msvc\win32\libpng\dll"
|
||||||
# ADD LINK32 libpng.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\msvc\win32\libpng\lib"
|
# ADD LINK32 libpng.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\projects\msvc\win32\libpng\lib"
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\lib
|
OutDir=.\lib
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
@@ -161,9 +161,9 @@ BSC32=bscmake.exe
|
|||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
LINK32=link.exe
|
LINK32=link.exe
|
||||||
# ADD BASE LINK32 libpng1d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\msvc\win32\libpng\dll_dbg"
|
# ADD BASE LINK32 libpng1d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\projects\msvc\win32\libpng\dll_dbg"
|
||||||
# SUBTRACT BASE LINK32 /nodefaultlib
|
# SUBTRACT BASE LINK32 /nodefaultlib
|
||||||
# ADD LINK32 libpng.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\msvc\win32\libpng\lib_dbg"
|
# ADD LINK32 libpng.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libc" /pdbtype:sept /libpath:"..\..\projects\msvc\win32\libpng\lib_dbg"
|
||||||
# SUBTRACT LINK32 /nodefaultlib
|
# SUBTRACT LINK32 /nodefaultlib
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
OutDir=.\lib_dbg
|
OutDir=.\lib_dbg
|
||||||
|
|||||||
@@ -755,11 +755,13 @@ void write_png(char *file_name /* , ... other image information ... */)
|
|||||||
allocated it with malloc() instead of png_malloc(), use free() instead
|
allocated it with malloc() instead of png_malloc(), use free() instead
|
||||||
of png_free(). */
|
of png_free(). */
|
||||||
png_free(png_ptr, palette);
|
png_free(png_ptr, palette);
|
||||||
|
palette=NULL;
|
||||||
|
|
||||||
/* Similarly, if you png_malloced any data that you passed in with
|
/* Similarly, if you png_malloced any data that you passed in with
|
||||||
png_set_something(), such as a hist or trans array, free it here,
|
png_set_something(), such as a hist or trans array, free it here,
|
||||||
when you can be sure that libpng is through with it. */
|
when you can be sure that libpng is through with it. */
|
||||||
png_free(png_ptr, trans);
|
png_free(png_ptr, trans);
|
||||||
|
trans=NULL;
|
||||||
|
|
||||||
/* clean up after the write, and free any memory allocated */
|
/* clean up after the write, and free any memory allocated */
|
||||||
png_destroy_write_struct(&png_ptr, &info_ptr);
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||||
|
|||||||
52
libpng.3
52
libpng.3
@@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNG 3 "July 11, 2000"
|
.TH LIBPNG 3 "November 23, 2000"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.0.9beta3
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBpng_structp png_create_read_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP
|
\fBpng_structp png_create_read_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBpng_structp png_create_write_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP
|
\fBpng_structp png_create_write_struct (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fIwarn_fn\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@@ -368,7 +368,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBvoid png_read_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, voidp \fIparams\fP\fB);\fP
|
\fBvoid png_read_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, png_voidp \fIparams\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@@ -724,7 +724,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBvoid png_write_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, voidp \fIparams\fP\fB);\fP
|
\fBvoid png_write_png (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fItransforms\fP\fB, png_voidp \fIparams\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@@ -747,7 +747,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.0.8beta3 - July 11, 2000
|
libpng version 1.0.9beta3 - November 23, 2000
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
<randeg@alum.rpi.edu>
|
<randeg@alum.rpi.edu>
|
||||||
Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
@@ -784,8 +784,7 @@ Libpng was written as a companion to the PNG specification, as a way
|
|||||||
of reducing the amount of time and effort it takes to support the PNG
|
of reducing the amount of time and effort it takes to support the PNG
|
||||||
file format in application programs.
|
file format in application programs.
|
||||||
|
|
||||||
The PNG-1.2 specification is available at <http://www.cdrom.com/pub/png>
|
The PNG-1.2 specification is available at <http://www.libpng.org/pub/png>
|
||||||
(will be moving to <http://www.libpng.org>)
|
|
||||||
and at <ftp://ftp.uu.net/graphics/png/documents/>.
|
and at <ftp://ftp.uu.net/graphics/png/documents/>.
|
||||||
|
|
||||||
The PNG-1.0 specification is available
|
The PNG-1.0 specification is available
|
||||||
@@ -796,8 +795,7 @@ documents at <ftp://ftp.uu.net/graphics/png/documents/>.
|
|||||||
|
|
||||||
Other information
|
Other information
|
||||||
about PNG, and the latest version of libpng, can be found at the PNG home
|
about PNG, and the latest version of libpng, can be found at the PNG home
|
||||||
page, <http://www.cdrom.com/pub/png/> (will be moving to
|
page, <http://www.libpng.org/pub/png/>
|
||||||
<http://www.libpng.org>)
|
|
||||||
and at <ftp://ftp.uu.net/graphics/png/>.
|
and at <ftp://ftp.uu.net/graphics/png/>.
|
||||||
|
|
||||||
Most users will not have to modify the library significantly; advanced
|
Most users will not have to modify the library significantly; advanced
|
||||||
@@ -816,7 +814,7 @@ majority of the needs of its users.
|
|||||||
|
|
||||||
Libpng uses zlib for its compression and decompression of PNG files.
|
Libpng uses zlib for its compression and decompression of PNG files.
|
||||||
Further information about zlib, and the latest version of zlib, can
|
Further information about zlib, and the latest version of zlib, can
|
||||||
be found at the zlib home page, <ftp://ftp.freesoftware.com/pub/infozip/zlib/>.
|
be found at the zlib home page, <http://www.info-zip.org/pub/infozip/zlib/>.
|
||||||
The zlib compression utility is a general purpose utility that is
|
The zlib compression utility is a general purpose utility that is
|
||||||
useful for more than PNG files, and can be used without libpng.
|
useful for more than PNG files, and can be used without libpng.
|
||||||
See the documentation delivered with zlib for more details.
|
See the documentation delivered with zlib for more details.
|
||||||
@@ -1120,7 +1118,7 @@ row_pointers prior to calling png_read_png() with
|
|||||||
row_pointers = png_malloc(png_ptr, height*sizeof(png_bytep));
|
row_pointers = png_malloc(png_ptr, height*sizeof(png_bytep));
|
||||||
for (int i=0; i<height, i++)
|
for (int i=0; i<height, i++)
|
||||||
row_pointers[i]=png_malloc(png_ptr, width*pixel_size);
|
row_pointers[i]=png_malloc(png_ptr, width*pixel_size);
|
||||||
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
||||||
|
|
||||||
Alternatively you could allocate your image in one big block and define
|
Alternatively you could allocate your image in one big block and define
|
||||||
row_pointers[i] to point into the proper places in your block.
|
row_pointers[i] to point into the proper places in your block.
|
||||||
@@ -1313,7 +1311,7 @@ into the info_ptr is returned for any complex types.
|
|||||||
(empty string for unknown).
|
(empty string for unknown).
|
||||||
num_text - number of comments (same as num_comments;
|
num_text - number of comments (same as num_comments;
|
||||||
you can put NULL here to avoid the duplication)
|
you can put NULL here to avoid the duplication)
|
||||||
Note while png_set_text() will accept text, language, and
|
Note while png_set_text() will accept text, language, and
|
||||||
translated keywords that can be NULL pointers, the structure
|
translated keywords that can be NULL pointers, the structure
|
||||||
returned by png_get_text will always contain regular
|
returned by png_get_text will always contain regular
|
||||||
zero-terminated C strings. They might be empty strings but
|
zero-terminated C strings. They might be empty strings but
|
||||||
@@ -1996,7 +1994,7 @@ application instead of by libpng, you can use
|
|||||||
png_set_invalid(png_ptr, info_ptr, mask);
|
png_set_invalid(png_ptr, info_ptr, mask);
|
||||||
mask - identifies the chunks to be made invalid,
|
mask - identifies the chunks to be made invalid,
|
||||||
containing the logical OR of one or
|
containing the logical OR of one or
|
||||||
more of
|
more of
|
||||||
PNG_INFO_gAMA, PNG_INFO_sBIT,
|
PNG_INFO_gAMA, PNG_INFO_sBIT,
|
||||||
PNG_INFO_cHRM, PNG_INFO_PLTE,
|
PNG_INFO_cHRM, PNG_INFO_PLTE,
|
||||||
PNG_INFO_tRNS, PNG_INFO_bKGD,
|
PNG_INFO_tRNS, PNG_INFO_bKGD,
|
||||||
@@ -3381,13 +3379,13 @@ application:
|
|||||||
|
|
||||||
.SH VII. Y2K Compliance in libpng
|
.SH VII. Y2K Compliance in libpng
|
||||||
|
|
||||||
July 11, 2000
|
November 23, 2000
|
||||||
|
|
||||||
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.0.8beta3 are Y2K compliant. It is my belief that earlier
|
upward through 1.0.9beta3 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
|
||||||
@@ -3488,7 +3486,7 @@ libpngpf(3), png(5)
|
|||||||
.IR libpng :
|
.IR libpng :
|
||||||
.IP
|
.IP
|
||||||
ftp://ftp.uu.net/graphics/png
|
ftp://ftp.uu.net/graphics/png
|
||||||
http://www.cdrom.com/pub/png
|
http://www.libpng.org/pub/png
|
||||||
|
|
||||||
.LP
|
.LP
|
||||||
.IR zlib :
|
.IR zlib :
|
||||||
@@ -3499,7 +3497,7 @@ or at
|
|||||||
.br
|
.br
|
||||||
ftp://ftp.uu.net/pub/archiving/zip/zlib
|
ftp://ftp.uu.net/pub/archiving/zip/zlib
|
||||||
.br
|
.br
|
||||||
ftp://ftp.freesoftware.com/pub/infozip/zlib
|
ftp://ftp.info-zip.org/pub/infozip/zlib
|
||||||
|
|
||||||
.LP
|
.LP
|
||||||
.IR PNG specification: RFC 2083
|
.IR PNG specification: RFC 2083
|
||||||
@@ -3528,7 +3526,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.0.8beta3 - July 11, 2000:
|
Libpng version 1.0.9beta3 - November 23, 2000:
|
||||||
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 (randeg@alum.rpi.edu).
|
Currently maintained by Glenn Randers-Pehrson (randeg@alum.rpi.edu).
|
||||||
|
|
||||||
@@ -3538,12 +3536,16 @@ Supported by the PNG development group
|
|||||||
|
|
||||||
.SH COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
.SH COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
||||||
|
|
||||||
|
(This copy of the libpng notices is provided for your convenience. In case of
|
||||||
|
any discrepancy between this copy and the notices in the file png.h that is
|
||||||
|
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 version 1.0.8beta3, July 11, 2000 is
|
libpng versions 1.0.7, July 1, 2000, through 1.0.9beta3, November 23, 2000, are
|
||||||
Copyright (c) 2000 Glenn Randers-Pehrson
|
Copyright (c) 2000 Glenn Randers-Pehrson, and are
|
||||||
Distributed according to the same disclaimer and license as libpng-1.0.6
|
distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
with the following individuals added to the list of Contributing Authors
|
with the following individuals added to the list of Contributing Authors
|
||||||
|
|
||||||
Simon-Pierre Cadieux
|
Simon-Pierre Cadieux
|
||||||
@@ -3625,14 +3627,14 @@ boxes and the like:
|
|||||||
printf("%s",png_get_copyright(NULL));
|
printf("%s",png_get_copyright(NULL));
|
||||||
|
|
||||||
Also, the PNG logo (in PNG format, of course) is supplied in the
|
Also, the PNG logo (in PNG format, of course) is supplied in the
|
||||||
file "pngnow.png".
|
files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
|
||||||
|
|
||||||
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
|
Libpng is OSI Certified Open Source Software. OSI Certified Open Source is a
|
||||||
certification mark of the Open Source Initiative.
|
certification mark of the Open Source Initiative.
|
||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
randeg@alum.rpi.edu
|
randeg@alum.rpi.edu
|
||||||
July 11, 2000
|
November 23, 2000
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
|||||||
20
libpng.txt
20
libpng.txt
@@ -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.0.8beta3 - July 11, 2000
|
libpng version 1.0.9beta3 - November 23, 2000
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
<randeg@alum.rpi.edu>
|
<randeg@alum.rpi.edu>
|
||||||
Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
@@ -37,8 +37,7 @@ Libpng was written as a companion to the PNG specification, as a way
|
|||||||
of reducing the amount of time and effort it takes to support the PNG
|
of reducing the amount of time and effort it takes to support the PNG
|
||||||
file format in application programs.
|
file format in application programs.
|
||||||
|
|
||||||
The PNG-1.2 specification is available at <http://www.cdrom.com/pub/png>
|
The PNG-1.2 specification is available at <http://www.libpng.org/pub/png>
|
||||||
(will be moving to <http://www.libpng.org>)
|
|
||||||
and at <ftp://ftp.uu.net/graphics/png/documents/>.
|
and at <ftp://ftp.uu.net/graphics/png/documents/>.
|
||||||
|
|
||||||
The PNG-1.0 specification is available
|
The PNG-1.0 specification is available
|
||||||
@@ -49,8 +48,7 @@ documents at <ftp://ftp.uu.net/graphics/png/documents/>.
|
|||||||
|
|
||||||
Other information
|
Other information
|
||||||
about PNG, and the latest version of libpng, can be found at the PNG home
|
about PNG, and the latest version of libpng, can be found at the PNG home
|
||||||
page, <http://www.cdrom.com/pub/png/> (will be moving to
|
page, <http://www.libpng.org/pub/png/>
|
||||||
<http://www.libpng.org>)
|
|
||||||
and at <ftp://ftp.uu.net/graphics/png/>.
|
and at <ftp://ftp.uu.net/graphics/png/>.
|
||||||
|
|
||||||
Most users will not have to modify the library significantly; advanced
|
Most users will not have to modify the library significantly; advanced
|
||||||
@@ -69,7 +67,7 @@ majority of the needs of its users.
|
|||||||
|
|
||||||
Libpng uses zlib for its compression and decompression of PNG files.
|
Libpng uses zlib for its compression and decompression of PNG files.
|
||||||
Further information about zlib, and the latest version of zlib, can
|
Further information about zlib, and the latest version of zlib, can
|
||||||
be found at the zlib home page, <ftp://ftp.freesoftware.com/pub/infozip/zlib/>.
|
be found at the zlib home page, <http://www.info-zip.org/pub/infozip/zlib/>.
|
||||||
The zlib compression utility is a general purpose utility that is
|
The zlib compression utility is a general purpose utility that is
|
||||||
useful for more than PNG files, and can be used without libpng.
|
useful for more than PNG files, and can be used without libpng.
|
||||||
See the documentation delivered with zlib for more details.
|
See the documentation delivered with zlib for more details.
|
||||||
@@ -373,7 +371,7 @@ row_pointers prior to calling png_read_png() with
|
|||||||
row_pointers = png_malloc(png_ptr, height*sizeof(png_bytep));
|
row_pointers = png_malloc(png_ptr, height*sizeof(png_bytep));
|
||||||
for (int i=0; i<height, i++)
|
for (int i=0; i<height, i++)
|
||||||
row_pointers[i]=png_malloc(png_ptr, width*pixel_size);
|
row_pointers[i]=png_malloc(png_ptr, width*pixel_size);
|
||||||
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
png_set_rows(png_ptr, info_ptr, &row_pointers);
|
||||||
|
|
||||||
Alternatively you could allocate your image in one big block and define
|
Alternatively you could allocate your image in one big block and define
|
||||||
row_pointers[i] to point into the proper places in your block.
|
row_pointers[i] to point into the proper places in your block.
|
||||||
@@ -566,7 +564,7 @@ into the info_ptr is returned for any complex types.
|
|||||||
(empty string for unknown).
|
(empty string for unknown).
|
||||||
num_text - number of comments (same as num_comments;
|
num_text - number of comments (same as num_comments;
|
||||||
you can put NULL here to avoid the duplication)
|
you can put NULL here to avoid the duplication)
|
||||||
Note while png_set_text() will accept text, language, and
|
Note while png_set_text() will accept text, language, and
|
||||||
translated keywords that can be NULL pointers, the structure
|
translated keywords that can be NULL pointers, the structure
|
||||||
returned by png_get_text will always contain regular
|
returned by png_get_text will always contain regular
|
||||||
zero-terminated C strings. They might be empty strings but
|
zero-terminated C strings. They might be empty strings but
|
||||||
@@ -1249,7 +1247,7 @@ application instead of by libpng, you can use
|
|||||||
png_set_invalid(png_ptr, info_ptr, mask);
|
png_set_invalid(png_ptr, info_ptr, mask);
|
||||||
mask - identifies the chunks to be made invalid,
|
mask - identifies the chunks to be made invalid,
|
||||||
containing the logical OR of one or
|
containing the logical OR of one or
|
||||||
more of
|
more of
|
||||||
PNG_INFO_gAMA, PNG_INFO_sBIT,
|
PNG_INFO_gAMA, PNG_INFO_sBIT,
|
||||||
PNG_INFO_cHRM, PNG_INFO_PLTE,
|
PNG_INFO_cHRM, PNG_INFO_PLTE,
|
||||||
PNG_INFO_tRNS, PNG_INFO_bKGD,
|
PNG_INFO_tRNS, PNG_INFO_bKGD,
|
||||||
@@ -2634,13 +2632,13 @@ application:
|
|||||||
|
|
||||||
VII. Y2K Compliance in libpng
|
VII. Y2K Compliance in libpng
|
||||||
|
|
||||||
July 11, 2000
|
November 23, 2000
|
||||||
|
|
||||||
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.0.8beta3 are Y2K compliant. It is my belief that earlier
|
upward through 1.0.9beta3 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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNGPF 3 "July 11, 2000"
|
.TH LIBPNGPF 3 "November 23, 2000"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.0.8beta3
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.0.9beta3
|
||||||
(private functions)
|
(private functions)
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fB#include <png.h>\fP
|
\fB#include <png.h>\fP
|
||||||
|
|||||||
4
png.5
4
png.5
@@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "July 11, 2000"
|
.TH PNG 5 "November 23, 2000"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
png \- Portable Network Graphics (PNG) format
|
png \- Portable Network Graphics (PNG) format
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@@ -23,7 +23,7 @@ platforms.
|
|||||||
PNG 1.2 specification, July 1999:
|
PNG 1.2 specification, July 1999:
|
||||||
.IP
|
.IP
|
||||||
.br
|
.br
|
||||||
http://www.cdrom.com/pub/png (moving to http://www.libpng.org)
|
http://www.libpng.org/pub/png
|
||||||
.br
|
.br
|
||||||
or ftp://ftp.uu.net/graphics/png/documents
|
or ftp://ftp.uu.net/graphics/png/documents
|
||||||
.LP
|
.LP
|
||||||
|
|||||||
55
png.c
55
png.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.c - location for general purpose libpng functions
|
/* png.c - location for general purpose libpng functions
|
||||||
*
|
*
|
||||||
* libpng version 1.0.8beta3 - July 11, 2000
|
* libpng version 1.0.9beta3 - November 23, 2000
|
||||||
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 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.)
|
||||||
@@ -13,18 +13,18 @@
|
|||||||
#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_0_8beta3 Your_png_h_is_not_version_1_0_8beta3;
|
typedef version_1_0_9beta3 Your_png_h_is_not_version_1_0_9beta3;
|
||||||
|
|
||||||
/* 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. */
|
||||||
|
|
||||||
#ifdef PNG_USE_GLOBAL_ARRAYS
|
#ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
/* png_libpng_ver was changed to a function in version 1.0.5c */
|
/* png_libpng_ver was changed to a function in version 1.0.5c */
|
||||||
char png_libpng_ver[12] = "1.0.8beta3";
|
const char png_libpng_ver[18] = "1.0.9beta3";
|
||||||
|
|
||||||
/* png_sig was changed to a function in version 1.0.5c */
|
/* png_sig was changed to a function in version 1.0.5c */
|
||||||
/* Place to hold the signature string for a PNG file. */
|
/* Place to hold the signature string for a PNG file. */
|
||||||
png_byte FARDATA png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10};
|
const png_byte FARDATA png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10};
|
||||||
|
|
||||||
/* Invoke global declarations for constant strings for known chunk types */
|
/* Invoke global declarations for constant strings for known chunk types */
|
||||||
PNG_IHDR;
|
PNG_IHDR;
|
||||||
@@ -52,32 +52,33 @@ PNG_zTXt;
|
|||||||
/* arrays to facilitate easy interlacing - use pass (0 - 6) as index */
|
/* arrays to facilitate easy interlacing - use pass (0 - 6) as index */
|
||||||
|
|
||||||
/* start of interlace block */
|
/* start of interlace block */
|
||||||
int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
|
const int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
|
||||||
|
|
||||||
/* offset to next interlace block */
|
/* offset to next interlace block */
|
||||||
int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
|
const int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
|
|
||||||
/* start of interlace block in the y direction */
|
/* start of interlace block in the y direction */
|
||||||
int FARDATA png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
|
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 */
|
||||||
int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
const int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
||||||
|
|
||||||
/* width of interlace block (used in assembler routines only) */
|
/* width of interlace block (used in assembler routines only) */
|
||||||
#ifdef PNG_HAVE_ASSEMBLER_COMBINE_ROW
|
#ifdef PNG_HAVE_ASSEMBLER_COMBINE_ROW
|
||||||
int FARDATA png_pass_width[] = {8, 4, 4, 2, 2, 1, 1};
|
const int FARDATA png_pass_width[] = {8, 4, 4, 2, 2, 1, 1};
|
||||||
#endif
|
#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
|
||||||
int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
const int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Mask to determine which pixels are valid in a pass */
|
/* Mask to determine which pixels are valid in a pass */
|
||||||
int FARDATA png_pass_mask[] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff};
|
const int FARDATA png_pass_mask[] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff};
|
||||||
|
|
||||||
/* Mask to determine which pixels to overwrite while displaying */
|
/* Mask to determine which pixels to overwrite while displaying */
|
||||||
int FARDATA png_pass_dsp_mask[] = {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
|
const int FARDATA png_pass_dsp_mask[]
|
||||||
|
= {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -140,6 +141,7 @@ png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
|||||||
png_uint_32 num_bytes = (png_uint_32)items * size;
|
png_uint_32 num_bytes = (png_uint_32)items * size;
|
||||||
png_voidp ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
|
png_voidp ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
|
||||||
|
|
||||||
|
#ifndef PNG_NO_ZALLOC_ZERO
|
||||||
if (num_bytes > (png_uint_32)0x8000L)
|
if (num_bytes > (png_uint_32)0x8000L)
|
||||||
{
|
{
|
||||||
png_memset(ptr, 0, (png_size_t)0x8000L);
|
png_memset(ptr, 0, (png_size_t)0x8000L);
|
||||||
@@ -150,6 +152,7 @@ png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
|||||||
{
|
{
|
||||||
png_memset(ptr, 0, (png_size_t)num_bytes);
|
png_memset(ptr, 0, (png_size_t)num_bytes);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return ((voidpf)ptr);
|
return ((voidpf)ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,7 +364,10 @@ if (mask & PNG_FREE_PCAL)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)info_ptr->pcal_nparams; i++)
|
for (i = 0; i < (int)info_ptr->pcal_nparams; i++)
|
||||||
|
{
|
||||||
png_free(png_ptr, info_ptr->pcal_params[i]);
|
png_free(png_ptr, info_ptr->pcal_params[i]);
|
||||||
|
info_ptr->pcal_params[i]=NULL;
|
||||||
|
}
|
||||||
png_free(png_ptr, info_ptr->pcal_params);
|
png_free(png_ptr, info_ptr->pcal_params);
|
||||||
info_ptr->pcal_params = NULL;
|
info_ptr->pcal_params = NULL;
|
||||||
}
|
}
|
||||||
@@ -491,7 +497,10 @@ if (mask & PNG_FREE_ROWS)
|
|||||||
{
|
{
|
||||||
int row;
|
int row;
|
||||||
for (row = 0; row < (int)info_ptr->height; row++)
|
for (row = 0; row < (int)info_ptr->height; row++)
|
||||||
|
{
|
||||||
png_free(png_ptr, info_ptr->row_pointers[row]);
|
png_free(png_ptr, info_ptr->row_pointers[row]);
|
||||||
|
info_ptr->row_pointers[row]=NULL;
|
||||||
|
}
|
||||||
png_free(png_ptr, info_ptr->row_pointers);
|
png_free(png_ptr, info_ptr->row_pointers);
|
||||||
info_ptr->row_pointers=NULL;
|
info_ptr->row_pointers=NULL;
|
||||||
}
|
}
|
||||||
@@ -517,11 +526,12 @@ png_info_destroy(png_structp png_ptr, png_infop info_ptr)
|
|||||||
png_debug(1, "in png_info_destroy\n");
|
png_debug(1, "in png_info_destroy\n");
|
||||||
|
|
||||||
png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);
|
png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);
|
||||||
|
|
||||||
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
|
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
|
||||||
if (png_ptr->num_chunk_list)
|
if (png_ptr->num_chunk_list)
|
||||||
{
|
{
|
||||||
png_free(png_ptr, png_ptr->chunk_list);
|
png_free(png_ptr, png_ptr->chunk_list);
|
||||||
|
png_ptr->chunk_list=NULL;
|
||||||
png_ptr->num_chunk_list=0;
|
png_ptr->num_chunk_list=0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -616,11 +626,11 @@ png_charp PNGAPI
|
|||||||
png_get_copyright(png_structp png_ptr)
|
png_get_copyright(png_structp png_ptr)
|
||||||
{
|
{
|
||||||
if (png_ptr != NULL || png_ptr == NULL) /* silence compiler warning */
|
if (png_ptr != NULL || png_ptr == NULL) /* silence compiler warning */
|
||||||
return ("\n libpng version 1.0.8beta3 - July 11, 2000\n\
|
return ((png_charp) "\n libpng version 1.0.9beta3 - November 23, 2000\n\
|
||||||
Copyright (c) 1998-2000 Glenn Randers-Pehrson\n\
|
Copyright (c) 1998-2000 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");
|
||||||
return ("");
|
return ((png_charp) "");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The following return the library version as a short string in the
|
/* The following return the library version as a short string in the
|
||||||
@@ -634,8 +644,8 @@ png_get_libpng_ver(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
/* Version of *.c files used when building libpng */
|
/* Version of *.c files used when building libpng */
|
||||||
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
||||||
return("1.0.8beta3");
|
return((png_charp) "1.0.9beta3");
|
||||||
return("1.0.8beta3");
|
return((png_charp) "1.0.9beta3");
|
||||||
}
|
}
|
||||||
|
|
||||||
png_charp PNGAPI
|
png_charp PNGAPI
|
||||||
@@ -643,8 +653,8 @@ png_get_header_ver(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
/* Version of *.h files used when building libpng */
|
/* Version of *.h files used when building libpng */
|
||||||
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
||||||
return(PNG_LIBPNG_VER_STRING);
|
return((png_charp) PNG_LIBPNG_VER_STRING);
|
||||||
return(PNG_LIBPNG_VER_STRING);
|
return((png_charp) PNG_LIBPNG_VER_STRING);
|
||||||
}
|
}
|
||||||
|
|
||||||
png_charp PNGAPI
|
png_charp PNGAPI
|
||||||
@@ -652,8 +662,8 @@ png_get_header_version(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
/* Returns longer string containing both version and date */
|
/* Returns longer string containing both version and date */
|
||||||
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
||||||
return(PNG_HEADER_VERSION_STRING);
|
return((png_charp) PNG_HEADER_VERSION_STRING);
|
||||||
return(PNG_HEADER_VERSION_STRING);
|
return((png_charp) PNG_HEADER_VERSION_STRING);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||||
@@ -680,9 +690,10 @@ png_reset_zstream(png_structp png_ptr)
|
|||||||
return (inflateReset(&png_ptr->zstream));
|
return (inflateReset(&png_ptr->zstream));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This function was added to libpng-1.0.7 */
|
||||||
png_uint_32 PNGAPI
|
png_uint_32 PNGAPI
|
||||||
png_access_version_number(void)
|
png_access_version_number(void)
|
||||||
{
|
{
|
||||||
/* Version of *.c files used when building libpng */
|
/* Version of *.c files used when building libpng */
|
||||||
return((png_uint_32) 10008L);
|
return((png_uint_32) 10009L);
|
||||||
}
|
}
|
||||||
|
|||||||
139
png.h
139
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.0.8beta3 - July 11, 2000
|
* libpng version 1.0.9beta3 - November 23, 2000
|
||||||
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 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.0.8beta3 - July 11, 2000: Glenn
|
* libpng versions 0.97, January 1998, through 1.0.9beta3 - November 23, 2000: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@@ -55,7 +55,10 @@
|
|||||||
* 1.0.7beta11-18 10007 2.1.0.7beta11-18 (binary compatible)
|
* 1.0.7beta11-18 10007 2.1.0.7beta11-18 (binary compatible)
|
||||||
* 1.0.7rc1-2 10007 2.1.0.7rc1-2 (binary compatible)
|
* 1.0.7rc1-2 10007 2.1.0.7rc1-2 (binary compatible)
|
||||||
* 1.0.7 10007 (still compatible)
|
* 1.0.7 10007 (still compatible)
|
||||||
* 1.0.7beta1-2 10008 2.1.0.8beta1-2
|
* 1.0.8beta1-4 10008 2.1.0.8beta1-4
|
||||||
|
* 1.0.8rc1 10008 2.1.0.8rc1
|
||||||
|
* 1.0.8 10008 2.1.0.8
|
||||||
|
* 1.0.9beta1-2 10009 2.1.0.9
|
||||||
*
|
*
|
||||||
* Henceforth the source version will match the shared-library major
|
* Henceforth the source version will match the shared-library major
|
||||||
* and minor numbers; the shared-library major version number will be
|
* and minor numbers; the shared-library major version number will be
|
||||||
@@ -82,9 +85,9 @@
|
|||||||
* 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 version 1.0.8beta3, July 11, 2000, is
|
* libpng versions 1.0.7, July 1, 2000, through 1.0.9beta3, November 23, 2000, are
|
||||||
* Copyright (c) 2000 Glenn Randers-Pehrson
|
* Copyright (c) 2000 Glenn Randers-Pehrson, and are
|
||||||
* Distributed according to the same disclaimer and license as libpng-1.0.6
|
* distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
* with the following individuals added to the list of Contributing Authors
|
* with the following individuals added to the list of Contributing Authors
|
||||||
*
|
*
|
||||||
* Simon-Pierre Cadieux
|
* Simon-Pierre Cadieux
|
||||||
@@ -167,7 +170,7 @@
|
|||||||
* printf("%s",png_get_copyright(NULL));
|
* printf("%s",png_get_copyright(NULL));
|
||||||
*
|
*
|
||||||
* Also, the PNG logo (in PNG format, of course) is supplied in the
|
* Also, the PNG logo (in PNG format, of course) is supplied in the
|
||||||
* file "pngnow.png".
|
* files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -187,13 +190,13 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* July 11, 2000
|
* November 23, 2000
|
||||||
*
|
*
|
||||||
* 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.0.8beta3 are Y2K compliant. It is my belief that earlier
|
* upward through 1.0.9beta3 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
|
||||||
@@ -249,26 +252,33 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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.0.8beta3"
|
#define PNG_LIBPNG_VER_STRING "1.0.9beta3"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 2
|
#define PNG_LIBPNG_VER_SONUM 2
|
||||||
|
|
||||||
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
|
||||||
#define PNG_LIBPNG_VER_MAJOR 1
|
#define PNG_LIBPNG_VER_MAJOR 1
|
||||||
#define PNG_LIBPNG_VER_MINOR 0
|
#define PNG_LIBPNG_VER_MINOR 0
|
||||||
#define PNG_LIBPNG_VER_RELEASE 8
|
#define PNG_LIBPNG_VER_RELEASE 9
|
||||||
/* 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 3
|
||||||
|
|
||||||
|
#define PNG_LIBPNG_BUILD_ALPHA 1
|
||||||
|
#define PNG_LIBPNG_BUILD_BETA 2
|
||||||
|
#define PNG_LIBPNG_BUILD_RC 3
|
||||||
|
#define PNG_LIBPNG_BUILD_STABLE 4
|
||||||
|
#define PNG_LIBPNG_BUILD_TYPEMASK 7
|
||||||
|
#define PNG_LIBPNG_BUILD_PATCH 8 /* Can be OR'ed with STABLE only */
|
||||||
|
#define PNG_LIBPNG_BUILD_TYPE 2
|
||||||
|
|
||||||
/* Careful here. At one time, Guy wanted to use 082, but that would be octal.
|
/* Careful here. At one time, Guy wanted to use 082, but that would be octal.
|
||||||
* We must not include leading zeros.
|
* We must not include leading zeros.
|
||||||
* Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only
|
* Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only
|
||||||
* version 1.0.0 was mis-numbered 100 instead of 10000). From
|
* version 1.0.0 was mis-numbered 100 instead of 10000). From
|
||||||
* version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release */
|
* version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release */
|
||||||
#define PNG_LIBPNG_VER 10008 /* 1.0.8 */
|
#define PNG_LIBPNG_VER 10009 /* 1.0.9 */
|
||||||
|
|
||||||
/* Note to maintainer: update this number in scripts/pngdef.pas as well */
|
|
||||||
|
|
||||||
#ifndef PNG_VERSION_INFO_ONLY
|
#ifndef PNG_VERSION_INFO_ONLY
|
||||||
|
|
||||||
@@ -300,8 +310,8 @@ extern "C" {
|
|||||||
* the version above.
|
* the version above.
|
||||||
*/
|
*/
|
||||||
#ifdef PNG_USE_GLOBAL_ARRAYS
|
#ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
PNG_EXPORT_VAR (char) png_libpng_ver[12]; /* need room for 99.99.99-patch-aa0*/
|
PNG_EXPORT_VAR (const char) png_libpng_ver[18];
|
||||||
/* Note to maintainer: increase to 18 at the next opportunity */
|
/* need room for 99.99.99beta99z*/
|
||||||
#else
|
#else
|
||||||
#define png_libpng_ver png_get_header_ver(NULL)
|
#define png_libpng_ver png_get_header_ver(NULL)
|
||||||
#endif
|
#endif
|
||||||
@@ -309,17 +319,17 @@ PNG_EXPORT_VAR (char) png_libpng_ver[12]; /* need room for 99.99.99-patch-aa0*/
|
|||||||
#ifdef PNG_USE_GLOBAL_ARRAYS
|
#ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
/* This was removed in version 1.0.5c */
|
/* This was removed in version 1.0.5c */
|
||||||
/* Structures to facilitate easy interlacing. See png.c for more details */
|
/* Structures to facilitate easy interlacing. See png.c for more details */
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_start[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_start[7];
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_inc[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_inc[7];
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_ystart[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_ystart[7];
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_yinc[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_yinc[7];
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_mask[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_mask[7];
|
||||||
PNG_EXPORT_VAR (int FARDATA) png_pass_dsp_mask[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_dsp_mask[7];
|
||||||
#ifdef PNG_HAVE_ASSEMBLER_COMBINE_ROW
|
#ifdef PNG_HAVE_ASSEMBLER_COMBINE_ROW
|
||||||
extern int FARDATA png_pass_width[7]; /* now used in pngvcrd.c, pnggccrd.c */
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_width[7];
|
||||||
#endif
|
#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.
|
||||||
extern int FARDATA png_pass_height[7];
|
PNG_EXPORT_VAR (const int FARDATA) png_pass_height[7];
|
||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -521,6 +531,7 @@ typedef struct png_info_struct
|
|||||||
png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
|
png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
|
||||||
png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
|
png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
|
||||||
png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
|
png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
|
||||||
|
/* The following three should have been named *_method not *_type */
|
||||||
png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
|
png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
|
||||||
png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
|
png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
|
||||||
png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
|
png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
|
||||||
@@ -762,6 +773,9 @@ typedef png_info FAR * FAR * png_infopp;
|
|||||||
#define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR)
|
#define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR)
|
||||||
#define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
|
#define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
|
||||||
#define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA)
|
#define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA)
|
||||||
|
/* aliases */
|
||||||
|
#define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA
|
||||||
|
#define PNG_COLOR_TYPE_GA PNG_COLOR_TYPE_GRAY_ALPHA
|
||||||
|
|
||||||
/* This is for compression type. PNG 1.0-1.2 only define the single type. */
|
/* This is for compression type. PNG 1.0-1.2 only define the single type. */
|
||||||
#define PNG_COMPRESSION_TYPE_BASE 0 /* Deflate method 8, 32K window */
|
#define PNG_COMPRESSION_TYPE_BASE 0 /* Deflate method 8, 32K window */
|
||||||
@@ -902,6 +916,12 @@ typedef void (PNGAPI *png_unknown_chunk_ptr) PNGARG((png_structp));
|
|||||||
#define PNG_TRANSFORM_INVERT_ALPHA 0x0400 /* read and write */
|
#define PNG_TRANSFORM_INVERT_ALPHA 0x0400 /* read and write */
|
||||||
#define PNG_TRANSFORM_STRIP_FILLER 0x0800 /* WRITE only */
|
#define PNG_TRANSFORM_STRIP_FILLER 0x0800 /* WRITE only */
|
||||||
|
|
||||||
|
/* Flags for MNG supported features */
|
||||||
|
#define PNG_FLAG_MNG_EMPTY_PLTE 0x01
|
||||||
|
#define PNG_MODE_EMBEDDED_IN_MNG 0x02
|
||||||
|
#define PNG_FLAG_MNG_FILTER_64 0x04
|
||||||
|
#define PNG_ALL_MNG_FEATURES 0x07
|
||||||
|
|
||||||
typedef png_voidp (*png_malloc_ptr) PNGARG((png_structp, png_size_t));
|
typedef png_voidp (*png_malloc_ptr) PNGARG((png_structp, png_size_t));
|
||||||
typedef void (*png_free_ptr) PNGARG((png_structp, png_voidp));
|
typedef void (*png_free_ptr) PNGARG((png_structp, png_voidp));
|
||||||
|
|
||||||
@@ -1135,9 +1155,11 @@ struct png_struct_def
|
|||||||
png_uint_16 rgb_to_gray_blue_coeff;
|
png_uint_16 rgb_to_gray_blue_coeff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \
|
#if defined(PNG_MNG_FEATURES_SUPPORTED) || \
|
||||||
|
defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \
|
||||||
defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED)
|
defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED)
|
||||||
png_byte empty_plte_permitted;
|
/* Note to maintainer: change this to png_uint_32 at next opportunity */
|
||||||
|
png_byte mng_features_permitted;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
|
#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
|
||||||
@@ -1147,9 +1169,9 @@ struct png_struct_def
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* This prevents a compiler error in png_get_copyright() in png.c if png.c
|
/* This prevents a compiler error in png_get_copyright() in png.c if png.c
|
||||||
and png.h are both at * version 1.0.8beta3
|
and png.h are both at * version 1.0.9beta3
|
||||||
*/
|
*/
|
||||||
typedef png_structp version_1_0_8beta3;
|
typedef png_structp version_1_0_9beta3;
|
||||||
|
|
||||||
typedef png_struct FAR * FAR * png_structpp;
|
typedef png_struct FAR * FAR * png_structpp;
|
||||||
|
|
||||||
@@ -1385,6 +1407,7 @@ extern PNG_EXPORT(void,png_set_gamma) PNGARG((png_structp png_ptr,
|
|||||||
#if defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \
|
#if defined(PNG_READ_EMPTY_PLTE_SUPPORTED) || \
|
||||||
defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED)
|
defined(PNG_WRITE_EMPTY_PLTE_SUPPORTED)
|
||||||
/* Permit or disallow empty PLTE (0: not permitted, 1: permitted) */
|
/* Permit or disallow empty PLTE (0: not permitted, 1: permitted) */
|
||||||
|
/* Deprecated and will be removed. Use png_permit_mng_features() instead. */
|
||||||
extern PNG_EXPORT(void,png_permit_empty_plte) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(void,png_permit_empty_plte) PNGARG((png_structp png_ptr,
|
||||||
int empty_plte_permitted));
|
int empty_plte_permitted));
|
||||||
#endif
|
#endif
|
||||||
@@ -1926,12 +1949,13 @@ extern PNG_EXPORT(void,png_set_hIST) PNGARG((png_structp png_ptr,
|
|||||||
|
|
||||||
extern PNG_EXPORT(png_uint_32,png_get_IHDR) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(png_uint_32,png_get_IHDR) PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr, png_uint_32 *width, png_uint_32 *height,
|
png_infop info_ptr, png_uint_32 *width, png_uint_32 *height,
|
||||||
int *bit_depth, int *color_type, int *interlace_type,
|
int *bit_depth, int *color_type, int *interlace_method,
|
||||||
int *compression_type, int *filter_type));
|
int *compression_method, int *filter_method));
|
||||||
|
|
||||||
extern PNG_EXPORT(void,png_set_IHDR) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(void,png_set_IHDR) PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth,
|
png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth,
|
||||||
int color_type, int interlace_type, int compression_type, int filter_type));
|
int color_type, int interlace_method, int compression_method,
|
||||||
|
int filter_method));
|
||||||
|
|
||||||
#if defined(PNG_READ_oFFs_SUPPORTED)
|
#if defined(PNG_READ_oFFs_SUPPORTED)
|
||||||
extern PNG_EXPORT(png_uint_32,png_get_oFFs) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(png_uint_32,png_get_oFFs) PNGARG((png_structp png_ptr,
|
||||||
@@ -2115,11 +2139,11 @@ extern PNG_EXPORT(void, png_set_invalid) PNGARG((png_structp png_ptr,
|
|||||||
extern PNG_EXPORT(void, png_read_png) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(void, png_read_png) PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr,
|
png_infop info_ptr,
|
||||||
int transforms,
|
int transforms,
|
||||||
voidp params));
|
png_voidp params));
|
||||||
extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr,
|
png_infop info_ptr,
|
||||||
int transforms,
|
int transforms,
|
||||||
voidp params));
|
png_voidp params));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define PNG_DEBUG at compile time for debugging information. Higher
|
/* Define PNG_DEBUG at compile time for debugging information. Higher
|
||||||
@@ -2131,25 +2155,35 @@ extern PNG_EXPORT(void, png_write_png) PNGARG((png_structp png_ptr,
|
|||||||
#if (PNG_DEBUG > 0)
|
#if (PNG_DEBUG > 0)
|
||||||
#if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
|
#if !defined(PNG_DEBUG_FILE) && defined(_MSC_VER)
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
#define png_debug(l,m) if (PNG_DEBUG > l) _RPT0(_CRT_WARN,m)
|
#if (PNG_DEBUG > 1)
|
||||||
#define png_debug1(l,m,p1) if (PNG_DEBUG > l) _RPT1(_CRT_WARN,m,p1)
|
#define png_debug(l,m) _RPT0(_CRT_WARN,m)
|
||||||
#define png_debug2(l,m,p1,p2) if (PNG_DEBUG > l) _RPT2(_CRT_WARN,m,p1,p2)
|
#define png_debug1(l,m,p1) _RPT1(_CRT_WARN,m,p1)
|
||||||
|
#define png_debug2(l,m,p1,p2) _RPT2(_CRT_WARN,m,p1,p2)
|
||||||
|
#endif
|
||||||
#else /* PNG_DEBUG_FILE || !_MSC_VER */
|
#else /* PNG_DEBUG_FILE || !_MSC_VER */
|
||||||
#ifndef PNG_DEBUG_FILE
|
#ifndef PNG_DEBUG_FILE
|
||||||
#define PNG_DEBUG_FILE stderr
|
#define PNG_DEBUG_FILE stderr
|
||||||
#endif /* PNG_DEBUG_FILE */
|
#endif /* PNG_DEBUG_FILE */
|
||||||
|
#if (PNG_DEBUG > 1)
|
||||||
#define png_debug(l,m) \
|
#define png_debug(l,m) \
|
||||||
if (PNG_DEBUG > l) \
|
{ \
|
||||||
fprintf(PNG_DEBUG_FILE,"%s"m,(l==1 ? "\t" : \
|
int num_tabs=l; \
|
||||||
(l==2 ? "\t\t":(l>2 ? "\t\t\t":""))))
|
fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \
|
||||||
|
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \
|
||||||
|
}
|
||||||
#define png_debug1(l,m,p1) \
|
#define png_debug1(l,m,p1) \
|
||||||
if (PNG_DEBUG > l) \
|
{ \
|
||||||
fprintf(PNG_DEBUG_FILE,"%s"m,(l==1 ? "\t" : \
|
int num_tabs=l; \
|
||||||
(l==2 ? "\t\t":(l>2 ? "\t\t\t":""))),p1)
|
fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \
|
||||||
|
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \
|
||||||
|
}
|
||||||
#define png_debug2(l,m,p1,p2) \
|
#define png_debug2(l,m,p1,p2) \
|
||||||
if (PNG_DEBUG > l) \
|
{ \
|
||||||
fprintf(PNG_DEBUG_FILE,"%s"m,(l==1 ? "\t" : \
|
int num_tabs=l; \
|
||||||
(l==2 ? "\t\t":(l>2 ? "\t\t\t":""))),p1,p2)
|
fprintf(PNG_DEBUG_FILE,"%s"m,(num_tabs==1 ? "\t" : \
|
||||||
|
(num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \
|
||||||
|
}
|
||||||
|
#endif /* (PNG_DEBUG > 1) */
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
#endif /* (PNG_DEBUG > 0) */
|
#endif /* (PNG_DEBUG > 0) */
|
||||||
#endif /* PNG_DEBUG */
|
#endif /* PNG_DEBUG */
|
||||||
@@ -2170,8 +2204,13 @@ extern PNG_EXPORT(png_charp,png_get_header_ver) PNGARG((png_structp png_ptr));
|
|||||||
extern PNG_EXPORT(png_charp,png_get_header_version) PNGARG((png_structp png_ptr));
|
extern PNG_EXPORT(png_charp,png_get_header_version) PNGARG((png_structp png_ptr));
|
||||||
extern PNG_EXPORT(png_charp,png_get_libpng_ver) PNGARG((png_structp png_ptr));
|
extern PNG_EXPORT(png_charp,png_get_libpng_ver) PNGARG((png_structp png_ptr));
|
||||||
|
|
||||||
|
#ifdef PNG_MNG_FEATURES_SUPPORTED
|
||||||
|
extern PNG_EXPORT(png_uint_32,png_permit_mng_features) PNGARG((png_structp
|
||||||
|
png_ptr, png_uint_32 mng_features_permitted));
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.0.8beta3 - July 11, 2000 (header)\n"
|
" libpng version 1.0.9beta3 - November 23, 2000 (header)\n"
|
||||||
|
|
||||||
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
||||||
/* With these routines we avoid an integer divide, which will be slower on
|
/* With these routines we avoid an integer divide, which will be slower on
|
||||||
@@ -2318,7 +2357,7 @@ extern PNG_EXPORT(png_charp,png_get_libpng_ver) PNGARG((png_structp png_ptr));
|
|||||||
#if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN)
|
#if !defined(PNG_NO_EXTERN) || defined(PNG_ALWAYS_EXTERN)
|
||||||
/* place to hold the signature string for a PNG file. */
|
/* place to hold the signature string for a PNG file. */
|
||||||
#ifdef PNG_USE_GLOBAL_ARRAYS
|
#ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
PNG_EXPORT_VAR (png_byte FARDATA) png_sig[8];
|
PNG_EXPORT_VAR (const png_byte FARDATA) png_sig[8];
|
||||||
#else
|
#else
|
||||||
#define png_sig png_sig_bytes(NULL)
|
#define png_sig png_sig_bytes(NULL)
|
||||||
#endif
|
#endif
|
||||||
@@ -2504,8 +2543,8 @@ PNG_EXTERN void png_write_sig PNGARG((png_structp png_ptr));
|
|||||||
*/
|
*/
|
||||||
PNG_EXTERN void png_write_IHDR PNGARG((png_structp png_ptr, png_uint_32 width,
|
PNG_EXTERN void png_write_IHDR PNGARG((png_structp png_ptr, png_uint_32 width,
|
||||||
png_uint_32 height,
|
png_uint_32 height,
|
||||||
int bit_depth, int color_type, int compression_type, int filter_type,
|
int bit_depth, int color_type, int compression_method, int filter_method,
|
||||||
int interlace_type));
|
int interlace_method));
|
||||||
|
|
||||||
PNG_EXTERN void png_write_PLTE PNGARG((png_structp png_ptr, png_colorp palette,
|
PNG_EXTERN void png_write_PLTE PNGARG((png_structp png_ptr, png_colorp palette,
|
||||||
png_uint_32 num_pal));
|
png_uint_32 num_pal));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* pngasmrd.h - assembler version of utilities to read a PNG file
|
/* pngasmrd.h - assembler version of utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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) 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1999, 2000 Glenn Randers-Pehrson
|
||||||
*
|
*
|
||||||
|
|||||||
BIN
pngbar.jpg
Normal file
BIN
pngbar.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
pngbar.png
Normal file
BIN
pngbar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
136
pngconf.h
136
pngconf.h
@@ -1,6 +1,6 @@
|
|||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
#define PNG_ZBUF_SIZE 8192
|
#define PNG_ZBUF_SIZE 8192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PNG_NO_FLOATING_POINT_SUPPORTED
|
#ifndef PNG_NO_FLOATING_POINT_SUPPORTED
|
||||||
#define PNG_FLOATING_POINT_SUPPORTED
|
#define PNG_FLOATING_POINT_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -49,6 +49,60 @@
|
|||||||
#define PNG_MAX_MALLOC_64K
|
#define PNG_MAX_MALLOC_64K
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Special munging to support doing things the 'cygwin' way:
|
||||||
|
* 'Normal' png-on-win32 defines/defaults:
|
||||||
|
* PNG_BUILD_DLL -- building dll
|
||||||
|
* PNG_USE_DLL -- building an application, linking to dll
|
||||||
|
* (no define) -- building static library, or building an
|
||||||
|
* application and linking to the static lib
|
||||||
|
* 'Cygwin' defines/defaults:
|
||||||
|
* PNG_BUILD_DLL -- building the dll
|
||||||
|
* (no define) -- building an application, linking to the dll
|
||||||
|
* PNG_STATIC -- building the static lib, or building an application
|
||||||
|
* which links to the static lib.
|
||||||
|
* Thus,
|
||||||
|
* a cygwin user should define either PNG_BUILD_DLL or PNG_STATIC, and
|
||||||
|
* this bit of #ifdefs will define the 'correct' config variables based on
|
||||||
|
* that. If a cygwin user *wants* to define 'PNG_USE_DLL' that's okay, but
|
||||||
|
* unnecessary.
|
||||||
|
*/
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
# if defined(PNG_BUILD_DLL)
|
||||||
|
# if defined(PNG_USE_DLL)
|
||||||
|
# undef PNG_USE_DLL
|
||||||
|
# endif
|
||||||
|
# if !defined(PNG_DLL)
|
||||||
|
# define PNG_DLL
|
||||||
|
# endif
|
||||||
|
# if defined(PNG_STATIC)
|
||||||
|
# undef PNG_STATIC
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# if defined(PNG_STATIC)
|
||||||
|
# if defined(PNG_USE_DLL)
|
||||||
|
# undef PNG_USE_DLL
|
||||||
|
# endif
|
||||||
|
# if defined(PNG_DLL)
|
||||||
|
# undef PNG_DLL
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# if defined(PNG_USE_DLL)
|
||||||
|
# if !defined(PNG_DLL)
|
||||||
|
# define PNG_DLL
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# if defined(PNG_DLL)
|
||||||
|
# define PNG_USE_DLL
|
||||||
|
# else
|
||||||
|
# define PNG_USE_DLL
|
||||||
|
# define PNG_DLL
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* This protects us against compilers that run on a windowing system
|
/* This protects us against compilers that run on a windowing system
|
||||||
* and thus don't have or would rather us not use the stdio types:
|
* and thus don't have or would rather us not use the stdio types:
|
||||||
* stdin, stdout, and stderr. The only one currently used is stderr
|
* stdin, stdout, and stderr. The only one currently used is stderr
|
||||||
@@ -344,6 +398,7 @@
|
|||||||
#define PNG_NO_WRITE_USER_TRANSFORM
|
#define PNG_NO_WRITE_USER_TRANSFORM
|
||||||
#define PNG_NO_USER_MEM
|
#define PNG_NO_USER_MEM
|
||||||
#define PNG_NO_READ_EMPTY_PLTE
|
#define PNG_NO_READ_EMPTY_PLTE
|
||||||
|
#define PNG_NO_MNG_FEATURES
|
||||||
#define PNG_NO_FIXED_POINT_SUPPORTED
|
#define PNG_NO_FIXED_POINT_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -436,8 +491,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PNG_NO_MNG_FEATURES
|
||||||
|
#define PNG_MNG_FEATURES_SUPPORTED /* Useful for MNG applications */
|
||||||
|
#endif
|
||||||
|
/* Deprecated, will be removed */
|
||||||
#ifndef PNG_NO_READ_EMPTY_PLTE
|
#ifndef PNG_NO_READ_EMPTY_PLTE
|
||||||
#define PNG_READ_EMPTY_PLTE_SUPPORTED /* useful for MNG applications */
|
#define PNG_READ_EMPTY_PLTE_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
|
#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
|
||||||
@@ -493,8 +552,9 @@ defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
|||||||
#define PNG_WRITE_FLUSH_SUPPORTED
|
#define PNG_WRITE_FLUSH_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Deprecated, see PNG_MNG_FEATURES_SUPPORTED, above */
|
||||||
#ifndef PNG_NO_WRITE_EMPTY_PLTE
|
#ifndef PNG_NO_WRITE_EMPTY_PLTE
|
||||||
#define PNG_WRITE_EMPTY_PLTE_SUPPORTED /* useful for MNG applications */
|
#define PNG_WRITE_EMPTY_PLTE_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PNG_NO_STDIO
|
#ifndef PNG_NO_STDIO
|
||||||
@@ -534,6 +594,9 @@ defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
|||||||
#ifndef PNG_NO_USER_MEM
|
#ifndef PNG_NO_USER_MEM
|
||||||
#define PNG_USER_MEM_SUPPORTED
|
#define PNG_USER_MEM_SUPPORTED
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef PNG_NO_ZALLOC_ZERO
|
||||||
|
#define PNG_ZALLOC_ZERO
|
||||||
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This is only for PowerPC big-endian and 680x0 systems */
|
/* This is only for PowerPC big-endian and 680x0 systems */
|
||||||
@@ -854,7 +917,7 @@ typedef size_t png_size_t;
|
|||||||
#define LDATA 0
|
#define LDATA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__WIN32__) && !defined(__FLAT__)
|
#if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
|
||||||
#define PNG_MAX_MALLOC_64K
|
#define PNG_MAX_MALLOC_64K
|
||||||
#if (LDATA != 1)
|
#if (LDATA != 1)
|
||||||
#ifndef FAR
|
#ifndef FAR
|
||||||
@@ -868,7 +931,7 @@ typedef size_t png_size_t;
|
|||||||
* const if your compiler supports it. (SJT)
|
* const if your compiler supports it. (SJT)
|
||||||
# define FARDATA FAR
|
# define FARDATA FAR
|
||||||
*/
|
*/
|
||||||
#endif /* __WIN32__, __FLAT__ */
|
#endif /* __WIN32__, __FLAT__, __CYGWIN__ */
|
||||||
|
|
||||||
#endif /* __BORLANDC__ */
|
#endif /* __BORLANDC__ */
|
||||||
|
|
||||||
@@ -952,11 +1015,42 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
* It is equivalent to Microsoft predefined macro _DLL which is
|
* It is equivalent to Microsoft predefined macro _DLL which is
|
||||||
* automatically defined when you compile using the share
|
* automatically defined when you compile using the share
|
||||||
* version of the CRT (C Run-Time library)
|
* version of the CRT (C Run-Time library)
|
||||||
|
*
|
||||||
|
* The cygwin mods make this behavior a little different:
|
||||||
|
* Define PNG_BUILD_DLL if you are building a dll for use with cygwin
|
||||||
|
* Define PNG_STATIC if you are building a static library for use with cygwin,
|
||||||
|
* -or- if you are building an application that you want to link to the
|
||||||
|
* static library.
|
||||||
|
* PNG_USE_DLL is defined by default (no user action needed) unless one of
|
||||||
|
* the other flags is defined.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
|
#if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
|
||||||
# define PNG_DLL
|
# define PNG_DLL
|
||||||
#endif
|
#endif
|
||||||
|
/* If CYGWIN, then disallow GLOBAL ARRAYS unless building a static lib.
|
||||||
|
* When building a static lib, default to no GLOBAL ARRAYS, but allow
|
||||||
|
* command-line override
|
||||||
|
*/
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
# if !defined(PNG_STATIC)
|
||||||
|
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
||||||
|
# undef PNG_USE_GLOBAL_ARRAYS
|
||||||
|
# endif
|
||||||
|
# if !defined(PNG_USE_LOCAL_ARRAYS)
|
||||||
|
# define PNG_USE_LOCAL_ARRAYS
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
|
||||||
|
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
||||||
|
# undef PNG_USE_GLOBAL_ARRAYS
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
|
||||||
|
# define PNG_USE_LOCAL_ARRAYS
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Do not use global arrays (helps with building DLL's)
|
/* Do not use global arrays (helps with building DLL's)
|
||||||
* They are no longer used in libpng itself, since version 1.0.5c,
|
* They are no longer used in libpng itself, since version 1.0.5c,
|
||||||
@@ -972,7 +1066,8 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
|
|
||||||
#ifndef PNGAPI
|
#ifndef PNGAPI
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN32__) && !defined(PNG_MODULEDEF)
|
|
||||||
|
#if defined(__MINGW32__) || defined(__CYGWIN__) && !defined(PNG_MODULEDEF)
|
||||||
# ifndef PNG_NO_MODULEDEF
|
# ifndef PNG_NO_MODULEDEF
|
||||||
# define PNG_NO_MODULEDEF
|
# define PNG_NO_MODULEDEF
|
||||||
# endif
|
# endif
|
||||||
@@ -983,8 +1078,9 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
|
#if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
|
||||||
defined(_Windows) || defined(_WINDOWS) || \
|
(( defined(_Windows) || defined(_WINDOWS) || \
|
||||||
defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
defined(WIN32) || defined(_WIN32) || defined(__WIN32__) \
|
||||||
|
) && !defined(__CYGWIN__))
|
||||||
|
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
# define PNGAPI __cdecl
|
# define PNGAPI __cdecl
|
||||||
@@ -1026,15 +1122,29 @@ typedef z_stream FAR * png_zstreamp;
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif /* PNG_IMPEXP */
|
# endif /* PNG_IMPEXP */
|
||||||
#else /* !(DLL || WINDOWS) */
|
#else /* !(DLL || non-cygwin WINDOWS) */
|
||||||
# if 0 /* ... other platforms, with other meanings */
|
# if defined(__CYGWIN__) && !defined(PNG_DLL)
|
||||||
|
# if !defined(PNG_IMPEXP)
|
||||||
|
# define PNG_IMPEXP
|
||||||
|
# endif
|
||||||
|
# define PNGAPI __cdecl
|
||||||
# else
|
# else
|
||||||
# define PNGAPI
|
# if 0 /* ... other platforms, with other meanings */
|
||||||
# define PNG_IMPEXP
|
# else
|
||||||
|
# define PNGAPI
|
||||||
|
# define PNG_IMPEXP
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PNGAPI
|
||||||
|
# define PNGAPI
|
||||||
|
#endif
|
||||||
|
#ifndef PNG_IMPEXP
|
||||||
|
# define PNG_IMPEXP
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PNG_EXPORT
|
#ifndef PNG_EXPORT
|
||||||
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngerror.c - stub functions for i/o and memory allocation
|
/* pngerror.c - stub functions for i/o and memory allocation
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
2564
pnggccrd.c
2564
pnggccrd.c
File diff suppressed because it is too large
Load Diff
2
pngget.c
2
pngget.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngget.c - retrieval of values from info struct
|
/* pngget.c - retrieval of values from info struct
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
2
pngmem.c
2
pngmem.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngmem.c - stub functions for memory allocation
|
/* pngmem.c - stub functions for memory allocation
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
17
pngpread.c
17
pngpread.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngpread.c - read a png file in push mode
|
/* pngpread.c - read a png file in push mode
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -894,25 +894,25 @@ png_read_push_finish_row(png_structp png_ptr)
|
|||||||
/* arrays to facilitate easy interlacing - use pass (0 - 6) as index */
|
/* arrays to facilitate easy interlacing - use pass (0 - 6) as index */
|
||||||
|
|
||||||
/* start of interlace block */
|
/* start of interlace block */
|
||||||
const int png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
|
const int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
|
||||||
|
|
||||||
/* offset to next interlace block */
|
/* offset to next interlace block */
|
||||||
const int png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
|
const int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
|
|
||||||
/* start of interlace block in the y direction */
|
/* start of interlace block in the y direction */
|
||||||
const int png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
|
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 */
|
||||||
const int png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
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
|
/* Width 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
|
||||||
const int png_pass_width[] = {8, 4, 4, 2, 2, 1, 1};
|
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
|
||||||
const int png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
const int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1429,7 +1429,8 @@ png_progressive_combine_row (png_structp png_ptr,
|
|||||||
png_bytep old_row, png_bytep new_row)
|
png_bytep old_row, png_bytep new_row)
|
||||||
{
|
{
|
||||||
#ifdef PNG_USE_LOCAL_ARRAYS
|
#ifdef PNG_USE_LOCAL_ARRAYS
|
||||||
const int png_pass_dsp_mask[7] = {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
|
const int FARDATA png_pass_dsp_mask[7] =
|
||||||
|
{0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
|
||||||
#endif
|
#endif
|
||||||
if (new_row != NULL) /* new_row must == png_ptr->row_buf here. */
|
if (new_row != NULL) /* new_row must == png_ptr->row_buf here. */
|
||||||
png_combine_row(png_ptr, old_row, png_pass_dsp_mask[png_ptr->pass]);
|
png_combine_row(png_ptr, old_row, png_pass_dsp_mask[png_ptr->pass]);
|
||||||
|
|||||||
16
pngread.c
16
pngread.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngread.c - read a PNG file
|
/* pngread.c - read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -62,6 +62,7 @@ png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
png_free(png_ptr, png_ptr->zbuf);
|
png_free(png_ptr, png_ptr->zbuf);
|
||||||
|
png_ptr->zbuf=NULL;
|
||||||
png_destroy_struct(png_ptr);
|
png_destroy_struct(png_ptr);
|
||||||
return (png_structp)NULL;
|
return (png_structp)NULL;
|
||||||
}
|
}
|
||||||
@@ -102,7 +103,7 @@ png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
removed from version 2.0.0 and beyond because the previous test
|
removed from version 2.0.0 and beyond because the previous test
|
||||||
would have already rejected it. */
|
would have already rejected it. */
|
||||||
|
|
||||||
if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
|
if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
|
||||||
user_png_ver[0] == '1' && user_png_ver[5] == '\0')
|
user_png_ver[0] == '1' && user_png_ver[5] == '\0')
|
||||||
{
|
{
|
||||||
png_error(png_ptr,
|
png_error(png_ptr,
|
||||||
@@ -315,7 +316,7 @@ png_read_info(png_structp png_ptr, png_infop info_ptr)
|
|||||||
png_reset_crc(png_ptr);
|
png_reset_crc(png_ptr);
|
||||||
png_crc_read(png_ptr, png_ptr->chunk_name, 4);
|
png_crc_read(png_ptr, png_ptr->chunk_name, 4);
|
||||||
|
|
||||||
png_debug2(0, "Reading %s chunk, length=%d.\n", png_ptr->chunk_name,
|
png_debug2(0, "Reading %s chunk, length=%lu.\n", png_ptr->chunk_name,
|
||||||
length);
|
length);
|
||||||
|
|
||||||
/* This should be a binary subdivision search or a hash for
|
/* This should be a binary subdivision search or a hash for
|
||||||
@@ -439,6 +440,9 @@ png_read_update_info(png_structp png_ptr, png_infop info_ptr)
|
|||||||
/* save jump buffer and error functions */
|
/* save jump buffer and error functions */
|
||||||
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
||||||
png_read_start_row(png_ptr);
|
png_read_start_row(png_ptr);
|
||||||
|
else
|
||||||
|
png_warning(png_ptr,
|
||||||
|
"Ignoring extra png_read_update_info() call; row buffer not reallocated");
|
||||||
png_read_transform_info(png_ptr, info_ptr);
|
png_read_transform_info(png_ptr, info_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -465,7 +469,7 @@ png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
const int png_pass_mask[7] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff};
|
const int png_pass_mask[7] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff};
|
||||||
#endif
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
png_debug2(1, "in png_read_row (row %d, pass %d)\n",
|
png_debug2(1, "in png_read_row (row %lu, pass %d)\n",
|
||||||
png_ptr->row_number, png_ptr->pass);
|
png_ptr->row_number, png_ptr->pass);
|
||||||
/* save jump buffer and error functions */
|
/* save jump buffer and error functions */
|
||||||
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
||||||
@@ -697,7 +701,7 @@ png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
* not called png_set_interlace_handling(), the display_row buffer will
|
* not called png_set_interlace_handling(), the display_row buffer will
|
||||||
* be ignored, so pass NULL to it.
|
* be ignored, so pass NULL to it.
|
||||||
*
|
*
|
||||||
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.0.8beta3
|
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.0.9beta3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
@@ -746,7 +750,7 @@ png_read_rows(png_structp png_ptr, png_bytepp row,
|
|||||||
* only call this function once. If you desire to have an image for
|
* only call this function once. If you desire to have an image for
|
||||||
* each pass of a interlaced image, use png_read_rows() instead.
|
* each pass of a interlaced image, use png_read_rows() instead.
|
||||||
*
|
*
|
||||||
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.0.8beta3
|
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.0.9beta3
|
||||||
*/
|
*/
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
png_read_image(png_structp png_ptr, png_bytepp image)
|
png_read_image(png_structp png_ptr, png_bytepp image)
|
||||||
|
|||||||
2
pngrio.c
2
pngrio.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrio.c - functions for data input
|
/* pngrio.c - functions for data input
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrtran.c - transforms the data in a row for PNG readers
|
/* pngrtran.c - transforms the data in a row for PNG readers
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -1090,7 +1090,12 @@ png_read_transform_info(png_structp png_ptr, png_infop info_ptr)
|
|||||||
if ((png_ptr->transformations & PNG_FILLER) &&
|
if ((png_ptr->transformations & PNG_FILLER) &&
|
||||||
((info_ptr->color_type == PNG_COLOR_TYPE_RGB) ||
|
((info_ptr->color_type == PNG_COLOR_TYPE_RGB) ||
|
||||||
(info_ptr->color_type == PNG_COLOR_TYPE_GRAY)))
|
(info_ptr->color_type == PNG_COLOR_TYPE_GRAY)))
|
||||||
|
{
|
||||||
info_ptr->channels++;
|
info_ptr->channels++;
|
||||||
|
#if 0 /* if adding a true alpha channel not just filler */
|
||||||
|
info_ptr->color_type |= PNG_COLOR_MASK_ALPHA;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_USER_TRANSFORM_PTR_SUPPORTED) && \
|
#if defined(PNG_USER_TRANSFORM_PTR_SUPPORTED) && \
|
||||||
|
|||||||
52
pngrutil.c
52
pngrutil.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrutil.c - utilities to read a PNG file
|
/* pngrutil.c - utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -388,7 +388,7 @@ png_handle_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
(png_uint_32)png_ptr->pixel_depth + 7) >> 3);
|
(png_uint_32)png_ptr->pixel_depth + 7) >> 3);
|
||||||
png_debug1(3,"bit_depth = %d\n", png_ptr->bit_depth);
|
png_debug1(3,"bit_depth = %d\n", png_ptr->bit_depth);
|
||||||
png_debug1(3,"channels = %d\n", png_ptr->channels);
|
png_debug1(3,"channels = %d\n", png_ptr->channels);
|
||||||
png_debug1(3,"rowbytes = %d\n", png_ptr->rowbytes);
|
png_debug1(3,"rowbytes = %lu\n", png_ptr->rowbytes);
|
||||||
png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth,
|
png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth,
|
||||||
color_type, interlace_type, compression_type, filter_type);
|
color_type, interlace_type, compression_type, filter_type);
|
||||||
}
|
}
|
||||||
@@ -976,6 +976,8 @@ png_handle_iCCP(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
png_byte compression_type;
|
png_byte compression_type;
|
||||||
png_charp profile;
|
png_charp profile;
|
||||||
png_uint_32 skip = 0;
|
png_uint_32 skip = 0;
|
||||||
|
png_uint_32 profile_size = 0;
|
||||||
|
png_uint_32 profile_length = 0;
|
||||||
png_size_t slength, prefix_length, data_length;
|
png_size_t slength, prefix_length, data_length;
|
||||||
|
|
||||||
png_debug(1, "in png_handle_iCCP\n");
|
png_debug(1, "in png_handle_iCCP\n");
|
||||||
@@ -1027,22 +1029,43 @@ png_handle_iCCP(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
|
|
||||||
/* there should be at least one zero (the compression type byte)
|
/* there should be at least one zero (the compression type byte)
|
||||||
following the separator, and we should be on it */
|
following the separator, and we should be on it */
|
||||||
if (*profile || profile >= chunkdata + slength)
|
if ( profile >= chunkdata + slength)
|
||||||
{
|
{
|
||||||
png_free(png_ptr, chunkdata);
|
png_free(png_ptr, chunkdata);
|
||||||
png_warning(png_ptr, "malformed iCCP chunk");
|
png_warning(png_ptr, "Malformed iCCP chunk");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compression_type should always be zero */
|
/* compression_type should always be zero */
|
||||||
compression_type = *profile++;
|
compression_type = *profile++;
|
||||||
|
if (compression_type)
|
||||||
|
{
|
||||||
|
png_warning(png_ptr, "Ignoring nonzero compression type in iCCP chunk");
|
||||||
|
compression_type=0x00; /* Reset it to zero (libpng-1.0.6 through 1.0.8
|
||||||
|
wrote nonzero) */
|
||||||
|
}
|
||||||
|
|
||||||
prefix_length = profile - chunkdata;
|
prefix_length = profile - chunkdata;
|
||||||
chunkdata = png_decompress_chunk(png_ptr, compression_type, chunkdata,
|
chunkdata = png_decompress_chunk(png_ptr, compression_type, chunkdata,
|
||||||
slength, prefix_length, &data_length);
|
slength, prefix_length, &data_length);
|
||||||
|
|
||||||
|
profile_length = data_length - prefix_length;
|
||||||
|
profile_size = ((*(chunkdata+prefix_length))<<24) |
|
||||||
|
((*(chunkdata+prefix_length+1))<<16) |
|
||||||
|
((*(chunkdata+prefix_length+2))<< 8) |
|
||||||
|
((*(chunkdata+prefix_length+3)) );
|
||||||
|
|
||||||
|
if(profile_size < profile_length)
|
||||||
|
profile_length = profile_size;
|
||||||
|
|
||||||
|
if(profile_size > profile_length)
|
||||||
|
{
|
||||||
|
png_warning(png_ptr, "Ignoring truncated iCCP profile.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
png_set_iCCP(png_ptr, info_ptr, chunkdata, compression_type,
|
png_set_iCCP(png_ptr, info_ptr, chunkdata, compression_type,
|
||||||
chunkdata + prefix_length, data_length);
|
chunkdata + prefix_length, data_length-prefix_length);
|
||||||
png_free(png_ptr, chunkdata);
|
png_free(png_ptr, chunkdata);
|
||||||
}
|
}
|
||||||
#endif /* PNG_READ_iCCP_SUPPORTED */
|
#endif /* PNG_READ_iCCP_SUPPORTED */
|
||||||
@@ -1336,7 +1359,6 @@ png_handle_bKGD(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
if(buf[0] > info_ptr->num_palette)
|
if(buf[0] > info_ptr->num_palette)
|
||||||
{
|
{
|
||||||
png_warning(png_ptr, "Incorrect bKGD chunk index value");
|
png_warning(png_ptr, "Incorrect bKGD chunk index value");
|
||||||
png_crc_finish(png_ptr, length);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
png_ptr->background.red =
|
png_ptr->background.red =
|
||||||
@@ -1541,7 +1563,7 @@ png_handle_pCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
png_debug1(2, "Allocating and reading pCAL chunk data (%d bytes)\n",
|
png_debug1(2, "Allocating and reading pCAL chunk data (%lu bytes)\n",
|
||||||
length + 1);
|
length + 1);
|
||||||
purpose = (png_charp)png_malloc(png_ptr, length + 1);
|
purpose = (png_charp)png_malloc(png_ptr, length + 1);
|
||||||
slength = (png_size_t)length;
|
slength = (png_size_t)length;
|
||||||
@@ -1661,7 +1683,7 @@ png_handle_sCAL(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
png_debug1(2, "Allocating and reading sCAL chunk data (%d bytes)\n",
|
png_debug1(2, "Allocating and reading sCAL chunk data (%lu bytes)\n",
|
||||||
length + 1);
|
length + 1);
|
||||||
buffer = (png_charp)png_malloc(png_ptr, length + 1);
|
buffer = (png_charp)png_malloc(png_ptr, length + 1);
|
||||||
slength = (png_size_t)length;
|
slength = (png_size_t)length;
|
||||||
@@ -2576,7 +2598,7 @@ png_read_filter_row
|
|||||||
png_bytep prev_row, int filter)
|
png_bytep prev_row, int filter)
|
||||||
{
|
{
|
||||||
png_debug(1, "in png_read_filter_row\n");
|
png_debug(1, "in png_read_filter_row\n");
|
||||||
png_debug2(2,"row = %d, filter = %d\n", png_ptr->row_number, filter);
|
png_debug2(2,"row = %lu, filter = %d\n", png_ptr->row_number, filter);
|
||||||
switch (filter)
|
switch (filter)
|
||||||
{
|
{
|
||||||
case PNG_FILTER_VALUE_NONE:
|
case PNG_FILTER_VALUE_NONE:
|
||||||
@@ -2990,12 +3012,12 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
|
|||||||
|
|
||||||
png_memset_check(png_ptr, png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
|
png_memset_check(png_ptr, png_ptr->prev_row, 0, png_ptr->rowbytes + 1);
|
||||||
|
|
||||||
png_debug1(3, "width = %d,\n", png_ptr->width);
|
png_debug1(3, "width = %lu,\n", png_ptr->width);
|
||||||
png_debug1(3, "height = %d,\n", png_ptr->height);
|
png_debug1(3, "height = %lu,\n", png_ptr->height);
|
||||||
png_debug1(3, "iwidth = %d,\n", png_ptr->iwidth);
|
png_debug1(3, "iwidth = %lu,\n", png_ptr->iwidth);
|
||||||
png_debug1(3, "num_rows = %d\n", png_ptr->num_rows);
|
png_debug1(3, "num_rows = %lu\n", png_ptr->num_rows);
|
||||||
png_debug1(3, "rowbytes = %d,\n", png_ptr->rowbytes);
|
png_debug1(3, "rowbytes = %lu,\n", png_ptr->rowbytes);
|
||||||
png_debug1(3, "irowbytes = %d,\n", png_ptr->irowbytes);
|
png_debug1(3, "irowbytes = %lu,\n", png_ptr->irowbytes);
|
||||||
|
|
||||||
png_ptr->flags |= PNG_FLAG_ROW_INIT;
|
png_ptr->flags |= PNG_FLAG_ROW_INIT;
|
||||||
}
|
}
|
||||||
|
|||||||
38
pngset.c
38
pngset.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngset.c - storage of image information into info struct
|
/* pngset.c - storage of image information into info struct
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -212,7 +212,7 @@ png_set_pCAL(png_structp png_ptr, png_infop info_ptr,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
length = png_strlen(purpose) + 1;
|
length = png_strlen(purpose) + 1;
|
||||||
png_debug1(3, "allocating purpose for info (%d bytes)\n", length);
|
png_debug1(3, "allocating purpose for info (%lu bytes)\n", length);
|
||||||
info_ptr->pcal_purpose = (png_charp)png_malloc(png_ptr, length);
|
info_ptr->pcal_purpose = (png_charp)png_malloc(png_ptr, length);
|
||||||
png_memcpy(info_ptr->pcal_purpose, purpose, (png_size_t)length);
|
png_memcpy(info_ptr->pcal_purpose, purpose, (png_size_t)length);
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ png_set_pCAL(png_structp png_ptr, png_infop info_ptr,
|
|||||||
info_ptr->pcal_nparams = (png_byte)nparams;
|
info_ptr->pcal_nparams = (png_byte)nparams;
|
||||||
|
|
||||||
length = png_strlen(units) + 1;
|
length = png_strlen(units) + 1;
|
||||||
png_debug1(3, "allocating units for info (%d bytes)\n", length);
|
png_debug1(3, "allocating units for info (%lu bytes)\n", length);
|
||||||
info_ptr->pcal_units = (png_charp)png_malloc(png_ptr, length);
|
info_ptr->pcal_units = (png_charp)png_malloc(png_ptr, length);
|
||||||
png_memcpy(info_ptr->pcal_units, units, (png_size_t)length);
|
png_memcpy(info_ptr->pcal_units, units, (png_size_t)length);
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ png_set_pCAL(png_structp png_ptr, png_infop info_ptr,
|
|||||||
for (i = 0; i < nparams; i++)
|
for (i = 0; i < nparams; i++)
|
||||||
{
|
{
|
||||||
length = png_strlen(params[i]) + 1;
|
length = png_strlen(params[i]) + 1;
|
||||||
png_debug2(3, "allocating parameter %d for info (%d bytes)\n", i, length);
|
png_debug2(3, "allocating parameter %d for info (%lu bytes)\n", i, length);
|
||||||
info_ptr->pcal_params[i] = (png_charp)png_malloc(png_ptr, length);
|
info_ptr->pcal_params[i] = (png_charp)png_malloc(png_ptr, length);
|
||||||
png_memcpy(info_ptr->pcal_params[i], params[i], (png_size_t)length);
|
png_memcpy(info_ptr->pcal_params[i], params[i], (png_size_t)length);
|
||||||
}
|
}
|
||||||
@@ -556,7 +556,7 @@ png_set_text(png_structp png_ptr, png_infop info_ptr, png_textp text_ptr,
|
|||||||
textp->key = (png_charp)png_malloc(png_ptr,
|
textp->key = (png_charp)png_malloc(png_ptr,
|
||||||
(png_uint_32)(key_len + text_length + lang_len + lang_key_len + 4));
|
(png_uint_32)(key_len + text_length + lang_len + lang_key_len + 4));
|
||||||
png_debug2(2, "Allocated %d bytes at %x in png_set_text\n",
|
png_debug2(2, "Allocated %d bytes at %x in png_set_text\n",
|
||||||
key_len + lang_len + lang_key_len + text_length + 4, textp->key);
|
key_len + lang_len + lang_key_len + text_length + 4, (int)textp->key);
|
||||||
|
|
||||||
png_memcpy(textp->key, text_ptr[i].key,
|
png_memcpy(textp->key, text_ptr[i].key,
|
||||||
(png_size_t)(key_len));
|
(png_size_t)(key_len));
|
||||||
@@ -659,6 +659,7 @@ png_set_sPLT(png_structp png_ptr,
|
|||||||
png_memcpy(np, info_ptr->splt_palettes,
|
png_memcpy(np, info_ptr->splt_palettes,
|
||||||
info_ptr->splt_palettes_num * sizeof(png_sPLT_t));
|
info_ptr->splt_palettes_num * sizeof(png_sPLT_t));
|
||||||
png_free(png_ptr, info_ptr->splt_palettes);
|
png_free(png_ptr, info_ptr->splt_palettes);
|
||||||
|
info_ptr->splt_palettes=NULL;
|
||||||
|
|
||||||
for (i = 0; i < nentries; i++)
|
for (i = 0; i < nentries; i++)
|
||||||
{
|
{
|
||||||
@@ -703,6 +704,7 @@ png_set_unknown_chunks(png_structp png_ptr,
|
|||||||
png_memcpy(np, info_ptr->unknown_chunks,
|
png_memcpy(np, info_ptr->unknown_chunks,
|
||||||
info_ptr->unknown_chunks_num * sizeof(png_unknown_chunk));
|
info_ptr->unknown_chunks_num * sizeof(png_unknown_chunk));
|
||||||
png_free(png_ptr, info_ptr->unknown_chunks);
|
png_free(png_ptr, info_ptr->unknown_chunks);
|
||||||
|
info_ptr->unknown_chunks=NULL;
|
||||||
|
|
||||||
for (i = 0; i < num_unknowns; i++)
|
for (i = 0; i < num_unknowns; i++)
|
||||||
{
|
{
|
||||||
@@ -728,7 +730,7 @@ void PNGAPI
|
|||||||
png_set_unknown_chunk_location(png_structp png_ptr, png_infop info_ptr,
|
png_set_unknown_chunk_location(png_structp png_ptr, png_infop info_ptr,
|
||||||
int chunk, int location)
|
int chunk, int location)
|
||||||
{
|
{
|
||||||
if(png_ptr != NULL && info_ptr != NULL && chunk >= 0 && chunk <
|
if(png_ptr != NULL && info_ptr != NULL && chunk >= 0 && chunk <
|
||||||
(int)info_ptr->unknown_chunks_num)
|
(int)info_ptr->unknown_chunks_num)
|
||||||
info_ptr->unknown_chunks[chunk].location = (png_byte)location;
|
info_ptr->unknown_chunks[chunk].location = (png_byte)location;
|
||||||
}
|
}
|
||||||
@@ -739,10 +741,27 @@ png_set_unknown_chunk_location(png_structp png_ptr, png_infop info_ptr,
|
|||||||
void PNGAPI
|
void PNGAPI
|
||||||
png_permit_empty_plte (png_structp png_ptr, int empty_plte_permitted)
|
png_permit_empty_plte (png_structp png_ptr, int empty_plte_permitted)
|
||||||
{
|
{
|
||||||
png_debug1(1, "in png_permit_empty_plte\n", "");
|
/* This function is deprecated in favor of png_permit_mng_features()
|
||||||
|
and will be removed from libpng-2.0.0 */
|
||||||
|
png_debug(1, "in png_permit_empty_plte, DEPRECATED.\n");
|
||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
png_ptr->empty_plte_permitted=(png_byte)empty_plte_permitted;
|
png_ptr->mng_features_permitted = (png_byte)
|
||||||
|
((png_ptr->mng_features_permitted & (~(PNG_FLAG_MNG_EMPTY_PLTE))) |
|
||||||
|
((empty_plte_permitted & PNG_FLAG_MNG_EMPTY_PLTE)));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(PNG_MNG_FEATURES_SUPPORTED)
|
||||||
|
png_uint_32 PNGAPI
|
||||||
|
png_permit_mng_features (png_structp png_ptr, png_uint_32 mng_features)
|
||||||
|
{
|
||||||
|
png_debug(1, "in png_permit_mng_features\n");
|
||||||
|
if (png_ptr == NULL)
|
||||||
|
return (png_uint_32)0;
|
||||||
|
png_ptr->mng_features_permitted =
|
||||||
|
(png_byte)(mng_features & PNG_ALL_MNG_FEATURES);
|
||||||
|
return (png_uint_32)png_ptr->mng_features_permitted;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -774,6 +793,7 @@ png_set_keep_unknown_chunks(png_structp png_ptr, int keep, png_bytep
|
|||||||
{
|
{
|
||||||
png_memcpy(new_list, png_ptr->chunk_list, 5*old_num_chunks);
|
png_memcpy(new_list, png_ptr->chunk_list, 5*old_num_chunks);
|
||||||
png_free(png_ptr, png_ptr->chunk_list);
|
png_free(png_ptr, png_ptr->chunk_list);
|
||||||
|
png_ptr->chunk_list=NULL;
|
||||||
}
|
}
|
||||||
png_memcpy(new_list+5*old_num_chunks, chunk_list, 5*num_chunks);
|
png_memcpy(new_list+5*old_num_chunks, chunk_list, 5*num_chunks);
|
||||||
for (p=new_list+5*old_num_chunks+4, i=0; i<num_chunks; i++, p+=5)
|
for (p=new_list+5*old_num_chunks+4, i=0; i<num_chunks; i++, p+=5)
|
||||||
@@ -822,6 +842,8 @@ png_set_compression_buffer_size(png_structp png_ptr, png_uint_32 size)
|
|||||||
png_free(png_ptr, png_ptr->zbuf);
|
png_free(png_ptr, png_ptr->zbuf);
|
||||||
png_ptr->zbuf_size = (png_size_t)size;
|
png_ptr->zbuf_size = (png_size_t)size;
|
||||||
png_ptr->zbuf = (png_bytep)png_malloc(png_ptr, size);
|
png_ptr->zbuf = (png_bytep)png_malloc(png_ptr, size);
|
||||||
|
if(!png_ptr->zbuf)
|
||||||
|
png_error(png_ptr,"Unable to malloc zbuf");
|
||||||
png_ptr->zstream.next_out = png_ptr->zbuf;
|
png_ptr->zstream.next_out = png_ptr->zbuf;
|
||||||
png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
|
png_ptr->zstream.avail_out = (uInt)png_ptr->zbuf_size;
|
||||||
}
|
}
|
||||||
|
|||||||
38
pngtest.c
38
pngtest.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngtest.c - a simple test program to test libpng
|
/* pngtest.c - a simple test program to test libpng
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
* The program will report "FAIL" in certain legitimate cases:
|
* The program will report "FAIL" in certain legitimate cases:
|
||||||
* 1) when the compression level or filter selection method is changed.
|
* 1) when the compression level or filter selection method is changed.
|
||||||
* 2) when the maximum IDAT size (PNG_ZBUF_SIZE in pngconf.h) is not 8192.
|
* 2) when the maximum IDAT size (PNG_ZBUF_SIZE in pngconf.h) is not 8192.
|
||||||
* 3) unknown ancillary chunks exist in the input file.
|
* 3) unknown unsafe-to-copy ancillary chunks or unknown critical chunks
|
||||||
|
* exist in the input file.
|
||||||
* 4) others not listed here...
|
* 4) others not listed here...
|
||||||
* In these cases, it is best to check with another tool such as "pngcheck"
|
* In these cases, it is best to check with another tool such as "pngcheck"
|
||||||
* to see what the differences between the two files are.
|
* to see what the differences between the two files are.
|
||||||
@@ -103,6 +104,8 @@ static int status_pass=1;
|
|||||||
static int status_dots_requested=0;
|
static int status_dots_requested=0;
|
||||||
static int status_dots=1;
|
static int status_dots=1;
|
||||||
|
|
||||||
|
void
|
||||||
|
read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass);
|
||||||
void
|
void
|
||||||
read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
||||||
{
|
{
|
||||||
@@ -122,6 +125,8 @@ read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
|||||||
fprintf(stdout, "r");
|
fprintf(stdout, "r");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass);
|
||||||
void
|
void
|
||||||
write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
||||||
{
|
{
|
||||||
@@ -136,6 +141,8 @@ write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass)
|
|||||||
5 in case illegal filter values are present.) */
|
5 in case illegal filter values are present.) */
|
||||||
static png_uint_32 filters_used[256];
|
static png_uint_32 filters_used[256];
|
||||||
void
|
void
|
||||||
|
count_filters(png_structp png_ptr, png_row_infop row_info, png_bytep data);
|
||||||
|
void
|
||||||
count_filters(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
count_filters(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
||||||
{
|
{
|
||||||
if(png_ptr != NULL && row_info != NULL)
|
if(png_ptr != NULL && row_info != NULL)
|
||||||
@@ -149,6 +156,8 @@ count_filters(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
|||||||
|
|
||||||
static png_uint_32 zero_samples;
|
static png_uint_32 zero_samples;
|
||||||
|
|
||||||
|
void
|
||||||
|
count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data);
|
||||||
void
|
void
|
||||||
count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
count_zero_samples(png_structp png_ptr, png_row_infop row_info, png_bytep data)
|
||||||
{
|
{
|
||||||
@@ -337,7 +346,7 @@ pngtest_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
|
|||||||
{
|
{
|
||||||
png_uint_32 check;
|
png_uint_32 check;
|
||||||
|
|
||||||
WRITEFILE((png_FILE_p)png_ptr->io_ptr, data, 1, check);
|
WRITEFILE((png_FILE_p)png_ptr->io_ptr, data, length, check);
|
||||||
if (check != length)
|
if (check != length)
|
||||||
{
|
{
|
||||||
png_error(png_ptr, "Write Error");
|
png_error(png_ptr, "Write Error");
|
||||||
@@ -364,7 +373,7 @@ pngtest_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
|
|||||||
io_ptr = (png_FILE_p)CVT_PTR(png_ptr->io_ptr);
|
io_ptr = (png_FILE_p)CVT_PTR(png_ptr->io_ptr);
|
||||||
if ((png_bytep)near_data == data)
|
if ((png_bytep)near_data == data)
|
||||||
{
|
{
|
||||||
WRITEFILE(io_ptr, near_data, 1, check);
|
WRITEFILE(io_ptr, near_data, length, check);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -376,7 +385,7 @@ pngtest_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
|
|||||||
{
|
{
|
||||||
written = MIN(NEAR_BUF_SIZE, remaining);
|
written = MIN(NEAR_BUF_SIZE, remaining);
|
||||||
png_memcpy(buf, data, written); /* copy far buffer to near buffer */
|
png_memcpy(buf, data, written); /* copy far buffer to near buffer */
|
||||||
WRITEFILE(io_ptr, written, 1, err);
|
WRITEFILE(io_ptr, buf, written, err);
|
||||||
if (err != written)
|
if (err != written)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
@@ -517,6 +526,7 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
|
|||||||
the memory that is to be freed. */
|
the memory that is to be freed. */
|
||||||
memset(ptr, 0x55, pinfo->size);
|
memset(ptr, 0x55, pinfo->size);
|
||||||
png_free_default(png_ptr, pinfo);
|
png_free_default(png_ptr, pinfo);
|
||||||
|
pinfo=NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (pinfo->next == NULL)
|
if (pinfo->next == NULL)
|
||||||
@@ -534,6 +544,7 @@ png_debug_free(png_structp png_ptr, png_voidp ptr)
|
|||||||
printf("Freeing %x\n",ptr);
|
printf("Freeing %x\n",ptr);
|
||||||
#endif
|
#endif
|
||||||
png_free_default(png_ptr, ptr);
|
png_free_default(png_ptr, ptr);
|
||||||
|
ptr=NULL;
|
||||||
}
|
}
|
||||||
#endif /* PNG_USER_MEM_SUPPORTED */
|
#endif /* PNG_USER_MEM_SUPPORTED */
|
||||||
/* END of code to test memory allocation/deallocation */
|
/* END of code to test memory allocation/deallocation */
|
||||||
@@ -878,22 +889,24 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
|
|||||||
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
||||||
{
|
{
|
||||||
int unit;
|
int unit;
|
||||||
double width, height;
|
double scal_width, scal_height;
|
||||||
|
|
||||||
if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &width, &height))
|
if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width,
|
||||||
|
&scal_height))
|
||||||
{
|
{
|
||||||
png_set_sCAL(write_ptr, write_info_ptr, unit, width, height);
|
png_set_sCAL(write_ptr, write_info_ptr, unit, scal_width, scal_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#ifdef PNG_FIXED_POINT_SUPPORTED
|
#ifdef PNG_FIXED_POINT_SUPPORTED
|
||||||
{
|
{
|
||||||
int unit;
|
int unit;
|
||||||
png_charp width, height;
|
png_charp scal_width, scal_height;
|
||||||
|
|
||||||
if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &width, &height))
|
if (png_get_sCAL_s(read_ptr, read_info_ptr, &unit, &scal_width,
|
||||||
|
&scal_height))
|
||||||
{
|
{
|
||||||
png_set_sCAL_s(write_ptr, write_info_ptr, unit, width, height);
|
png_set_sCAL_s(write_ptr, write_info_ptr, unit, scal_width, scal_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -1091,6 +1104,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
|
|||||||
|
|
||||||
png_debug(0, "Destroying data structs\n");
|
png_debug(0, "Destroying data structs\n");
|
||||||
png_free(read_ptr, row_buf);
|
png_free(read_ptr, row_buf);
|
||||||
|
row_buf=NULL;
|
||||||
png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr);
|
png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr);
|
||||||
png_destroy_info_struct(write_ptr, &write_end_info_ptr);
|
png_destroy_info_struct(write_ptr, &write_end_info_ptr);
|
||||||
png_destroy_write_struct(&write_ptr, &write_info_ptr);
|
png_destroy_write_struct(&write_ptr, &write_info_ptr);
|
||||||
@@ -1435,4 +1449,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_0_8beta3 your_png_h_is_not_version_1_0_8beta3;
|
typedef version_1_0_9beta3 your_png_h_is_not_version_1_0_9beta3;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
10
pngvcrd.c
10
pngvcrd.c
@@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* For Intel x86 CPU and Microsoft Visual C++ compiler
|
* For Intel x86 CPU and Microsoft Visual C++ compiler
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* Copyright (c) 1998, Intel Corporation
|
* Copyright (c) 1998, Intel Corporation
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
* Contributed by Nirav Chhatrapati, Intel Corporation, 1998
|
* Contributed by Nirav Chhatrapati, Intel Corporation, 1998
|
||||||
* Interface to libpng contributed by Gilles Vollant, 1999
|
* Interface to libpng contributed by Gilles Vollant, 1999
|
||||||
*
|
*
|
||||||
|
* [png_read_filter_row_mmx_avg() bpp == 2 bugfix, GRR 20000916]
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PNG_INTERNAL
|
#define PNG_INTERNAL
|
||||||
@@ -2117,8 +2119,8 @@ davg4lp:
|
|||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
ActiveMask.use = 0x000000000000ffff;
|
ActiveMask.use = 0x000000000000ffff;
|
||||||
ShiftBpp.use = 24; // == 3 * 8
|
ShiftBpp.use = 16; // == 2 * 8 [BUGFIX]
|
||||||
ShiftRem.use = 40; // == 64 - 24
|
ShiftRem.use = 48; // == 64 - 16 [BUGFIX]
|
||||||
_asm {
|
_asm {
|
||||||
// Load ActiveMask
|
// Load ActiveMask
|
||||||
movq mm7, ActiveMask
|
movq mm7, ActiveMask
|
||||||
@@ -2133,7 +2135,7 @@ davg4lp:
|
|||||||
// (we correct position in loop below)
|
// (we correct position in loop below)
|
||||||
davg2lp:
|
davg2lp:
|
||||||
movq mm0, [edi + ebx]
|
movq mm0, [edi + ebx]
|
||||||
psllq mm2, ShiftRem // shift data to position correctly
|
psrlq mm2, ShiftRem // shift data to position correctly [BUGFIX]
|
||||||
movq mm1, [esi + ebx]
|
movq mm1, [esi + ebx]
|
||||||
// Add (Prev_row/2) to Average
|
// Add (Prev_row/2) to Average
|
||||||
movq mm3, mm5
|
movq mm3, mm5
|
||||||
|
|||||||
2
pngwio.c
2
pngwio.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwio.c - functions for data output
|
/* pngwio.c - functions for data output
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
16
pngwrite.c
16
pngwrite.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwrite.c - general routines to write a PNG file
|
/* pngwrite.c - general routines to write a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -375,6 +375,11 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
|
|||||||
|
|
||||||
/* write end of PNG file */
|
/* write end of PNG file */
|
||||||
png_write_IEND(png_ptr);
|
png_write_IEND(png_ptr);
|
||||||
|
#if 0
|
||||||
|
/* This flush, added in libpng-1.0.8, causes some applications to crash
|
||||||
|
because they do not set png_ptr->output_flush_fn */
|
||||||
|
png_flush(png_ptr);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PNG_WRITE_tIME_SUPPORTED)
|
#if defined(PNG_WRITE_tIME_SUPPORTED)
|
||||||
@@ -447,6 +452,7 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
png_free(png_ptr, png_ptr->zbuf);
|
png_free(png_ptr, png_ptr->zbuf);
|
||||||
|
png_ptr->zbuf=NULL;
|
||||||
png_destroy_struct(png_ptr);
|
png_destroy_struct(png_ptr);
|
||||||
return ((png_structp)NULL);
|
return ((png_structp)NULL);
|
||||||
}
|
}
|
||||||
@@ -486,7 +492,7 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr,
|
|||||||
removed from version 2.0.0 and beyond because the previous test
|
removed from version 2.0.0 and beyond because the previous test
|
||||||
would have already rejected it. */
|
would have already rejected it. */
|
||||||
|
|
||||||
if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
|
if (user_png_ver[4] == '6' && user_png_ver[2] == '0' &&
|
||||||
user_png_ver[0] == '1' && user_png_ver[5] == '\0')
|
user_png_ver[0] == '1' && user_png_ver[5] == '\0')
|
||||||
{
|
{
|
||||||
png_error(png_ptr,
|
png_error(png_ptr,
|
||||||
@@ -737,11 +743,11 @@ png_write_row(png_structp png_ptr, png_bytep row)
|
|||||||
(png_uint_32)png_ptr->row_info.pixel_depth + 7) >> 3);
|
(png_uint_32)png_ptr->row_info.pixel_depth + 7) >> 3);
|
||||||
|
|
||||||
png_debug1(3, "row_info->color_type = %d\n", png_ptr->row_info.color_type);
|
png_debug1(3, "row_info->color_type = %d\n", png_ptr->row_info.color_type);
|
||||||
png_debug1(3, "row_info->width = %d\n", png_ptr->row_info.width);
|
png_debug1(3, "row_info->width = %lu\n", png_ptr->row_info.width);
|
||||||
png_debug1(3, "row_info->channels = %d\n", png_ptr->row_info.channels);
|
png_debug1(3, "row_info->channels = %d\n", png_ptr->row_info.channels);
|
||||||
png_debug1(3, "row_info->bit_depth = %d\n", png_ptr->row_info.bit_depth);
|
png_debug1(3, "row_info->bit_depth = %d\n", png_ptr->row_info.bit_depth);
|
||||||
png_debug1(3, "row_info->pixel_depth = %d\n", png_ptr->row_info.pixel_depth);
|
png_debug1(3, "row_info->pixel_depth = %d\n", png_ptr->row_info.pixel_depth);
|
||||||
png_debug1(3, "row_info->rowbytes = %d\n", png_ptr->row_info.rowbytes);
|
png_debug1(3, "row_info->rowbytes = %lu\n", png_ptr->row_info.rowbytes);
|
||||||
|
|
||||||
/* Copy user's row into buffer, leaving room for filter byte. */
|
/* Copy user's row into buffer, leaving room for filter byte. */
|
||||||
png_memcpy_check(png_ptr, png_ptr->row_buf + 1, row,
|
png_memcpy_check(png_ptr, png_ptr->row_buf + 1, row,
|
||||||
@@ -866,6 +872,7 @@ png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
|
|||||||
if (png_ptr->num_chunk_list)
|
if (png_ptr->num_chunk_list)
|
||||||
{
|
{
|
||||||
png_free(png_ptr, png_ptr->chunk_list);
|
png_free(png_ptr, png_ptr->chunk_list);
|
||||||
|
png_ptr->chunk_list=NULL;
|
||||||
png_ptr->num_chunk_list=0;
|
png_ptr->num_chunk_list=0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -961,7 +968,6 @@ void PNGAPI
|
|||||||
png_set_filter(png_structp png_ptr, int method, int filters)
|
png_set_filter(png_structp png_ptr, int method, int filters)
|
||||||
{
|
{
|
||||||
png_debug(1, "in png_set_filter\n");
|
png_debug(1, "in png_set_filter\n");
|
||||||
/* We allow 'method' only for future expansion of the base filter method. */
|
|
||||||
if (method == PNG_FILTER_TYPE_BASE)
|
if (method == PNG_FILTER_TYPE_BASE)
|
||||||
{
|
{
|
||||||
switch (filters & (PNG_ALL_FILTERS | 0x07))
|
switch (filters & (PNG_ALL_FILTERS | 0x07))
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwtran.c - transforms the data in a row for PNG writers
|
/* pngwtran.c - transforms the data in a row for PNG writers
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
|||||||
22
pngwutil.c
22
pngwutil.c
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwutil.c - utilities to write a PNG file
|
/* pngwutil.c - utilities to write a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.0.8beta3 - July 11, 2000
|
* libpng 1.0.9beta3 - November 23, 2000
|
||||||
* 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, 1999, 2000 Glenn Randers-Pehrson
|
* Copyright (c) 1998, 1999, 2000 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@@ -77,7 +77,7 @@ png_write_chunk_start(png_structp png_ptr, png_bytep chunk_name,
|
|||||||
png_uint_32 length)
|
png_uint_32 length)
|
||||||
{
|
{
|
||||||
png_byte buf[4];
|
png_byte buf[4];
|
||||||
png_debug2(0, "Writing %s chunk (%d bytes)\n", chunk_name, length);
|
png_debug2(0, "Writing %s chunk (%lu bytes)\n", chunk_name, length);
|
||||||
|
|
||||||
/* write the length */
|
/* write the length */
|
||||||
png_save_uint_32(buf, length);
|
png_save_uint_32(buf, length);
|
||||||
@@ -339,9 +339,11 @@ png_write_compressed_data_out(png_structp png_ptr, compression_state *comp)
|
|||||||
png_write_chunk_data(png_ptr,(png_bytep)comp->output_ptr[i],
|
png_write_chunk_data(png_ptr,(png_bytep)comp->output_ptr[i],
|
||||||
png_ptr->zbuf_size);
|
png_ptr->zbuf_size);
|
||||||
png_free(png_ptr, comp->output_ptr[i]);
|
png_free(png_ptr, comp->output_ptr[i]);
|
||||||
|
comp->output_ptr[i]=NULL;
|
||||||
}
|
}
|
||||||
if (comp->max_output_ptr != 0)
|
if (comp->max_output_ptr != 0)
|
||||||
png_free(png_ptr, comp->output_ptr);
|
png_free(png_ptr, comp->output_ptr);
|
||||||
|
comp->output_ptr=NULL;
|
||||||
/* write anything left in zbuf */
|
/* write anything left in zbuf */
|
||||||
if (png_ptr->zstream.avail_out < (png_uint_32)png_ptr->zbuf_size)
|
if (png_ptr->zstream.avail_out < (png_uint_32)png_ptr->zbuf_size)
|
||||||
png_write_chunk_data(png_ptr, png_ptr->zbuf,
|
png_write_chunk_data(png_ptr, png_ptr->zbuf,
|
||||||
@@ -512,8 +514,8 @@ png_write_PLTE(png_structp png_ptr, png_colorp palette, png_uint_32 num_pal)
|
|||||||
|
|
||||||
png_debug(1, "in png_write_PLTE\n");
|
png_debug(1, "in png_write_PLTE\n");
|
||||||
if ((
|
if ((
|
||||||
#ifdef PNG_WRITE_EMPTY_PLTE_SUPPORTED
|
#if defined(PNG_MNG_FEATURES_SUPPORTED)
|
||||||
!png_ptr->empty_plte_permitted &&
|
!(png_ptr->mng_features_permitted & PNG_FLAG_MNG_EMPTY_PLTE) &&
|
||||||
#endif
|
#endif
|
||||||
num_pal == 0) || num_pal > 256)
|
num_pal == 0) || num_pal > 256)
|
||||||
{
|
{
|
||||||
@@ -668,6 +670,7 @@ png_write_iCCP(png_structp png_ptr, png_charp name, int compression_type,
|
|||||||
/* make sure we include the NULL after the name and the compression type */
|
/* make sure we include the NULL after the name and the compression type */
|
||||||
png_write_chunk_start(png_ptr, (png_bytep)png_iCCP,
|
png_write_chunk_start(png_ptr, (png_bytep)png_iCCP,
|
||||||
(png_uint_32)name_len+profile_len+2);
|
(png_uint_32)name_len+profile_len+2);
|
||||||
|
new_name[name_len+1]=0x00;
|
||||||
png_write_chunk_data(png_ptr, (png_bytep)new_name, name_len + 2);
|
png_write_chunk_data(png_ptr, (png_bytep)new_name, name_len + 2);
|
||||||
|
|
||||||
if (profile_len)
|
if (profile_len)
|
||||||
@@ -994,9 +997,9 @@ png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type)
|
|||||||
if (color_type == PNG_COLOR_TYPE_PALETTE)
|
if (color_type == PNG_COLOR_TYPE_PALETTE)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
#ifdef PNG_WRITE_EMPTY_PLTE_SUPPORTED
|
#if defined(PNG_MNG_FEATURES_SUPPORTED)
|
||||||
(!png_ptr->empty_plte_permitted ||
|
(png_ptr->num_palette ||
|
||||||
(png_ptr->empty_plte_permitted && png_ptr->num_palette)) &&
|
(!(png_ptr->mng_features_permitted & PNG_FLAG_MNG_EMPTY_PLTE))) &&
|
||||||
#endif
|
#endif
|
||||||
back->index > png_ptr->num_palette)
|
back->index > png_ptr->num_palette)
|
||||||
{
|
{
|
||||||
@@ -1081,7 +1084,7 @@ png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
|
|||||||
|
|
||||||
png_debug1(2, "Keyword to be checked is '%s'\n", key);
|
png_debug1(2, "Keyword to be checked is '%s'\n", key);
|
||||||
|
|
||||||
*new_key = (png_charp)png_malloc(png_ptr, (png_uint_32)(key_len + 1));
|
*new_key = (png_charp)png_malloc(png_ptr, (png_uint_32)(key_len + 2));
|
||||||
|
|
||||||
/* Replace non-printing characters with a blank and print a warning */
|
/* Replace non-printing characters with a blank and print a warning */
|
||||||
for (kp = key, dp = *new_key; *kp != '\0'; kp++, dp++)
|
for (kp = key, dp = *new_key; *kp != '\0'; kp++, dp++)
|
||||||
@@ -1400,7 +1403,7 @@ png_write_pCAL(png_structp png_ptr, png_charp purpose, png_int_32 X0,
|
|||||||
for (i = 0; i < nparams; i++)
|
for (i = 0; i < nparams; i++)
|
||||||
{
|
{
|
||||||
params_len[i] = png_strlen(params[i]) + (i == nparams - 1 ? 0 : 1);
|
params_len[i] = png_strlen(params[i]) + (i == nparams - 1 ? 0 : 1);
|
||||||
png_debug2(3, "pCAL parameter %d length = %d\n", i, params_len[i]);
|
png_debug2(3, "pCAL parameter %d length = %lu\n", i, params_len[i]);
|
||||||
total_len += (png_size_t)params_len[i];
|
total_len += (png_size_t)params_len[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2551,6 +2554,7 @@ png_write_filtered_row(png_structp png_ptr, png_bytep filtered_row)
|
|||||||
png_debug(1, "in png_write_filtered_row\n");
|
png_debug(1, "in png_write_filtered_row\n");
|
||||||
png_debug1(2, "filter = %d\n", filtered_row[0]);
|
png_debug1(2, "filter = %d\n", filtered_row[0]);
|
||||||
/* set up the zlib input buffer */
|
/* set up the zlib input buffer */
|
||||||
|
|
||||||
png_ptr->zstream.next_in = filtered_row;
|
png_ptr->zstream.next_in = filtered_row;
|
||||||
png_ptr->zstream.avail_in = (uInt)png_ptr->row_info.rowbytes + 1;
|
png_ptr->zstream.avail_in = (uInt)png_ptr->row_info.rowbytes + 1;
|
||||||
/* repeat until we have compressed all the data */
|
/* repeat until we have compressed all the data */
|
||||||
|
|||||||
22
projects/borland/libpng.bpf
Normal file
22
projects/borland/libpng.bpf
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
USEUNIT("libpng.cpp");
|
||||||
|
USEUNIT("..\..\pngwutil.c");
|
||||||
|
USEUNIT("..\..\pngerror.c");
|
||||||
|
USEUNIT("..\..\pngget.c");
|
||||||
|
USEUNIT("..\..\pngmem.c");
|
||||||
|
USEUNIT("..\..\pngpread.c");
|
||||||
|
USEUNIT("..\..\pngread.c");
|
||||||
|
USEUNIT("..\..\pngrio.c");
|
||||||
|
USEUNIT("..\..\pngrtran.c");
|
||||||
|
USEUNIT("..\..\pngrutil.c");
|
||||||
|
USEUNIT("..\..\pngset.c");
|
||||||
|
USEUNIT("..\..\pngtrans.c");
|
||||||
|
USEUNIT("..\..\pngwio.c");
|
||||||
|
USEUNIT("..\..\pngwrite.c");
|
||||||
|
USEUNIT("..\..\pngwtran.c");
|
||||||
|
USEUNIT("..\..\png.c");
|
||||||
|
USELIB("zlib.lib");
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
This file is used by the project manager only and should be treated like the project file
|
||||||
|
|
||||||
|
|
||||||
|
DllEntryPoint
|
||||||
25
projects/borland/libpng.bpg
Normal file
25
projects/borland/libpng.bpg
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#------------------------------------------------------------------------------
|
||||||
|
VERSION = BWS.01
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
!ifndef ROOT
|
||||||
|
ROOT = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||||
|
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||||
|
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
PROJECTS = libpngstat.lib libpng.dll
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
default: $(PROJECTS)
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
libpngstat.lib: libpngstat.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
libpng.dll: libpng.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
|
||||||
157
projects/borland/libpng.bpr
Normal file
157
projects/borland/libpng.bpr
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!-- C++Builder XML Project -->
|
||||||
|
<PROJECT>
|
||||||
|
<MACROS>
|
||||||
|
<VERSION value="BCB.05.03"/>
|
||||||
|
<PROJECT value="libpng.dll"/>
|
||||||
|
<OBJFILES value="libpng.obj ..\..\pngwutil.obj ..\..\pngerror.obj ..\..\pngget.obj
|
||||||
|
..\..\pngmem.obj ..\..\pngpread.obj ..\..\pngread.obj ..\..\pngrio.obj
|
||||||
|
..\..\pngrtran.obj ..\..\pngrutil.obj ..\..\pngset.obj ..\..\pngtrans.obj
|
||||||
|
..\..\pngwio.obj ..\..\pngwrite.obj ..\..\pngwtran.obj ..\..\png.obj"/>
|
||||||
|
<RESFILES value=""/>
|
||||||
|
<DEFFILE value=""/>
|
||||||
|
<RESDEPEN value="$(RESFILES)"/>
|
||||||
|
<LIBFILES value="zlib.lib"/>
|
||||||
|
<LIBRARIES value="bcbsmp50.lib dclocx50.lib NMFast50.lib Tee50.lib Vclx50.lib Vcl50.lib"/>
|
||||||
|
<SPARELIBS value="Vcl50.lib Vclx50.lib Tee50.lib NMFast50.lib dclocx50.lib bcbsmp50.lib"/>
|
||||||
|
<PACKAGES value="Vcl50.bpi Vclx50.bpi bcbsmp50.bpi Qrpt50.bpi Vcldb50.bpi Vclbde50.bpi
|
||||||
|
ibsmp50.bpi vcldbx50.bpi TeeUI50.bpi TeeDB50.bpi Tee50.bpi TeeQR50.bpi
|
||||||
|
VCLIB50.bpi bcbie50.bpi vclie50.bpi Inetdb50.bpi Inet50.bpi NMFast50.bpi
|
||||||
|
dclocx50.bpi bcb97axserver50.bpi SIMULUSCOMPONENTS.bpi Simulus2.bpi"/>
|
||||||
|
<PATHCPP value=".;..\.."/>
|
||||||
|
<PATHPAS value=".;"/>
|
||||||
|
<PATHRC value=".;"/>
|
||||||
|
<PATHASM value=".;"/>
|
||||||
|
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
|
||||||
|
<RELEASELIBPATH value="$(BCB)\lib\release"/>
|
||||||
|
<LINKER value="tlink32"/>
|
||||||
|
<USERDEFINES value="ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF"/>
|
||||||
|
<SYSDEFINES value="NO_STRICT;_NO_VCL;_RTLDLL"/>
|
||||||
|
<MAINSOURCE value="libpng.bpf"/>
|
||||||
|
<INCLUDEPATH value="..\..;..\..\..\zlib;$(BCB)\include"/>
|
||||||
|
<LIBPATH value="..\..;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||||
|
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wucp -wstv -wstu -wsig -wpin
|
||||||
|
-wnod -wnak -wdef -wcln -wbbf -wasm -wamp -wamb"/>
|
||||||
|
</MACROS>
|
||||||
|
<OPTIONS>
|
||||||
|
<CFLAG1 value="-WD -O2 -w -Vx -Ve -x- -RT- -X- -a8 -5 -b- -d -k- -vi -tWD -tWM -c"/>
|
||||||
|
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||||
|
<RFLAGS value=""/>
|
||||||
|
<AFLAGS value="/mx /w2 /zn"/>
|
||||||
|
<LFLAGS value="-D"" -aa -Tpd -x -Gn -Gi -w"/>
|
||||||
|
</OPTIONS>
|
||||||
|
<LINKER>
|
||||||
|
<ALLOBJ value="c0d32.obj $(OBJFILES)"/>
|
||||||
|
<ALLRES value="$(RESFILES)"/>
|
||||||
|
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
|
||||||
|
</LINKER>
|
||||||
|
<IDEOPTIONS>
|
||||||
|
[Version Info]
|
||||||
|
IncludeVerInfo=0
|
||||||
|
AutoIncBuild=0
|
||||||
|
MajorVer=1
|
||||||
|
MinorVer=0
|
||||||
|
Release=0
|
||||||
|
Build=0
|
||||||
|
Debug=0
|
||||||
|
PreRelease=0
|
||||||
|
Special=0
|
||||||
|
Private=0
|
||||||
|
DLL=1
|
||||||
|
Locale=2057
|
||||||
|
CodePage=1252
|
||||||
|
|
||||||
|
[Version Info Keys]
|
||||||
|
CompanyName=
|
||||||
|
FileDescription=
|
||||||
|
FileVersion=1.0.0.0
|
||||||
|
InternalName=
|
||||||
|
LegalCopyright=
|
||||||
|
LegalTrademarks=
|
||||||
|
OriginalFilename=
|
||||||
|
ProductName=
|
||||||
|
ProductVersion=
|
||||||
|
Comments=
|
||||||
|
|
||||||
|
[HistoryLists\hlIncludePath]
|
||||||
|
Count=18
|
||||||
|
Item0=..\..;..\..\..\zlib;$(BCB)\include
|
||||||
|
Item1=..\..;P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||||
|
Item2=..\..;..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||||
|
Item3=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||||
|
Item4=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item5=..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item6=..\Source\ThirdParty\PortableNetworkGraphics;P:\Development\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item7=..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\include
|
||||||
|
Item8=$(BCB)\include
|
||||||
|
Item9=..\Source;..\Source\General\Templates;..\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item10=P:\Development\Source\;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item11=P:\Development\Source;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item12=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item13=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item14=P:\Development\Source\General\Templates\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item15=P:\Development\Source\General\Templates;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item16=P:\Development\Source;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item17=$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlLibraryPath]
|
||||||
|
Count=10
|
||||||
|
Item0=..\..;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item1=..\..;..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item2=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item3=..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item4=$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item5=..\Source\SIMUtilities;..\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item6=P:\Development\Source\SIMUtilities\;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item7=P:\Development\Source\SIMUtilities;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item8=P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item9=P:\Development\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
|
||||||
|
[HistoryLists\hlDebugSourcePath]
|
||||||
|
Count=1
|
||||||
|
Item0=$(BCB)\source\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlConditionals]
|
||||||
|
Count=20
|
||||||
|
Item0=ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF
|
||||||
|
Item1=_DEBUG;ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF
|
||||||
|
Item2=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_NO_MODULEDEF
|
||||||
|
Item3=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_NO_GLOBAL_ARRAYS
|
||||||
|
Item4=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED;PNG_DEBUG_FILE=stderr
|
||||||
|
Item5=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED
|
||||||
|
Item6=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED
|
||||||
|
Item7=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF
|
||||||
|
Item8=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5
|
||||||
|
Item9=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG
|
||||||
|
Item10=PNG_BUILD_DLL;ZLIB_DLL
|
||||||
|
Item11=PNG_BUILD_DLL
|
||||||
|
Item12=PNG_DLL;PNG_BUILD_DLL;ZLIB_DLL
|
||||||
|
Item13=PNG_DLL;PNG_BUILD_DLL;PNG_NO_GLOBAL_ARRAYS;ZLIB_DLL
|
||||||
|
Item14=PNG_DLL;PNG_BUILD_DLL;PNG_NO_GLOBAL_ARRAYS
|
||||||
|
Item15=PNG_DLL;PNG_BUILD_DLL
|
||||||
|
Item16=PNG_DLL;PNG_BUILD_DLL;PNG_MODULEDEF
|
||||||
|
Item17=_HTML_FORM
|
||||||
|
Item18=_DEBUG;_HTML_FORM
|
||||||
|
Item19=_DEBUG
|
||||||
|
|
||||||
|
[HistoryLists\hlIntOutputDir]
|
||||||
|
Count=2
|
||||||
|
Item0=..\Obj
|
||||||
|
Item1=P:\Development\Obj
|
||||||
|
|
||||||
|
[Debugging]
|
||||||
|
DebugSourceDirs=
|
||||||
|
|
||||||
|
[Parameters]
|
||||||
|
RunParams=
|
||||||
|
HostApplication=P:\Development\Executables\LibPNGTestApp.exe
|
||||||
|
RemoteHost=
|
||||||
|
RemotePath=
|
||||||
|
RemoteDebug=0
|
||||||
|
|
||||||
|
[Compiler]
|
||||||
|
ShowInfoMsgs=0
|
||||||
|
LinkDebugVcl=0
|
||||||
|
LinkCGLIB=0
|
||||||
|
</IDEOPTIONS>
|
||||||
|
</PROJECT>
|
||||||
29
projects/borland/libpng.cpp
Normal file
29
projects/borland/libpng.cpp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#include <windows.h>
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
// Important note about DLL memory management when your DLL uses the
|
||||||
|
// static version of the RunTime Library:
|
||||||
|
//
|
||||||
|
// If your DLL exports any functions that pass String objects (or structs/
|
||||||
|
// classes containing nested Strings) as parameter or function results,
|
||||||
|
// you will need to add the library MEMMGR.LIB to both the DLL project and
|
||||||
|
// any other projects that use the DLL. You will also need to use MEMMGR.LIB
|
||||||
|
// if any other projects which use the DLL will be performing new or delete
|
||||||
|
// operations on any non-TObject-derived classes which are exported from the
|
||||||
|
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
|
||||||
|
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
|
||||||
|
// the file BORLNDMM.DLL should be deployed along with your DLL.
|
||||||
|
//
|
||||||
|
// To avoid using BORLNDMM.DLL, pass string information using "char *" or
|
||||||
|
// ShortString parameters.
|
||||||
|
//
|
||||||
|
// If your DLL uses the dynamic version of the RTL, you do not need to
|
||||||
|
// explicitly add MEMMGR.LIB as this will be done implicitly for you
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
int WINAPI DllEntryPoint(HINSTANCE, unsigned long, void*)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
19
projects/borland/libpng.readme.txt
Normal file
19
projects/borland/libpng.readme.txt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Project files to build libpng using Borland C++ Builder v5.0
|
||||||
|
|
||||||
|
To use this dll, you will need to:
|
||||||
|
|
||||||
|
1) add the following conditional defines to your project
|
||||||
|
|
||||||
|
PNG_USE_DLL
|
||||||
|
Z_PREFIX
|
||||||
|
|
||||||
|
2) add the paths to png.h and zlib.h to your include path
|
||||||
|
|
||||||
|
3) add libpng.lib or libpngstat.lib to the project.
|
||||||
|
|
||||||
|
If you are using libpng.dll, libpng.dll and zlib.dll will be required for the code to run.
|
||||||
|
|
||||||
|
Alternatively, the libpng.dll can be built using zlibstat.lib to produce one dll containing both the zlib and png code.
|
||||||
|
|
||||||
|
See the libpng documentation for instructions on how to use the code.
|
||||||
|
|
||||||
22
projects/borland/libpngstat.bpf
Normal file
22
projects/borland/libpngstat.bpf
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
USELIB("zlibstat.lib");
|
||||||
|
USEUNIT("..\..\pngerror.c");
|
||||||
|
USEUNIT("..\..\png.c");
|
||||||
|
USEUNIT("..\..\pngwutil.c");
|
||||||
|
USEUNIT("..\..\pngmem.c");
|
||||||
|
USEUNIT("..\..\pngpread.c");
|
||||||
|
USEUNIT("..\..\pngread.c");
|
||||||
|
USEUNIT("..\..\pngrio.c");
|
||||||
|
USEUNIT("..\..\pngrtran.c");
|
||||||
|
USEUNIT("..\..\pngrutil.c");
|
||||||
|
USEUNIT("..\..\pngset.c");
|
||||||
|
USEUNIT("..\..\pngtrans.c");
|
||||||
|
USEUNIT("..\..\pngwio.c");
|
||||||
|
USEUNIT("..\..\pngwrite.c");
|
||||||
|
USEUNIT("..\..\pngwtran.c");
|
||||||
|
USEUNIT("..\..\pngget.c");
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#define Library
|
||||||
|
|
||||||
|
// To add a file to the library use the Project menu 'Add to Project'.
|
||||||
|
|
||||||
|
|
||||||
109
projects/borland/libpngstat.bpr
Normal file
109
projects/borland/libpngstat.bpr
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!-- C++Builder XML Project -->
|
||||||
|
<PROJECT>
|
||||||
|
<MACROS>
|
||||||
|
<VERSION value="BCB.05.03"/>
|
||||||
|
<PROJECT value="libpngstat.lib"/>
|
||||||
|
<OBJFILES value="..\..\pngerror.obj ..\..\png.obj ..\..\pngwutil.obj ..\..\pngmem.obj
|
||||||
|
..\..\pngpread.obj ..\..\pngread.obj ..\..\pngrio.obj ..\..\pngrtran.obj
|
||||||
|
..\..\pngrutil.obj ..\..\pngset.obj ..\..\pngtrans.obj ..\..\pngwio.obj
|
||||||
|
..\..\pngwrite.obj ..\..\pngwtran.obj ..\..\pngget.obj"/>
|
||||||
|
<RESFILES value=""/>
|
||||||
|
<DEFFILE value=""/>
|
||||||
|
<RESDEPEN value="$(RESFILES)"/>
|
||||||
|
<LIBFILES value="zlibstat.lib"/>
|
||||||
|
<LIBRARIES value=""/>
|
||||||
|
<PACKAGES value=""/>
|
||||||
|
<PATHCPP value=".;..\.."/>
|
||||||
|
<PATHPAS value=".;"/>
|
||||||
|
<PATHRC value=".;"/>
|
||||||
|
<PATHASM value=".;"/>
|
||||||
|
<LINKER value="TLib"/>
|
||||||
|
<USERDEFINES value=""/>
|
||||||
|
<SYSDEFINES value="_RTLDLL;NO_STRICT"/>
|
||||||
|
<MAINSOURCE value="libpngstat.bpf"/>
|
||||||
|
<INCLUDEPATH value="..\..;..\..\..\zlib;$(BCB)\include"/>
|
||||||
|
<LIBPATH value="..\..;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||||
|
<WARNINGS value="-w-par"/>
|
||||||
|
<LISTFILE value=""/>
|
||||||
|
</MACROS>
|
||||||
|
<OPTIONS>
|
||||||
|
<CFLAG1 value="-O2 -w -Vx -Ve -X- -a8 -5 -b- -d -k- -vi -c -tW -tWM"/>
|
||||||
|
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||||
|
<AFLAGS value="/mx /w2 /zn"/>
|
||||||
|
<LFLAGS value=""/>
|
||||||
|
</OPTIONS>
|
||||||
|
<LINKER>
|
||||||
|
<ALLOBJ value="$(OBJFILES)"/>
|
||||||
|
<ALLLIB value=""/>
|
||||||
|
</LINKER>
|
||||||
|
<IDEOPTIONS>
|
||||||
|
[Version Info]
|
||||||
|
IncludeVerInfo=0
|
||||||
|
AutoIncBuild=0
|
||||||
|
MajorVer=1
|
||||||
|
MinorVer=0
|
||||||
|
Release=0
|
||||||
|
Build=0
|
||||||
|
Debug=0
|
||||||
|
PreRelease=0
|
||||||
|
Special=0
|
||||||
|
Private=0
|
||||||
|
DLL=0
|
||||||
|
Locale=2057
|
||||||
|
CodePage=1252
|
||||||
|
|
||||||
|
[Version Info Keys]
|
||||||
|
CompanyName=
|
||||||
|
FileDescription=
|
||||||
|
FileVersion=1.0.0.0
|
||||||
|
InternalName=
|
||||||
|
LegalCopyright=
|
||||||
|
LegalTrademarks=
|
||||||
|
OriginalFilename=
|
||||||
|
ProductName=
|
||||||
|
ProductVersion=1.0.0.0
|
||||||
|
Comments=
|
||||||
|
|
||||||
|
[HistoryLists\hlIncludePath]
|
||||||
|
Count=2
|
||||||
|
Item0=..\..;P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||||
|
Item1=..\..;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlLibraryPath]
|
||||||
|
Count=1
|
||||||
|
Item0=..\..;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
|
||||||
|
[HistoryLists\hlDebugSourcePath]
|
||||||
|
Count=1
|
||||||
|
Item0=$(BCB)\source\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlConditionals]
|
||||||
|
Count=1
|
||||||
|
Item0=_DEBUG
|
||||||
|
|
||||||
|
[HistoryLists\hlTlibPageSize]
|
||||||
|
Count=1
|
||||||
|
Item0=0x0010
|
||||||
|
|
||||||
|
[Debugging]
|
||||||
|
DebugSourceDirs=$(BCB)\source\vcl
|
||||||
|
|
||||||
|
[Parameters]
|
||||||
|
RunParams=
|
||||||
|
HostApplication=
|
||||||
|
RemoteHost=
|
||||||
|
RemotePath=
|
||||||
|
RemoteDebug=0
|
||||||
|
|
||||||
|
[Compiler]
|
||||||
|
ShowInfoMsgs=0
|
||||||
|
LinkDebugVcl=0
|
||||||
|
LinkCGLIB=0
|
||||||
|
|
||||||
|
[Language]
|
||||||
|
ActiveLang=
|
||||||
|
ProjectLang=
|
||||||
|
RootDir=
|
||||||
|
</IDEOPTIONS>
|
||||||
|
</PROJECT>
|
||||||
33
projects/borland/zlib+libpng.bpg
Normal file
33
projects/borland/zlib+libpng.bpg
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#------------------------------------------------------------------------------
|
||||||
|
VERSION = BWS.01
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
!ifndef ROOT
|
||||||
|
ROOT = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||||
|
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||||
|
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
PROJECTS = zlibstat.lib libpngstat.lib zlib.dll libpng.dll
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
default: $(PROJECTS)
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
libpng.dll: libpng.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
zlibstat.lib: zlibstat.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
zlib.dll: zlib.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
libpngstat.lib: libpngstat.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
|
||||||
20
projects/borland/zlib.bpf
Normal file
20
projects/borland/zlib.bpf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
USEUNIT("zlib.cpp");
|
||||||
|
USEUNIT("..\..\..\zlib\zutil.c");
|
||||||
|
USEUNIT("..\..\..\zlib\compress.c");
|
||||||
|
USEUNIT("..\..\..\zlib\crc32.c");
|
||||||
|
USEUNIT("..\..\..\zlib\deflate.c");
|
||||||
|
USEUNIT("..\..\..\zlib\gzio.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infblock.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infcodes.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inffast.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inflate.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inftrees.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infutil.c");
|
||||||
|
USEUNIT("..\..\..\zlib\trees.c");
|
||||||
|
USEUNIT("..\..\..\zlib\uncompr.c");
|
||||||
|
USEUNIT("..\..\..\zlib\adler32.c");
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
This file is used by the project manager only and should be treated like the project file
|
||||||
|
|
||||||
|
|
||||||
|
DllEntryPoint
|
||||||
25
projects/borland/zlib.bpg
Normal file
25
projects/borland/zlib.bpg
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#------------------------------------------------------------------------------
|
||||||
|
VERSION = BWS.01
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
!ifndef ROOT
|
||||||
|
ROOT = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||||
|
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||||
|
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
PROJECTS = zlibstat.lib zlib.dll
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
default: $(PROJECTS)
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
zlibstat.lib: zlibstat.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
zlib.dll: zlib.bpr
|
||||||
|
$(ROOT)\bin\bpr2mak $**
|
||||||
|
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||||
|
|
||||||
|
|
||||||
147
projects/borland/zlib.bpr
Normal file
147
projects/borland/zlib.bpr
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!-- C++Builder XML Project -->
|
||||||
|
<PROJECT>
|
||||||
|
<MACROS>
|
||||||
|
<VERSION value="BCB.05.03"/>
|
||||||
|
<PROJECT value="zlib.dll"/>
|
||||||
|
<OBJFILES value="zlib.obj ..\..\..\zlib\zutil.obj ..\..\..\zlib\compress.obj
|
||||||
|
..\..\..\zlib\crc32.obj ..\..\..\zlib\deflate.obj ..\..\..\zlib\gzio.obj
|
||||||
|
..\..\..\zlib\infblock.obj ..\..\..\zlib\infcodes.obj
|
||||||
|
..\..\..\zlib\inffast.obj ..\..\..\zlib\inflate.obj
|
||||||
|
..\..\..\zlib\inftrees.obj ..\..\..\zlib\infutil.obj
|
||||||
|
..\..\..\zlib\trees.obj ..\..\..\zlib\uncompr.obj ..\..\..\zlib\adler32.obj"/>
|
||||||
|
<RESFILES value=""/>
|
||||||
|
<DEFFILE value=""/>
|
||||||
|
<RESDEPEN value="$(RESFILES)"/>
|
||||||
|
<LIBFILES value=""/>
|
||||||
|
<LIBRARIES value="bcbsmp50.lib dclocx50.lib NMFast50.lib Tee50.lib Vclx50.lib Vcl50.lib"/>
|
||||||
|
<SPARELIBS value="Vcl50.lib Vclx50.lib Tee50.lib NMFast50.lib dclocx50.lib bcbsmp50.lib"/>
|
||||||
|
<PACKAGES value="Vcl50.bpi Vclx50.bpi bcbsmp50.bpi Qrpt50.bpi Vcldb50.bpi Vclbde50.bpi
|
||||||
|
ibsmp50.bpi vcldbx50.bpi TeeUI50.bpi TeeDB50.bpi Tee50.bpi TeeQR50.bpi
|
||||||
|
VCLIB50.bpi bcbie50.bpi vclie50.bpi Inetdb50.bpi Inet50.bpi NMFast50.bpi
|
||||||
|
dclocx50.bpi bcb97axserver50.bpi SIMULUSCOMPONENTS.bpi Simulus2.bpi"/>
|
||||||
|
<PATHCPP value=".;..\..\..\zlib"/>
|
||||||
|
<PATHPAS value=".;"/>
|
||||||
|
<PATHRC value=".;"/>
|
||||||
|
<PATHASM value=".;"/>
|
||||||
|
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
|
||||||
|
<RELEASELIBPATH value="$(BCB)\lib\release"/>
|
||||||
|
<LINKER value="tlink32"/>
|
||||||
|
<USERDEFINES value="ZLIB_DLL;Z_PREFIX"/>
|
||||||
|
<SYSDEFINES value="NO_STRICT;_NO_VCL;_RTLDLL"/>
|
||||||
|
<MAINSOURCE value="zlib.bpf"/>
|
||||||
|
<INCLUDEPATH value="..\..\..\zlib;$(BCB)\include"/>
|
||||||
|
<LIBPATH value="..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||||
|
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wuse -wucp -wstv -wstu -wpin
|
||||||
|
-w-par -wnod -wnak -wdef -wcln -wbbf -w-aus -wasm -wamp -wamb"/>
|
||||||
|
</MACROS>
|
||||||
|
<OPTIONS>
|
||||||
|
<CFLAG1 value="-WD -O2 -w -Vx -Ve -x- -RT- -ff -X- -a8 -5 -b- -d -k- -vi -tWD -tWM -c"/>
|
||||||
|
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||||
|
<RFLAGS value=""/>
|
||||||
|
<AFLAGS value="/mx /w2 /zn"/>
|
||||||
|
<LFLAGS value="-D"" -aa -Tpd -x -Gn -Gi -w"/>
|
||||||
|
</OPTIONS>
|
||||||
|
<LINKER>
|
||||||
|
<ALLOBJ value="c0d32.obj $(OBJFILES)"/>
|
||||||
|
<ALLRES value="$(RESFILES)"/>
|
||||||
|
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
|
||||||
|
</LINKER>
|
||||||
|
<IDEOPTIONS>
|
||||||
|
[Version Info]
|
||||||
|
IncludeVerInfo=0
|
||||||
|
AutoIncBuild=0
|
||||||
|
MajorVer=1
|
||||||
|
MinorVer=0
|
||||||
|
Release=0
|
||||||
|
Build=0
|
||||||
|
Debug=0
|
||||||
|
PreRelease=0
|
||||||
|
Special=0
|
||||||
|
Private=0
|
||||||
|
DLL=1
|
||||||
|
Locale=2057
|
||||||
|
CodePage=1252
|
||||||
|
|
||||||
|
[Version Info Keys]
|
||||||
|
CompanyName=
|
||||||
|
FileDescription=
|
||||||
|
FileVersion=1.0.0.0
|
||||||
|
InternalName=
|
||||||
|
LegalCopyright=
|
||||||
|
LegalTrademarks=
|
||||||
|
OriginalFilename=
|
||||||
|
ProductName=
|
||||||
|
ProductVersion=1.0.0.0
|
||||||
|
Comments=
|
||||||
|
|
||||||
|
[HistoryLists\hlIncludePath]
|
||||||
|
Count=16
|
||||||
|
Item0=..\..\..\zlib;$(BCB)\include
|
||||||
|
Item1=..\..\..;..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\include
|
||||||
|
Item2=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\include
|
||||||
|
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||||
|
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item5=..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item6=$(BCB)\include
|
||||||
|
Item7=..\Source;..\Source\General\Templates;..\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item8=P:\Development\Source\;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item9=P:\Development\Source;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item10=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item11=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item12=P:\Development\Source\General\Templates\;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item13=P:\Development\Source\General\Templates;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item14=P:\Development\Source;$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
Item15=$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlLibraryPath]
|
||||||
|
Count=12
|
||||||
|
Item0=..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item1=..\..\..;..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item2=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item5=$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item6=..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item7=..\Source\SIMUtilities;..\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item8=P:\Development\Source\SIMUtilities\;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item9=P:\Development\Source\SIMUtilities;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item10=P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item11=P:\Development\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
|
||||||
|
[HistoryLists\hlDebugSourcePath]
|
||||||
|
Count=1
|
||||||
|
Item0=$(BCB)\source\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlConditionals]
|
||||||
|
Count=8
|
||||||
|
Item0=ZLIB_DLL;Z_PREFIX
|
||||||
|
Item1=ZLIB_DLL;_DEBUG;Z_PREFIX
|
||||||
|
Item2=ZLIB_DLL;_DEBUG
|
||||||
|
Item3=ZLIB_DLL
|
||||||
|
Item4=_WINDOWS;ZLIB_DLL
|
||||||
|
Item5=_HTML_FORM
|
||||||
|
Item6=_DEBUG;_HTML_FORM
|
||||||
|
Item7=_DEBUG
|
||||||
|
|
||||||
|
[HistoryLists\hlIntOutputDir]
|
||||||
|
Count=2
|
||||||
|
Item0=..\Obj
|
||||||
|
Item1=P:\Development\Obj
|
||||||
|
|
||||||
|
[Debugging]
|
||||||
|
DebugSourceDirs=
|
||||||
|
|
||||||
|
[Parameters]
|
||||||
|
RunParams=
|
||||||
|
HostApplication=
|
||||||
|
RemoteHost=
|
||||||
|
RemotePath=
|
||||||
|
RemoteDebug=0
|
||||||
|
|
||||||
|
[Compiler]
|
||||||
|
ShowInfoMsgs=0
|
||||||
|
LinkDebugVcl=0
|
||||||
|
LinkCGLIB=0
|
||||||
|
</IDEOPTIONS>
|
||||||
|
</PROJECT>
|
||||||
30
projects/borland/zlib.cpp
Normal file
30
projects/borland/zlib.cpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
// Important note about DLL memory management when your DLL uses the
|
||||||
|
// static version of the RunTime Library:
|
||||||
|
//
|
||||||
|
// If your DLL exports any functions that pass String objects (or structs/
|
||||||
|
// classes containing nested Strings) as parameter or function results,
|
||||||
|
// you will need to add the library MEMMGR.LIB to both the DLL project and
|
||||||
|
// any other projects that use the DLL. You will also need to use MEMMGR.LIB
|
||||||
|
// if any other projects which use the DLL will be performing new or delete
|
||||||
|
// operations on any non-TObject-derived classes which are exported from the
|
||||||
|
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
|
||||||
|
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
|
||||||
|
// the file BORLNDMM.DLL should be deployed along with your DLL.
|
||||||
|
//
|
||||||
|
// To avoid using BORLNDMM.DLL, pass string information using "char *" or
|
||||||
|
// ShortString parameters.
|
||||||
|
//
|
||||||
|
// If your DLL uses the dynamic version of the RTL, you do not need to
|
||||||
|
// explicitly add MEMMGR.LIB as this will be done implicitly for you
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
int WINAPI DllEntryPoint(HINSTANCE, unsigned long, void*)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
20
projects/borland/zlibstat.bpf
Normal file
20
projects/borland/zlibstat.bpf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
USEUNIT("..\..\..\zlib\zutil.c");
|
||||||
|
USEUNIT("..\..\..\zlib\compress.c");
|
||||||
|
USEUNIT("..\..\..\zlib\crc32.c");
|
||||||
|
USEUNIT("..\..\..\zlib\deflate.c");
|
||||||
|
USEUNIT("..\..\..\zlib\gzio.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infblock.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infcodes.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inffast.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inflate.c");
|
||||||
|
USEUNIT("..\..\..\zlib\inftrees.c");
|
||||||
|
USEUNIT("..\..\..\zlib\infutil.c");
|
||||||
|
USEUNIT("..\..\..\zlib\trees.c");
|
||||||
|
USEUNIT("..\..\..\zlib\uncompr.c");
|
||||||
|
USEUNIT("..\..\..\zlib\adler32.c");
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
#define Library
|
||||||
|
|
||||||
|
// To add a file to the library use the Project menu 'Add to Project'.
|
||||||
|
|
||||||
|
|
||||||
131
projects/borland/zlibstat.bpr
Normal file
131
projects/borland/zlibstat.bpr
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
|
<!-- C++Builder XML Project -->
|
||||||
|
<PROJECT>
|
||||||
|
<MACROS>
|
||||||
|
<VERSION value="BCB.05.03"/>
|
||||||
|
<PROJECT value="zlibstat.lib"/>
|
||||||
|
<OBJFILES value="..\..\..\zlib\zutil.obj ..\..\..\zlib\compress.obj ..\..\..\zlib\crc32.obj
|
||||||
|
..\..\..\zlib\deflate.obj ..\..\..\zlib\gzio.obj
|
||||||
|
..\..\..\zlib\infblock.obj ..\..\..\zlib\infcodes.obj
|
||||||
|
..\..\..\zlib\inffast.obj ..\..\..\zlib\inflate.obj
|
||||||
|
..\..\..\zlib\inftrees.obj ..\..\..\zlib\infutil.obj
|
||||||
|
..\..\..\zlib\trees.obj ..\..\..\zlib\uncompr.obj ..\..\..\zlib\adler32.obj"/>
|
||||||
|
<RESFILES value=""/>
|
||||||
|
<DEFFILE value=""/>
|
||||||
|
<RESDEPEN value="$(RESFILES)"/>
|
||||||
|
<LIBFILES value=""/>
|
||||||
|
<LIBRARIES value=""/>
|
||||||
|
<PACKAGES value=""/>
|
||||||
|
<PATHCPP value=".;..\..\..\zlib"/>
|
||||||
|
<PATHPAS value=".;"/>
|
||||||
|
<PATHRC value=".;"/>
|
||||||
|
<PATHASM value=".;"/>
|
||||||
|
<LINKER value="TLib"/>
|
||||||
|
<USERDEFINES value="Z_PREFIX"/>
|
||||||
|
<SYSDEFINES value="_RTLDLL;NO_STRICT"/>
|
||||||
|
<MAINSOURCE value="zlibstat.bpf"/>
|
||||||
|
<INCLUDEPATH value="..\..\..\zlib;$(BCB)\include"/>
|
||||||
|
<LIBPATH value="..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||||
|
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wuse -wucp -wstv -wstu -wpin
|
||||||
|
-wnod -wnak -wdef -wcln -wbbf -w-aus -wasm -wamp -wamb"/>
|
||||||
|
<LISTFILE value=""/>
|
||||||
|
</MACROS>
|
||||||
|
<OPTIONS>
|
||||||
|
<CFLAG1 value="-O2 -w -Vx -Ve -x- -RT- -X- -a8 -5 -b- -d -k- -vi -c -tW -tWM"/>
|
||||||
|
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||||
|
<AFLAGS value="/mx /w2 /zn"/>
|
||||||
|
<LFLAGS value=""/>
|
||||||
|
</OPTIONS>
|
||||||
|
<LINKER>
|
||||||
|
<ALLOBJ value="$(OBJFILES)"/>
|
||||||
|
<ALLLIB value=""/>
|
||||||
|
</LINKER>
|
||||||
|
<IDEOPTIONS>
|
||||||
|
[Version Info]
|
||||||
|
IncludeVerInfo=0
|
||||||
|
AutoIncBuild=0
|
||||||
|
MajorVer=1
|
||||||
|
MinorVer=0
|
||||||
|
Release=0
|
||||||
|
Build=0
|
||||||
|
Debug=0
|
||||||
|
PreRelease=0
|
||||||
|
Special=0
|
||||||
|
Private=0
|
||||||
|
DLL=0
|
||||||
|
Locale=2057
|
||||||
|
CodePage=1252
|
||||||
|
|
||||||
|
[Version Info Keys]
|
||||||
|
CompanyName=
|
||||||
|
FileDescription=
|
||||||
|
FileVersion=1.0.0.0
|
||||||
|
InternalName=
|
||||||
|
LegalCopyright=
|
||||||
|
LegalTrademarks=
|
||||||
|
OriginalFilename=
|
||||||
|
ProductName=
|
||||||
|
ProductVersion=1.0.0.0
|
||||||
|
Comments=
|
||||||
|
|
||||||
|
[HistoryLists\hlIncludePath]
|
||||||
|
Count=8
|
||||||
|
Item0=..\..\..\zlib;$(BCB)\include
|
||||||
|
Item1=..\Source\ThirdParty\ZLibCompression\external;..\..\..\zlib;$(BCB)\include
|
||||||
|
Item2=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||||
|
Item3=..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||||
|
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression\ext;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item5=..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||||
|
Item6=$(BCB)\include
|
||||||
|
Item7=$(BCB)\include;$(BCB)\include\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlLibraryPath]
|
||||||
|
Count=7
|
||||||
|
Item0=..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item1=$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item2=..\Source\ThirdParty\ZLibCompression\external;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item4=..\Source\ThirdParty\ZLibCompression\external;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item5=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression\ext;..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
Item6=..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||||
|
|
||||||
|
[HistoryLists\hlDebugSourcePath]
|
||||||
|
Count=1
|
||||||
|
Item0=$(BCB)\source\vcl
|
||||||
|
|
||||||
|
[HistoryLists\hlConditionals]
|
||||||
|
Count=3
|
||||||
|
Item0=Z_PREFIX
|
||||||
|
Item1=ZLIB_DLL
|
||||||
|
Item2=_WINDOWS;ZLIB_DLL
|
||||||
|
|
||||||
|
[HistoryLists\hlIntOutputDir]
|
||||||
|
Count=2
|
||||||
|
Item0=..\Obj
|
||||||
|
Item1=P:\Development\Obj
|
||||||
|
|
||||||
|
[HistoryLists\hlTlibPageSize]
|
||||||
|
Count=1
|
||||||
|
Item0=0x0010
|
||||||
|
|
||||||
|
[Debugging]
|
||||||
|
DebugSourceDirs=
|
||||||
|
|
||||||
|
[Parameters]
|
||||||
|
RunParams=
|
||||||
|
HostApplication=
|
||||||
|
RemoteHost=
|
||||||
|
RemotePath=
|
||||||
|
RemoteDebug=0
|
||||||
|
|
||||||
|
[Compiler]
|
||||||
|
ShowInfoMsgs=0
|
||||||
|
LinkDebugVcl=0
|
||||||
|
LinkCGLIB=0
|
||||||
|
|
||||||
|
[Language]
|
||||||
|
ActiveLang=
|
||||||
|
ProjectLang=
|
||||||
|
RootDir=
|
||||||
|
</IDEOPTIONS>
|
||||||
|
</PROJECT>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
Microsoft Developer Studio Build File, Format Version 6.00 for
|
Microsoft Developer Studio Build File, Format Version 6.00 for
|
||||||
libpng 1.0.8beta3 (July 11, 2000) and zlib
|
libpng 1.0.9beta3 (November 23, 2000) and zlib
|
||||||
|
|
||||||
Copyright (C) 2000 Simon-Pierre Cadieux
|
Copyright (C) 2000 Simon-Pierre Cadieux
|
||||||
For conditions of distribution and use, see copyright notice in png.h
|
For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
Assumes that libpng sources are in ..
|
Assumes that libpng sources are in ..\..
|
||||||
Assumes that zlib sources have been copied to ..\..\zlib
|
Assumes that zlib sources have been copied to ..\..\..\zlib
|
||||||
|
|
||||||
To build:
|
To build:
|
||||||
|
|
||||||
@@ -46,11 +46,11 @@ CFG=libpng - Win32 DLL
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /O1 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /c
|
# ADD CPP /nologo /MD /W3 /O1 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "NDEBUG"
|
# ADD RSC /l 0x409 /i "..\.." /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -74,11 +74,11 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /D "_WINDOWS" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /GZ /c
|
# ADD CPP /nologo /MDd /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /D "_WINDOWS" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /GZ /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "_DEBUG" /d PNG_DEBUG=1
|
# ADD RSC /l 0x409 /i "..\.." /d "_DEBUG" /d PNG_DEBUG=1
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -101,11 +101,11 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /O1 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "PNG_USE_PNGVCRD" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /c
|
# ADD CPP /nologo /MD /W3 /O1 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "PNG_USE_PNGVCRD" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "NDEBUG" /d "PNG_USE_PNGVCRD"
|
# ADD RSC /l 0x409 /i "..\.." /d "NDEBUG" /d "PNG_USE_PNGVCRD"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -129,11 +129,11 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /D "_WINDOWS" /D "PNG_USE_PNGVCRD" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /GZ /c
|
# ADD CPP /nologo /MDd /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /D "_WINDOWS" /D "PNG_USE_PNGVCRD" /D "PNG_BUILD_DLL" /D "ZLIB_DLL" /Yu"png.h" /FD /GZ /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "_DEBUG" /d PNG_DEBUG=1 /d "PNG_USE_PNGVCRD"
|
# ADD RSC /l 0x409 /i "..\.." /d "_DEBUG" /d PNG_DEBUG=1 /d "PNG_USE_PNGVCRD"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -156,10 +156,10 @@ LINK32=link.exe
|
|||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_LIB" /FD /c
|
# ADD BASE CPP /nologo /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_LIB" /FD /c
|
||||||
# ADD CPP /nologo /W3 /O1 /I ".." /I "..\..\zlib" /D "WIN32" /D "NDEBUG" /Yu"png.h" /FD /c
|
# ADD CPP /nologo /W3 /O1 /I "..\.." /I "..\..\..\zlib" /D "WIN32" /D "NDEBUG" /Yu"png.h" /FD /c
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "NDEBUG"
|
# ADD RSC /l 0x409 /i "..\.." /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -182,7 +182,7 @@ LIB32=link.exe -lib
|
|||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_LIB" /FD /GZ /c
|
# ADD BASE CPP /nologo /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_LIB" /FD /GZ /c
|
||||||
# ADD CPP /nologo /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /Yu"png.h" /FD /GZ /c
|
# ADD CPP /nologo /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "_DEBUG" /D PNG_DEBUG=1 /D "WIN32" /Yu"png.h" /FD /GZ /c
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||||
@@ -208,7 +208,7 @@ LIB32=link.exe -lib
|
|||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\png.c
|
SOURCE=..\..\png.c
|
||||||
# SUBTRACT CPP /YX /Yc /Yu
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
@@ -259,48 +259,48 @@ SOURCE=.\png32ms.def
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngerror.c
|
SOURCE=..\..\pngerror.c
|
||||||
# ADD CPP /Yc"png.h"
|
# ADD CPP /Yc"png.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngget.c
|
SOURCE=..\..\pngget.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngmem.c
|
SOURCE=..\..\pngmem.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngpread.c
|
SOURCE=..\..\pngpread.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngread.c
|
SOURCE=..\..\pngread.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngrio.c
|
SOURCE=..\..\pngrio.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngrtran.c
|
SOURCE=..\..\pngrtran.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngrutil.c
|
SOURCE=..\..\pngrutil.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngset.c
|
SOURCE=..\..\pngset.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngtrans.c
|
SOURCE=..\..\pngtrans.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngvcrd.c
|
SOURCE=..\..\pngvcrd.c
|
||||||
|
|
||||||
!IF "$(CFG)" == "libpng - Win32 DLL"
|
!IF "$(CFG)" == "libpng - Win32 DLL"
|
||||||
|
|
||||||
@@ -327,19 +327,19 @@ SOURCE=..\pngvcrd.c
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngwio.c
|
SOURCE=..\..\pngwio.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngwrite.c
|
SOURCE=..\..\pngwrite.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngwtran.c
|
SOURCE=..\..\pngwtran.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngwutil.c
|
SOURCE=..\..\pngwutil.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Header Files"
|
# Begin Group "Header Files"
|
||||||
@@ -347,11 +347,11 @@ SOURCE=..\pngwutil.c
|
|||||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\png.h
|
SOURCE=..\..\png.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\pngconf.h
|
SOURCE=..\..\pngconf.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Resource Files"
|
# Begin Group "Resource Files"
|
||||||
@@ -18,6 +18,9 @@
|
|||||||
# else
|
# else
|
||||||
# define DLLFNAME_POSTFIX "A"
|
# define DLLFNAME_POSTFIX "A"
|
||||||
# endif /* !defined(DLLFNAME_POSTFIX)... */
|
# endif /* !defined(DLLFNAME_POSTFIX)... */
|
||||||
|
# if !defined(SPECIALBUILD)
|
||||||
|
# define SPECIALBUILD "Use MMX instructions"
|
||||||
|
# endif /* SPECIALBUILD */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_DEBUG) && (PNG_DEBUG > 0)
|
#if defined(PNG_DEBUG) && (PNG_DEBUG > 0)
|
||||||
@@ -47,13 +50,27 @@
|
|||||||
# define VS_SPECIALBUILD 0
|
# define VS_SPECIALBUILD 0
|
||||||
#endif /* SPECIALBUILD */
|
#endif /* SPECIALBUILD */
|
||||||
|
|
||||||
|
#if ((PNG_LIBPNG_BUILD_TYPE & PNG_LIBPNG_BUILD_TYPEMASK) != \
|
||||||
|
PNG_LIBPNG_BUILD_STABLE)
|
||||||
|
# define VS_PRERELEASE VS_FF_PRERELEASE
|
||||||
|
# define VS_PATCHED 0
|
||||||
|
#else
|
||||||
|
# define VS_PRERELEASE 0
|
||||||
|
# if (PNG_LIBPNG_BUILD_TYPE & PNG_LIBPNG_BUILD_PATCHED)
|
||||||
|
# define VS_PATCHED VS_FF_PATCHED
|
||||||
|
# else
|
||||||
|
# define VS_PATCHED 0
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
|
FILEVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
|
||||||
PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
|
PRODUCTVERSION PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE, PNG_LIBPNG_VER_BUILD
|
||||||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||||
FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD
|
FILEFLAGS VS_DEBUG | VS_PRIVATEBUILD | VS_SPECIALBUILD | VS_PRERELEASE | VS_PATCHED
|
||||||
FILEOS VOS__WINDOWS32
|
FILEOS VOS__WINDOWS32
|
||||||
FILETYPE VFT_DLL
|
FILETYPE VFT_DLL
|
||||||
|
FILESUBTYPE VFT2_UNKNOWN
|
||||||
BEGIN
|
BEGIN
|
||||||
BLOCK "StringFileInfo"
|
BLOCK "StringFileInfo"
|
||||||
BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */
|
BEGIN BLOCK "040904E4" /* Language type = U.S English(0x0409) and Character Set = Windows, Multilingual(0x04E4) */
|
||||||
@@ -6,7 +6,7 @@ LIBRARY
|
|||||||
DESCRIPTION "PNG image compression library for Windows"
|
DESCRIPTION "PNG image compression library for Windows"
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
;Version 1.0.8beta3
|
;Version 1.0.9beta3
|
||||||
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
|
||||||
@@ -101,11 +101,11 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
# ADD BASE CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /O1 /I "..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "ZLIB_DLL" /D "DYNAMIC_CRC_TABLE" /D "ASMV" /FAcs /FD /c
|
# ADD CPP /nologo /MD /W3 /O1 /I "..\..\..\zlib" /D "NDEBUG" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "ZLIB_DLL" /D "DYNAMIC_CRC_TABLE" /D "ASMV" /FAcs /FD /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "NDEBUG"
|
# ADD RSC /l 0x409 /i "..\.." /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -129,11 +129,11 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
# ADD BASE CPP /nologo /MDd /W3 /Zi /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /FD /GZ /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Zi /Od /I "..\..\zlib" /D "_DEBUG" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "ZLIB_DLL" /D "DYNAMIC_CRC_TABLE" /D "ASMV" /FAcs /FD /GZ /c
|
# ADD CPP /nologo /MDd /W3 /Zi /Od /I "..\..\..\zlib" /D "_DEBUG" /D "WIN32" /D "_WIN32" /D "_WINDOWS" /D "ZLIB_DLL" /D "DYNAMIC_CRC_TABLE" /D "ASMV" /FAcs /FD /GZ /c
|
||||||
MTL=midl.exe
|
MTL=midl.exe
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
# ADD RSC /l 0x409 /i ".." /d "_DEBUG"
|
# ADD RSC /l 0x409 /i "..\.." /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
# ADD BASE BSC32 /nologo
|
# ADD BASE BSC32 /nologo
|
||||||
# ADD BSC32 /nologo
|
# ADD BSC32 /nologo
|
||||||
@@ -208,23 +208,23 @@ LIB32=link.exe -lib
|
|||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\adler32.c
|
SOURCE=..\..\..\zlib\adler32.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\compress.c
|
SOURCE=..\..\..\zlib\compress.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\crc32.c
|
SOURCE=..\..\..\zlib\crc32.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\deflate.c
|
SOURCE=..\..\..\zlib\deflate.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\contrib\asm386\gvmat32c.c
|
SOURCE=..\..\..\zlib\contrib\asm386\gvmat32c.c
|
||||||
|
|
||||||
!IF "$(CFG)" == "zlib - Win32 DLL"
|
!IF "$(CFG)" == "zlib - Win32 DLL"
|
||||||
|
|
||||||
@@ -251,46 +251,46 @@ SOURCE=..\..\zlib\contrib\asm386\gvmat32c.c
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\gzio.c
|
SOURCE=..\..\..\zlib\gzio.c
|
||||||
# ADD CPP /Yc"zutil.h"
|
# ADD CPP /Yc"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infblock.c
|
SOURCE=..\..\..\zlib\infblock.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infcodes.c
|
SOURCE=..\..\..\zlib\infcodes.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inffast.c
|
SOURCE=..\..\..\zlib\inffast.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inflate.c
|
SOURCE=..\..\..\zlib\inflate.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inftrees.c
|
SOURCE=..\..\..\zlib\inftrees.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infutil.c
|
SOURCE=..\..\..\zlib\infutil.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\trees.c
|
SOURCE=..\..\..\zlib\trees.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\uncompr.c
|
SOURCE=..\..\..\zlib\uncompr.c
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ SOURCE=.\zlib.def
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\msdos\zlib.rc
|
SOURCE=..\..\..\zlib\msdos\zlib.rc
|
||||||
|
|
||||||
!IF "$(CFG)" == "zlib - Win32 DLL"
|
!IF "$(CFG)" == "zlib - Win32 DLL"
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ SOURCE=..\..\zlib\msdos\zlib.rc
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\zutil.c
|
SOURCE=..\..\..\zlib\zutil.c
|
||||||
# ADD CPP /Yu"zutil.h"
|
# ADD CPP /Yu"zutil.h"
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
@@ -349,47 +349,47 @@ SOURCE=..\..\zlib\zutil.c
|
|||||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\deflate.h
|
SOURCE=..\..\..\zlib\deflate.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infblock.h
|
SOURCE=..\..\..\zlib\infblock.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infcodes.h
|
SOURCE=..\..\..\zlib\infcodes.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inffast.h
|
SOURCE=..\..\..\zlib\inffast.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inffixed.h
|
SOURCE=..\..\..\zlib\inffixed.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\inftrees.h
|
SOURCE=..\..\..\zlib\inftrees.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\infutil.h
|
SOURCE=..\..\..\zlib\infutil.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\trees.h
|
SOURCE=..\..\..\zlib\trees.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\zconf.h
|
SOURCE=..\..\..\zlib\zconf.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\zlib.h
|
SOURCE=..\..\..\zlib\zlib.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\zlib\zutil.h
|
SOURCE=..\..\..\zlib\zutil.h
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Resource Files"
|
# Begin Group "Resource Files"
|
||||||
@@ -8,9 +8,9 @@ libpng for WindowsCE Rel.1.0
|
|||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
============
|
============
|
||||||
This is libpng 1.0.7 ported to WindowsCE 2.0 and 2.11.
|
This is libpng 1.0.9beta3 ported to WindowsCE 2.0 and 2.11.
|
||||||
libpng 1.0.7 is a PNG reference library.
|
libpng 1.0.9beta3 is a PNG reference library.
|
||||||
See README, a document of original libpng 1.0.7.
|
See README, a document of original libpng 1.0.9beta3.
|
||||||
|
|
||||||
zlib for WindowsCE
|
zlib for WindowsCE
|
||||||
==================
|
==================
|
||||||
@@ -23,7 +23,7 @@ This software is provided 'as-is', without any express or implied
|
|||||||
warranty. In no event will the authors be held liable for any damages
|
warranty. In no event will the authors be held liable for any damages
|
||||||
arising from the use of this software.
|
arising from the use of this software.
|
||||||
|
|
||||||
See README and LICENSE, documents of original libpng 1.0.7, for conditions
|
See README and LICENSE, documents of original libpng 1.0.9beta3, for conditions
|
||||||
of use and distribution.
|
of use and distribution.
|
||||||
|
|
||||||
Files
|
Files
|
||||||
@@ -33,8 +33,8 @@ Files
|
|||||||
READMEJ.WCE - this file(in Japanese)
|
READMEJ.WCE - this file(in Japanese)
|
||||||
png32ce.def - module definition file to make DLLs
|
png32ce.def - module definition file to make DLLs
|
||||||
|
|
||||||
Sample programs(../pngtest.c and ../contrib/*) can build on WindowsCE 2.11.
|
Sample programs(../../pngtest.c and ../../contrib/*) can build on WindowsCE
|
||||||
WindowsCE 2.0 and below do not support 'console' functions.
|
2.11. WindowsCE 2.0 and below do not support 'console' functions.
|
||||||
|
|
||||||
Author
|
Author
|
||||||
======
|
======
|
||||||
@@ -24,7 +24,7 @@ libpng
|
|||||||
になったいかなる被害についても、作者、配布者、その他利用者以外の人物、
|
になったいかなる被害についても、作者、配布者、その他利用者以外の人物、
|
||||||
団体に責任をとる義務はないものとします。
|
団体に責任をとる義務はないものとします。
|
||||||
|
|
||||||
その他、このソフトウェアの利用条件については、原版である libpng 1.0.7に
|
その他、このソフトウェアの利用条件については、原版である libpng 1.0.9beta3に
|
||||||
準拠するものとします。詳しくは、付属の README,LICENSE をお読みください。
|
準拠するものとします。詳しくは、付属の README,LICENSE をお読みください。
|
||||||
|
|
||||||
収録内容
|
収録内容
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@
|
|||||||
LIBRARY lpngce
|
LIBRARY lpngce
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
;Version 1.0.7
|
;Version 1.0.9beta3
|
||||||
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
|
||||||
@@ -62,7 +62,7 @@ CFG=pngtest - Win32 (WCE MIPS) Debug
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clmips.exe
|
CPP=clmips.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /QMRWCE /c
|
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /QMRWCE /c
|
||||||
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /QMRWCE /c
|
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /QMRWCE /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -93,7 +93,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clmips.exe
|
CPP=clmips.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /QMRWCE /c
|
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /QMRWCE /c
|
||||||
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /QMRWCE /c
|
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /QMRWCE /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
||||||
@@ -124,7 +124,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=shcl.exe
|
CPP=shcl.exe
|
||||||
# ADD BASE CPP /nologo /Qsh4 /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /Qsh4 /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /Qsh4 /MC /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /Qsh4 /MC /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH4" /d "_SH4_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH4" /d "_SH4_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -155,7 +155,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=shcl.exe
|
CPP=shcl.exe
|
||||||
# ADD BASE CPP /nologo /Qsh4 /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /Qsh4 /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /Qsh4 /MC /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /Qsh4 /MC /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "SHx" /D "SH4" /D "_SH4_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH4" /d "_SH4_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH4" /d "_SH4_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
||||||
@@ -186,7 +186,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=shcl.exe
|
CPP=shcl.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH3" /d "_SH3_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH3" /d "_SH3_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -217,7 +217,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=shcl.exe
|
CPP=shcl.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "SHx" /D "SH3" /D "_SH3_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH3" /d "_SH3_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "SHx" /d "SH3" /d "_SH3_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
||||||
@@ -248,7 +248,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clarm.exe
|
CPP=clarm.exe
|
||||||
# ADD BASE CPP /nologo /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /MC /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "ARM" /D "_ARM_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /MC /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "ARM" /D "_ARM_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "ARM" /d "_ARM_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "ARM" /d "_ARM_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -279,7 +279,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clarm.exe
|
CPP=clarm.exe
|
||||||
# ADD BASE CPP /nologo /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /MC /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "ARM" /D "_ARM_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /MC /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "ARM" /D "_ARM_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "ARM" /d "_ARM_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "ARM" /d "_ARM_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
||||||
@@ -310,7 +310,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clmips.exe
|
CPP=clmips.exe
|
||||||
# ADD BASE CPP /nologo /QMFWCE /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /QMFWCE /MC /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /QMFWCE /MC /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /QMFWCE /MC /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -341,7 +341,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clmips.exe
|
CPP=clmips.exe
|
||||||
# ADD BASE CPP /nologo /QMFWCE /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /QMFWCE /MC /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /QMFWCE /MC /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /QMFWCE /MC /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "MIPS" /D "_MIPS_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "MIPS" /d "_MIPS_" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "UNICODE" /d "DEBUG"
|
||||||
@@ -372,7 +372,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /ML /W3 /O2 /D "x86" /D "_i386_" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "NDEBUG" /D "i_386_" /D "_MBCS" /Gs8192 /GF /c
|
# ADD BASE CPP /nologo /ML /W3 /O2 /D "x86" /D "_i386_" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "NDEBUG" /D "i_386_" /D "_MBCS" /Gs8192 /GF /c
|
||||||
# ADD CPP /nologo /ML /W3 /O2 /I ".." /I "..\..\zlib" /D "x86" /D "_i386_" /D "_x86_" /D "NDEBUG" /D "i_386_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /Gs8192 /GF /c
|
# ADD CPP /nologo /ML /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "x86" /D "_i386_" /D "_x86_" /D "NDEBUG" /D "i_386_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /Gs8192 /GF /c
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
||||||
# ADD RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
# ADD RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -402,7 +402,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MLd /W3 /Zi /Od /D "x86" /D "_i386_" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "DEBUG" /D "i_386_" /D "_MBCS" /Gs8192 /GF /c
|
# ADD BASE CPP /nologo /MLd /W3 /Zi /Od /D "x86" /D "_i386_" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "DEBUG" /D "i_386_" /D "_MBCS" /Gs8192 /GF /c
|
||||||
# ADD CPP /nologo /MLd /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "x86" /D "_i386_" /D "_x86_" /D "DEBUG" /D "i_386_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /Gs8192 /GF /c
|
# ADD CPP /nologo /MLd /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "x86" /D "_i386_" /D "_x86_" /D "DEBUG" /D "i_386_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /Gs8192 /GF /c
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
||||||
# ADD RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
# ADD RSC /l 0x411 /r /d "x86" /d "_i386_" /d "_x86_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
||||||
@@ -432,7 +432,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /ML /W3 /O2 /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "STRICT" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "NDEBUG" /D "x86" /D "i486" /D "_x86_" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /ML /W3 /O2 /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "STRICT" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "NDEBUG" /D "x86" /D "i486" /D "_x86_" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /ML /W3 /O2 /I ".." /I "..\..\zlib" /D "_UNICODE" /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "NDEBUG" /D "x86" /D "i486" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /ML /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "_UNICODE" /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "NDEBUG" /D "x86" /D "i486" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "WIN32" /d "STRICT" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "_WIN32_WCE_EMULATION" /d "INTERNATIONAL" /d "USA" /d "INTLMSG_CODEPAGE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "WIN32" /d "STRICT" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "_WIN32_WCE_EMULATION" /d "INTERNATIONAL" /d "USA" /d "INTLMSG_CODEPAGE" /d "NDEBUG"
|
||||||
@@ -461,7 +461,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=cl.exe
|
CPP=cl.exe
|
||||||
# ADD BASE CPP /nologo /MLd /W3 /Gm /Zi /Od /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "STRICT" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "_DEBUG" /D "x86" /D "i486" /D "_x86_" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /MLd /W3 /Gm /Zi /Od /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "STRICT" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "_DEBUG" /D "x86" /D "i486" /D "_x86_" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /MLd /W3 /Gm /Zi /Od /I ".." /I "..\..\zlib" /D "_UNICODE" /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "_DEBUG" /D "x86" /D "i486" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /MLd /W3 /Gm /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "_UNICODE" /D "WIN32" /D "STRICT" /D "_WIN32_WCE_EMULATION" /D "INTERNATIONAL" /D "USA" /D "INTLMSG_CODEPAGE" /D "_DEBUG" /D "x86" /D "i486" /D "_x86_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "WIN32" /d "STRICT" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "_WIN32_WCE_EMULATION" /d "INTERNATIONAL" /d "USA" /d "INTLMSG_CODEPAGE" /d "_DEBUG" /d "x86" /d "i486" /d "_x86_"
|
# ADD BASE RSC /l 0x411 /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "WIN32" /d "STRICT" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d "_WIN32_WCE_EMULATION" /d "INTERNATIONAL" /d "USA" /d "INTLMSG_CODEPAGE" /d "_DEBUG" /d "x86" /d "i486" /d "_x86_"
|
||||||
@@ -490,7 +490,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clppc.exe
|
CPP=clppc.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "PPC" /D "_PPC_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /M$(CECrt) /W3 /O2 /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "NDEBUG" /D "PPC" /D "_PPC_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I ".." /I "..\..\zlib" /D "NDEBUG" /D "PPC" /D "_PPC_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /M$(CECrt) /W3 /O2 /I "..\.." /I "..\..\..\zlib" /D "NDEBUG" /D "PPC" /D "_PPC_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "ppc" /d "_ppc_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "ppc" /d "_ppc_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "NDEBUG"
|
||||||
@@ -521,7 +521,7 @@ LINK32=link.exe
|
|||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
CPP=clppc.exe
|
CPP=clppc.exe
|
||||||
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "PPC" /D "_PPC_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
# ADD BASE CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D "DEBUG" /D "PPC" /D "_PPC_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /YX /c
|
||||||
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I ".." /I "..\..\zlib" /D "DEBUG" /D "PPC" /D "_PPC_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
# ADD CPP /nologo /M$(CECrtDebug) /W3 /Zi /Od /I "..\.." /I "..\..\..\zlib" /D "DEBUG" /D "PPC" /D "_PPC_" /D _WIN32_WCE=$(CEVersion) /D "$(CEConfigName)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_MBCS" /D "PNG_USE_DLL" /c
|
||||||
# SUBTRACT CPP /YX
|
# SUBTRACT CPP /YX
|
||||||
RSC=rc.exe
|
RSC=rc.exe
|
||||||
# ADD BASE RSC /l 0x411 /r /d "ppc" /d "_ppc_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
# ADD BASE RSC /l 0x411 /r /d "ppc" /d "_ppc_" /d _WIN32_WCE=$(CEVersion) /d "$(CEConfigName)" /d UNDER_CE=$(CEVersion) /d "UNICODE" /d "DEBUG"
|
||||||
@@ -568,209 +568,209 @@ SOURCE=..\pngtest.c
|
|||||||
!IF "$(CFG)" == "pngtest - Win32 (WCE MIPS) Release"
|
!IF "$(CFG)" == "pngtest - Win32 (WCE MIPS) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPS) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPS) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH4) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH4) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH4) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH4) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH3) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH3) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH3) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE SH3) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE ARM) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE ARM) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE ARM) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE ARM) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPSFP) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPSFP) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPSFP) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE MIPSFP) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86em) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86em) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86em) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE x86em) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE PPC) Release"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE PPC) Release"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE PPC) Debug"
|
!ELSEIF "$(CFG)" == "pngtest - Win32 (WCE PPC) Debug"
|
||||||
|
|
||||||
DEP_CPP_PNGTE=\
|
DEP_CPP_PNGTE=\
|
||||||
"..\..\zlib\zconf.h"\
|
"..\..\..\zlib\zconf.h"\
|
||||||
"..\..\zlib\zlib.h"\
|
"..\..\..\zlib\zlib.h"\
|
||||||
"..\png.h"\
|
"..\..\png.h"\
|
||||||
"..\pngasmrd.h"\
|
"..\..\pngasmrd.h"\
|
||||||
"..\pngconf.h"\
|
"..\..\pngconf.h"\
|
||||||
|
|
||||||
NODEP_CPP_PNGTE=\
|
NODEP_CPP_PNGTE=\
|
||||||
"..\alloc.h"\
|
"..\..\alloc.h"\
|
||||||
|
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
2168
projects/wince/zlib.diff
Normal file
2168
projects/wince/zlib.diff
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2,40 +2,40 @@
|
|||||||
|
|
||||||
|
|
||||||
# Toolflags:
|
# Toolflags:
|
||||||
CCflags = -c -depend !Depend -IC:,Zlib: -g -throwback -DRISCOS -fnah
|
CCflags = -c -depend !Depend -IC:,Zlib: -g -throwback -DRISCOS -fnah
|
||||||
C++flags = -c -depend !Depend -IC: -throwback
|
C++flags = -c -depend !Depend -IC: -throwback
|
||||||
Linkflags = -aif -c++ -o $@
|
Linkflags = -aif -c++ -o $@
|
||||||
ObjAsmflags = -throwback -NoCache -depend !Depend
|
ObjAsmflags = -throwback -NoCache -depend !Depend
|
||||||
CMHGflags =
|
CMHGflags =
|
||||||
LibFileflags = -c -l -o $@
|
LibFileflags = -c -l -o $@
|
||||||
Squeezeflags = -o $@
|
Squeezeflags = -o $@
|
||||||
|
|
||||||
|
|
||||||
# Final targets:
|
# Final targets:
|
||||||
@.libpng-lib: @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \
|
@.libpng-lib: @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \
|
||||||
@.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \
|
@.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \
|
||||||
@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
|
@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
|
||||||
LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \
|
LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \
|
||||||
@.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \
|
@.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \
|
||||||
@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
|
@.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
|
||||||
@.mm-libpng-lib: @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \
|
@.mm-libpng-lib: @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \
|
||||||
@.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \
|
@.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \
|
||||||
@.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil
|
@.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil
|
||||||
LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \
|
LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \
|
||||||
@.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \
|
@.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \
|
||||||
@.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \
|
@.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \
|
||||||
@.mm.pngwtran @.mm.pngwutil
|
@.mm.pngwtran @.mm.pngwutil
|
||||||
|
|
||||||
|
|
||||||
# User-editable dependencies:
|
# User-editable dependencies:
|
||||||
# (C) Copyright 1997 Tom Tanner
|
# (C) Copyright 1997 Tom Tanner
|
||||||
Test: @.pngtest
|
Test: @.pngtest
|
||||||
<Prefix$Dir>.pngtest
|
<Prefix$Dir>.pngtest
|
||||||
@remove <Prefix$Dir>.pngtest
|
@remove <Prefix$Dir>.pngtest
|
||||||
|
|
||||||
#It would be nice if you could stop "make" listing from here on!
|
#It would be nice if you could stop "make" listing from here on!
|
||||||
@.pngtest: @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
|
@.pngtest: @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
|
||||||
Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
|
Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
|
||||||
|
|
||||||
.SUFFIXES: .o .mm .c
|
.SUFFIXES: .o .mm .c
|
||||||
|
|
||||||
|
|||||||
84
scripts/makefile.aix
Normal file
84
scripts/makefile.aix
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
# makefile for libpng using gcc (generic, static library)
|
||||||
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
|
# Copyright (C) 2000 Cosmin Truta
|
||||||
|
# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
# Location of the zlib library and include files
|
||||||
|
ZLIBINC = ../zlib
|
||||||
|
ZLIBLIB = ../zlib
|
||||||
|
|
||||||
|
# Compiler, linker, lib and other tools
|
||||||
|
CC = gcc
|
||||||
|
LD = $(CC)
|
||||||
|
AR = ar rcs
|
||||||
|
RANLIB = ranlib
|
||||||
|
RM = rm -f
|
||||||
|
|
||||||
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
|
# have to change it.
|
||||||
|
PNGMAJ = 2
|
||||||
|
PNGMIN = 1.0.9beta3
|
||||||
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
|
prefix=/usr/local
|
||||||
|
INCPATH=$(prefix)/include
|
||||||
|
LIBPATH=$(prefix)/lib
|
||||||
|
|
||||||
|
CDEBUG = -g -DPNG_DEBUG=5
|
||||||
|
LDDEBUG =
|
||||||
|
CRELEASE = -O2
|
||||||
|
LDRELEASE = -s
|
||||||
|
CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
|
||||||
|
LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
|
||||||
|
|
||||||
|
# File extensions
|
||||||
|
O=.o
|
||||||
|
A=.a
|
||||||
|
E=
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
|
||||||
|
pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
|
||||||
|
pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
|
||||||
|
|
||||||
|
# Targets
|
||||||
|
all: libpng$(A) pngtest$(E)
|
||||||
|
|
||||||
|
libpng$(A): $(OBJS)
|
||||||
|
$(AR) $@ $(OBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
test: pngtest$(E)
|
||||||
|
./pngtest$(E)
|
||||||
|
|
||||||
|
pngtest$(E): pngtest$(O) libpng$(A)
|
||||||
|
$(LD) -o $@ pngtest$(O) $(LDFLAGS)
|
||||||
|
|
||||||
|
install: libpng.a
|
||||||
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
cp png.h pngconf.h $(INCPATH)
|
||||||
|
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
|
cp libpng.a $(LIBPATH)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -f *.o libpng.a libpng.so* pngtest pngout.png
|
||||||
|
|
||||||
|
png$(O): png.h pngconf.h
|
||||||
|
pngerror$(O): png.h pngconf.h
|
||||||
|
pngget$(O): png.h pngconf.h
|
||||||
|
pngmem$(O): png.h pngconf.h
|
||||||
|
pngpread$(O): png.h pngconf.h
|
||||||
|
pngread$(O): png.h pngconf.h
|
||||||
|
pngrio$(O): png.h pngconf.h
|
||||||
|
pngrtran$(O): png.h pngconf.h
|
||||||
|
pngrutil$(O): png.h pngconf.h
|
||||||
|
pngset$(O): png.h pngconf.h
|
||||||
|
pngtest$(O): png.h pngconf.h
|
||||||
|
pngtrans$(O): png.h pngconf.h
|
||||||
|
pngwio$(O): png.h pngconf.h
|
||||||
|
pngwrite$(O): png.h pngconf.h
|
||||||
|
pngwtran$(O): png.h pngconf.h
|
||||||
|
pngwutil$(O): png.h pngconf.h
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ CC=sc
|
|||||||
# So use V6.55 or set NOOPTGO!!!!!!!!!
|
# So use V6.55 or set NOOPTGO!!!!!!!!!
|
||||||
CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
|
CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
|
||||||
OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
|
OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
|
||||||
DEFINE=PNG_INTERNAL
|
DEFINE=PNG_INTERNAL
|
||||||
#linker flags
|
#linker flags
|
||||||
LDFLAGS= SD ND BATCH
|
LDFLAGS= SD ND BATCH
|
||||||
#link libs
|
#link libs
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ PNGLIB=png32bd.lib
|
|||||||
|
|
||||||
CC=bcc32
|
CC=bcc32
|
||||||
CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
|
CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
|
||||||
-DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
|
-DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
|
||||||
#LINK=tlink32
|
#LINK=tlink32
|
||||||
#LINK=ilink32
|
#LINK=ilink32
|
||||||
LINK=bcc32
|
LINK=bcc32
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# where make install puts libpng.a, libpng.so*, and png.h
|
# where make install puts libpng.a, libpng.so*, and png.h
|
||||||
|
|||||||
184
scripts/makefile.cygwin
Normal file
184
scripts/makefile.cygwin
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
# makefile for cygwin on x86
|
||||||
|
# builds both dll (with import lib) and static lib versions
|
||||||
|
# of the library, and builds two copies of pngtest: one
|
||||||
|
# statically linked and one dynamically linked.
|
||||||
|
#
|
||||||
|
# based on makefile for linux-elf w/mmx by:
|
||||||
|
# Copyright (C) 1998-2000 Greg Roelofs
|
||||||
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
# To enable assembler optimizations, add '-DPNG_USE_PNGGCCRD' to
|
||||||
|
# $CFLAGS, and include pnggccrd.o in $OBJS, below.
|
||||||
|
|
||||||
|
CC=gcc
|
||||||
|
|
||||||
|
# where "make install" puts libpng.a, libpng.so*, png.h and pngconf.h
|
||||||
|
prefix=/usr
|
||||||
|
|
||||||
|
# Where the zlib library and include files are located
|
||||||
|
ZLIBLIB=${prefix}/lib
|
||||||
|
ZLIBINC=${prefix}/include
|
||||||
|
#ZLIBLIB=../zlib
|
||||||
|
#ZLIBINC=../zlib
|
||||||
|
|
||||||
|
ALIGN=
|
||||||
|
# for i386:
|
||||||
|
#ALIGN=-malign-loops=2 -malign-functions=2
|
||||||
|
|
||||||
|
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
||||||
|
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||||
|
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
||||||
|
|
||||||
|
#CFLAGS=-DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 $(ALIGN) -funroll-loops \
|
||||||
|
# -fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||||
|
CFLAGS=-I$(ZLIBINC) -Wall -O3 $(ALIGN) -funroll-loops \
|
||||||
|
-fomit-frame-pointer
|
||||||
|
|
||||||
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
|
# have to change it.
|
||||||
|
PNGMAJ = 2
|
||||||
|
PNGMIN = 1.0.9beta3
|
||||||
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
|
SHAREDLIB=cygpng$(PNGMAJ).dll
|
||||||
|
STATLIB=libpng.a
|
||||||
|
IMPLIB=libpng.dll.a
|
||||||
|
SHAREDDEF=libpng.def
|
||||||
|
LIBS=$(SHAREDLIB) $(STATLIB)
|
||||||
|
EXE=.exe
|
||||||
|
|
||||||
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
|
||||||
|
LDSHARED=gcc -shared -Wl,--enable-auto-image-base
|
||||||
|
LDEXTRA=-Wl,--out-implib=$(IMPLIB) $(SHAREDDEF)
|
||||||
|
|
||||||
|
RANLIB=ranlib
|
||||||
|
#RANLIB=echo
|
||||||
|
|
||||||
|
INCPATH=$(prefix)/include
|
||||||
|
LIBPATH=$(prefix)/lib
|
||||||
|
BINPATH=$(prefix)/bin
|
||||||
|
MANPATH=$(prefix)/man
|
||||||
|
MAN3PATH=$(MANPATH)/man3
|
||||||
|
DOCPATH=$(prefix)/doc/libpng-$(PNGMIN)
|
||||||
|
|
||||||
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
|
pngwtran.o pngmem.o pngerror.o pngpread.o # pnggccrd.o
|
||||||
|
|
||||||
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .pic.o
|
||||||
|
|
||||||
|
%.o : %.c
|
||||||
|
$(CC) -c $(CFLAGS) -DPNG_STATIC -DZLIB_STATIC -o $@ $<
|
||||||
|
|
||||||
|
%.pic.o : %.c
|
||||||
|
$(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $<
|
||||||
|
|
||||||
|
all: all-static all-shared
|
||||||
|
|
||||||
|
static: all-static
|
||||||
|
|
||||||
|
shared: all-shared
|
||||||
|
|
||||||
|
all-static: $(STATLIB) pngtest-stat$(EXE)
|
||||||
|
|
||||||
|
all-shared: $(SHAREDLIB) pngtest$(EXE)
|
||||||
|
|
||||||
|
pnggccrd.o: png.h pngconf.h pngasmrd.h
|
||||||
|
@echo ""
|
||||||
|
@echo ' You can ignore the single "control reaches end of non-void function"'
|
||||||
|
@echo ' warning and multiple "<variable> defined but not used" warnings:'
|
||||||
|
@echo ""
|
||||||
|
$(CC) -c $(CFLAGS) -DPNG_STATIC -DZLIB_STATIC -o $@ $*.c
|
||||||
|
|
||||||
|
pnggccrd.pic.o: png.h pngconf.h pngasmrd.h
|
||||||
|
@echo ""
|
||||||
|
@echo ' You can ignore the single "control reaches end of non-void function"'
|
||||||
|
@echo ' warning and multiple "<variable> defined but not used" warnings:'
|
||||||
|
@echo ""
|
||||||
|
$(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ pnggccrd.c
|
||||||
|
|
||||||
|
$(STATLIB): $(OBJS)
|
||||||
|
ar rc $@ $(OBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
$(SHAREDDEF): msvc/png32ms.def
|
||||||
|
cat $< | sed -e '1{G;s/^\(.*\)\(\n\)/EXPORTS/;};2,/^EXPORTS/d' > $@
|
||||||
|
|
||||||
|
$(SHAREDLIB): $(OBJSDLL) $(SHAREDDEF)
|
||||||
|
$(LDSHARED) -o $@ $(LDEXTRA) $(OBJSDLL) -L. -L$(ZLIBLIB) -lz
|
||||||
|
|
||||||
|
pngtest$(EXE): pngtest.pic.o $(SHAREDLIB)
|
||||||
|
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
pngtest-stat$(EXE): pngtest.o $(STATLIB)
|
||||||
|
$(CC) -static $(CFLAGS) $< $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
pngtest.pic.o: pngtest.c
|
||||||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
pngtest.o: pngtest.c
|
||||||
|
$(CC) $(CFLAGS) -DPNG_STATIC -DZLIB_STATIC -c $< -o $@
|
||||||
|
|
||||||
|
test: test-static test-shared
|
||||||
|
|
||||||
|
test-static: pngtest-stat$(EXE)
|
||||||
|
./pngtest-stat
|
||||||
|
|
||||||
|
test-shared: pngtest$(EXE)
|
||||||
|
./pngtest
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
|
install-static: $(STATLIB) install-headers install-docs install-man
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir -p $(LIBPATH); fi
|
||||||
|
install -m 755 $(STATLIB) $(LIBPATH)
|
||||||
|
|
||||||
|
install-shared: $(SHAREDLIB) install-headers install-docs install-man
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir -p $(LIBPATH); fi
|
||||||
|
-@if [ ! -d $(BINPATH) ]; then mkdir -p $(BINPATH); fi
|
||||||
|
install -m 755 $(IMPLIB) $(LIBPATH)
|
||||||
|
install -s -m 755 $(SHAREDLIB) $(BINPATH)
|
||||||
|
|
||||||
|
install-headers:
|
||||||
|
-@if [ ! -d $(INCPATH) ]; then mkdir -p $(INCPATH); fi
|
||||||
|
install -m 644 png.h pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-docs:
|
||||||
|
-@if [ ! -d $(DOCPATH) ]; then mkdir -p $(DOCPATH); fi
|
||||||
|
install -m 644 $(DOCS) $(DOCPATH)
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
-@if [ ! -d $(MAN3PATH) ]; then mkdir -p $(MAN3PATH); fi
|
||||||
|
install -m 644 libpngpf.3 libpng.3 $(MAN3PATH)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -f *.pic.o *.o $(STATLIB) $(IMPLIB) $(SHAREDLIB) \
|
||||||
|
pngtest-stat$(EXE) pngtest$(EXE) pngout.png $(SHAREDDEF)
|
||||||
|
|
||||||
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
|
writelock:
|
||||||
|
chmod a-w *.[ch35] $(DOCS) scripts/*
|
||||||
|
|
||||||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
png.o png.pic.o: png.h pngconf.h png.c pngasmrd.h
|
||||||
|
pngerror.o pngerror.pic.o: png.h pngconf.h pngerror.c
|
||||||
|
pngrio.o pngrio.pic.o: png.h pngconf.h pngrio.c
|
||||||
|
pngwio.o pngwio.pic.o: png.h pngconf.h pngwio.c
|
||||||
|
pngmem.o pngmem.pic.o: png.h pngconf.h pngmem.c
|
||||||
|
pngset.o pngset.pic.o: png.h pngconf.h pngset.c
|
||||||
|
pngget.o pngget.pic.o: png.h pngconf.h pngget.c
|
||||||
|
pngread.o pngread.pic.o: png.h pngconf.h pngread.c
|
||||||
|
pngrtran.o pngrtran.pic.o: png.h pngconf.h pngrtran.c
|
||||||
|
pngrutil.o pngrutil.pic.o: png.h pngconf.h pngrutil.c pngasmrd.h
|
||||||
|
pngtrans.o pngtrans.pic.o: png.h pngconf.h pngtrans.c
|
||||||
|
pngwrite.o pngwrite.pic.o: png.h pngconf.h pngwrite.c
|
||||||
|
pngwtran.o pngwtran.pic.o: png.h pngconf.h pngwtran.c
|
||||||
|
pngwutil.o pngwutil.pic.o: png.h pngconf.h pngwutil.c
|
||||||
|
pngpread.o pngpread.pic.o: png.h pngconf.h pngpread.c
|
||||||
|
|
||||||
|
pngtest.o: png.h pngconf.h pngtest.c
|
||||||
|
pngtest-stat.o: png.h pngconf.h pngtest.c
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
# makefile for libpng on DEC Alpha Unix
|
# makefile for libpng on DEC Alpha Unix
|
||||||
|
# Copyright (C) 2000 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
# For conditions of distribution and use, see copyright notice in png.h
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
# where make install puts libpng.a and png.h
|
# where make install puts libpng.a and png.h
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
INCPATH=$(prefix)/include
|
||||||
|
LIBPATH=$(prefix)/lib
|
||||||
|
|
||||||
# Where the zlib library and include files are located
|
# Where the zlib library and include files are located
|
||||||
#ZLIBLIB=/usr/local/lib
|
#ZLIBLIB=/usr/local/lib
|
||||||
@@ -14,7 +17,7 @@ ZLIBINC=../zlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
CC=cc
|
CC=cc
|
||||||
@@ -24,7 +27,6 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
|||||||
#RANLIB=echo
|
#RANLIB=echo
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
|
|
||||||
|
|
||||||
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
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
@@ -51,18 +53,18 @@ test: pngtest
|
|||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install: libpng.a libpng.so.$(PNGVER)
|
install: libpng.a libpng.so.$(PNGVER)
|
||||||
-@mkdir $(prefix)/include
|
-@mkdir $(INCPATH)
|
||||||
-@mkdir $(prefix)/lib
|
-@mkdir $(LIBPATH)
|
||||||
cp png.h $(prefix)/include
|
cp png.h $(INCPATH)
|
||||||
cp pngconf.h $(prefix)/include
|
cp pngconf.h $(INCPATH)
|
||||||
chmod 644 $(prefix)/include/png.h
|
chmod 644 $(INCPATH)/png.h
|
||||||
chmod 644 $(prefix)/include/pngconf.h
|
chmod 644 $(INCPATH)/pngconf.h
|
||||||
cp libpng.a $(prefix)/lib
|
cp libpng.a $(LIBPATH)
|
||||||
cp libpng.so.$(PNGVER) $(prefix)/lib
|
cp libpng.so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 644 $(prefix)/lib/libpng.a
|
chmod 644 $(LIBPATH)/libpng.a
|
||||||
chmod 644 $(prefix)/lib/libpng.so.$(PNGVER)
|
chmod 644 $(LIBPATH)/libpng.so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.so.$(PNGMAJ) $(LIBPATH)/libpng.so
|
-@/bin/rm -f $(LIBPATH)/libpng.so.$(PNGMAJ) $(LIBPATH)/libpng.so
|
||||||
(cd $(LIBPATH); ln -f -s libpng.so.$(PNGVER) libpng.so.$(PNGMAJ); \
|
(cd $(LIBPATH)); ln -f -s libpng.so.$(PNGVER) libpng.so.$(PNGMAJ); \
|
||||||
ln -f -s libpng.so.$(PNGMAJ) libpng.so)
|
ln -f -s libpng.so.$(PNGMAJ) libpng.so)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Copyright 1998-2000 Greg Roelofs
|
# Copyright 1998-2000 Greg Roelofs
|
||||||
# For conditions of distribution and use, see copyright notice in png.h
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
# CAUTION: Do not use this makefile with gcc versions 2.7.2.2 and earlier.
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
|
||||||
# where "make install" puts libpng.a, libpng.so*, png.h and pngconf.h
|
# where "make install" puts libpng.a, libpng.so*, png.h and pngconf.h
|
||||||
@@ -25,8 +27,9 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
# for pgcc version 2.95.1, -O3 is buggy; don't use it.
|
# for pgcc version 2.95.1, -O3 is buggy; don't use it.
|
||||||
|
|
||||||
CFLAGS=-DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 $(ALIGN) -funroll-loops \
|
CFLAGS=-DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 $(ALIGN) -funroll-loops \
|
||||||
-fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
|
-fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||||
LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm
|
||||||
|
LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm
|
||||||
|
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
#RANLIB=echo
|
#RANLIB=echo
|
||||||
@@ -34,7 +37,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
INCPATH=$(prefix)/include
|
INCPATH=$(prefix)/include
|
||||||
@@ -51,7 +54,7 @@ OBJSDLL = $(OBJS:.o=.pic.o)
|
|||||||
.c.pic.o:
|
.c.pic.o:
|
||||||
$(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
|
$(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
|
||||||
|
|
||||||
all: libpng.a libpng.so pngtest
|
all: libpng.a libpng.so pngtest pngtest-static
|
||||||
|
|
||||||
pnggccrd.o: pnggccrd.c png.h pngconf.h pngasmrd.h
|
pnggccrd.o: pnggccrd.c png.h pngconf.h pngasmrd.h
|
||||||
@echo ""
|
@echo ""
|
||||||
@@ -84,8 +87,18 @@ libpng.so.$(PNGVER): $(OBJSDLL)
|
|||||||
pngtest: pngtest.o libpng.so
|
pngtest: pngtest.o libpng.so
|
||||||
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
test: pngtest
|
pngtest-static: pngtest.o libpng.a
|
||||||
|
$(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
|
||||||
|
|
||||||
|
test: pngtest pngtest-static
|
||||||
|
@echo ""
|
||||||
|
@echo " Testing dynamically linked version:"
|
||||||
|
@echo ""
|
||||||
./pngtest
|
./pngtest
|
||||||
|
@echo ""
|
||||||
|
@echo " Testing statically linked version:"
|
||||||
|
@echo ""
|
||||||
|
./pngtest-static
|
||||||
|
|
||||||
install: libpng.a libpng.so.$(PNGVER)
|
install: libpng.a libpng.so.$(PNGVER)
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# makefile for libpng, HPUX (10.20 and 11.00)
|
# makefile for libpng, HPUX (10.20 and 11.00)
|
||||||
# Copyright (C) 1999 Glenn Randers-Pehrson
|
# Copyright (C) 1999, 2000 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
||||||
# contributed by Jim Rice, Hewlett Packard
|
# contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
||||||
# For conditions of distribution and use, see copyright notice in png.h
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
# Where the zlib library and include files are located
|
# Where the zlib library and include files are located
|
||||||
@@ -15,6 +15,12 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
|||||||
|
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
|
|
||||||
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
|
# have to change it.
|
||||||
|
PNGMAJ = 2
|
||||||
|
PNGMIN = 1.0.9beta3
|
||||||
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
# where make install puts libpng.a and png.h
|
# where make install puts libpng.a and png.h
|
||||||
prefix=/opt/libpng
|
prefix=/opt/libpng
|
||||||
|
|
||||||
@@ -22,12 +28,29 @@ 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
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
all: libpng.a pngtest
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .pic.o
|
||||||
|
|
||||||
|
.c.pic.o:
|
||||||
|
$(CC) -c $(CFLAGS) +z -o $@ $*.c
|
||||||
|
|
||||||
|
all: libpng.a libpng.sl pngtest
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
ar rc $@ $(OBJS)
|
ar rc $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
libpng.sl: libpng.sl.$(PNGMAJ)
|
||||||
|
ln -f -s libpng.sl.$(PNGMAJ) libpng.sl
|
||||||
|
|
||||||
|
libpng.sl.$(PNGMAJ): libpng.sl.$(PNGVER)
|
||||||
|
ln -f -s libpng.sl.$(PNGVER) libpng.sl.$(PNGMAJ)
|
||||||
|
|
||||||
|
libpng.sl.$(PNGVER): $(OBJSDLL)
|
||||||
|
$(LD) -b -L$(ZLIBLIB) +s +b $(ZLIBLIB) \
|
||||||
|
+h libpng.sl.$(PNGMAJ) -o libpng.sl.$(PNGVER) $(OBJSDLL) -lz
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
$(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
|
$(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
@@ -41,11 +64,14 @@ install: libpng.a
|
|||||||
cp pngconf.h $(prefix)/include
|
cp pngconf.h $(prefix)/include
|
||||||
chmod 644 $(prefix)/include/png.h
|
chmod 644 $(prefix)/include/png.h
|
||||||
chmod 644 $(prefix)/include/pngconf.h
|
chmod 644 $(prefix)/include/pngconf.h
|
||||||
cp libpng.a $(prefix)/lib
|
cp libpng.a libpng.sl.$(PNGVER) $(prefix)/lib
|
||||||
chmod 644 $(prefix)/lib/libpng.a
|
chmod 644 $(prefix)/lib/libpng.a
|
||||||
|
chmod 755 $(prefix)/lib/libpng.sl.$(PNGVER)
|
||||||
|
(cd $(prefix)/lib; ln -f -s libpng.sl.$(PNGVER) libpng.sl.$(PNGMAJ); \
|
||||||
|
ln -f -s libpng.sl.$(PNGMAJ) libpng.sl)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a pngtest pngout.png
|
rm -f *.o libpng.a libpng.sl* pngtest pngout.png
|
||||||
|
|
||||||
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
writelock:
|
writelock:
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
|
|||||||
|
|
||||||
O=.obj
|
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)
|
pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
|
||||||
|
|
||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
INCPATH=$(prefix)/include
|
INCPATH=$(prefix)/include
|
||||||
|
|||||||
72
scripts/makefile.macosx
Normal file
72
scripts/makefile.macosx
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# makefile for libpng, MACOS X
|
||||||
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
# where make install puts libpng.a and png.h
|
||||||
|
prefix=/usr/local
|
||||||
|
|
||||||
|
# Where the zlib library and include files are located
|
||||||
|
#ZLIBLIB=/usr/local/lib
|
||||||
|
#ZLIBINC=/usr/local/include
|
||||||
|
ZLIBLIB=../zlib
|
||||||
|
ZLIBINC=../zlib
|
||||||
|
|
||||||
|
CC=cc
|
||||||
|
CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
|
||||||
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
|
||||||
|
|
||||||
|
#RANLIB=echo
|
||||||
|
RANLIB=ranlib
|
||||||
|
|
||||||
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
|
all: libpng.a pngtest
|
||||||
|
|
||||||
|
libpng.a: $(OBJS)
|
||||||
|
ar rc $@ $(OBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
pngtest: pngtest.o libpng.a
|
||||||
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
|
test: pngtest
|
||||||
|
./pngtest
|
||||||
|
|
||||||
|
install: libpng.a
|
||||||
|
-@mkdir $(prefix)/include
|
||||||
|
-@mkdir $(prefix)/lib
|
||||||
|
cp png.h $(prefix)/include
|
||||||
|
cp pngconf.h $(prefix)/include
|
||||||
|
chmod 644 $(prefix)/include/png.h
|
||||||
|
chmod 644 $(prefix)/include/pngconf.h
|
||||||
|
cp libpng.a $(prefix)/lib
|
||||||
|
chmod 644 $(prefix)/lib/libpng.a
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o libpng.a pngtest pngout.png
|
||||||
|
|
||||||
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
|
writelock:
|
||||||
|
chmod a-w *.[ch35] $(DOCS) scripts/*
|
||||||
|
|
||||||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
png.o: png.h pngconf.h
|
||||||
|
pngerror.o: png.h pngconf.h
|
||||||
|
pngrio.o: png.h pngconf.h
|
||||||
|
pngwio.o: png.h pngconf.h
|
||||||
|
pngmem.o: png.h pngconf.h
|
||||||
|
pngset.o: png.h pngconf.h
|
||||||
|
pngget.o: png.h pngconf.h
|
||||||
|
pngread.o: png.h pngconf.h
|
||||||
|
pngrtran.o: png.h pngconf.h
|
||||||
|
pngrutil.o: png.h pngconf.h
|
||||||
|
pngtest.o: png.h pngconf.h
|
||||||
|
pngtrans.o: png.h pngconf.h
|
||||||
|
pngwrite.o: png.h pngconf.h
|
||||||
|
pngwtran.o: png.h pngconf.h
|
||||||
|
pngwutil.o: png.h pngconf.h
|
||||||
|
pngpread.o: png.h pngconf.h
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib
|
|||||||
#-Ox generates bad code with MSC 5.1
|
#-Ox generates bad code with MSC 5.1
|
||||||
CC=cl
|
CC=cl
|
||||||
LD=link
|
LD=link
|
||||||
LDFLAGS=/e/st:0x1500/noe
|
LDFLAGS=/e/st:0x1500/noe
|
||||||
O=.obj
|
O=.obj
|
||||||
|
|
||||||
#uncomment next to put error messages in a file
|
#uncomment next to put error messages in a file
|
||||||
@@ -76,7 +76,7 @@ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|||||||
lib libpng $(OBJS2);
|
lib libpng $(OBJS2);
|
||||||
lib libpng $(OBJS3);
|
lib libpng $(OBJS3);
|
||||||
|
|
||||||
pngtest.exe: pngtest.obj libpng.lib
|
pngtest.exe: pngtest.obj libpng.lib
|
||||||
$(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
|
$(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
|
||||||
|
|
||||||
test: pngtest.exe
|
test: pngtest.exe
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ prefix=/usr/local
|
|||||||
ZLIBLIB=../zlib
|
ZLIBLIB=../zlib
|
||||||
ZLIBINC=../zlib
|
ZLIBINC=../zlib
|
||||||
|
|
||||||
CFLAGS= -dy -belf -I$(ZLIBINC) -O3
|
CFLAGS= -dy -belf -I$(ZLIBINC) -O3
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||||
|
|
||||||
#RANLIB=ranlib
|
#RANLIB=ranlib
|
||||||
@@ -25,7 +25,7 @@ RANLIB=echo
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
INCPATH=$(prefix)/include
|
INCPATH=$(prefix)/include
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ CFLAGS=-I$(ZLIBINC) -O2 $(WARNMORE) -fPIC -mabi=n32 # -g -DPNG_DEBUG=5
|
|||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||||
LDSHARED=gcc -shared
|
LDSHARED=gcc -shared
|
||||||
|
|
||||||
VER=1.0.8beta3
|
VER=1.0.9beta3
|
||||||
LIBS=libpng.so.1.0.8beta3
|
LIBS=libpng.so.1.0.9beta3
|
||||||
SHAREDLIB=libpng.so
|
SHAREDLIB=libpng.so
|
||||||
libdir=$(prefix)/lib32
|
libdir=$(prefix)/lib32
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ RANLIB=echo
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 2
|
PNGMAJ = 2
|
||||||
PNGMIN = 1.0.8beta3
|
PNGMIN = 1.0.9beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
INCPATH=$(prefix)/include
|
INCPATH=$(prefix)/include
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|||||||
del libpng.lib
|
del libpng.lib
|
||||||
lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
|
lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
|
||||||
|
|
||||||
pngtest.exe: pngtest.obj libpng.lib
|
pngtest.exe: pngtest.obj libpng.lib
|
||||||
$(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
|
$(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
|
||||||
|
|
||||||
test: pngtest.exe
|
test: pngtest.exe
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
|||||||
del libpng.lib
|
del libpng.lib
|
||||||
lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
|
lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
|
||||||
|
|
||||||
pngtest.exe: pngtest.obj libpng.lib
|
pngtest.exe: pngtest.obj libpng.lib
|
||||||
$(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
|
$(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
|
||||||
|
|
||||||
test: pngtest.exe
|
test: pngtest.exe
|
||||||
|
|||||||
@@ -3,6 +3,19 @@ $!
|
|||||||
$!
|
$!
|
||||||
$! Check for MMK/MMS
|
$! Check for MMK/MMS
|
||||||
$!
|
$!
|
||||||
|
$! This procedure accepts one parameter (contrib), which causes it to build
|
||||||
|
$! the programs from the contrib directory instead of libpng.
|
||||||
|
$!
|
||||||
|
$ p1 = f$edit(p1,"UPCASE")
|
||||||
|
$ if p1 .eqs. "CONTRIB"
|
||||||
|
$ then
|
||||||
|
$ set def [.contrib.gregbook]
|
||||||
|
$ @makevms
|
||||||
|
$ set def [-.pngminus]
|
||||||
|
$ @makevms
|
||||||
|
$ set def [--]
|
||||||
|
$ exit
|
||||||
|
$ endif
|
||||||
$ Make = ""
|
$ Make = ""
|
||||||
$ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
|
$ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
|
||||||
$ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
|
$ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
|
||||||
@@ -41,7 +54,7 @@ $ if make.eqs.""
|
|||||||
$ then
|
$ then
|
||||||
$ dele pngtest.obj;*
|
$ dele pngtest.obj;*
|
||||||
$ CALL MAKE png.OBJ "cc ''CCOPT' png" -
|
$ CALL MAKE png.OBJ "cc ''CCOPT' png" -
|
||||||
png.c png.h pngconf.h
|
png.c png.h pngconf.h
|
||||||
$ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
|
$ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
|
||||||
pngpread.c png.h pngconf.h
|
pngpread.c png.h pngconf.h
|
||||||
$ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" -
|
$ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" -
|
||||||
@@ -77,12 +90,13 @@ $ CALL MAKE libpng.OLB "lib/crea libpng.olb *.obj" *.OBJ
|
|||||||
$ write sys$output "Building pngtest..."
|
$ write sys$output "Building pngtest..."
|
||||||
$ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
|
$ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
|
||||||
pngtest.c png.h pngconf.h
|
pngtest.c png.h pngconf.h
|
||||||
$ call make pngtest.exe -
|
$ call make pngtest.exe -
|
||||||
"LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" -
|
"LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" -
|
||||||
pngtest.obj libpng.olb
|
pngtest.obj libpng.olb
|
||||||
$ write sys$output "Testing Libpng..."
|
$ write sys$output "Testing Libpng..."
|
||||||
$ run pngtest
|
$ run pngtest
|
||||||
$ else
|
$ else
|
||||||
|
$ if f$search("DESCRIP.MMS") .eqs. "" then copy/nolog [.SCRIPTS]DESCRIP.MMS []
|
||||||
$ 'make'/macro=('comp',zlibsrc='zlibsrc')
|
$ 'make'/macro=('comp',zlibsrc='zlibsrc')
|
||||||
$ endif
|
$ endif
|
||||||
$ write sys$output "Libpng build completed"
|
$ write sys$output "Libpng build completed"
|
||||||
@@ -128,4 +142,3 @@ $ VV='F$Verify(VV)
|
|||||||
$Exit:
|
$Exit:
|
||||||
$ If V Then Set Verify
|
$ If V Then Set Verify
|
||||||
$ENDSUBROUTINE
|
$ENDSUBROUTINE
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ unit pngdef;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
const
|
const
|
||||||
PNG_LIBPNG_VER_STRING = '1.0.8beta3';
|
PNG_LIBPNG_VER_STRING = '1.0.9beta3';
|
||||||
PNG_LIBPNG_VER = 10008;
|
PNG_LIBPNG_VER = 10009;
|
||||||
|
|
||||||
type
|
type
|
||||||
png_uint_32 = Cardinal;
|
png_uint_32 = Cardinal;
|
||||||
@@ -209,7 +209,7 @@ const
|
|||||||
PNG_CRC_WARN_DISCARD = 2; // (INVALID) warn/discard data
|
PNG_CRC_WARN_DISCARD = 2; // (INVALID) warn/discard data
|
||||||
PNG_CRC_WARN_USE = 3; // warn/use data warn/use data
|
PNG_CRC_WARN_USE = 3; // warn/use data warn/use data
|
||||||
PNG_CRC_QUIET_USE = 4; // quiet/use data quiet/use data
|
PNG_CRC_QUIET_USE = 4; // quiet/use data quiet/use data
|
||||||
PNG_CRC_NO_CHANGE = 5; // use current value use current value
|
PNG_CRC_NO_CHANGE = 5; // use current value use current value
|
||||||
|
|
||||||
// Flags for png_set_filter() to say which filters to use. The flags
|
// Flags for png_set_filter() to say which filters to use. The flags
|
||||||
// are chosen so that they don't conflict with real filter types
|
// are chosen so that they don't conflict with real filter types
|
||||||
@@ -241,7 +241,7 @@ const
|
|||||||
PNG_FILTER_HEURISTIC_DEFAULT = 0; // Currently "UNWEIGHTED"
|
PNG_FILTER_HEURISTIC_DEFAULT = 0; // Currently "UNWEIGHTED"
|
||||||
PNG_FILTER_HEURISTIC_UNWEIGHTED = 1; // Used by libpng < 0.95
|
PNG_FILTER_HEURISTIC_UNWEIGHTED = 1; // Used by libpng < 0.95
|
||||||
PNG_FILTER_HEURISTIC_WEIGHTED = 2; // Experimental feature
|
PNG_FILTER_HEURISTIC_WEIGHTED = 2; // Experimental feature
|
||||||
PNG_FILTER_HEURISTIC_LAST = 3; // Not a valid value
|
PNG_FILTER_HEURISTIC_LAST = 3; // Not a valid value
|
||||||
|
|
||||||
procedure png_build_grayscale_palette(bit_depth: int; palette: png_colorp);
|
procedure png_build_grayscale_palette(bit_depth: int; palette: png_colorp);
|
||||||
stdcall;
|
stdcall;
|
||||||
@@ -340,7 +340,7 @@ function png_get_oFFs(png_ptr: png_structp; info_ptr: png_infop;
|
|||||||
var unit_type: int): png_uint_32;
|
var unit_type: int): png_uint_32;
|
||||||
stdcall;
|
stdcall;
|
||||||
function png_get_sCAL(png_ptr: png_structp; info_ptr: png_infop;
|
function png_get_sCAL(png_ptr: png_structp; info_ptr: png_infop;
|
||||||
var unit:int; var width: png_uint_32; height: png_uint_32):
|
var unit:int; var width: png_uint_32; height: png_uint_32):
|
||||||
png_uint_32;
|
png_uint_32;
|
||||||
stdcall
|
stdcall
|
||||||
function png_get_pCAL(png_ptr: png_structp; info_ptr: png_infop;
|
function png_get_pCAL(png_ptr: png_structp; info_ptr: png_infop;
|
||||||
@@ -373,7 +373,7 @@ function png_get_sBIT(png_ptr: png_structp; info_ptr: png_infop;
|
|||||||
stdcall;
|
stdcall;
|
||||||
function png_get_sRGB(png_ptr: png_structp; info_ptr: png_infop;
|
function png_get_sRGB(png_ptr: png_structp; info_ptr: png_infop;
|
||||||
var file_srgb_intent: int): png_uint_32;
|
var file_srgb_intent: int): png_uint_32;
|
||||||
stdcall;
|
stdcall;
|
||||||
function png_get_signature(png_ptr: png_structp; info_ptr: png_infop):
|
function png_get_signature(png_ptr: png_structp; info_ptr: png_infop):
|
||||||
png_bytep;
|
png_bytep;
|
||||||
stdcall;
|
stdcall;
|
||||||
|
|||||||
@@ -297,11 +297,11 @@ EXPORTS
|
|||||||
png_pass_dsp_mask
|
png_pass_dsp_mask
|
||||||
; png_pass_width
|
; png_pass_width
|
||||||
; png_pass_height
|
; png_pass_height
|
||||||
png_get_iCCP
|
png_get_iCCP
|
||||||
png_get_sCAL
|
png_get_sCAL
|
||||||
png_get_sPLT
|
png_get_sPLT
|
||||||
png_set_iCCP
|
png_set_iCCP
|
||||||
png_set_sPLT
|
png_set_sPLT
|
||||||
png_free_data
|
png_free_data
|
||||||
|
|
||||||
png_IHDR
|
png_IHDR
|
||||||
|
|||||||
Reference in New Issue
Block a user