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