John Bowler
4f67e40898
[libpng16] Add 'const' to png_structrp arguments of png_set_*() APIs.
...
Because these APIs store to the png_info they can take a
png_const_structrp now that the error routines also accept
one of these.
2011-12-28 08:43:37 -06:00
John Bowler
5d56786eff
[libpng16] Implemented 'restrict' for png_info and png_struct.
...
Added new "png_structrp" typedef. Because of the
way libpng works both png_info and png_struct are always accessed via a
single pointer. This means adding C99 'restrict' to the pointer gives
the compiler some opportunity to optimize the code. This change allows that.
2011-12-24 09:12:00 -06:00
Glenn Randers-Pehrson
67ee8cee39
[libpng16] bump version to 1.6.0beta04
2011-12-22 08:34:26 -06:00
John Bowler
40b2603687
[libpng16] Start-up code size improvements, error handler flexibility. These
...
changes alter how the tricky allocation of the initial png_struct and png_info
structures are handled. png_info is now handled in pretty much the same
way as everything else, except that the allocations handle NULL return
silently. png_struct is changed in a similar way on allocation and on
deallocation a 'safety' error handler is put in place (which should never
be required). The error handler itself is changed to permit mismatches
in the application and libpng error buffer size; however, this means a
silent change to the API to return the jmp_buf if the size doesn't match
the size from the libpng compilation; libpng now allocates the memory and
this may fail. Overall these changes result in slight code size
reductions; however, this is a reduction in code that is always executed
so is particularly valuable. Overall on a 64-bit system the libpng DLL
decreases in code size by 1733 bytes. pngerror.o increases in size by
about 465 bytes because of the new functionality.
2011-12-22 08:09:15 -06:00
Glenn Randers-Pehrson
29fca795b9
[libpng15] Validate time settings passed to pngset()
...
and png_convert_to_rfc1123(). (Frank Busse).
2011-11-19 15:08:04 -06:00
Glenn Randers-Pehrson
55e85c24b4
[libpng15] Imported from libpng-1.5.7beta01.tar
2011-11-04 13:47:49 -05:00
Glenn Randers-Pehrson
2b7d730e27
[libpng15] Bump version to libpng-1.5.7beta01
2011-11-02 23:14:13 -05:00
Glenn Randers-Pehrson
bc6726bc04
[libpng15] Imported from libpng-1.5.6.tar
2011-11-02 22:48:36 -05:00
Glenn Randers-Pehrson
bb5cb1476b
[libpng15] Bump version to libpng-1.5.6beta02
2011-09-22 12:48:19 -05:00
Glenn Randers-Pehrson
115020d985
[libpng15] Imported from libpng-1.5.6beta01.tar
2011-09-22 09:51:23 -05:00
Glenn Randers-Pehrson
3e2263abf2
[libpng15] Imported from libpng-1.5.5.tar
2011-09-22 08:45:04 -05:00
John Bowler
751561218f
[libpng15] Constant changes for 64-bit compatibility (removal of L suffixes).
...
The 16-bit cases still use "L" as we don't have a 16-bit test system.
2011-09-09 17:21:44 -05:00
John Bowler
f3f7e14727
[libpng15] Fixed 64-bit compilation errors (gcc). The errors fixed relate
...
to conditions where types that are 32 bits in the GCC 32-bit
world (uLong and png_size_t) become 64 bits in the 64-bit
world. This produces potential truncation errors which the
compiler correctly flags.
2011-09-09 07:32:37 -05:00
Glenn Randers-Pehrson
4ae297867d
[devel] Bump version to libpng-1.5.5beta07
2011-08-26 06:07:33 -05:00
John Bowler
736f40f459
[devel] Fixes to rgb_to_gray and cHRM XYZ APIs
2011-08-25 16:19:44 -05:00
Glenn Randers-Pehrson
0bc79772c8
[devel] Revised commentary about png_rgb_to_gray coefficents
...
and fixed spelling (truely -> truly) in comments.
2011-08-11 15:11:11 -05:00
Glenn Randers-Pehrson
d404b6d488
[devel] Imported from libpng-1.5.4.tar
2011-07-07 06:26:30 -05:00
Glenn Randers-Pehrson
140504b11a
[devel] Add synopsis for png_set_chop_16() to manual
...
and fix some other small typos.
2011-06-15 08:10:13 -05:00
John Bowler
d2f0bc2d13
[devel] Improved gamma range checks and other things OpenWatcom warns about.
2011-06-11 06:42:06 -05:00
John Bowler
f70c7d02e9
[devel] Added named value and 'flag' gamma support to png_set_gamma. Made a
...
minor change from the previous (unreleased) ABI/API to hide the exact value
used for Macs - it's not a good idea to embed this in the ABI!
2011-05-10 22:54:37 -05:00
Glenn Randers-Pehrson
b75b24103d
[devel] Added some whitespace in comments.
2011-04-16 19:35:05 -05: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
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
John Bowler
168a433352
[devel] Eliminate more GCC shadow warnings
2011-01-16 19:32:22 -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
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
62333ba0cb
[devel] Adjusted some whitespace in pngset.c
2010-10-23 08:48:51 -05:00
Glenn Randers-Pehrson
c508081afc
[devel] Require 48 bytes, not 64 bytes, for big_row_buf in overflow checks.
...
Also removed two obsolete comments from png.c
2010-10-23 08:26:26 -05:00
Glenn Randers-Pehrson
f0eda4e8d7
[devel] Imported from libpng-1.5.0beta51.tar
2010-10-15 15:08:42 -05:00
Glenn Randers-Pehrson
7e1fabe2f7
[devel] Imported from libpng-1.5.0beta50.tar
2010-10-14 07:35:45 -05:00
Glenn Randers-Pehrson
79b2d64a67
[devel] also check for negative out-of-range text compression mode
2010-10-13 07:31:14 -05:00
Glenn Randers-Pehrson
e34f80e5aa
[devel] Check for out-of-range text compression mode in png_set_text().
2010-10-13 06:55:30 -05:00
Glenn Randers-Pehrson
1b49a71df4
[devel] Imported from libpng-1.5.0beta49.tar
2010-10-07 21:01:17 -05:00
Glenn Randers-Pehrson
83b4fc4af4
[devel] Imported from libpng-1.5.0beta48.tar
2010-10-04 23:06:09 -05:00
Glenn Randers-Pehrson
b0876110ca
[devel] Fixed problem with symbols creation in Makefile.am which was assuming
...
that CCP writes to standard output by default (Martin Banky).
2010-10-04 22:24:14 -05:00
Glenn Randers-Pehrson
bcb3aac3c5
[devel] Fixed a number of problems with 64-bit compilation reported by Visual
...
Studio 2010 (John Bowler).
2010-09-10 22:05:27 -05:00
Glenn Randers-Pehrson
39515c9ee0
[devel] Imported from libpng-1.5.0beta46.tar
2010-08-28 06:25:21 -05:00
Glenn Randers-Pehrson
a7119547e2
[devel] Imported from libpng-1.5.0beta45.tar
2010-08-26 07:10:48 -05:00
Glenn Randers-Pehrson
9b362b1e4f
[devel] Bump to version libpng-1.5.0beta45
2010-08-24 09:05:02 -05:00
Glenn Randers-Pehrson
67439c4701
[devel] Addressed various issues identified by GCC, mostly signed/unsigned
...
and shortening problems on assignment but also a few difficult to optimize
(for GCC) loops (John Bowler).
2010-08-19 07:01:09 -05:00
Glenn Randers-Pehrson
e600c51355
[devel]Made all API functions that have const arguments and constant string
...
literal pointers declare them (John Bowler).
Many APIs did not change their arguments but were not declared using
PNG_CONST. This change corrects this. In a few cases APIs that return
constant string literal pointers have also been changed to declare this.
Unlike the argument change this may require app changes; however the
results could never be written to (the app would crash on some platforms
where strings are not writable), so this seems advisable.
2010-08-18 07:25:46 -05:00
Glenn Randers-Pehrson
363f96e717
[devel] Imported from libpng-1.5.0beta41.tar
2010-08-11 09:04:31 -05:00
Glenn Randers-Pehrson
836fe66e24
[devel] Imported from libpng-1.5.0beta40.tar
2010-08-06 06:57:32 -05:00
Glenn Randers-Pehrson
2c700f970c
[devel] Imported from libpng-1.5.0beta39.tar
2010-08-02 08:02:00 -05:00
Glenn Randers-Pehrson
4009a76e97
[devel] Implemented remaining "_fixed" functions and corrected warnings
...
that were recently introduced, mostly resulting from
safe but uncast assignments to shorter integers. Also added a zlib
VStudio release library project because the latest zlib Official Windows
build does not include such a thing.
2010-07-31 06:34:36 -05:00
Glenn Randers-Pehrson
6c47e84d2e
[devel] Bump to version libpng-1.5.0beta36
2010-07-29 19:10:27 -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
915bab5fc7
[devel] Bump to version libpng-1.5.0beta35
2010-07-24 08:25:31 -05:00
Glenn Randers-Pehrson
39a8bb71d3
[devel] Imported from libpng-1.5.0beta34.tar
2010-07-12 06:45:23 -05:00
Glenn Randers-Pehrson
8f9de7acbd
[devel] Bump back to version libpng-1.5.0beta34
2010-07-06 07:46:10 -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
82980f31d9
[devel] Make png_set_sRGB_gAMA_and_cHRM set values using either the fixed or
...
floating point APIs, but not both.
2010-06-26 12:31:58 -05:00
Glenn Randers-Pehrson
a691ca0f85
[devel] Changed "#else" to "#endif/#ifdef" in png_set_gAMA_and_cHRM().
2010-06-25 22:03:21 -05:00
Glenn Randers-Pehrson
a272d8fe3d
[devel] Made FIXED and FLOATING options consistent in the APIs they enable
...
and disable. Corrected scripts/options.awk to handle both command line
options and options specified in the .dfa files.
2010-06-25 21:45:31 -05:00
Glenn Randers-Pehrson
4db344230d
[devel] Imported from libpng-1.5.0beta32.tar
2010-06-25 20:18:44 -05:00
Glenn Randers-Pehrson
821b7106b2
[devel] Imported from libpng-1.5.0beta31.tar
2010-06-25 20:06:43 -05:00
Glenn Randers-Pehrson
ef3831a1fe
[devel] Imported from libpng-1.5.0beta30.tar
2010-06-25 20:06:40 -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
57d9617964
[devel] Imported from libpng-1.5.0beta28.tar
2010-06-25 20:06:35 -05:00
Glenn Randers-Pehrson
5b3d554e1e
[devel] Imported from libpng-1.5.0beta26.tar
2010-06-25 20:06:30 -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
537c1a5747
[devel] Imported from libpng-1.5.0beta24.tar
2010-05-07 09:55:50 -05:00
Glenn Randers-Pehrson
f24daf23a5
[devel] Added more blank lines for readability.
2010-05-06 09:44:04 -05:00
Glenn Randers-Pehrson
aa3143cf6f
[devel] Imported from libpng-1.5.0beta23.tar
2010-04-29 10:56:05 -05:00
Glenn Randers-Pehrson
bb317fb0b2
[devel] Bump to libpng-1.5.0beta22
2010-04-28 07:44:23 -05:00
Glenn Randers-Pehrson
deec549d9f
[devel] Imported from libpng-1.5.0beta21.tar
2010-04-26 22:51:22 -05:00
Glenn Randers-Pehrson
9c5beb56e3
[devel] Bump back to version libpng-1.5.0beta21
2010-04-24 20:35:28 -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
3cd7cffd0c
[devel] Imported from libpng-1.5.0beta17.tar
2010-04-16 19:28:42 -05:00
Glenn Randers-Pehrson
c2fa196d14
[devel] Imported from libpng-1.5.0beta16.tar
2010-04-01 07:19:17 -05:00
Glenn Randers-Pehrson
946c3f985f
[devel] Relocated newly misplaced "else" in pngset.c
2010-03-30 14:50:07 -05:00
Glenn Randers-Pehrson
dd78d526d0
[devel] Make png_text_struct independent of PNG_iTXt_SUPPORTED
2010-03-30 08:34:02 -05:00
Glenn Randers-Pehrson
b2eacd3e1f
[devel] Imported from libpng-1.5.0beta15.tar
2010-03-17 07:33:10 -05:00
Glenn Randers-Pehrson
4a215541e7
[devel] Imported from libpng-1.5.0beta14.tar
2010-03-14 09:42:07 -05:00
Glenn Randers-Pehrson
c6fecfbaa5
[devel] Imported from libpng-1.5.0beta13.tar
2010-03-10 09:12:03 -06:00
Glenn Randers-Pehrson
86f88ddd53
[devel] Imported from libpng-1.5.0beta12.tar
2010-03-08 21:31:46 -06:00
Glenn Randers-Pehrson
c3cd22b404
[devel] Moved "#include png.h" inside pngpriv.h and removed "#include png.h"
...
from the source files, along with "#define PNG_EXPOSE_INTERNAL_STRUCTURES"
and "#define PNG_NO_PEDANTIC_WARNINGS" (John Bowler).
Also created new pngdebug.h and moved debug definitions there.
2010-03-08 21:10:25 -06:00
Glenn Randers-Pehrson
aaf377c874
[devel] Bump to version libpng-1.5.0beta12
2010-03-08 11:21:39 -06:00
Glenn Randers-Pehrson
e4c706af54
[devel] Imported from libpng-1.5.0beta11.tar
2010-03-06 14:53:56 -06:00
Glenn Randers-Pehrson
da30135c4c
[devel] Fix whitespace in pngerror.c and pngset.c
2010-03-06 06:42:48 -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
6a9e480512
[devel] Imported from libpng-1.5.0beta07.tar
2010-02-19 09:59:25 -06:00
Glenn Randers-Pehrson
7a5be53631
[devel] Imported from libpng-1.5.0beta06.tar
2010-02-14 07:18:23 -06:00
Glenn Randers-Pehrson
6e283234c9
[devel] Imported from libpng-1.5.0beta05.tar
2010-02-12 21:28:31 -06:00
Glenn Randers-Pehrson
f97953181a
[devel] Changed PNG_INTERNAL to PNG_EXPOSE_INTERNAL_STRUCTURES
...
and updated the "last change" comments to 1.5.0
2010-02-09 01:16:48 -06:00
Glenn Randers-Pehrson
b9a78bedee
[devel] Imported from libpng-1.5.0beta04.tar
2010-02-08 23:34:32 -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
67a83db98d
[devel] Imported from libpng-1.4.0rc08.tar
2010-01-01 18:32:13 -06:00
Glenn Randers-Pehrson
e69b55d9ac
[devel] Update copyright year to 2010
2010-01-01 10:29:06 -06:00
Glenn Randers-Pehrson
f81b50bf9d
[devel] Imported from libpng-1.4.0rc06.tar
2009-12-29 16:51:34 -06:00
Glenn Randers-Pehrson
6ba9088de9
[devel] Swapped PNG_UNKNOWN_CHUNKS_SUPPORTED and PNG_HANDLE_AS_UNKNOWN_SUPPORTED
...
in pngset.c to be consistent with other changes in version 1.2.38.
2009-12-25 14:26:13 -06:00
Glenn Randers-Pehrson
5265c3889c
[devel] Bump to version 1.4.0rc03
2009-12-22 09:10:46 -06:00
Glenn Randers-Pehrson
62ca98ef5e
[devel] Imported from libpng-1.4.0rc02.tar
2009-12-20 15:16:15 -06:00
Glenn Randers-Pehrson
addb84b1bc
[devel] Imported from libpng-1.4.0beta109.tar
2009-12-13 08:15:55 -06:00
Glenn Randers-Pehrson
0452bbcf84
[devel] Imported from libpng-1.4.0beta108.tar
2009-12-11 18:02:44 -06:00
Glenn Randers-Pehrson
03f9b02953
[devel] Removed "-DPNG_CONFIGURE_LIBPNG" from the makefiles and projects.
...
and added "#define PNG_NO_PEDANTIC_WARNINGS" in the libpng source files.
2009-12-04 08:40:41 -06:00
Glenn Randers-Pehrson
e4b9fc28de
[devel] Imported from libpng-1.4.0beta106.tar
2009-11-27 00:28:34 -06:00
Glenn Randers-Pehrson
5a2015e146
[devel] Bump to version 1.4.0beta106
2009-11-26 11:46:24 -06:00