summaryrefslogtreecommitdiff
path: root/pngstruct.h
AgeCommit message (Collapse)Author
2012-03-09[libpng16] Deflate/inflate was reworked to move common zlib calls into singleJohn Bowler
functions [rw]util.c. A new shared keyword check routine was also added and the 'zbuf' is no longer allocated on progressive read. It is now possible to call png_inflate() incrementally.
2012-03-05[libpng16] Added code to validate the windowBits value passed to deflateInit2().John Bowler
If the call to deflateInit2() is wrong a png_warning will be issued (in fact this is harmless, but the PNG data produced may be sub-optimal).
2012-03-05[libpng16] Made read 'inflate' handling like write 'deflate' handling. TheJohn Bowler
read code now claims and releases png_ptr->zstream, like the write code. The bug whereby the progressive reader failed to release the zstream is now fixed, all initialization is delayed, and the code checks for changed parameters on deflate rather than always calling deflatedEnd/deflateInit.
2012-03-02[libng16] Added palette-index checking while writing.Glenn Randers-Pehrson
Relocated palette-index checking function from pngrutil.c to pngtrans.c
2012-03-01[libpng16] Added tests for invalid palette index while reading and writingGlenn Randers-Pehrson
(work in progress, the latter isn't finished).
2012-02-16[libpng16] Imported from libpng-1.6.0beta11.tarGlenn Randers-Pehrson
2012-01-01[libpng16] Updated copyright year to 2012Glenn Randers-Pehrson
2011-12-28[libpng16] Changed png_memcpy to C assignment where appropriate. Changed allJohn Bowler
those uses of png_memcpy that were doing a simple assignment to assignments (all those cases where the thing being copied is a non-array C L-value.) Added some error checking to png_set_*() routines and removed the reference to the non-exported function png_memcpy() from example.c. Fixed the Visual C 64-bit build - it requires jmp_buf to be aligned, but it had become misaligned.
2011-12-28[libpng16] Add 'const' to png_structrp arguments of png_set_*() APIs.John Bowler
Because these APIs store to the png_info they can take a png_const_structrp now that the error routines also accept one of these.
2011-12-22[libpng16] bump version to 1.6.0beta04Glenn Randers-Pehrson
2011-12-22[libpng16] Start-up code size improvements, error handler flexibility. TheseJohn Bowler
changes alter how the tricky allocation of the initial png_struct and png_info structures are handled. png_info is now handled in pretty much the same way as everything else, except that the allocations handle NULL return silently. png_struct is changed in a similar way on allocation and on deallocation a 'safety' error handler is put in place (which should never be required). The error handler itself is changed to permit mismatches in the application and libpng error buffer size; however, this means a silent change to the API to return the jmp_buf if the size doesn't match the size from the libpng compilation; libpng now allocates the memory and this may fail. Overall these changes result in slight code size reductions; however, this is a reduction in code that is always executed so is particularly valuable. Overall on a 64-bit system the libpng DLL decreases in code size by 1733 bytes. pngerror.o increases in size by about 465 bytes because of the new functionality.
2011-12-21[libpng16] Start-up code size improvements, error handler flexibility.John Bowler
These changes alter how the tricky allocation of the initial png_struct and png_info structures are handled. png_info is now handled in pretty much the same way as everything else, except that the allocations handle NULL return silently. png_struct is changed in a similar way on allocation and on deallocation a 'safety' error handler is put in place (which should never be required). The error handler itself is changed to permit mismatches in the application and libpng error buffer size; however, this means a silent change to the API to return the jmp_buf if the size doesn't match the size from the libpng compilation; libpng now allocates the memory and this may fail. Overall these changes result in slight code size reductions; however, this is a reduction in code that is always executed so is particularly valuable. Overall on a 64-bit system the libpng DLL decreases in code size by 1733 bytes. pngerror.o increases in size by about 465 bytes because of the new functionality.
2011-11-03[libpng15] Added support for ARM processor (Mans Rullgard)Mans Rullgard
2011-10-17[libpng15] New png_struct member png_ptr->old_prev_rowMans Rullgard
2011-10-14[libpng15] Fixes for multiple calls to png_read_update_info.John Bowler
These fixes attend to most of the errors revealed in pngvalid, however doing the gamma work twice results in inaccuracies that can't be easily fixed. There is now a warning in the code if this is going to happen.
2011-09-28[libpng15] Imported from libpng-1.5.6beta03.tarGlenn Randers-Pehrson
2011-09-22[libpng15] Bump version to libpng-1.5.6beta02Glenn Randers-Pehrson
2011-09-22[libpng15] Imported from libpng-1.5.6beta01.tarGlenn Randers-Pehrson
2011-09-22[libpng15] Imported from libpng-1.5.5.tarGlenn Randers-Pehrson
2011-08-26[devel] Bump version to libpng-1.5.5beta07Glenn Randers-Pehrson
2011-08-25[devel] Fixes to rgb_to_gray and cHRM XYZ APIsJohn Bowler
2011-07-07[devel] Imported from libpng-1.5.4.tarGlenn Randers-Pehrson
2011-06-15[devel] Updated comments that mention 1.5.3; changed them to 1.5.4.Glenn 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-06-10[devel] Make the 16-to-8 scaling accurate. Dividing by 256 with no rounding isJohn Bowler
wrong (high by one) 25% of the time. Dividing by 257 with rounding is wrong in 128 out of 65536 cases. Getting the right answer all the time without division is easy.
2011-05-15[devel] Minor revisions to comments on pngstruct.h and pngvalid.cGlenn Randers-Pehrson
2011-05-15[devel] pngvalid: add memory overwrite and palette image checksJohn Bowler
also minor cleanup in the libpng code itself (pngrtran.c and pngrutil.c) and some extra checking there.
2011-05-07[devel] Implementation of premultiplied alpha support: png_set_alpha_modeJohn Bowler
(libpng-manual.txt still to be updated, see png.h for documentation.)
2011-05-05[devel] IDAT compression failed if preceded by a compressed text chunkJohn Bowler
This was because the attempt to reset the zlib stream in png_write_IDAT happened after the first IDAT chunk had been deflated - much too late. In this change internal functions are added to claim/release the z_stream and, hopefully, make the code more robust. Also deflateEnd checking is added - previously libpng would ignore an error at the end of the stream.
2011-05-05[devel] Update "last changed" dates and added CHANGES entry.Glenn Randers-Pehrson
2011-05-05[devel] Remove png_snprintf, add formatted warning messages.John Bowler
This change adds internal APIs to allow png_warning messages to have parameters without requiring the host OS to implelment snprintf. As a side effect the dependency of the RFC1132 code on stdio is removed and PNG_NO_WARNINGS does actually work now.
2011-04-27[devel] Changed png_struct jmp_buf member name to avoid clash with macroJohn Bowler
2011-04-01[devel] Added PNG_WRITE_COMPRESSED_TEXT_SUPPORTED macro.Glenn Randers-Pehrson
2011-04-01[devel] Only compile the new zlib re-initializing code when text or iCCPGlenn Randers-Pehrson
is supported.
2011-03-31[devel] Update change comments (1.5.2 -> 1.5.3)Glenn Randers-Pehrson
2011-03-31[devel] Re-initialize the zlib compressor before compressing non-IDAT chunks.Glenn Randers-Pehrson
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-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
2010-10-07[devel] Imported from libpng-1.5.0beta49.tarGlenn Randers-Pehrson
2010-10-04[devel] Imported from libpng-1.5.0beta48.tarGlenn Randers-Pehrson
2010-10-04[devel] Fixed problem with symbols creation in Makefile.am which was assumingGlenn Randers-Pehrson
that CCP writes to standard output by default (Martin Banky).
2010-09-10[devel] Fixed a number of problems with 64-bit compilation reported by VisualGlenn Randers-Pehrson
Studio 2010 (John Bowler).
2010-08-28[devel] Imported from libpng-1.5.0beta46.tarGlenn Randers-Pehrson
2010-08-26[devel] Imported from libpng-1.5.0beta45.tarGlenn Randers-Pehrson
2010-08-24[devel] Bump to version libpng-1.5.0beta45Glenn Randers-Pehrson
2010-08-11[devel] Imported from libpng-1.5.0beta41.tarGlenn Randers-Pehrson
2010-08-06[devel] Imported from libpng-1.5.0beta40.tarGlenn Randers-Pehrson
2010-08-02[devel] Imported from libpng-1.5.0beta39.tarGlenn Randers-Pehrson