summaryrefslogtreecommitdiff
path: root/pngwtran.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-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.
2016-10-19[libpng16] Imported from libpng-1.6.26.tarGlenn Randers-Pehrson
2016-10-02[libpng16] Quieted all remaining -Wconversion compiler warningsGlenn Randers-Pehrson
2016-08-03[libpng16] Imported from libpng-1.6.24.tarGlenn Randers-Pehrson
2016-07-15[libpng16] Fixed more indentationGlenn Randers-Pehrson
2015-12-13[libpng16] Update copyright uears in source files.Glenn Randers-Pehrson
2015-07-22[libpng16] Imported from libpng-1.6.18.tarGlenn Randers-Pehrson
2015-06-03[libpng16] Fixed cexcept.h in which GCC 5 now reports that one of the autoJohn Bowler
variables in the Try macro needs to be volatile to prevent value being lost over the setjmp.
2015-04-01[libpng16] Suppressed some warnings from the Borland C++ 5.5.1/5.82 compilerGlenn Randers-Pehrson
(Bug report by Viktor Szaka'ts).
2015-03-26[libpng16] Imported from libpng-1.6.17.tarGlenn Randers-Pehrson
2015-03-21[libpng16] Reverted "& 0xff" additions of version 1.6.17beta01. Libpng passesGlenn Randers-Pehrson
the Coverity scan without them.
2015-02-27[libpng16] Imported from libpng-1.6.17beta06.tarGlenn Randers-Pehrson
2015-02-27[libpng16] Added "& 0xff" to things being typecast to "png_byte".Glenn Randers-Pehrson
2014-11-20[libpng16] Imported from libpng-1.6.15.tarGlenn Randers-Pehrson
2014-11-06[libpng16] Changed "#endif /* PNG_FEATURE_SUPPORTED */" to "#endif /* ↵Glenn Randers-Pehrson
FEATURE */"
2014-11-06[libpng16] Removed #ifdef PNG_16BIT_SUPPORTED/#endif around png_product2(); ↵Glenn Randers-Pehrson
it is needed by png_reciprocal2(). Added #ifdef PNG_16BIT_SUPPORTED/#endif around png_log16bit() and png_do_swap().
2014-10-31[libpng16] Added a pair of parentheses suggested by clangGlenn Randers-Pehrson
2014-10-31[libpng16] Changed remaining "if (!x)" to "if (x == 0)" and "if (x)" toGlenn Randers-Pehrson
"if (x !== 0)"
2014-02-05[libpng16] Imported from libpng-1.6.9.tarGlenn Randers-Pehrson
2013-12-31[libpng16] Updated copyright year in recently-changed files.Glenn Randers-Pehrson
2013-12-22[libpng16] Update "last changed" dates in recently-patched files.Glenn Randers-Pehrson
2013-12-19[libpng16] Made transform implementation functions static. This makes theJohn Bowler
internal functions called by png_do_{read|write}_transformations static. On an x86-64 DLL build (Gentoo Linux) this reduces the size of the text segment of the DLL by 1208 bytes, about 0.6%. It also simplifies maintenance by removing the declarations from pngpriv.h and allowing easier changes to the internal interfaces.
2013-12-19[libpng16] Bookkeeping: Moved functions around (no changes). Moved transformJohn Bowler
function definitions before the place where they are called so that they can be masde static. Move the intrapixel functions and the grayscale palette builder out of the png?tran.c files. The latter isn't a transform function and is no longer used internally, and the former MNG specific functions are better placed in pngread/pngwrite.c
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-13[libpng16] Imported from libpng-1.6.0.tarGlenn Randers-Pehrson
2013-01-01[libpng16] Updated copyright year to 2013 in newly-changed filesGlenn Randers-Pehrson
2012-01-25[libpng16] Eliminated Intel icc/icl compiler warnings. The Intel (GCC derived)John Bowler
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-01[libpng16] Updated copyright year to 2012Glenn Randers-Pehrson
2011-12-24[libpng16] Implemented 'restrict' for png_info and png_struct.John Bowler
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-11-04[libpng15] Imported from libpng-1.5.7beta01.tarGlenn Randers-Pehrson
2011-11-02[libpng15] Bump version to libpng-1.5.7beta01Glenn Randers-Pehrson
2011-11-02[libpng15] Imported from libpng-1.5.6.tarGlenn Randers-Pehrson
2011-09-22[libpng15] Bump version to libpng-1.5.6beta02Glenn Randers-Pehrson
2011-07-07[devel] Imported from libpng-1.5.4.tarGlenn Randers-Pehrson
2011-06-14[devel] Removed the ACCURATE and LEGACY options (they are no longer useable)John Bowler
Fixed some compiliation problems with scaling options.
2011-04-17[devel] Cleanup of conditional compilation code and of background/gammaJohn Bowler
handling. Internal changes only except for a new option to avoid compiling in the png_build_grayscale_palette API (which is not used at all internally.) The main change is to move the transform tests (READ_TRANSFORMS, WRITE_TRANSFORMS) up one level to the caller of the APIs.
2011-04-16[devel] Fixed bug with stripping the filler or alpha channel when writing,Glenn Randers-Pehrson
that was introduced in libpng-1.5.2beta01.
2011-03-31[devel] Imported from libpng-1.5.2.tarGlenn Randers-Pehrson
2011-02-13[devel] Imported from libpng-1.5.2beta01.tarGlenn Randers-Pehrson
2011-02-12[devel] Clean up ALPHA flags and transformationsJohn Bowler
2011-01-06[devel] Imported from libpng-1.5.0.tarGlenn Randers-Pehrson
2011-01-04[devel] Update copyright year and bump to version libpng-1.5.0rc07Glenn Randers-Pehrson
2010-11-21[devel] Changes to remove gcc warnings (John Bowler)Glenn Randers-Pehrson
Certain optional gcc warning flags resulted in warnings in libpng code. With these changes only -Wconversion and -Wcast-qual cannot be turned on. Changes are trivial rearrangements of code. -Wconversion is not possible for pngrutil.c (because of the widespread use of += et al on variables smaller than (int) or (unsigned int)) and -Wcast-qual is not possible with pngwio.c and pngwutil.c because the 'write' callback and zlib compression both fail to declare their input buffers with 'const'.
2010-10-23[devel] Added whitespace in pngrutil.c, pngwtran.c, and pngwutil.cGlenn Randers-Pehrson
2010-10-15[devel] Imported from libpng-1.5.0beta51.tarGlenn Randers-Pehrson
2010-10-14[devel] Imported from libpng-1.5.0beta50.tarGlenn Randers-Pehrson