summaryrefslogtreecommitdiff
path: root/pngwutil.c
AgeCommit message (Collapse)Author
2018-08-18Remove top-level const from function-scope variablesCosmin Truta
As per the const correctness rules, top-level const-ness of data in automatic scopes does not propagate outside of these scopes (unlike const-ness at lower levels, such as pointers to const data). Previously, const was used liberally, but inconsistently across the libpng codebase. Using const wherever applicable is not incorrect. However, _consistent_ use of const is difficult to maintain in such conditions. In conclusion, we shall continue to use const only where doing so is strictly necessary: 1. If a function guarantees that it will not modify an argument passed by pointer, the corresponding function parameter should be a pointer-to-const (const T *). 2. Static data should not be modified, therefore it should be const. Reference: Google C++ Style Guide https://google.github.io/styleguide/cppguide.html#Use_of_const
2018-08-18Replace the remaining uses of PNG_CONST with constCosmin Truta
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.
2018-07-28Remove the "last changed" version information from source commentsCosmin Truta
This information is maintained by the version control system.
2018-07-15Release libpng version 1.6.35Cosmin Truta
2018-06-17[libpng16] Replace the remaining uses of png_size_t with size_tCosmin Truta
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.
2017-08-29[libpng16] Fix "last changed" datesGlenn Randers-Pehrson
2017-08-25[libpng16] Bump version to 1.6.33beta01Glenn Randers-Pehrson
2017-08-24[libpng16] Imported from libpng-1.6.32.tarGlenn Randers-Pehrson
2017-07-31[libpng16] Update "Last changed" dates and some copyright yearsGlenn Randers-Pehrson
2017-07-31[libpng16] Added calls to png_handle_eXIf(() in pngread.c and png_write_eXIf()Glenn Randers-Pehrson
in pngwrite.c, and made various other fixes to png_write_eXIf(). Eliminated png_ptr->num_exif member from pngstruct.h and added num_exif to arguments for png_get_eXIf() and png_set_eXIf().
2017-07-13[libpng16] Implement eXIf chunk supportGlenn Randers-Pehrson
2017-06-06[libpng16] Imported from libpng-1.6.30beta04.tarGlenn Randers-Pehrson
2017-06-06[libpng16] Avoid writing an empty IDAT when the last IDAT exactly fills theGlenn Randers-Pehrson
compression buffer (bug report by Brian Baird). This bug was introduced in libpng-1.6.0.
2017-01-20[libpng16] Avoid conditional directives that break statements in pngrutil.c ↵Glenn Randers-Pehrson
(Romero Malaquias)
2017-01-20Avoiding conditional directives that break statementsRomero B. de S. Malaquias
2016-10-19[libpng16] Imported from libpng-1.6.26.tarGlenn Randers-Pehrson
2016-10-02[libpng16] Quieted (bogus?) clang warnings about "absolute value has no effect".Glenn Randers-Pehrson
2016-10-02[libpng16] Quieted all remaining -Wconversion compiler warningsGlenn Randers-Pehrson
2016-10-01[libpng16] Bump version to 1.6.26beta03Glenn Randers-Pehrson
2016-09-30[libpng16] Quieted 116 (out of 288) -Wconversion compiler warnings by changingGlenn Randers-Pehrson
flag definitions in pngpriv.h from 0xnnnn to 0xnnnnU and trivial changes in png.c, pngread.c, and pngwutil.c.
2016-09-26[libpng16] Imported from libpng-1.6.26beta01.tarGlenn Randers-Pehrson
2016-08-03[libpng16] Imported from libpng-1.6.24.tarGlenn Randers-Pehrson
2016-07-15[libpng16] Fixed more indentationGlenn Randers-Pehrson
2016-07-13[libpng16] Fixed a harmless typo in pngwutil.cGlenn Randers-Pehrson
2016-07-08[libpng16] Avoid filter-selection heuristic sum calculations in cases whereGlenn Randers-Pehrson
only one filter is a candidate for selection. This trades off code size (added png_setup_*_row_only() functions) for speed.
2016-06-29[libpng16] Optimized absolute value calculation in filter selection, similar toGlenn Randers-Pehrson
code in the PAETH decoder in pngrutil.c. Build with PNG_USE_ABS to use this.
2016-06-23[libpng16] Imported from libpng-1.6.24beta02.tarGlenn Randers-Pehrson
2016-06-23[libpng16] Imported from libpng-1.6.24beta02.tarGlenn Randers-Pehrson
2016-06-22Fix MSVC Level 2 warningJohn Bowler
MSVC doesn't like '-(unsigned)', so replace it by 0U-(unsigned) (in 1.6). Signed-off-by: John Bowler <jbowler@acm.org>
2016-06-19[libpng16] Backed out previous optimization; the compiler should handle that.Glenn Randers-Pehrson
2016-06-19[libpng16] Avoid filter-selection heuristic sum calculations in cases whereGlenn Randers-Pehrson
only one filter is a candidate for selection. This trades off code size (added png_setup_*_row_only() functions) for speed.
2016-06-19[libpng15] Corrected filter heuristic overflow handling.John Bowler
2016-05-26[libpng16] Imported from libpng-1.6.22.tarGlenn Randers-Pehrson
2016-03-09[libpng16] Imported from libpng-1.6.22beta03.tarGlenn Randers-Pehrson
2016-02-13[libpng16] Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() thatGlenn Randers-Pehrson
were accidentally removed from libpng-1.6.17.
2016-01-16[libpng16] Bump version to 1.6.22beta01Glenn Randers-Pehrson
2016-01-15[libpng16] Imported from libpng-1.6.21.tarGlenn Randers-Pehrson
2016-01-02[libpng16] Happy 2016! Updated copyright yearGlenn Randers-Pehrson
2015-12-13[libpng16] Moved png_check_keyword() from pngwutil.c to pngset.cGlenn Randers-Pehrson
2015-11-24[libpng16] Imported from libpng-1.6.20beta03.tarGlenn Randers-Pehrson
2015-11-12[libpng16] Imported from libpng-1.6.19.tarGlenn Randers-Pehrson
2015-10-30[libpng16] Prevent reading over-length PLTE chunk (Cosmin Truta).Glenn Randers-Pehrson
2015-10-29[libpng16] Reject attempt to write over-length PLTE chunkGlenn Randers-Pehrson
2015-08-17[libng16] Reverted recent mistaken change of 0xnnnn to 0xnnnnULGlenn Randers-Pehrson
2015-08-17[libpng16] Appended more "UL" to hex constants.Glenn Randers-Pehrson
2015-08-16[libpng16] Changed 0xnnnn constants to 0xnnnnUL.Glenn Randers-Pehrson
2015-08-13[libpng16] Change "n bit" to "n-bit" in comments.Glenn Randers-Pehrson
2015-07-29[libpng16]Suppressed a warning from the Borland C++ 5.5.1/5.82 compilerGlenn Randers-Pehrson
2015-07-22[libpng16] Imported from libpng-1.6.18.tarGlenn Randers-Pehrson
2015-06-03[libpng16] Fix g++ build breaksJohn Bowler