summaryrefslogtreecommitdiff
path: root/pngstruct.h
AgeCommit message (Collapse)Author
2019-02-03Fix a memory leak in the riffled palette optimization on ARM; refactorCosmin Truta
Move deallocation of riffled_palette from png_write_destroy to png_read_destroy. The reader (not the writer) is the owner of riffled_palette. Move allocation and initialization of riffled_palette from png_do_read_transformations to png_init_palette_transformations. Allow riffled_palette inside png_struct only if the ARM Neon optimizations are enabled. Rename png_riffle_palette_rgba to png_riffle_palette_rgba8, etc., to better indicate the strict applicability of these routines. Fix an unused parameter warning in the build configurations where riffled palette optimization is not enabled. Fix indentation.
2018-09-04Optimize png_do_expand_palette for ARMRichard Townsend
ARM-specific optimization processes 8 or 4 pixels at once. Improves performance by around 10-22% on a recent ARM Chromebook.
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.
2018-02-09More misc. typosluz.paz
found via `codespell-q 3` please review
2017-11-03Misc. typosUnknown
Some are user facing. Some are in actual code. Most are in source comments. Also, please double check the changes in contrib/tools/pngfix.c
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-17[libpng16] Imported from libpng-1.6.31beta06.tarGlenn Randers-Pehrson
2017-07-13[libpng16] Implement eXIf chunk supportGlenn Randers-Pehrson
2017-01-12[libpng16] Update credits to include Google Inc, for the Intel/SSE patch.Glenn Randers-Pehrson
2017-01-05[libpng16] Bump version to 1.6.29beta01Glenn Randers-Pehrson
2017-01-05[libpng16] Imported from libpng-1.6.28.tarGlenn Randers-Pehrson
2017-01-02[libpng16] Changed png_ptr->options from a png_byte to png_uint_32, toGlenn Randers-Pehrson
accomodate up to 16 options.
2016-09-19[libpng16] Changed PNG_ZLIB_VERNUM to ZLIB_VERNUM in pngpriv.h, pngstruct.h,Glenn Randers-Pehrson
and pngrutil.c.
2016-08-03[libpng16] Imported from libpng-1.6.24.tarGlenn Randers-Pehrson
2016-06-23[libpng16] Imported from libpng-1.6.24beta02.tarGlenn Randers-Pehrson
2015-12-13[libpng16] Update copyright uears in source files.Glenn Randers-Pehrson
2015-11-27Fix inconsistent handling of invalid zlib dataJohn Bowler
In libpng 1.6 zlib initialization was changed to use the window size in the zlib stream, not a fixed value. This causes some invalid images, ones where CINFO is too large, to display 'correctly' if the rest of the data is valid. This provides a work-round for zlib versions where the error arises (ones that support the API change to use the window size in the stream). Signed-off-by: John Bowler <jbowler@acm.org>
2015-07-22[libpng16] Imported from libpng-1.6.18.tarGlenn Randers-Pehrson
2015-06-10[libpng16] Removed some unused WEIGHTED_FILTER macros from png.h and pngstruct.hGlenn Randers-Pehrson
2015-05-31[libpng16] Imported from libpng-1.6.18beta05.tarGlenn Randers-Pehrson
2015-05-30[libpng16] Backported filter selection code from libpng-1.7.0beta51, to combineGlenn Randers-Pehrson
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
2015-02-17[libpng16] Bump version to 1.6.17beta04Glenn Randers-Pehrson
2015-01-28[libpng16] Imported from libpng-1.6.17beta01.tarGlenn Randers-Pehrson
2014-11-07[libpng16] More "#endif" housecleaning, in *.hGlenn Randers-Pehrson
2013-03-27[libpng16] Imported from libpng-1.6.1.tarGlenn Randers-Pehrson
2013-03-04[libpng16] Corrected Android builds and corrected libpng.vers with symbolJohn Bowler
prefixing This adds an API to set optimization options externally, providing an alternative and general solution for the non-portable run-time tests used by the ARM Neon code. It also makes those tests compile and link on Android. The order of settings vs options in pnglibconf.h is reversed to allow settings to depend on options and options can now set (or override) the defaults for settings.
2013-03-02[libpng16] Bump version to 1.6.1beta05Glenn Randers-Pehrson
2013-03-01[libpng16] Imported from libpng-1.6.0beta05.tarGlenn Randers-Pehrson
2013-02-18[libpng16] Imported from libpng-1.6.1beta02.tarGlenn Randers-Pehrson
2013-02-17[libpng16] Use parentheses consistently in "#if defined()" tests.Glenn Randers-Pehrson
2013-02-16[libpng16] Imported from libpng-1.6.1beta01.tarGlenn Randers-Pehrson
2013-02-13[libpng16] Imported from libpng-1.6.0.tarGlenn Randers-Pehrson
2013-01-19[libpng16] Use consistent handling of overflows in text, sPLT and unknownJohn Bowler
png_set_* APIs
2013-01-19[libpng16] Imported from libpng-1.6.0beta39.tarGlenn Randers-Pehrson
2013-01-01[libpng16] Updated copyright year to 2013 in newly-changed filesGlenn Randers-Pehrson
2012-11-01[libpng16] Removed non-working ICC profile support code. There was too muchJohn Bowler
code for too little gain; implementing full ICC color correction is maybe desireable but is left up to applications.
2012-10-25[libpng16] Changed ICC profile support to allow use of an external colorJohn Bowler
management system (CMS). In practice it is not possible to obtain cHRM information reliably using just the end-point tags because they do not exist in the vast majority of profiles. Instead it is necessary to run the endpoints through the ICC colorimetric intent transform (as described in the v4 spec). Since this is likely to be too much code inside libpng for too little gain (it implies a fairly complete CMS implementation) the code has been changed to allow an external CMS to be used. This code is temporarily disabled until a suitable set of test cases using one or more external CMS implementations have been implemented.
2012-09-04[libpng16] Fix confusion between "adopted" and "adapted" in new comments.Glenn Randers-Pehrson
Glenn thought the "adopted" were typos and changed them all to "adapted". This reverts the spelling and adds parenthetical comments when each word first appears in png.h.
2012-09-04[libpng16] Imported from libpng-1.6.0beta29.tarGlenn Randers-Pehrson
2012-09-04[libpng16] Improved ICC profile handling including cHRM chunk generation andJohn Bowler
fixed Cygwin+MSVC build errors. The ICC profile handling now includes more checking. Several errors that caused rejection of the profile are now handled with a warning in such a way that the invalid profiles will be read by default in release (but not pre-RC) builds but will not be written by default. The easy part of handling a cHRM chunk is written, where the ICC profile contains the required data. The more difficult part plus guessing a gAMA value requires code to pass selected RGB values through the profile.
2012-08-17[libpng16] Bump version to 1.6.0beta28Glenn Randers-Pehrson
2012-08-15[libpng16] Unknown handling fixes and clean up. This adds more correct optionJohn Bowler
control of the unknown handling, corrects the pre-existing bug where the per-chunk 'keep' setting is ignored and makes it possible to skip IDAT chunks in the sequential reader (broken in earlier 1.6 versions). There is a new test program, test-unknown.c, which is a work in progress (not currently part of the test suite). Comments in the header files now explain how the unknown handling works.
2012-08-09[libpng16Cleanup of png_set_filler(). This function does very different thingsJohn Bowler
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-06-12[libpng16] Document deprecation of png_convert_to_rfc1123() and itsGlenn Randers-Pehrson
replacement with png_convert_to_rfc1123_buffer().
2012-03-21[libpng16] Changed chunk handler warnings into benign errors, incrementallyJohn Bowler
load iCCP