pngtrans.c


Log

Author Commit Date CI Message
Cosmin Truta 85acd919 2018-12-01T09:36:00 [master] Imported from libpng-1.6.36.tar
Cosmin Truta 1ef88828 2018-08-18T21:01:02 Replace the remaining uses of PNG_CONST with const In v1.6.0, compiler support for const became a requirement. It should be used consistently. To maintain backwards compatibility, PNG_CONST is still maintained in deprecated form.
Cosmin Truta a8738932 2018-07-28T18:47:21 Remove the "last changed" version information from source comments This information is maintained by the version control system.
Cosmin Truta 8da39742 2018-07-15T23:58:00 [master] Imported from libpng-1.6.35.tar
Cosmin Truta 46aedd89 2018-07-15T23:58:00 Release libpng version 1.6.35
Cosmin Truta a74aa9a0 2018-06-17T22:37:44 [libpng16] Replace the remaining uses of png_size_t with size_t In v1.6.0, size_t became a required type. It should be used consistently. To maintain backwards compatibility, png_size_t is still maintained in deprecated form.
Glenn Randers-Pehrson c1effe1b 2017-09-28T13:57:00 [master] Imported from libpng-1.6.33.tar
Glenn Randers-Pehrson 2ee8cb05 2017-09-28T13:57:00 [libpng16] Imported from libpng-1.6.33.tar
Glenn Randers-Pehrson 52a566af 2017-09-04T18:23:06 [libpng16] Fix typecast in pngtrans.c
Glenn Randers-Pehrson a1b5be04 2017-08-29T12:32:29 [libpng16] Update "last changed" date in pngtrans.c
Glenn Randers-Pehrson d2b9af04 2017-08-28T11:58:11 [libpng16] Fixed off-by-one error in png_do_check_palette_indexes() (Bug report by Mick P., Source Forge Issue #269).
Glenn Randers-Pehrson fbff8986 2017-07-27T05:25:33 [master] Imported from libpng-1.6.31.tar
Glenn Randers-Pehrson 9f7134c3 2017-06-29T17:49:59 [libpng16] Update some "last changed" dates
Glenn Randers-Pehrson 8c552ddf 2017-06-28T13:46:04 [master] Imported from libpng-1.6.30.tar
Glenn Randers-Pehrson e744ee13 2017-03-30T12:24:55 [libpng16] Update CHANGES, ANNOUNCE, and "last changed" dates.
Viktor Szakats 8c50acb9 2017-03-29T23:54:40 silence clang -Wcomma warnings
Glenn Randers-Pehrson 35cbe764 2016-10-19T19:07:25 [master] Imported from libpng-1.6.26.tar
Glenn Randers-Pehrson 0c440812 2016-10-19T19:07:25 [libpng16] Imported from libpng-1.6.26.tar
Glenn Randers-Pehrson 3875d9af 2016-10-02T17:08:46 [libpng16] Quieted 45 (out of 86 remaining) -Wconversion compiler warnings
Glenn Randers-Pehrson fbe3e002 2016-09-30T21:51:27 Merge branch 'libpng16' of git://github.com/jbowler/libpng into libpng16
John Bowler 319c9852 2016-09-30T18:37:22 Unsigned overflow Remove all currently detected cases of unsigned overflow. Detection is runtime, so test case dependent. The changes to pngvalid.c eliminate spurious and probably invalid tests with one while loop exception. Apart from that and the change to the dependence on the intended unsigned overflow in pngtrans.c the changes are limited to altering the meme for an unsigned 'x' from: while (x-- > 0) to for (; x > 0; --x) This works because, in all cases, the control variable is not used in the loop. The 'while' meme was, at one time, warn'ed by GCC so it is probably a good change, for some weird religious value of good. Signed-off-by: John Bowler <jbowler@acm.org>
Glenn Randers-Pehrson d84fd77b 2016-09-30T14:22:57 [libpng16] Quieted a warning from clang-3.8 in pngtrans.c.
Glenn Randers-Pehrson 0c29ab2b 2016-08-03T21:16:26 [master] Imported from libpng-1.6.24.tar
Glenn Randers-Pehrson b50d5cea 2016-08-03T21:16:26 [libpng16] Imported from libpng-1.6.24.tar
Glenn Randers-Pehrson dd70604c 2016-07-15T11:20:46 [libpng16] Fixed more indentation
Glenn Randers-Pehrson 5756fcab 2016-01-15T09:52:13 [master] Imported from libpng-1.6.21.tar
Glenn Randers-Pehrson 4d8de339 2015-12-13T22:41:17 [libpng16] Update copyright uears in source files.
Glenn Randers-Pehrson b9c62013 2015-11-12T07:00:12 [master] Imported from libpng-1.6.19.tar
Glenn Randers-Pehrson 01a0e806 2015-09-24T22:39:53 [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.
Glenn Randers-Pehrson efe4e5d1 2015-09-23T22:08:04 [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.
Glenn Randers-Pehrson 8b83ff37 2015-08-13T20:57:18 [libpng16] Change "n bit" to "n-bit" in comments.
Glenn Randers-Pehrson 287fb892 2015-07-22T22:36:43 [master] Imported from libpng-1.6.18.tar
Glenn Randers-Pehrson e6172809 2015-07-22T22:36:43 [libpng16] Imported from libpng-1.6.18.tar
Glenn Randers-Pehrson c861dc89 2015-04-01T12:06:01 [libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compiler (Bug report by Viktor Szaka'ts).
Glenn Randers-Pehrson 2b667e49 2015-03-26T08:06:25 [master] Imported from libpng-1.6.17.tar
Glenn Randers-Pehrson c98f7fb4 2015-03-26T08:06:25 [libpng16] Imported from libpng-1.6.17.tar
Glenn Randers-Pehrson c5370ede 2015-03-21T11:54:32 [libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passes the Coverity scan without them.
Glenn Randers-Pehrson 4029db9a 2015-02-27T18:50:07 [libpng16] Imported from libpng-1.6.17beta06.tar
Glenn Randers-Pehrson 7011a8ce 2015-02-27T18:53:44 [libpng16] Added "& 0xff" to things being typecast to "png_byte".
Glenn Randers-Pehrson da7a1e79 2014-11-20T09:33:25 [master] Imported from libpng-1.6.15.tar
Glenn Randers-Pehrson e8ef689c 2014-11-20T09:33:25 [libpng16] Imported from libpng-1.6.15.tar
Glenn Randers-Pehrson cda68df8 2014-11-06T22:11:39 [libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* FEATURE */"
Glenn Randers-Pehrson 5d713fe1 2014-10-31T20:48:55 [libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" to "if (x !== 0)"
Glenn Randers-Pehrson eed640db 2014-10-22T19:28:06 [master] Imported from libpng-1.6.14.tar
Glenn Randers-Pehrson 9127138a 2014-10-03T20:23:31 [libpng16] Fix typos in comments in pngset.c and pngtrans.c
Glenn Randers-Pehrson d55c4f32 2014-08-21T05:53:38 [master] Imported from libpng-1.6.13.tar
Glenn Randers-Pehrson 212fd574 2014-06-11T21:10:16 [libpng16] Bump version to 1.6.13beta01
Glenn Randers-Pehrson 238e7646 2014-06-11T20:35:18 [master] Imported from libpng-1.6.12.tar
Glenn Randers-Pehrson e429c66c 2014-06-11T20:35:18 [libpng16] Imported from libpng-1.6.12.tar
Glenn Randers-Pehrson da7b692c 2014-06-06T11:42:50 [libpng16] Bump version to 1.6.12beta01
Glenn Randers-Pehrson d21eae44 2014-06-05T09:53:19 [master] Imported from libpng-1.6.11.tar
Glenn Randers-Pehrson c4e0f3de 2014-06-05T09:53:19 [libpng16] Imported from libpng-1.6.11.tar
Glenn Randers-Pehrson d1c5f48c 2014-05-09T21:06:27 [libpng16] Minor update to documentation and CHANGES/ANNOUNCE files.
Glenn Randers-Pehrson c4b37188 2014-04-06T08:59:57 [libpng16] Imported from libpng-1.6.11beta02.tar
Glenn Randers-Pehrson 05670156 2014-03-08T12:39:52 [libpng16] Use "if (value != 0)" instead of "if (value)" consistently.
Glenn Randers-Pehrson a710317d 2014-02-05T22:28:57 [master] Imported from libpng-1.6.9.tar
Glenn Randers-Pehrson 3e753eb8 2014-02-05T22:28:57 [libpng16] Imported from libpng-1.6.9.tar
Glenn Randers-Pehrson 95a19739 2013-12-31T21:10:13 [libpng16] Updated copyright year in recently-changed files.
Glenn Randers-Pehrson 88ecac68 2013-12-28T12:52:59 [libpng16] Merged pngrio.c, pngtrans.c, pngwio.c, and pngerror.c with libpng-1.7.0
Glenn Randers-Pehrson a4f7ea0d 2013-04-25T07:24:46 [master] Imported from libpng-1.6.2.tar
Glenn Randers-Pehrson 399430da 2013-04-25T09:52:00 [libpng16] Update "last changed" comments.
Glenn Randers-Pehrson 3f677d1c 2013-04-25T09:12:51 [libpng16] Bump version to 1.6.3beta01
Glenn Randers-Pehrson 809355b4 2013-04-25T07:24:46 [libpng16] Imported from libpng-1.6.2.tar
John Bowler a8715cab 2013-04-13T12:25:16 [libpng16] Added "{ }" omitted from previous patch to pngtrans.c
John Bowler b44cd59a 2013-04-12T22:12:19 [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.
Glenn Randers-Pehrson 871b1d0f 2013-03-02T14:58:22 [libpng16] Bump version to 1.6.1beta05
Glenn Randers-Pehrson f3af706c 2012-02-02T23:11:45 [libpng16] Imported from libpng-1.6.0beta05.tar
Glenn Randers-Pehrson 0da9cf38 2013-02-13T22:49:19 [master] Imported from libpng-1.6.0.tar
Glenn Randers-Pehrson c53778ff 2013-02-13T22:49:09 [libpng16] Imported from libpng-1.6.0.tar
Glenn Randers-Pehrson 9477ecdf 2013-01-01T07:45:42 [libpng16] Updated copyright year to 2013 in newly-changed files
John Bowler ba2dd33d 2012-08-10T10:58:01 [libpng16] Some files were omitted from a previous checkin. Here they are.
John Bowler dff6f4c4 2012-08-09T21:17:56 [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.
Glenn Randers-Pehrson 981560ae 2012-06-14T06:28:09 [master] Imported from libpng-1.5.11.tar
Glenn Randers-Pehrson 905cc94e 2012-06-07T10:18:25 [libpng16] Don't check palette indexes if num_palette is 0 (as it can be in MNG files).
Glenn Randers-Pehrson 14ca47b4 2012-06-06T13:30:30 [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.
Glenn Randers-Pehrson d5a80e09 2012-03-29T00:07:04 [master] Imported from libpng-1.5.10.tar
Glenn Randers-Pehrson 5a13159b 2012-03-19T06:19:40 [master] Imported from libpng-1.5.10rc01.tar
John Bowler 9ff37ea9 2012-03-10T20:03:06 [libpng16] Fix an off-by-one error in the palette index checking function.
Glenn Randers-Pehrson 187694b9 2012-03-04T22:25:10 [master] Imported from libpng-1.5.10beta03.tar
John Bowler 29a6ba01 2012-03-03T20:49:03 [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.
Glenn Randers-Pehrson eeb1bb67 2012-03-02T22:10:15 [libng16] Added palette-index checking while writing. Relocated palette-index checking function from pngrutil.c to pngtrans.c
John Bowler 8fb6c6a9 2012-01-25T07:47:44 [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.
Glenn Randers-Pehrson 1531bd61 2012-01-01T14:45:04 [libpng16] Updated copyright year to 2012
John Bowler 5d56786e 2011-12-24T09:12:00 [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.
Glenn Randers-Pehrson 8fdd2fce 2011-07-07T12:46:23 [master] Changed some incorrect "last changed" dates.
Glenn Randers-Pehrson d404b6d4 2011-07-07T06:24:57 [devel] Imported from libpng-1.5.4.tar
John Bowler 550bab03 2011-06-14T06:17:26 [devel] Removed the ACCURATE and LEGACY options (they are no longer useable) Fixed some compiliation problems with scaling options.
Glenn Randers-Pehrson e1018a5b 2011-05-05T21:03:07 [devel] Imported from libpng-1.5.3beta05.tar
Glenn Randers-Pehrson f512ca76 2011-05-02T12:21:42 [master] Bump to version 1.4.8beta01
Glenn Randers-Pehrson cb1aee25 2011-04-16T19:27:34 [devel] Fixed bug with stripping the filler or alpha channel when writing, that was introduced in libpng-1.5.2beta01.
Glenn Randers-Pehrson 16ee3e98 2011-04-10T06:41:30 [master] Imported from libpng-1.4.7.tar
Glenn Randers-Pehrson 784d80b5 2011-04-08T20:51:29 [master] Imported from libpng-1.4.7rc01.tar
Glenn Randers-Pehrson 8a35e258 2011-04-08T11:58:34 [master] Imported from libpng-1.4.6.tar
Glenn Randers-Pehrson 97eb0731 2011-04-06T07:05:06 [master] Imported from libpng-1.4.6rc02.tar
Glenn Randers-Pehrson 736a2308 2011-04-03T11:32:46 [master] Bump to version 1.4.6rc02
Glenn Randers-Pehrson 11130874 2011-03-31T13:42:23 [master] Imported from libpng-1.4.6rc01.tar
Glenn Randers-Pehrson dcc3505c 2011-03-31T11:23:49 [devel] Imported from libpng-1.5.2.tar
Glenn Randers-Pehrson ef5a5711 2011-03-22T06:29:27 [master] Imported from libpng-1.4.6beta07.tar
Glenn Randers-Pehrson 8709982e 2011-03-18T22:24:28 [master] Bump to version 1.4.6beta06
John Bowler 9616ad98 2011-02-16T06:13:46 [devel] Revert png_get_current_row_number() to previous (1.5.2beta01) behavior.