Glenn Randers-Pehrson
871b1d0fab
[libpng16] Bump version to 1.6.1beta05
2013-03-02 15:03:15 -06:00
Glenn Randers-Pehrson
f3af706c2a
[libpng16] Imported from libpng-1.6.0beta05.tar
2013-03-01 21:38:03 -06:00
Glenn Randers-Pehrson
1118d6d985
[libpng16] Avoid a possible memory leak in contrib/gregbook/readpng.c
2013-03-01 13:27:05 -06:00
Glenn Randers-Pehrson
b4ef7c4af2
[libpng16] Use parentheses consistently in "#if defined()" tests.
...
Folded some long lines.
2013-02-17 15:41:36 -06:00
John Bowler
b724c812ec
[libpng16] Enabled parallel tests - back ported from libpng-1.7.
2013-02-16 00:05:59 -06:00
Glenn Randers-Pehrson
681de8c8dc
[libpng16] Bump version to 1.6.1beta01
2013-02-13 23:17:52 -06:00
Glenn Randers-Pehrson
c53778ff53
[libpng16] Imported from libpng-1.6.0.tar
2013-02-13 22:53:57 -06:00
John Bowler
2414bd99d8
[libpng16] Use consistent handling of overflows in text, sPLT and unknown
...
png_set_* APIs
2013-01-19 23:18:59 -06:00
John Bowler
1c6e22a360
[libpng16] Fixed conceivable but difficult to repro overflow. Also added
...
two test programs to generate and test a PNG which should have the problem.
2013-01-10 10:55:34 -06:00
Glenn Randers-Pehrson
a70216aa60
[libpng16] Imported from libpng-1.6.0beta36.tar
2013-01-01 08:40:16 -06:00
Glenn Randers-Pehrson
350cbf14df
[libpng16] Fixed typo in contrib/pngminim/encoder/README
2012-12-18 14:54:44 -06:00
Glenn Randers-Pehrson
9d1ddbb78f
[libpng16] Fixed several typos and expanded TAB characters.
2012-11-13 19:45:53 -06:00
John Bowler
f2aacefb3f
[libpng16] Added the ability for contrib/libtests/makepng.c to make a PNG with just one
...
color. This is useful for debugging pngstest color inaccuracy reports.
2012-11-13 19:18:53 -06:00
John Bowler
4314d63792
[libpng16] Fixed an intermittent SEGV in pngstest.
2012-11-02 14:08:29 -05:00
Glenn Randers-Pehrson
bb39dc545c
[libpng16] Imported from libpng-1.6.0beta31.tar
2012-11-01 08:26:57 -05:00
John Bowler
ab1477d662
[libpng16] Made PNG_NO_READ_GAMMA switch off interfaces that depend on
...
READ_GAMMA. Prior to 1.6.0 switching off READ_GAMMA did unpredictable things
to the interfaces that use it (specifically, png_do_background in 1.4 would
simply display composite for grayscale images but do composition
with the incorrect arithmetic for color ones). In 1.6 the semantic
of -DPNG_NO_READ_GAMMA is changed to simply disable any interface that
depends on it; this obliges people who set it to consider whether they
really want it off if they happen to use any of the interfaces in
question (typically most users who disable it won't).
2012-10-27 06:57:12 -05:00
John Bowler
f0fb1746b0
[libpng16] Make builds -DPNG_NO_READ_GAMMA compile (the unit tests still fail).
2012-10-26 08:29:45 -05:00
John Bowler
e6b710cb3f
[libpng16] Made pngvalid so that it will build outside the libpng source tree.
2012-10-25 19:15:55 -05:00
Glenn Randers-Pehrson
75fde9e99a
[libpng16] Imported from libpng-1.6.0beta30.tar
2012-10-24 11:37:08 -05:00
John Bowler
e15b1e8136
[libpng16] Added pngunknown files that were omitted from previous checkin
2012-09-30 14:10:43 -05:00
Glenn Randers-Pehrson
6ae34790cc
[libpng16] Added -DZ_SOLO to contrib/pngminim/*/makefile so they will work
...
with zlib-1.2.7
2012-09-27 18:52:30 -05:00
John Bowler
53f7051b1b
[libpng] Fixed contrib/examples/png2png.c
2012-09-01 13:26:41 -05:00
John Bowler
d099973c4f
[libpng16] Made makepng and pngtest produce identical PNGs, add "--relaxed"
...
option to pngtest. The "--relaxed" option turns off the benign errors that are
enabled by default in pre-RC builds. makepng can now write ICC profiles
where the length has not been extended to a multiple of 4, and pngtest
now intercepts all libpng errors, allowing the previously-introduced
"--strict test" on no warnings to actually work.
2012-09-01 11:46:14 -05:00
John Bowler
14d0ca620e
[libpng16] Cleaned up and corrected ICC profile handling.
...
contrib/libtests/makepng: corrected 'rgb' and 'gray' cases. profile_error
messages could be truncated; made a correct buffer size calculation and
adjusted pngerror.c appropriately. png_icc_check_* checking improved;
changed the functions to receive the correct color type of the PNG on read
or write and check that it matches the color space of the profile (despite
what the comments said before, there is danger in assuming the app will
cope correctly with an RGB profile on a grayscale image and, since it
violates the PNG spec, allowing it is certain to produce inconsistent
app behavior and might even cause app crashes.) Check that profiles
contain the tags needed to process the PNG (tags all required by the ICC
spec). Removed unused PNG_STATIC from pngpriv.h.
2012-08-25 16:21:46 -05:00
Glenn Randers-Pehrson
702053d110
[libpng16] Bump version to 1.6.0beta28
2012-08-17 21:54:45 -05:00
John Bowler
d0eef28ee1
[libpng16] Added "tunknown" test and corrected a logic error in
...
png_handle_unknown() when SAVE support is absent. Moved the shell test
scripts for contrib/libtests from the libpng top directory to contrib/libtests.
png_handle_unknown() must always read or skip the chunk, if
SAVE_UNKNOWN_CHUNKS is turned off *and* the application does not set
a user callback an unknown chunk will not be read, leading to a read
error, which was revealed by the "tunknown" test.
2012-08-17 15:30:29 -05:00
Glenn Randers-Pehrson
810c99583b
[libpng16] Fixed some spelling errors.
2012-08-15 23:20:47 -05:00
John Bowler
e9567514dd
[libpng16] Unknown handling fixes and clean up. This adds more correct option
...
control of the unknown handling, corrects the pre-existing bug where
the per-chunk 'keep' setting is ignored and makes it possible to skip
IDAT chunks in the sequential reader (broken in earlier 1.6 versions).
There is a new test program, test-unknown.c, which is a work in progress
(not currently part of the test suite). Comments in the header files now
explain how the unknown handling works.
2012-08-15 22:53:00 -05:00
Glenn Randers-Pehrson
0f08665bfb
[libpng16] Imported from libpng-1.6.0beta27.tar
2012-08-11 18:31:44 -05:00
John Bowler
e2098ba085
[libpng16] Make all three "make check" test programs work without READ or WRITE
...
support. Now "make check" will succeed even if libpng is compiled with
-DPNG_NO_READ or -DPNG_NO_WRITE. The tests performed are reduced, but the
basic reading and writing of a PNG file is always tested by one or more of
the tests.
2012-08-10 17:04:56 -05:00
John Bowler
134c5761fa
[libpng16] Fix new leak when text compression is disabled.
2012-08-10 10:49:21 -05:00
Glenn Randers-Pehrson
46cb5109bd
[libpng16] Moved scripts/chkfmt to contrib/tools.
2012-06-25 14:14:17 -05:00
Glenn Randers-Pehrson
fc58b17772
[libpng16] Imported from libpng-1.6.0beta25.tar
2012-06-16 14:42:22 -05:00
Glenn Randers-Pehrson
96b917056d
[libpng16] Revised png_set_keep_unknown_chunks() so num_chunks < 0 means
...
ignore all unknown chunks and all known chunks except for IHDR, PLTE, tRNS,
IDAT, and IEND. Previously it only meant ignore all unknown chunks, the
same as num_chunks == 0. Revised png_image_skip_unused_chunks() to
provide a list of chunks to be processed instead of a list of chunks to
ignore. Revised contrib/gregbook/readpng2.c accordingly.
2012-06-16 13:26:28 -05:00
Glenn Randers-Pehrson
ff7b7ba060
[libpng16] Made fixes for new optimization warnings from gcc 4.7.0.
...
The compiler performs an optimization which is safe; however it then warns
about it. Changing the type of 'palette_number' in pngvalid.c removes the
warning.
2012-06-03 19:17:48 -05:00
John Bowler
15f6fd3492
[libpng16] checked in contrib/libtests/pngstest.c which was omitted
2012-04-30 13:59:58 -05:00
Glenn Randers-Pehrson
96027d919f
[libpng16] Imported from libpng-1.6.0beta20.tar
2012-03-29 06:38:51 -05:00
John Bowler
13a87d9682
[libpng16] Fixed ICC profile parsing and sRGB profile recognition
...
and moved checksum-icc.c from contrib/libtests to contrib/tools.
2012-03-28 09:51:43 -05:00
John Bowler
c1217ee280
[libpng16] Write the profile MD5s from checksum-icc (and the date)
2012-03-22 07:53:00 -05:00
John Bowler
51d1e2be1b
[libng16] Added checksum-icc.c to contrib/libtests
2012-03-22 07:36:13 -05:00
John Bowler
b11b31aea2
[libpng16] Changed chunk handler warnings into benign errors, incrementally
...
load iCCP
2012-03-21 07:55:46 -05:00
John Bowler
eda53e5770
[libpng16] Avoid the double gamma correction warning in the simplified API.
...
This allows the --strict option to pass in the pngstest checks
2012-03-18 22:46:28 -05:00
John Bowler
209b3e4b79
[libpng16] Added output flushing to aid debugging under Visual Studio.
...
This is necessary because the VS2010 output window otherwise simply loses
the error messages on error (they weren't flushed to the window before
the process exited, apparently!)
2012-03-16 07:14:01 -05:00
John Bowler
845ee6af72
[libpng16] Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)
2012-03-10 21:05:19 -06:00
John Bowler
9ff37ea94f
[libpng16] Fix an off-by-one error in the palette index checking function.
2012-03-10 20:03:06 -06:00
John Bowler
1ffbe8c7c1
[libpng] Committed new contrib/libtests/makepng.c that was overlooked
...
in a recent patch.
2012-03-09 12:21:51 -06:00
John Bowler
d072048925
[libpng16] Correct pngvalid error message
2012-03-05 21:10:11 -06:00
John Bowler
7d4fbb2fbb
[libpng16] Validate the zTXt strings in pngvalid.
2012-03-05 21:02:49 -06:00
John Bowler
e2ae0f2f2b
[libpng16] Fix tarith argument parsing
2012-03-05 20:43:27 -06:00
John Bowler
d6cf3a3791
[libpng16] Added a print out of the maximum observed error to 'tarith ascii'
2012-03-05 20:41:19 -06:00
John Bowler
e741cd592e
[libpng16] Added contrib/libtests/tarith.c to test internal arithmetic
...
functions from png.c. This is a libpng maintainer program used to validate
changes to the internal arithmetic functions.
2012-03-04 20:48:57 -06:00
Glenn Randers-Pehrson
434801a39c
[libpng16] Bump version to 1.6.0beta16
2012-03-02 22:52:13 -06:00
John Bowler
6f237b6bf0
[libpng16] Remove whitespace at end of lines
2012-03-02 13:20:52 -06:00
John Bowler
a0ddf0b5f2
[libpng16] Minor update to pngstest.c, chmod 755 gentests.sh
2012-03-02 06:56:33 -06:00
John Bowler
cf49919686
[libpng16] Fixed some bugs in ICC profile writing. The code should now accept
...
all potentially valid ICC profiles and reject obviously invalid ones.
It now uses png_error() to do so rather than casually writing a PNG
without the necessary color data.
2012-03-01 21:54:07 -06:00
John Bowler
cb129a6234
[libpng16] Improved pngstest fine tuning of error numbers, new test file
...
generator. The generator generates images that test the full range of sample
values, allow the error numbers in pngstest to be tuned and checked. makepng
also allows generation of images with extra chunks, although this is
still work-in-progress.
2012-03-01 21:26:54 -06:00
John Bowler
dee7577330
[libpng16] Added PNG_IMAGE_FLAG_FAST for the benefit of applications that
...
store intermediate files, or intermediate in-memory data, while processing
image data with the simplified API. The option makes the files larger
but faster to write and read. pngstest now uses this by default; this
can be disabled with the --slow option.
2012-03-01 18:55:54 -06:00
John Bowler
1c25b9b06b
[libpng16] Fixed transparent pixel and 16-bit rgb tests in pngstest and removed
...
a spurious check in pngwrite.c
2012-02-29 10:49:28 -06:00
John Bowler
0a92b23c4b
[libpng16] Rewrote pngstest.c for substantial speed improvement.
2012-02-29 06:47:55 -06:00
Glenn Randers-Pehrson
df44c4c4d9
[libpng16] Imported from libpng-1.6.0beta13.tar
2012-02-24 11:45:34 -06:00
Glenn Randers-Pehrson
864270e18f
[libpng16] Fixed a memory overwrite bug in simplified read of RGB PNG with
...
Fixed a memory overwrite bug in simplified read of RGB PNG with
non-linear gamma Also bugs in the error checking in pngread.c and changed
quite a lot of the checks in pngstest.c to be correct; either correctly
written or not over-optimistic. The pngstest changes are insufficient to
allow all possible RGB transforms to be passed; pngstest cmppixel needs
to be rewritten to make it clearer which errors it allows and then changed
to permit known inaccuracies.
2012-02-10 17:13:13 -06:00
John Bowler
aa725a375c
[libpng16] Corrected estimate of error in libpng png_set_rgb_to_gray API.
...
The API is extremely inaccurate for sRGB conversions because it uses an 8-bit
intermediate linear value and it does not use the sRGB transform, so it
suffers from the known instability in gamma transforms for values close
to 0 (see Poynton). The net result is that the calculation has a maximum
error of 14.99/255; 0.5/255^(1/2.2). pngstest now uses 15 for the
permitted 8-bit error. This may still not be enough because of arithmetic
error.
2012-02-04 15:11:16 -06:00
John Bowler
40ca77a721
[libpng16] Improved pngstest speed by not doing redundant tests and add const
...
to the background parameter of png_image_finish_read. The --background
option is now done automagically only when required, so that commandline
option no longer exists.
2012-01-28 23:19:42 -06:00
John Bowler
3a1d63dc69
[libpng16] Fixed Image::colormap misalignment in pngstest.c
2012-01-28 00:11:53 -06:00
Glenn Randers-Pehrson
dde1f98626
[libpng16] Committed 5 new or renamed files in contrib/pngsuite.
2012-01-27 20:35:35 -06:00
Glenn Randers-Pehrson
aaf1179ec1
[libpng16] Added two images to contrib/pngsuite (1-bit and 2-bit transparent
...
grayscale), and renamed three whose names were inconsistent with those in
pngsuite/README.txt.
2012-01-27 20:07:00 -06:00
John Bowler
8fb6c6a9b3
[libpng16] Eliminated Intel icc/icl compiler warnings. The Intel (GCC derived)
...
compiler issues slightly different warnings from those issued by the
current vesions of GCC. This eliminates those warnings by
adding/removing casts and small code rewrites.
2012-01-25 07:47:44 -06:00
John Bowler
c35f888c46
[libpng16] Finish patching pngstest.c
2012-01-24 07:40:28 -06:00
Glenn Randers-Pehrson
edbcd02133
[libpng16] bump version to 1.6.0beta06
2012-01-16 07:50:01 -06:00
Glenn Randers-Pehrson
da1c5ca65a
[libpng16] Imported from libpng-1.6.0beta05.tar
2012-01-14 20:44:14 -06:00
Glenn Randers-Pehrson
1531bd61a0
[libpng16] Updated copyright year to 2012
2012-01-01 14:45:04 -06:00
Glenn Randers-Pehrson
6e4184249c
[libpng16] Imported from libpng-1.6.0beta04.tar
2011-12-29 21:01:01 -06:00
Glenn Randers-Pehrson
04ab33560f
[libpng16] Revised contrib/pngminus/pnm2png.c to avoid warnings
...
when png_uint_32 and unsigned long are of different sizes.
2011-12-29 10:24:50 -06:00
John Bowler
d7c22fb7ec
[libpng16] Added pngvalid.c compile time checks for const APIs.
2011-12-24 08:29:20 -06:00
Glenn Randers-Pehrson
28d9339777
[libpng16] Imported from libpng-1.6.0beta03.tar
2011-12-22 08:14:43 -06:00
John Bowler
681c1fc02a
[libpng16] Correct configure builds where build and source directories are
...
separate. The include path of 'config.h' was erroneously made relative in
pngvalid.c in libpng 1.5.7.
2011-12-18 06:20:22 -06:00
John Bowler
ba6fbc57ba
[libpng16] Revised config.h handling; added bsconfig.h, deleted pngconfig.h
2011-12-17 14:21:54 -06:00
Glenn Randers-Pehrson
d1dceee2f7
[libpng] #include "pngconfig.h" in pngvalid.c
2011-12-17 10:21:51 -06:00
Glenn Randers-Pehrson
26aad85204
[libpng16] Imported from libpng-1.6.0beta01.tar
2011-12-15 10:31:17 -06:00
John Bowler
12924f33bd
[libpng16] Fixed minor memset/sizeof errors in pngvalid.c.
2011-12-05 12:36:04 -06:00
Glenn Randers-Pehrson
6bdefdd977
[libpng] Fixed some trivial typos in the contrib/tools subdirectory.
2011-11-29 07:44:48 -06:00
John Bowler
405a398b3e
[libpng16] New 'tools' directory containing tools used to generate libpng code.
2011-11-28 23:57:45 -06:00
John Bowler
414769b415
[libpng16] Add "free()" and "png_free_image()" calls to example code.
2011-11-27 21:39:13 -06:00
Glenn Randers-Pehrson
4c7e8208b6
[libpng16] Remove machine-generated configure files
2011-11-26 21:08:24 -06:00
John Bowler
baeb6d1e92
[libpng16] Added ANSI-C (C90) headers; eliminated the use of FAR/far.
2011-11-26 18:21:02 -06:00
Glenn Randers-Pehrson
2ddb252d07
[libpng16] Updated license info in contrib/examples and example.c
2011-11-25 07:27:51 -06:00
Glenn Randers-Pehrson
7455cbf47e
[libpng16] Update internal version numbering and SO-numbers
2011-11-24 14:49:01 -06:00
Glenn Randers-Pehrson
5b79cd52f4
[libpng16] Moved pngvalid.c into contrib/libtests
...
and rebuilt Makefile.in and configure, etc., with autoconf-2.68
2011-11-24 10:56:20 -06:00
John Bowler
36082cffcd
[libpng16] Added example programs for the new 'simplified' API.
2011-11-24 08:22:24 -06:00
Glenn Randers-Pehrson
3b1f03084e
[libpng15] Fixed copyright, spelling in contrib/libtest and contrib/sRGBtables
2011-11-21 20:52:21 -06:00
Glenn Randers-Pehrson
e0bcbfd0fd
[libpng15] Imported from libpng-1.5.7beta03.tar
2011-11-16 23:14:06 -06:00
John Bowler
76b0459fdd
[libpng15] Updated contrib/sRGBtables code
2011-11-16 13:44:42 -06:00
Glenn Randers-Pehrson
ae41dc55a2
[libpng15] Added contrib/README.txt
2011-11-16 13:35:16 -06:00
John Bowler
89c2f84287
[libpng15] Fix Windows builds, add pngstest to Visual Studio and OpenWatcom
2011-11-16 12:04:39 -06:00
John Bowler
ed9f84475d
[libpng15] Update pngstest to remove compiler warnings, add to libpng tests
2011-11-16 11:52:27 -06:00
John Bowler
1eb188932b
[libpng15] Added contrib/pngtests
2011-11-16 11:40:59 -06:00
Glenn Randers-Pehrson
816e687de8
[libpng] Added copyright and licensing info to contrib/sRGBtables/*.c
2011-11-11 18:48:04 -06:00
John Bowler
0a521d3785
[libpng15] Installed more accurate linear to sRGB conversion tables.
...
The slightly modified tables reduce the number of 16-bit values that
convert to an off-by-one 8-bit value. The "makesRGB.c" code that was used
to generate the tables is now in a contrib/sRGBtables sub-directory.
2011-11-11 18:14:59 -06:00
Glenn Randers-Pehrson
7342fcaf92
[libpng] #define PNG_ALIGN_TYPE PNG_ALIGN_NONE in contrib/pngminim/*/pngusr.h
2011-10-27 19:56:36 -05:00
Glenn Randers-Pehrson
435cf87469
[libpng15] Bump version to libpng-1.5.6beta04
2011-10-05 16:42:16 -05:00
Glenn Randers-Pehrson
ef43c17bfe
[devel] Changed "// ..." comments to "/* .. */" in the visupng project.
2011-09-03 09:53:07 -05:00
Glenn Randers-Pehrson
4164c6f949
[devel] Reverted non-portable GNU syntax in makefile (?=, +=)
2011-07-12 06:11:42 -05:00
Glenn Randers-Pehrson
4b2237a6a4
[devel] Updated contrib/pngminus/makefile.std
2011-07-11 17:52:05 -05:00
Glenn Randers-Pehrson
581d29d4c9
[devel] Removed redundant directives from pngminim/*/*dfa.
2011-06-17 21:44:10 -05:00
Glenn Randers-Pehrson
fb29e51dbd
[devel] Imported from libpng-1.5.4beta05.tar
2011-06-17 20:42:19 -05:00
Glenn Randers-Pehrson
850769f787
[devel] Revised contrib/visupng, gregbook, and pngminim
...
to demonstrate chop_16_to_8
2011-06-16 09:08:53 -05:00
Glenn Randers-Pehrson
af855e415d
[devel] Remove some trailing blanks.
2011-05-07 10:54:28 -05:00
Glenn Randers-Pehrson
3f2339b551
[devel] removed "strip" from contrib/pngminim/*/makefile
2011-03-19 22:32:38 -05:00
Glenn Randers-Pehrson
eceff8b3c3
[devel] Added a hint to try CPP=/bin/cpp if "cpp -E" fails in
...
scripts/pnglibconf.mak and in contrib/pngminim/*/makefile and to try
"STRIP=touch" if strip is missing, eg., on SunOS 5.10
2011-03-19 14:49:03 -05:00
Glenn Randers-Pehrson
eb7d7955e5
Updated contrib/pngsuite/README to add the word "modify".
2011-02-27 21:19:23 -06:00
Glenn Randers-Pehrson
64b863cd2a
[devel] Update copyright year and bump to version libpng-1.5.0rc07
2011-01-04 09:58:33 -06:00
Glenn Randers-Pehrson
fded04fbf6
[devel] Revised pngvalid.c 16-to-8-big conversion tests
2010-08-27 14:21:21 -05:00
Glenn Randers-Pehrson
0c57414490
[devel] Added "option READ_16_TO_8 on" to contrib/pngminim/decoder/pnglibconf.dfa
...
and contrib/pngminim/preader/pnglibconf.dfa
2010-08-27 09:37:06 -05:00
Glenn Randers-Pehrson
c97cf70bc7
[devel] Remove unnecessary defines from contrib/pngminim/*/pngusr.h
2010-08-24 21:22:27 -05:00
Glenn Randers-Pehrson
a313751258
[devel] Removed spurious tabs, shorten long lines (no source change)
...
Also added scripts/chkfmt to validate the format of all the files that can
reasonably be validated (it is suggested to run "make distclean" before
checking, because some machine generated files have long lines.)
Reformatted the CHANGES file to be more consistent throughout.
2010-08-18 20:25:36 -05:00
Glenn Randers-Pehrson
9f65059a5b
[devel] Don't try to use version-script with cygwin/mingw.
...
Revised contrib/gregbook to work under cygwin/mingw.
2010-08-11 08:06:11 -05:00
Glenn Randers-Pehrson
dbe0c9d8c7
[devel] Use FIXED_POINT in contrib/pngminim/decoder and encoder
2010-07-29 20:28:36 -05:00
Glenn Randers-Pehrson
11a5687b72
[devel] Removed reference to pngarith from contrib/pngminim/preader/makefile.
2010-07-29 19:27:26 -05:00
Glenn Randers-Pehrson
31aee0d0c0
[devel]
...
Fixed point APIs are now supported throughout (no missing APIs).
Internal fixed point arithmetic support exists for all internal floating
point operations.
sCAL validates the floating point strings it is passed.
Safe, albeit rudimentary, Watcom support is provided by PNG_API_RULE==2
Two new APIs exist to get the number of passes without turning on the
PNG_INTERLACE transform and to get the number of rows in the current
pass.
A new test program, pngvalid.c, validates the gamma code.
Errors in the 16 bit gamma correction (overflows) have been corrected.
cHRM chunk testing is done consistently (previously the floating point
API bypassed it, because the test really didn't work on FP, now the test
is performed on the actual values to be stored in the PNG file so it
works in the FP case too.)
Most floating point APIs now simply call the fixed point APIs after
converting the values to the fixed point form used in the PNG file.
The standard headers no longer include zlib.h, which is currently only
required for pngstruct.h and can therefore be internal.
(Patches by John Bowler)
2010-07-29 17:39:14 -05:00
Glenn Randers-Pehrson
289500ab8d
[devel] Imported from libpng-1.5.0beta33.tar
2010-06-28 20:21:22 -05:00
Glenn Randers-Pehrson
73e28ef13d
[devel] Reverted changes to call png_longjmp in contrib/gregbook
...
where it is not appropriate. If mainprog->jmpbuf is used by setjmp,
then png_longjmp cannot be used.
Reversed patch to remove error handler when the jmp_buf is stored in the
main program structure, not the png_struct.
The error handler is needed because the default handler in libpng will
always use the jmp_buf in the library control structure; this is never
set. The gregbook code is a useful example because, even though it
uses setjmp/longjmp, it shows how error handling can be implemented
using control mechanisms not directly supported by libpng. The
technique will work correctly with mechanisms such as Microsoft
Structure Exceptions or C++ exceptions (compiler willing - note that gcc
does not by default support interworking of C and C++ error handling.)
2010-06-28 20:19:57 -05:00
Glenn Randers-Pehrson
5feb87cd0e
[devel] Imported from libpng-1.5.0beta29.tar
2010-06-25 20:06:38 -05:00
Glenn Randers-Pehrson
53c07f5909
[devel] Imported from libpng-1.5.0beta25.tar
2010-06-25 20:06:28 -05:00
Glenn Randers-Pehrson
1f1becf87f
[devel] Fix a spelling typo in the contrib/pngminim makefiles
2010-04-29 09:47:12 -05:00
Glenn Randers-Pehrson
b621794ed5
[devel] Removed contrib/pngminim/*/gather.sh
...
Source file gathering is now done in the makefile.
2010-04-29 08:41:33 -05:00
Glenn Randers-Pehrson
a0b0d8b9db
[devel] Removed dummy_inflate.c from contrib/pngminim/encoder
2010-04-29 08:40:24 -05:00
Glenn Randers-Pehrson
1ce8133282
[devel] Corrected PNG_UNKNOWN_CHUNKS_SUPPORTED
...
to PNG_HANDLE_AS_UNKNOWN_SUPPORTED in gregbook/readpng2.c
2010-04-28 18:44:48 -05:00
Glenn Randers-Pehrson
b7e1abe25c
[devel] Removed extraneous contrib/pngminim/pngusr.h
2010-04-28 08:08:18 -05:00
Glenn Randers-Pehrson
d24a6b5fd0
[devel] Imported from libpng-1.5.0beta22.tar
2010-04-28 08:03:42 -05:00
Glenn Randers-Pehrson
e3e8f6bf02
[devel] Revised contrib/pngminim to use the "everything off" option
...
in pngusr.dfa.
2010-04-28 07:54:14 -05:00
Glenn Randers-Pehrson
d026f9cce6
[devel] Set PNG_NO_READ_BGR, PNG_NO_IO_STATE, and PNG_NO_TIME_RFC1123 in
...
contrib/pngminim/decoder/pngusr.h to make a smaller decoder application.
2010-04-26 22:48:39 -05:00
Glenn Randers-Pehrson
b56e0d06f9
[devel] Imported from libpng-1.5.0beta19.tar
2010-04-24 12:17:49 -05:00
Glenn Randers-Pehrson
5623f781bc
[devel] Imported from libpng-1.5.0beta18.tar
2010-04-17 19:09:22 -05:00
Glenn Randers-Pehrson
7efdbaf320
[devel] Added some PNG_NO_* defines to contrib/pngminim/*/pngusr.h to
...
save some space.
2010-04-17 18:50:23 -05:00
Glenn Randers-Pehrson
98eb24c726
[devel] Updated contrib/pngminim project to work with the new pnglibconf.h
2010-04-17 18:07:33 -05:00
Glenn Randers-Pehrson
8c065ddbe6
[devel] Revised contrib/pngminim/decoder to build and use pnglibconf.h
2010-04-17 12:40:12 -05:00
Glenn Randers-Pehrson
6ff9ec81c5
[devel] Attempt to get contrib/pngminim working with new pnglibconf.h
...
not quite working yet (pow is undefined)
2010-04-17 11:53:38 -05:00
Glenn Randers-Pehrson
8027fed7d1
[devel] Imported from libpng-1.5.0beta17.tar
2010-04-17 08:58:29 -05:00
Glenn Randers-Pehrson
3cd7cffd0c
[devel] Imported from libpng-1.5.0beta17.tar
2010-04-16 19:28:42 -05:00
Glenn Randers-Pehrson
b92e2f7335
[devel] Expanded TAB characters in contrib/pngminus
2010-03-15 09:48:37 -05:00
Glenn Randers-Pehrson
42928551cf
[devel] Expanded TAB character in contrib/gregbook/rpng-x.c and rpng2-x.c
2010-03-15 08:38:06 -05:00
Glenn Randers-Pehrson
86f88ddd53
[devel] Imported from libpng-1.5.0beta12.tar
2010-03-08 21:31:46 -06:00
Glenn Randers-Pehrson
65a223794a
[devel] Bump to version libpng-1.5.0beta11
2010-03-03 05:39:36 -06:00
Glenn Randers-Pehrson
d259e6c570
[devel] Revised png_longjmp() calls in contrib/gregbook to use png_ptr
2010-02-21 23:36:35 -06:00
Glenn Randers-Pehrson
4531ded5c1
[devel] Removed unused gzio.c from contrib/pngminim gather and makefile scripts
...
This is necessary when libz is upgraded to 1.2.4
2010-02-21 23:07:13 -06:00
Glenn Randers-Pehrson
f98726ae98
[devel] Added exported png_longjmp() function.
2010-02-19 09:54:53 -06:00
Glenn Randers-Pehrson
946199e8e4
[devel] Removed obsolete unused MMX-querying support from contrib/gregbook
2010-02-19 07:57:34 -06:00
Glenn Randers-Pehrson
f1eb918dc8
[devel] Imported from libpng-1.5.0beta03.tar
2010-02-08 15:42:16 -06:00
Glenn Randers-Pehrson
e3f3c4ea0b
[devel] Imported from libpng-1.5.0beta01.tar
2010-02-07 18:10:43 -06:00
Glenn Randers-Pehrson
3da965ce4b
[devel] Removed leftover "-DPNG_CONFIGURE_LIBPNG"
...
from contrib/pngminim/*/makefile
2009-12-11 07:56:25 -06:00
Glenn Randers-Pehrson
d88da23cbd
[devel] Added dependency on pngpriv.h in contrib/pngminim/*/makefile
2009-11-09 13:34:10 -06:00
Glenn Randers-Pehrson
d5513a7490
[devel] Changed pngminim/*/gather.sh to stop trying to remove pnggccrd.c and pngvcrd.c
2009-11-09 11:28:15 -06:00
Glenn Randers-Pehrson
3d7e15f353
[devel] Changed pngminim/*/gather.sh to stop trying to remove pnggccrd.c and pngvcrd.c
2009-11-09 11:05:40 -06:00
Glenn Randers-Pehrson
ec3f949874
[devel] Fixed some deprecated usages in the contrib directory.
2009-11-09 10:49:12 -06:00
Glenn Randers-Pehrson
3243fea0ac
[devel] Remove scripting cruft in contrib/pngminim/*/pngusr.h
2009-09-24 18:05:22 -05:00
Glenn Randers-Pehrson
b380515c84
[devel] Removed references to PNG_NO_GLOBAL_ARRAYS
...
from contrib/visupng and contrib/pngminim sources.
2009-08-31 14:50:08 -05:00
Glenn Randers-Pehrson
77d0cdef02
[devel] Imported from libpng-1.4.0beta78.tar
2009-08-31 11:22:08 -05:00
Glenn Randers-Pehrson
922ad083e6
[devel] Revise references to zlib/libpng license
2009-07-28 16:48:28 -05:00
Glenn Randers-Pehrson
12a11c521b
[devel] Imported from libpng-1.4.0beta68.tar
2009-07-19 14:27:36 -05:00
Glenn Randers-Pehrson
bfbf86558c
[devel] Imported from libpng-1.4.0beta66.tar
2009-06-26 21:49:39 -05:00
Glenn Randers-Pehrson
e0dc4c8a1e
[devel] Imported from libpng-1.4.0beta65.tar
2009-06-25 12:19:52 -05:00
Glenn Randers-Pehrson
037023bb31
[devel] Revise references to zlib-libpng license
2009-06-24 10:30:58 -05:00
Glenn Randers-Pehrson
3e61d7985c
[devel] Mention zlib-libpng license in each source file
2009-06-24 09:35:48 -05:00
Glenn Randers-Pehrson
45ae51743b
In contrib/pngminim, #define PNG_NO_READ|WRITE_SWAP in pngusr.h
2009-05-28 20:22:38 -05:00
Glenn Randers-Pehrson
4bb4d01681
Imported from libpng-1.4.0beta61.tar
2009-05-20 17:15:20 -05:00
Glenn Randers-Pehrson
b205f291f6
Actually add the renamed makefiles.
2009-05-19 13:10:55 -05:00
Glenn Randers-Pehrson
a24b08a42a
Rename contrib/pngminim/*/makefile.std to makefile
...
since there's only one makefile, so users can just type "make"
instead of "make -f makefile.std".
2009-05-19 13:08:48 -05:00
Glenn Randers-Pehrson
c996d13ec3
Add contrib/pngminim/preader
...
based on contrib/gregbook/rpng2-x
2009-05-18 16:01:26 -05:00
Glenn Randers-Pehrson
a93c942070
Imported from libpng-1.4.0beta54.tar
2009-04-13 12:02:11 -05:00
Glenn Randers-Pehrson
6a9c2cefdd
Imported from libpng-1.4.0beta52.tar
2009-04-06 16:11:09 -05:00
Glenn Randers-Pehrson
8fb550cc3e
Imported from libpng-1.4.0beta51.tar
2009-04-06 16:11:07 -05:00
Glenn Randers-Pehrson
1916f6ae42
Imported from libpng-1.4.0beta30.tar
2009-04-06 16:10:18 -05:00
Glenn Randers-Pehrson
79084216af
Imported from libpng-1.4.0beta26.tar
2009-04-06 16:10:08 -05:00
Glenn Randers-Pehrson
eb58091392
Imported from libpng-1.4.0beta25.tar
2009-04-06 16:10:05 -05:00
Glenn Randers-Pehrson
6bc53be992
Imported from libpng-1.4.0beta7.tar
2009-04-06 16:09:25 -05:00
Glenn Randers-Pehrson
86dc981475
Imported from libpng-1.4.0beta3.tar
2009-04-06 16:09:16 -05:00
Glenn Randers-Pehrson
d60b8fab03
Imported from libpng-1.4.0beta2.tar
2009-04-06 16:09:14 -05:00
Glenn Randers-Pehrson
26e47d9a71
Imported from libpng-1.2.9beta10.tar
2009-04-06 16:08:44 -05:00
Glenn Randers-Pehrson
ddfebd35be
Imported from libpng-1.2.9beta2.tar
2009-04-06 16:08:25 -05:00
Glenn Randers-Pehrson
9c3ab68145
Imported from libpng-1.2.9beta1.tar
2009-04-06 16:08:23 -05:00
Glenn Randers-Pehrson
5fea36fb00
Imported from libpng-1.2.6beta4.tar
2009-04-06 16:07:40 -05:00
Glenn Randers-Pehrson
5b5dcf8b88
Imported from libpng-1.2.6beta3.tar
2009-04-06 16:07:38 -05:00
Glenn Randers-Pehrson
859665d847
Imported from libpng-1.2.5beta1.tar
2009-04-06 16:07:23 -05:00
Glenn Randers-Pehrson
2ae022da7e
Imported from libpng-1.2.4rc1.tar
2009-04-06 16:07:18 -05:00
Glenn Randers-Pehrson
d020e9d826
Imported from libpng-1.2.4beta3.tar
2009-04-06 16:07:16 -05:00
Glenn Randers-Pehrson
d1e8c8694d
Imported from libpng-1.2.4beta2.tar
2009-04-06 16:07:14 -05:00
Glenn Randers-Pehrson
07748d1b2c
Imported from libpng-1.2.4beta1.tar
2009-04-06 16:07:12 -05:00
Glenn Randers-Pehrson
704228f7e7
Imported from libpng-1.2.3rc4.tar
2009-04-06 16:07:04 -05:00
Glenn Randers-Pehrson
03008a08d1
Imported from libpng-1.2.3rc1.tar
2009-04-06 16:06:58 -05:00
Glenn Randers-Pehrson
fcbd7870e9
Imported from libpng-1.2.2rc1.tar
2009-04-06 16:06:54 -05:00
Glenn Randers-Pehrson
73d57cb97b
Imported from libpng-1.2.2beta5.tar
2009-04-06 16:06:50 -05:00
Glenn Randers-Pehrson
377657d1d6
Imported from libpng-1.2.2beta4.tar
2009-04-06 16:06:49 -05:00
Glenn Randers-Pehrson
9c0f094b21
Imported from libpng-1.2.2beta1.tar
2009-04-06 16:06:43 -05:00
Glenn Randers-Pehrson
5a0be341ba
Imported from libpng-1.2.1beta1.tar
2009-04-06 16:06:30 -05:00
Glenn Randers-Pehrson
1b8e567237
Imported from libpng-1.2.0rc1.tar
2009-04-06 16:06:26 -05:00
Glenn Randers-Pehrson
1ea0ff34fa
Imported from libpng-1.2.0beta5.tar
2009-04-06 16:06:24 -05:00
Glenn Randers-Pehrson
b182893c04
Imported from libpng-1.2.0beta4.tar
2009-04-06 16:06:22 -05:00
Glenn Randers-Pehrson
8b6a889881
Imported from libpng-1.2.0beta3.tar
2009-04-06 16:06:20 -05:00
Glenn Randers-Pehrson
1fd5fb33c2
Imported from libpng-1.2.0beta1.tar
2009-04-06 16:06:16 -05:00
Glenn Randers-Pehrson
e68f5a361b
Imported from libpng-1.0.12beta1.tar
2009-04-06 16:06:14 -05:00
Glenn Randers-Pehrson
1909560348
Imported from libpng-1.0.10beta1.tar
2009-04-06 16:05:58 -05:00
Glenn Randers-Pehrson
d4e8109a48
Imported from libpng-1.0.9.tar
2009-04-06 16:05:56 -05:00
Glenn Randers-Pehrson
cdf140beec
Imported from libpng-1.0.9beta9.tar
2009-04-06 16:05:52 -05:00
Glenn Randers-Pehrson
231e687411
Imported from libpng-1.0.9beta8.tar
2009-04-06 16:05:51 -05:00
Glenn Randers-Pehrson
f5ed0e130c
Imported from libpng-1.0.9beta2.tar
2009-04-06 16:05:37 -05:00
Glenn Randers-Pehrson
fbbb5ecb52
Imported from libpng-1.0.9beta10.tar
2009-04-06 16:05:35 -05:00
Glenn Randers-Pehrson
5e5c1e1f56
Imported from libpng-1.0.9beta1.tar
2009-04-06 16:05:33 -05:00
Glenn Randers-Pehrson
3d5a520610
Imported from libpng-1.0.7.tar
2009-04-06 16:05:21 -05:00
Glenn Randers-Pehrson
1394480f4b
Imported from libpng-1.0.7beta18.tar
2009-04-06 16:05:18 -05:00
Glenn Randers-Pehrson
1f2d559f70
Imported from libpng-1.0.7rc1.tar
2009-04-06 16:05:16 -05:00
Glenn Randers-Pehrson
db66d44801
Imported from libpng-1.0.7beta17.tar
2009-04-06 16:05:14 -05:00
Glenn Randers-Pehrson
d436672048
Imported from libpng-1.0.7beta16.tar
2009-04-06 16:05:13 -05:00
Glenn Randers-Pehrson
228bd390ac
Imported from libpng-1.0.6g.tar
2009-04-06 16:04:59 -05:00
Glenn Randers-Pehrson
4accabb590
Imported from libpng-1.0.6f.tar
2009-04-06 16:04:58 -05:00
Glenn Randers-Pehrson
520a764cd7
Imported from libpng-1.0.6.tar
2009-04-06 16:04:52 -05:00
Glenn Randers-Pehrson
a77ef625a6
Imported from libpng-1.0.5s.tar
2009-04-06 16:04:50 -05:00
Glenn Randers-Pehrson
61c32d9e66
Imported from libpng-1.0.5q.tar
2009-04-06 16:04:49 -05:00
Glenn Randers-Pehrson
166c5a397e
Imported from libpng-1.0.5h.tar
2009-04-06 16:04:47 -05:00
Glenn Randers-Pehrson
5379b24536
Imported from libpng-1.0.5c.tar
2009-04-06 16:04:44 -05:00
Glenn Randers-Pehrson
6d8f3b080a
Imported from libpng-1.0.5a.tar
2009-04-06 16:04:43 -05:00
Glenn Randers-Pehrson
860ab2b1c0
Imported from libpng-1.0.5.tar
2009-04-06 16:04:42 -05:00
Glenn Randers-Pehrson
ad5dd1f0fb
Imported from libpng-1.0.5-pre1.tar
2009-04-06 16:04:41 -05:00
Glenn Randers-Pehrson
33b25bf1a8
Imported from libpng-1.0.4f.tar
2009-04-06 16:04:40 -05:00