Glenn Randers-Pehrson
d84fd77bf8
[libpng16] Quieted a warning from clang-3.8 in pngtrans.c.
2016-09-30 14:22:57 -05:00
Glenn Randers-Pehrson
b50d5cea2b
[libpng16] Imported from libpng-1.6.24.tar
2016-08-03 21:32:26 -05:00
Glenn Randers-Pehrson
dd70604cec
[libpng16] Fixed more indentation
2016-07-15 11:20:46 -05:00
Glenn Randers-Pehrson
4d8de33979
[libpng16] Update copyright uears in source files.
2015-12-13 22:41:17 -06:00
Glenn Randers-Pehrson
01a0e8062d
[libpng16] Reverted addition of png_set_filler_16 and png_set_add_alpha_16()
...
functions. They unnecessarily duplicate png_set_filler() and png_set_add_alpha()
which now work properly with 16-bit images.
2015-09-24 22:39:53 -05:00
Glenn Randers-Pehrson
efe4e5d10d
[libpng16] Reverted the fix of byte order in png_do_read_filler() with 16-bit
...
input that was made in version 1.6.17beta01, to preserve legacy
behavior even though it was incorrect. Instead, added new API
png_set_filter_16() and png_set_add_alpha_16() that set a flag to
make png_do_read_filter() interpret the filler bytes properly.
2015-09-23 22:08:04 -05:00
Glenn Randers-Pehrson
8b83ff3704
[libpng16] Change "n bit" to "n-bit" in comments.
2015-08-13 20:57:18 -05:00
Glenn Randers-Pehrson
e6172809bd
[libpng16] Imported from libpng-1.6.18.tar
2015-07-22 22:40:52 -05:00
Glenn Randers-Pehrson
c861dc8923
[libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler
...
(Bug report by Viktor Szaka'ts).
2015-04-01 12:06:01 -05:00
Glenn Randers-Pehrson
c98f7fb4e3
[libpng16] Imported from libpng-1.6.17.tar
2015-03-26 08:11:12 -05:00
Glenn Randers-Pehrson
c5370ede95
[libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passes
...
the Coverity scan without them.
2015-03-21 11:54:32 -05:00
Glenn Randers-Pehrson
4029db9aac
[libpng16] Imported from libpng-1.6.17beta06.tar
2015-02-27 19:01:02 -06:00
Glenn Randers-Pehrson
7011a8cec3
[libpng16] Added "& 0xff" to things being typecast to "png_byte".
2015-02-27 18:53:44 -06:00
Glenn Randers-Pehrson
e8ef689cb9
[libpng16] Imported from libpng-1.6.15.tar
2014-11-20 10:22:57 -06:00
Glenn Randers-Pehrson
cda68df8c1
[libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */"
2014-11-06 22:11:39 -06:00
Glenn Randers-Pehrson
5d713fe123
[libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" to
...
"if (x !== 0)"
2014-10-31 20:58:40 -05:00
Glenn Randers-Pehrson
9127138a30
[libpng16] Fix typos in comments in pngset.c and pngtrans.c
2014-10-03 20:23:31 -05:00
Glenn Randers-Pehrson
212fd5745d
[libpng16] Bump version to 1.6.13beta01
2014-06-11 21:13:33 -05:00
Glenn Randers-Pehrson
e429c66cea
[libpng16] Imported from libpng-1.6.12.tar
2014-06-11 20:41:51 -05:00
Glenn Randers-Pehrson
da7b692ce0
[libpng16] Bump version to 1.6.12beta01
2014-06-06 11:57:30 -05:00
Glenn Randers-Pehrson
c4e0f3de64
[libpng16] Imported from libpng-1.6.11.tar
2014-06-05 10:00:45 -05:00
Glenn Randers-Pehrson
d1c5f48c05
[libpng16] Minor update to documentation and CHANGES/ANNOUNCE files.
2014-05-09 21:06:27 -05:00
Glenn Randers-Pehrson
c4b3718856
[libpng16] Imported from libpng-1.6.11beta02.tar
2014-04-06 09:07:56 -05:00
Glenn Randers-Pehrson
05670156f3
[libpng16] Use "if (value != 0)" instead of "if (value)" consistently.
2014-03-08 12:39:52 -06:00
Glenn Randers-Pehrson
3e753eb8b2
[libpng16] Imported from libpng-1.6.9.tar
2014-02-05 22:33:56 -06:00
Glenn Randers-Pehrson
95a197397f
[libpng16] Updated copyright year in recently-changed files.
2013-12-31 21:10:13 -06:00
Glenn Randers-Pehrson
88ecac68be
[libpng16] Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.c
...
with libpng-1.7.0
2013-12-28 12:52:59 -06:00
Glenn Randers-Pehrson
399430dac2
[libpng16] Update "last changed" comments.
2013-04-25 09:52:00 -05:00
Glenn Randers-Pehrson
3f677d1c65
[libpng16] Bump version to 1.6.3beta01
2013-04-25 09:19:04 -05:00
Glenn Randers-Pehrson
809355b4aa
[libpng16] Imported from libpng-1.6.2.tar
2013-04-25 07:29:41 -05:00
John Bowler
a8715cabd1
[libpng16] Added "{ }" omitted from previous patch to pngtrans.c
2013-04-13 12:25:16 -05:00
John Bowler
b44cd59ad9
[libpng16] Corrected the test on user transform changes on read. It was in the
...
png_set of the transform function, but that doesn't matter unless the
transform function changes the rowbuf size, and that is only valid if
transform_info is called.
2013-04-12 22:15:54 -05:00
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
c53778ff53
[libpng16] Imported from libpng-1.6.0.tar
2013-02-13 22:53:57 -06:00
Glenn Randers-Pehrson
9477ecdfa6
[libpng16] Updated copyright year to 2013 in newly-changed files
2013-01-01 07:45:42 -06:00
John Bowler
ba2dd33d9c
[libpng16] Some files were omitted from a previous checkin. Here they are.
2012-08-10 10:58:01 -05:00
John Bowler
dff6f4c4f0
[libpng16Cleanup of png_set_filler(). This function does very different things
...
on read and write. In libpng 1.6 the two cases can be distinguished and
considerable code cleanup, and extra error checking, is possible. This
makes calls on the write side that have no effect be ignored with a
png_app_error(), which can be disabled in the app using
png_set_benign_errors(), and removes the spurious use of usr_channels
on the read side.
2012-08-09 21:17:56 -05:00
Glenn Randers-Pehrson
905cc94e3d
[libpng16] Don't check palette indexes if num_palette is 0 (as it can be in
...
MNG files).
2012-06-07 10:18:25 -05:00
Glenn Randers-Pehrson
14ca47b453
[libpng16] Improved performance of new do_check_palette_indexes() function
...
(only update the value when it actually increases, move test for whether
the check is wanted out of the function.
2012-06-06 13:30:30 -05: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
29a6ba01a7
[libpng16] Fixed build warnings (MSVC, GCC, GCC v3). Cygwin GCC with default
...
options declares 'index' as a global, causing a warning if it is used as a
local variable. GCC 64-bit warns about assigning a (size_t) (unsigned 64-bit)
to an (int) (signed 32-bit). MSVC, however, warns about using the
unary '-' operator on an unsigned value (even though it is well defined
by ANSI-C to be ~x+1). The padding calculation was changed to use a
different method. Removed the tests on png_ptr->pass.
2012-03-03 20:49:03 -06:00
Glenn Randers-Pehrson
eeb1bb678d
[libng16] Added palette-index checking while writing.
...
Relocated palette-index checking function from pngrutil.c to pngtrans.c
2012-03-02 22:10:15 -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
Glenn Randers-Pehrson
1531bd61a0
[libpng16] Updated copyright year to 2012
2012-01-01 14:45:04 -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
d404b6d488
[devel] Imported from libpng-1.5.4.tar
2011-07-07 06:26:30 -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
e1018a5bbb
[devel] Imported from libpng-1.5.3beta05.tar
2011-05-05 21:06:51 -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