John Bowler
c5bef946b1
[devel] IDAT compression failed if preceded by a compressed text chunk
...
This was because the attempt to reset the zlib stream in png_write_IDAT
happened after the first IDAT chunk had been deflated - much too late.
In this change internal functions are added to claim/release the z_stream
and, hopefully, make the code more robust. Also deflateEnd checking is
added - previously libpng would ignore an error at the end of the stream.
2011-05-05 17:35:39 -05:00
Glenn Randers-Pehrson
c559bb58ed
[devel] Added PNG_WRITE_OPTIMIZE_CMF_SUPPORTED macro to make zlib "CMF"
...
optimization configureable.
2011-05-05 16:55:20 -05:00
Glenn Randers-Pehrson
4753906826
[devel] Update "last changed" dates and added CHANGES entry.
2011-05-05 07:32:30 -05:00
Glenn Randers-Pehrson
b3b7168077
[devel] Added appropriate feature test macros (_POSIX_SOURCE, _ISOC99_SOURCE)
...
to ensure libpng sees the correct API.
2011-05-03 22:30:19 -05:00
Glenn Randers-Pehrson
24fde6e00f
[devel] Bump to version libpng-1.5.3beta05
2011-04-28 23:20:24 -05:00
Glenn Randers-Pehrson
33ced44f9e
[devel] Bump to version libpng-1.5.3beta04
2011-04-27 15:38:15 -05:00
Glenn Randers-Pehrson
6cd31bbfce
[devel] Give credit for recent bug report to Andrew Church.
2011-04-17 19:02:00 -05:00
Glenn Randers-Pehrson
4bc9f8472c
[devel] Updated CHANGES, ANNOUNCE, and pngtest.png to reflect recent changes.
2011-04-17 18:58:38 -05:00
Glenn Randers-Pehrson
a1f9426399
[devel] Bump to version libpng-1.5.3beta04
2011-04-16 21:48:23 -05:00
Glenn Randers-Pehrson
cb1aee2506
[devel] Fixed bug with stripping the filler or alpha channel when writing,
...
that was introduced in libpng-1.5.2beta01.
2011-04-16 19:27:34 -05:00
Glenn Randers-Pehrson
1b491cbda0
[devel] Bump to version libpng-1.5.3beta03
2011-04-03 06:51:53 -05:00
Glenn Randers-Pehrson
8abcf141fa
[devel] Imported from libpng-1.5.3beta02.tar
2011-04-03 06:36:34 -05:00
Glenn Randers-Pehrson
6785856858
[devel] Optimize the zlib CMF byte in non-IDAT compressed chunks
2011-04-02 08:26:42 -05:00
Glenn Randers-Pehrson
c3b3240a03
[devel] Improved the optimization of the zlib CMF byte
...
(see libpng-1.2.6beta03).
2011-04-01 22:10:41 -05:00
Glenn Randers-Pehrson
205483d592
[devel] Added PNG_WRITE_COMPRESSED_TEXT_SUPPORTED macro.
2011-04-01 12:33:42 -05:00
Glenn Randers-Pehrson
3bb8683a79
[devel] Only compile the new zlib re-initializing code when text or iCCP
...
is supported.
2011-04-01 08:12:24 -05:00
Glenn Randers-Pehrson
bef60dc624
[devel] Updated scripts/symbols.def with new API functions.
2011-04-01 00:28:59 -05:00
Glenn Randers-Pehrson
b0525f83e1
[devel] Bump to version libpng-1.5.3beta02
2011-03-31 23:50:46 -05:00
Glenn Randers-Pehrson
6b3d50b2cd
[devel] Re-initialize the zlib compressor before compressing non-IDAT chunks.
2011-03-31 20:14:29 -05:00
Glenn Randers-Pehrson
dcc3505c7b
[devel] Imported from libpng-1.5.2.tar
2011-03-31 11:29:05 -05:00
Glenn Randers-Pehrson
80de04e560
[devel] Don't include standard header files in png.h while building the symbol
...
table, to avoid cpp failure on SunOS (introduced PNG_BUILDING_SYMBOL_TABLE
macro).
2011-03-24 23:06:26 -05:00
Glenn Randers-Pehrson
77fd083041
[devel] Bump to version libpng-1.5.2rc03
2011-03-24 09:01:33 -05:00
Glenn Randers-Pehrson
22b9a84314
[devel] Imported from libpng-1.5.2rc02.tar
2011-03-22 06:32:08 -05:00
Glenn Randers-Pehrson
f27592a0cd
[devel] Fixed a long-standing bug in png_handle_sPLT() when
...
PNG_NO_POINTER_INDEXING is defined.
2011-03-21 18:05:40 -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
f3dd1cc51e
[devel] Imported from libpng-1.5.2rc01.tar
2011-03-18 22:03:48 -05:00
Glenn Randers-Pehrson
d32a671dff
[devel] Define remaining attributes to blank when MSC_VER<1300.
2011-03-06 16:49:10 -06:00
Glenn Randers-Pehrson
ffc9e9503d
[devel] Bump to version libpng-1.5.2beta04
2011-03-03 06:41:16 -06:00
Glenn Randers-Pehrson
41b1ffdf36
[devel] Make PNG_ALLOCATED blank when _MSC_VER<1300 in pngconf.h
2011-03-03 06:24:32 -06: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
4411742328
[devel] Fixed scripts/makefile.vcwin32
2011-02-20 06:17:22 -06:00
Glenn Randers-Pehrson
7c969f347f
[devel] Bump to version libpng-1.5.2beta03
2011-02-19 15:59:14 -06:00
Glenn Randers-Pehrson
d08b6bdbf7
[devel] Imported from libpng-1.5.2beta02.tar
2011-02-19 15:51:57 -06:00
Glenn Randers-Pehrson
0b5b4b456c
[devel] Updated ANNOUNCE and CHANGES.
2011-02-16 06:41:18 -06:00
Glenn Randers-Pehrson
93215674db
[devel] Fixed mistake in the descriptions of user read_transform and
...
write_transform function prototypes in the manual.
The row_info struct should be of type png_row_infop.
2011-02-13 19:42:19 -06:00
Glenn Randers-Pehrson
67703b11fe
[devel] Imported from libpng-1.5.2beta01.tar
2011-02-13 07:02:55 -06:00
Glenn Randers-Pehrson
a3791aabaa
[devel] Updated CHANGES and ANNOUNCE
2011-02-13 06:59:37 -06:00
Glenn Randers-Pehrson
cad6798a8c
[devel] Imported from libpng-1.5.2beta01.tar
2011-02-13 06:13:39 -06:00
Glenn Randers-Pehrson
c83d421d9e
Revert "[devel] Changed empty parameter to PNG_BLANK in PNG_EXPORTA definition to"
...
This reverts commit 2438825d77
.
2011-02-12 08:54:42 -06:00
Glenn Randers-Pehrson
2438825d77
[devel] Changed empty parameter to PNG_BLANK in PNG_EXPORTA definition to
...
accommodate the old VisualC++ preprocessor.
Defined PNG_ALLOCATED to empty for MSC_VER < 1300.
2011-02-12 07:49:28 -06:00
Glenn Randers-Pehrson
a257f80d95
[devel] Reverted the "__clang__" special case in pngconf.h
2011-02-06 06:20:51 -06:00
Glenn Randers-Pehrson
973c493e1b
[devel] Add __clang__ special case in pngconf.h
2011-02-04 18:51:00 -06:00
Glenn Randers-Pehrson
58bd925acc
[devel] Add CHANGES entry about shadow warnings fix
2011-02-03 21:54:53 -06:00
Glenn Randers-Pehrson
3d3aae1697
--amend [devel] Imported from libpng-1.5.1.tar
2011-02-02 23:00:03 -06:00
Glenn Randers-Pehrson
25d2d47f86
[devel] updated the commentary in pngpriv.h about PNG_UNUSED().
2011-01-31 10:25:10 -06:00
Glenn Randers-Pehrson
4c0eaee5c6
[devel] Changed PNG_UNUSED to "(void)param;"
2011-01-30 11:55:35 -06:00
Glenn Randers-Pehrson
cbbe9a5c01
[devel] Added a request in the manual that applications do not use "png_" or
...
"PNG_" to begin any of their own symbols.
2011-01-29 16:12:11 -06:00
Glenn Randers-Pehrson
7ccc2daf09
--amend [devel] Imported from libpng-1.5.1rc01.tar.gz
2011-01-28 23:12:23 -06:00
Glenn Randers-Pehrson
4e7c47fb73
[devel] Updated CHANGES and ANNOUNCE.
2011-01-28 07:05:53 -06:00
Glenn Randers-Pehrson
4e2e14addf
[devel] Changed PNG_UNUSED from "param=param;" to "{if(param){}}".
2011-01-27 13:23:08 -06:00
Glenn Randers-Pehrson
0e15da5b94
[devel] Simplified the PNG_UNUSED macro.
2011-01-27 12:45:56 -06:00
Glenn Randers-Pehrson
2774238722
[devel] Trying a different PNG_UNUSED macro.
2011-01-27 09:37:34 -06:00
Glenn Randers-Pehrson
0012e9cd54
[devel] Imported from libpng-1.5.1beta10.tar
2011-01-26 22:05:32 -06:00
Glenn Randers-Pehrson
8d0bc0f026
[devel] Made the manual, synopses, and function prototypes use the function
...
argument names file_gamma, int_file_gamma, and srgb_intent consistently.
2011-01-25 22:15:58 -06:00
Glenn Randers-Pehrson
81ce889435
[devel] Fixed incorrect examples of callback prototypes in the manual.
...
"png_ptr ptr" should be "png_structp png_ptr"
2011-01-24 08:04:37 -06:00
Glenn Randers-Pehrson
135d17ce3e
[devel] Bump to version libpng-1.5.1beta10
2011-01-24 00:18:05 -06:00
Glenn Randers-Pehrson
b0b058b767
[devel] Updated CHANGDES and ANNOUNCE files about John's checkin.
2011-01-24 00:13:36 -06:00
John Bowler
f21a0d0eee
[devel] Enhance pngvalid, correct an error in gray_to_rgb, correct doc error.
2011-01-23 23:55:19 -06:00
Glenn Randers-Pehrson
d52cd11ed2
[devel] Bump to version libpng-1.5.1beta09
2011-01-22 20:23:07 -06:00
Glenn Randers-Pehrson
3bd489d315
[devel] Imported from libpng-1.5.1beta08.tar
2011-01-22 20:19:10 -06:00
Glenn Randers-Pehrson
cbabd9c7e1
[devel] Updated CHANGES and ANNOUNCE.
2011-01-22 18:37:17 -06:00
John Bowler
0a5c9c02fa
[devel] Corrected const_png_ in png.h to png_const_ to avoid polluting
...
the namespace. Added png_get_current_row_number and
png_get_current_pass_number for the
benefit of the user transform callback.
Added png_process_data_pause and png_process_data_skip for the benefit of
progressive readers that need to stop data processing or want to optimize
skipping of unread data (e.g. if the reader marks a chunk to be skipped.)
2011-01-22 17:36:34 -06:00
John Bowler
71a10f2ca1
[devel] Attempted to fix cpp on Solaris with S. Studio 12 cc, fix build
...
Added a make macro DFNCPP that is a CPP that will accept the tokens in
a .dfn file and adds configure stuff to test for such a CPP. ./configure
should fail if one is not available.
2011-01-22 17:03:33 -06:00
Glenn Randers-Pehrson
a861ed971e
[devel] Added synopses for the IO_STATE functions and other missing synopses
...
to the manual. Removed the synopses from libpngpf.3 because they
were out of date and no longer useful. Better information can be
obtained by reading the prototypes and comments in pngpriv.h
2011-01-22 16:46:37 -06:00
Glenn Randers-Pehrson
eac893b60b
[devel] Added synopses for the IO_STATE functions to the manual.
2011-01-22 09:06:38 -06:00
Glenn Randers-Pehrson
a63dbedead
[devel] Added png_get_io_chunk_type() and deprecated png_get_io_chunk_name()
2011-01-22 08:51:19 -06:00
Glenn Randers-Pehrson
b86b4928d6
[devel] Added const_png_structp and const_png_infop types, and used them in
...
prototypes for most png_get_*() functions.
2011-01-21 23:12:51 -06:00
Glenn Randers-Pehrson
2cb633b915
[devel] In the manual, describe the png_get_IHDR() arguments in the right order.
2011-01-21 08:31:29 -06:00
Glenn Randers-Pehrson
47457a01f7
[devel] Bump to version libpng-1.5.1rc01
2011-01-21 08:25:26 -06:00
Glenn Randers-Pehrson
77c3bf17ca
[devel] Imported from libpng-1.5.1beta06.tar
2011-01-20 16:02:05 -06:00
John Bowler
168a433352
[devel] Eliminate more GCC shadow warnings
2011-01-16 19:32:22 -06:00
Glenn Randers-Pehrson
1408c2afeb
[devel] Prevent png_push_crc_skip() from hanging while reading an unknown chunk
...
or an over-large compressed zTXt chunk with the progressive reader.
2011-01-16 14:16:28 -06:00
Glenn Randers-Pehrson
c9ae31c23a
[devel] Bump to version libpng-1.5.1beta06
2011-01-16 13:40:05 -06:00
Glenn Randers-Pehrson
2368a92b2d
[devel] Changed variable names png_index, png_div, png_exp, and png_gamma to
...
char_index, divisor, exp_b10, and gamma_val, respectively, and
changed exp() back to png_exp().
2011-01-16 13:32:05 -06:00
Glenn Randers-Pehrson
e03dd5bd64
[devel] Prefixed variable names index, div, exp, gamma with "png_"
...
to avoid "shadow" warnings. Revised png_fixed() in png.c to avoid compiler
warning about reaching the end without returning anything.
2011-01-16 00:38:30 -06:00
Glenn Randers-Pehrson
5acd8fe9cb
[devel] Add CHANGES entry about fixing pngvalid "sample" function.
2011-01-15 22:41:42 -06:00
Glenn Randers-Pehrson
00879b155a
[devel] Mentioned in the documentation that applications must #include "zlib.h"
...
if they need access to anything in zlib.h, and that a number of
macros such as png_memset() are no longer accessible by applications.
2011-01-15 19:25:34 -06:00
Glenn Randers-Pehrson
4a5a1ec0b4
[devel] Updated documentation of png_set_iCCP().
2011-01-15 11:43:28 -06:00
Glenn Randers-Pehrson
f3c51e4a28
[devel] Updated documentation of png_set|get_tRNS().
2011-01-15 10:25:25 -06:00
Glenn Randers-Pehrson
b764c60a12
[devel] Imported from libpng-1.5.1beta03.tar
2011-01-14 21:20:20 -06:00
Glenn Randers-Pehrson
d3edb3f27c
[devel] Updated CMakeLists.txt (Clifford Yapp)
2011-01-14 17:08:28 -06:00
Glenn Randers-Pehrson
e15a96b333
[devel] Fixed a bug in handling of interlaced images (bero at arklinux.org).
2011-01-14 15:47:37 -06:00
Glenn Randers-Pehrson
3200e1e088
[devel] Bump to version libpng-1.5.1beta02
2011-01-08 21:02:22 -06:00
Glenn Randers-Pehrson
e8edb5a809
[devel] Update ANNOUNCE and CHANGES to reflect the recent bugfixes.
2011-01-08 14:56:49 -06:00
Glenn Randers-Pehrson
fff1093227
[devel] Same situation with png_set_iCCP().
2011-01-08 11:05:47 -06:00
Glenn Randers-Pehrson
9d23b40c24
[devel] Added a note in the manual that the type of the iCCP profile changed
...
from png_charpp to png_bytepp in png_get_iCCP(). This change happened
in version 1.5.0beta36 but is not noted in the CHANGES. Also, revised
the "synopsis" for png_get_iCCP() in libpng.3 accordingly.
2011-01-08 10:42:01 -06:00
Glenn Randers-Pehrson
9dd1cdff66
[devel] Added description of png_set_crc_action() to the manual.
2011-01-06 21:42:36 -06:00
Glenn Randers-Pehrson
512cbf8ade
[devel] Bump to version libpng-1.5.1beta01
2011-01-06 08:11:22 -06:00
Glenn Randers-Pehrson
f5ea1b7095
[devel] Imported from libpng-1.5.0.tar
2011-01-06 06:45:07 -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
977f6eba3d
[devel] Changed new configure option "zprefix=string" to "zlib-prefix=string"
2011-01-04 09:07:45 -06:00
Glenn Randers-Pehrson
8409b8f6db
[devel] Fixed typo in a comment in CMakeLists.txt
...
(libpng14 => libpng15) (Cosmin)
2010-12-31 09:14:01 -06:00
Glenn Randers-Pehrson
f2e2833f28
[devel] Fixed bug in background transformation handling in pngrtran.c
...
(it was looking for the flag in png_ptr->transformations instead of in
png_ptr->flags).
2010-12-28 21:48:43 -06:00
Glenn Randers-Pehrson
332594dd06
[devel] Bump to version libpng-1.5.0rc04
2010-12-27 22:18:05 -06:00
Glenn Randers-Pehrson
7de3260017
[devel] Imported from libpng-1.5.0rc03.tar
2010-12-27 22:15:18 -06:00
Glenn Randers-Pehrson
57731529dc
[devel] Bump to version libpng-1.5.0rc03
2010-12-27 21:35:41 -06:00
Glenn Randers-Pehrson
5aff745c15
[devel] Eliminated references to the scripts/*.def files in project/visualc71.
2010-12-27 21:29:17 -06:00
Glenn Randers-Pehrson
fd20a5ae9b
[devel] Imported from libpng-1.5.0rc01.tar
2010-12-27 08:55:13 -06:00
Glenn Randers-Pehrson
d3b76572c7
[devel] Bump to version libpng-1.5.0beta59
2010-12-19 17:06:32 -06:00