Glenn Randers-Pehrson
8b67ee5d3d
[libpng15] Updated scripts/pnglibconf.mak to handle the new PNG_JOIN macro.
2011-11-05 09:27:55 -05:00
John Bowler
a004e23a4c
[libpng15] Fixed FP division by zero in pngvalid.c; the 'test_pixel' code left
...
the sBIT fields in the test pixel as 0, which resulted in a floating
point division by zero which was irrelevant but causes systems where
FP exceptions cause a crash. Added code to pngvalid to turn on FP
exceptions if the appropriate glibc support is there to ensure this is
tested in the future.
2011-11-04 20:24:56 -05:00
John Bowler
88bcdc269b
[libpng] Check compression_type parameter in png_get_iCCP and remove spurious
...
casts. The compression_type parameter is always assigned to, so must
be non-NULL. The cast of the profile length potentially truncated the
value unnecessarily on a 16-bit int system, so the cast of the (byte)
compression type to (int) is specified by ANSI-C anyway.
2011-11-04 20:12:03 -05:00
Glenn Randers-Pehrson
aad7c828b2
[libpng15] Removed a stray sentence fragment from CHANGES/ANNOUNCE
2011-11-04 14:12:04 -05:00
Glenn Randers-Pehrson
5a9aca17df
[libpng15] Bump version to libpng-1.5.7beta02
2011-11-04 13:47:57 -05:00
Glenn Randers-Pehrson
55e85c24b4
[libpng15] Imported from libpng-1.5.7beta01.tar
2011-11-04 13:47:49 -05:00
John Bowler
fcc0263191
[libpng15] Paeth filter speed improvements from work by Siarhei Siamashka. This
...
changes the 'Paeth' reconstruction function to improve the GCC code
generation on x86. The changes are only part of the suggested ones;
just the changes that definitely improve speed and remain simple.
The changes also slightly increase the clarity of the code. In a
2011-11-03 18:31:00 -05:00
John Bowler
1d8b75550f
[libpng15] Fix for the preprocessor of the Intel C compiler. The preprocessor
...
adjacent @ signs with a space; this changes the concatentation
from @@@ to PNG_JOIN; that should work with all compiler
preprocessors.
2011-11-03 18:19:53 -05:00
John Bowler
aff44028ba
[libpng15] Fixed bug in pngvalid on early allocation failure; fixed type cast
...
in pngmem.c; pngvalid would attempt to call png_error() if the allocation
of a png_struct or png_info failed. This would probably have led to a
crash. The pngmem.c implementation of png_malloc() included a cast
to png_size_t which would fail on large allocations on 16-bit systems.
2011-11-03 16:11:08 -05:00
Mans Rullgard
d3a94802d8
[libpng15] Added support for ARM processor (Mans Rullgard)
2011-11-03 00:47:55 -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
c94b996af8
[libpng15] Bump version to libpng-1.5.6rc04
2011-10-27 21:09:08 -05: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
John Bowler
92ef313c77
[libpng15] Fixed compiler warnings with Intel and MSYS compilers.
...
The logical shift fix for Microsoft Visual C is required by other compilers,
so this enables that fix for all compilers when using compile-time constants.
Under MSYS 'byte' is a name declared in a system header file, so we
changed the name of a local variable to avoid the warnings that result.
2011-10-27 19:53:14 -05:00
Glenn Randers-Pehrson
cb75699dff
[libpng15] Renamed the LSR() macro to PNG_LSR() and added PNG_LSL() macro.
2011-10-27 16:59:03 -05:00
Glenn Randers-Pehrson
122a525c83
[libpng15] Bump version to libpng-1.5.6rc03
2011-10-27 16:51:52 -05:00
Glenn Randers-Pehrson
ef02d563a3
[libpng15] Added LSR() macro to defend against buggy compilers that evaluate
...
non-taken code branches and complain about out-of-range shifts.
2011-10-27 12:05:58 -05:00
Glenn Randers-Pehrson
b2068640d1
[libpng15] Bump version to libpng-1.5.6rc02
2011-10-26 08:48:35 -05:00
Glenn Randers-Pehrson
93254f66fc
[libpng15] Imported from libpng-1.5.6rc01.tar
2011-10-26 08:48:23 -05:00
Glenn Randers-Pehrson
52093f1776
[libpng15] Corrected recent ANNOUNCE and CHANGES entry
2011-10-21 12:57:01 -05:00
Glenn Randers-Pehrson
0654d63196
[libpng15] Bump version to libpng-1.5.6beta08
2011-10-21 07:39:45 -05:00
Glenn Randers-Pehrson
4e8aa822dc
[libpng15] Imported from libpng-1.5.6beta07.tar
2011-10-21 07:39:34 -05:00
Mans Rullgard
c9e27d026d
[libpng15] Made png_ptr->prev_row an aligned pointer into png_ptr->big_prev_row
...
and removed a redundant assignment (Mans Rullgard).
2011-10-17 15:25:03 -05:00
Glenn Randers-Pehrson
e7db181e5d
[libpng15] Bump version to libpng-1.5.6beta07
2011-10-17 08:08:16 -05:00
Glenn Randers-Pehrson
f5c5e53bf5
[libpng15] Imported from libpng-1.5.6beta06.tar
2011-10-17 08:08:08 -05:00
John Bowler
ecb3ad035a
[libpng15] Updated ANNOUNCE and CHANGES
2011-10-16 22:55:44 -05:00
John Bowler
fb5b3ac013
[libpng15] Prevent libpng overwriting unused bits at the end of the image when
...
is not byte aligned, while reading. Prior to libpng-1.5.6 libpng would
overwrite the end of the image if the row width is not an exact multiple
of 8 bits and the image is not interlaced.
2011-10-16 22:52:56 -05:00
John Bowler
5b84901c55
[libpng15] Turned on multiple png_read_update_info in pngvalid transform tests.
2011-10-16 22:42:46 -05:00
John Bowler
57cbcf6b8f
[libpng15] Add ability to call png_read_update_info multiple times to pngvalid.c
2011-10-14 19:43:53 -05:00
John Bowler
07772cba07
[libpng15] Fixes for multiple calls to png_read_update_info.
...
These fixes attend to most of the errors revealed in pngvalid, however doing
the gamma work twice results in inaccuracies that can't be easily fixed.
There is now a warning in the code if this is going to happen.
2011-10-14 18:19:47 -05:00
John Bowler
5c1905caae
[libpng15] Fixed a relatively harmless memory overwrite
...
in compressed text writing
2011-10-14 12:33:52 -05:00
Glenn Randers-Pehrson
d58251b47e
[libpng15] Reverted previous change; removed png_get_compression_buffer() API.
...
It is too risky. Exactly how png_ptr->zbuf is used is under control of the
individual chunk implementation and there could easily be significant changes
within a major release.
2011-10-13 20:30:02 -05:00
Glenn Randers-Pehrson
d3dcb463d6
[libpng15] Added png_get_compression_buffer() API.
2011-10-13 17:51:31 -05:00
Glenn Randers-Pehrson
3dbfd300ff
[libpng15] Removed two redundant tests for unitialized row.
2011-10-13 17:24:36 -05:00
Glenn Randers-Pehrson
ff36991ca2
[libpng15] Bump version to libpng-1.5.6beta06
2011-10-12 06:54:55 -05:00
Glenn Randers-Pehrson
5b3b54e3f6
[libpng15] Imported from libpng-1.5.6beta05.tar
2011-10-12 06:47:31 -05:00
Glenn Randers-Pehrson
76b62317b5
[libpng15] Fixed bug in png_write_chunk_header() debug print,
...
introduced in 1.5.6bet01.
2011-10-11 13:54:27 -05:00
Glenn Randers-Pehrson
4dd0dc6399
[libpng15] Fix small typo in CHANGES and ANNOUNCE
2011-10-07 18:48:10 -05:00
John Bowler
8be28e3eb6
[libpng15] Optimized png_combine_row() when rows are aligned This gains a
...
small percentage for 16-bit and 32-bit pixels in the typical case where the
output row buffers are appropriately aligned. The optimization was not
previously possible because the png_struct buffer was always misaligned.
2011-10-07 18:36:37 -05:00
John Bowler
ac8375d000
[libpng15] Align png_struct::row_buf - previously it was always unaligned,
...
caused by a bug in the code that attempted to align it; the code needs to
subtract one from the pointer to take account of the filter byte prepended to
each row.
2011-10-06 22:27:16 -05:00
Glenn Randers-Pehrson
65c0339b5c
[libpng15] Speed up png_combine_row() for interlaced images. This reduces the
...
generality of the code, allowing it to be optimized for Adam7 interlace. The
masks passed to png_combine_row() are now generated internally, avoiding
some code duplication and localizing the interlace handling somewhat.
2011-10-06 21:54:17 -05:00
Glenn Randers-Pehrson
d5bc89ef11
[libpng15] Updated CHANGES and ANNOUNCE
2011-10-05 21:11:46 -05:00
Glenn Randers-Pehrson
fa7d7934f6
[libpng15] Replaced a short but frequently-used memcpy() in png_combine_row()
...
with a loop.
2011-10-05 21:09:22 -05:00
Glenn Randers-Pehrson
a92a212925
[libpng15] Bump version to libpng-1.5.6beta05
2011-10-05 16:49:14 -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
e51916c0f9
[libpng15] Bump version to libpng-1.5.6beta04
2011-09-28 07:34:53 -05:00
Glenn Randers-Pehrson
997b193f63
[libpng15] Imported from libpng-1.5.6beta03.tar
2011-09-28 07:24:28 -05:00
Glenn Randers-Pehrson
e29c4b9b93
[libpng15] Revised CMakeLists.txt to work with mingw and removed some material
...
from CMakeLists.txt that is no longer useful in libpng-1.5.
2011-09-27 19:01:58 -05:00
Glenn Randers-Pehrson
8e25a61277
[libpng15]` Revised test-pngtest.sh to report FAIL when pngtest fails.
...
Added "--strict" option to pngtest, to report FAIL when the failure is
only because the resulting valid files are different.
2011-09-26 20:57:33 -05:00
Glenn Randers-Pehrson
f573ff7792
[libpng15] Bump version to libpng-1.5.6beta03
2011-09-26 16:53:11 -05:00
Glenn Randers-Pehrson
d02d6a1c7d
[libpng15] Fixed a typo in the definition of the new PNG_STRING_FROM_CHUNK(s,c)
...
macro.
2011-09-26 16:43:08 -05:00
Glenn Randers-Pehrson
968c231cc8
[libpng15] Added a note in the manual the png_read_update_info() must be
...
called only once with a particular info_ptr.
2011-09-26 16:35:22 -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
Glenn Randers-Pehrson
d71f09df4d
[libpng15] Bump version to libpng-1.5.5rc02
2011-09-15 08:39:02 -05:00
Glenn Randers-Pehrson
0a456b5d16
[libpng15] Fix grammar in ANNOUNCE and CHANGES
2011-09-15 08:32:07 -05:00
Glenn Randers-Pehrson
d3261115a8
[libpng15] Imported from libpng-1.5.5rc01.tar
2011-09-15 08:27:01 -05:00
Glenn Randers-Pehrson
673a1166fe
[libpng15] Updated ANNOUNCE and CHANGES with new CVE number.
2011-09-12 08:40:07 -05:00
Glenn Randers-Pehrson
853afe631c
[libpng15] Bump version to libpng-1.5.5beta09
2011-09-09 22:33:48 -05:00
Glenn Randers-Pehrson
fe85bafedf
[libpng15] Bump version to libpng-1.5.5beta08
2011-09-09 21:54:58 -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
Glenn Randers-Pehrson
f0c19e6455
[libpng15] Fix typo in ANNOUNCE and CHANGES
2011-09-09 08:16:53 -05:00
Glenn Randers-Pehrson
ccff383d44
[libpng15] Relocated new HAVE_SOLARIS_LD definition in configure.ac
2011-09-09 07:55:25 -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
3c2ae60f46
[libpng15] Bump version to libpng-1.5.5beta08
2011-09-09 06:10:21 -05:00
Glenn Randers-Pehrson
b6e4d58e4b
[libpng15] Changed png_chunk_benign_error() to png_warning() in png.c, in
...
png_XYZ_from_xy_checked
2011-09-08 12:25:52 -05:00
Glenn Randers-Pehrson
83bd94f1f4
[devel] Added SunOS support to configure.ac and Makefile.am
2011-09-01 14:06:49 -05:00
Glenn Randers-Pehrson
b293334e7a
[devel] Added "$(ARCH)" option to makefile.darwin
2011-08-29 07:22:13 -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
e61e403d20
[devel] Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set in CMakeLists.txt
...
(Clifford Yap)
2011-08-17 09:02:07 -05:00
Glenn Randers-Pehrson
9d824eb166
[devel] Bump version to libpng-1.5.5beta06
2011-08-17 07:57:02 -05:00
John Bowler
9b979b177b
[devel] Added new types and internal functions for CIE RGB end point handling
...
to pngpriv.h (functions yet to be implemented).
2011-08-16 22:58:33 -05:00
John Bowler
7b9796539d
[devel] Prevent unexpected API exports from non-libpng DLLs on Windows.
...
The "_DLL" is removed from the test of whether a DLL is being built.
2011-08-16 22:57:27 -05:00
Glenn Randers-Pehrson
a45ffbefb9
[devel] Bump version to libpng-1.5.5beta05
2011-07-29 12:41:45 -05:00
Glenn Randers-Pehrson
6c98897a64
[devel] Updated commentary about the png_rgb_to_gray() default coefficients
2011-07-29 12:31:16 -05:00
Glenn Randers-Pehrson
b17c75b222
[devel] Revised CMakeLists.txt (Clifford Yapp)
2011-07-27 20:47:13 -05:00
Glenn Randers-Pehrson
aab2aa196d
[devel] Bump version to libpng-1.5.5beta04
2011-07-27 12:41:23 -05:00
Glenn Randers-Pehrson
03d6b482b5
[devel] Imported from libpng-1.5.5beta03.tar
2011-07-27 12:41:15 -05:00
Glenn Randers-Pehrson
4dcce66295
[devel] Updated CHANGES to reshow addition of new compression API
...
in libpng-1.5.4 and to mention recent CVE reports.
2011-07-26 14:08:35 -05:00
John Bowler
a5bcab7854
[devel] Enabled compilation with g++ compiler. This compiler does not
...
recognize the file extension, so it always compiles with C++ rules. Made minor
changes to pngrutil.c to cast results where C++ expects it but C does not.
2011-07-14 23:02:11 -05:00
Glenn Randers-Pehrson
e9ef47f69e
[devel] Bump version to libpng-1.5.5beta03
2011-07-14 08:22:36 -05:00
John Bowler
5a77e672e1
[devel] Revised Makefile.am and Makefile.in to look in the right directory for
...
pnglibconf.h.prebuilt
2011-07-14 07:42:11 -05:00
Glenn Randers-Pehrson
25e0f55586
[devel] Bump version to libpng-1.5.5beta02
2011-07-13 07:18:07 -05:00
Glenn Randers-Pehrson
ce775cc851
[devel] Imported from libpng-1.5.5beta01.tar
2011-07-13 07:00:25 -05:00
Glenn Randers-Pehrson
a5e5547679
[devel] Minor editing of the manual.
2011-07-12 10:13:32 -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
ab38979670
[devel] Fixed some typos in the manual.
2011-07-09 19:35:22 -05:00
Glenn Randers-Pehrson
628b632419
[devel] Bump version to libpng-1.5.5beta01
2011-07-08 13:22: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
78bb9dafe1
[devel] Imported from libpng-1.5.4rc01.tar
2011-06-30 19:04:47 -05:00
Glenn Randers-Pehrson
4fca25504e
[devel] Define PNG_ALLOCATED to "restrict" only if MSC_VER >= 1400.
2011-06-27 12:01:01 -05:00
John Bowler
fcd7c13ffd
[devel] Fix pngvalid.c with ACCURATE_SCALE
...
and update scripts/pnglibconf.h.prebuilt
2011-06-22 23:13:01 -05:00
Glenn Randers-Pehrson
5bcd0a8c14
[devel] Imported from libpng-1.5.4beta07.tar
2011-06-19 07:10:26 -05:00
John Bowler
8d261262d9
[devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.
2011-06-18 13:37:11 -05:00
Glenn Randers-Pehrson
4e47be74e9
[devel] Bump version to libpng-1.5.4beta07
2011-06-18 00:30:16 -05:00
Glenn Randers-Pehrson
314ef3e72b
[devel] Imported from libpng-1.5.4beta06.tar
2011-06-18 00:27:49 -05:00
Glenn Randers-Pehrson
86cf9b2e89
[devel] Bump version to libpng-1.5.4beta06
2011-06-17 21:13:51 -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
ab63dd0892
[devel] Renamed png_set_chop_16() to png_set_strip_16().
2011-06-17 20:41:19 -05:00
Glenn Randers-Pehrson
3fb7c07ea5
[devel] Bump version to libpng-1.5.4beta05
2011-06-16 09:32:36 -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
5f0b9276ec
[devel] Made PNG_READ_16_TO_8_ACCURATE_SCALE configurable again.
...
If this is not enabled, png_set_strip_16() and png_do_scale_16_to_8()
aren't built.
2011-06-16 09:05:40 -05:00
Glenn Randers-Pehrson
b0791f75ad
[devel] Added PNG_TRANSFORM_CHOP_16 to the high-level read transforms.
2011-06-15 12:07:20 -05:00
Glenn Randers-Pehrson
903c64dce8
[devel] Added "#ifdef PNG_READ_BACKGROUND_SUPPORTED/#endif" in pngrtran.c
2011-06-15 11:50:23 -05:00
Glenn Randers-Pehrson
be720edba7
[devel] Correction to the expand_16 code; removed extra instance of
...
png_set_scale_16_to_8 from pngpriv.h
2011-06-15 08:20:37 -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
cd3b0cc4d9
[devel] Fixed a problem in png_do_expand_palette() exposed by optimization in
...
1.5.3beta06
Also removed a spurious (totally unused and confusing) member from png_info.
The palette expand optimization prevented expansion to an intermediate RGBA
form if tRNS was present but alpha was marked to be stripped; this exposed
a check for tRNS in png_do_expand_palette() which is inconsistent with the
code elsewhere in libpng.
2011-06-14 23:01:07 -05:00
Glenn Randers-Pehrson
06a9684cfa
[devel] Bump version to libpng-1.5.4beta03
2011-06-14 11:06:42 -05:00
Glenn Randers-Pehrson
2232baa41b
[devel] Made png_set_chop_16() API removeable
...
by disabling PNG_CHOP_16_TO_8_SUPPORTED
2011-06-14 06:59:46 -05:00
Glenn Randers-Pehrson
7dffa41643
[devel] Use the old scaling method for background if png_set_chop_16() was
...
called.
2011-06-14 06:30:12 -05:00
John Bowler
550bab03fb
[devel] Removed the ACCURATE and LEGACY options (they are no longer useable)
...
Fixed some compiliation problems with scaling options.
2011-06-14 06:17:26 -05:00
Glenn Randers-Pehrson
413138a5ca
[devel] Added png_set_chop_16() API.
2011-06-13 22:07:37 -05:00
Glenn Randers-Pehrson
97039baa88
[devel] Imported from libpng-1.5.4beta01.tar
2011-06-13 20:09:22 -05:00
Glenn Randers-Pehrson
fd73d04515
[devel] Moved definitions of PNG_HAVE_IHDR, PNG_AFTER_IDAT, and PNG_HAVE_PLTE
...
outside of an unknown-chunk block in png.h because they are also
needed for other uses.
2011-06-13 13:25:21 -05:00
Glenn Randers-Pehrson
141d9e3c20
[devel] Made it possible to undefine PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
...
to get the same (inaccurate) output as libpng-1.5.2 and earlier.
2011-06-13 11:47:00 -05:00
Glenn Randers-Pehrson
0cb906d804
[devel] Imported from libpng-1.5.3beta11.tar
2011-06-11 14:23:33 -05:00
John Bowler
6f55ee2ec5
[devel] Added log option to pngvalid.c and attempted to improve gamma messages.
2011-06-11 07:28:06 -05:00
John Bowler
6a1dc2329a
[devel] Removed string/memory macros that are no longer used
...
and are not necessarily fully supportable, particularly png_strncpy and
png_snprintf.
2011-06-11 06:58:46 -05:00
John Bowler
59a6c379dd
[devel] Revised pngvalid.c to test PNG_ALPHA_MODE_SUPPORTED correctly.
...
This allows pngvalid to build when ALPHA_MODE is not supported, which is
required if it is to build on libpng 1.4.
2011-06-11 06:51:06 -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
0eadc27cd6
[devel] Added projects/owatcom, an IDE project for OpenWatcom to replace
...
scripts/makefile.watcom. This project works with OpenWatcom 1.9. The
IDE autogenerates appropriate makefiles (libpng.mk) for batch processing.
The project is configurable, unlike the Visual Studio project, so long
as the developer has an awk.
2011-06-11 06:31:28 -05:00
Glenn Randers-Pehrson
700c55036c
[devel] Added "_SUPPORTED" to the PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION macro.
2011-06-10 23:26:03 -05:00
John Bowler
b2bee3374c
[devel] Make the 16-to-8 scaling accurate. Dividing by 256 with no rounding is
...
wrong (high by one) 25% of the time. Dividing by 257 with rounding is
wrong in 128 out of 65536 cases. Getting the right answer all the time
without division is easy.
2011-06-10 23:24:58 -05:00
Glenn Randers-Pehrson
cc2770850a
[devel] Revised documentation about png_set_user_limits() to say that it can
...
only be used to reduce the defined limit, and that it also affects
png writing.
2011-06-10 21:17:34 -05:00
Glenn Randers-Pehrson
fb27873021
[devel] Bump version to libpng-1.5.3beta11
2011-06-10 20:46:53 -05:00
Glenn Randers-Pehrson
254a513fd1
[devel] Fixed png_handle_sCAL which is broken in 1.5
2011-06-10 17:45:48 -05:00
Glenn Randers-Pehrson
ab1a573768
[devel] Imported from libpng-1.5.3rc03.tar
2011-06-07 19:56:51 -05:00
Glenn Randers-Pehrson
07e1d34a84
[devel] Fixed 1-byte uninitialized memory reference in png_format_buffer()
...
(Bug report by Frank Busse, related to CVE-2004-0421).
2011-06-07 14:35:30 -05:00
Glenn Randers-Pehrson
36edbb5eee
[devel] Imported from libpng-1.5.3rc01.tar
2011-06-03 07:18:14 -05:00
Glenn Randers-Pehrson
0640cc3d3a
[devel] Bump to version libpng-1.5.3beta11
2011-05-20 09:31:08 -05:00
Glenn Randers-Pehrson
3f68453d4a
[devel] Imported from libpng-1.5.3beta10.tar
2011-05-20 09:30:08 -05:00
Glenn Randers-Pehrson
0a048923ae
[devel] Update CHANGES and ANNOUNCE
2011-05-18 21:44:37 -05:00
Glenn Randers-Pehrson
66e1b3abba
[devel] Bump to version libpng-1.5.3beta10
2011-05-17 07:03:21 -05:00
Glenn Randers-Pehrson
c261077788
[devel] Consistently use "n-bit", not "n bit" in CHANGES and ANNOUNCE.
2011-05-17 06:52:54 -05:00
John Bowler
1921e6db90
[devel] Reversed earlier change of transformation order; move
...
png_expand_16 back where it was before libpng-1.5.3beta07.
The change doesn't work because it requires 16 bit gamma tables when the code
only generates 8 bit ones. This fails silently; the libpng code just doesn't
do any gamma correction. Moving the tests back leaves the old, inaccurate, 8
bit gamma calculations, but these are clearly better than none!
2011-05-16 20:57:54 -05:00
Glenn Randers-Pehrson
bb4f77cd95
[devel] Bump to version libpng-1.5.3beta09
2011-05-16 20:42:11 -05:00
Glenn Randers-Pehrson
5ca62c9f35
[devel] Bump to version libpng-1.5.3rc01
2011-05-16 09:14:42 -05:00
Glenn Randers-Pehrson
1591a4c9dc
[devel] Imported from libpng-1.5.3beta08.tar
2011-05-16 09:10:37 -05:00
Glenn Randers-Pehrson
0e128dfa2f
[devel] Update CHANGES and ANNOUNCE; fix some new typos in comments.
2011-05-15 19:09:24 -05:00
John Bowler
cb0b29631f
[devel] Documented png_set_alpha_mode(), other changes in libpng.3 and
...
libpng-manual.txt.
The cHRM chunk now sets the defaults for png_set_rgb_to_gray() (when negative
parameters are supplied by the caller), while in the absence of cHRM
sRGB/Rec 709 values are still used.
The bKGD chunk no longer overwrites the background value set by
png_set_background(), allowing the latter to be used before the file
header is read. It never performed any useful function to override
the default anyway.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
2011-05-12 21:48:29 -05:00
John Bowler
ed4d32baa4
[devel] Improve "pngvalid --speed" to exclude more of pngvalid from the time.
2011-05-11 23:02:28 -05:00
Glenn Randers-Pehrson
d83530f45d
[devel] Bump to version libpng-1.5.3beta08
2011-05-11 14:39:11 -05:00
Glenn Randers-Pehrson
36fa2a0abd
[devel] Check for up->location !PNG_AFTER_IDAT when writing unknown chunks
...
before IDAT.
2011-05-11 06:52:37 -05:00
Glenn Randers-Pehrson
2d3fc1ca3b
[devel] Moved macro definitions for PNG_HAVE_IHDR, PNG_HAVE_PLTE, and
...
PNG_AFTER_IDAT from pngpriv.h to png.h because they must be visible to
applications that call png_set_unknown_chunks().
2011-05-10 23:48:00 -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
d768d103cf
[devel] Minor revision of commentary about png_set_alpha_mode().
2011-05-08 23:26:19 -05:00