summaryrefslogtreecommitdiff
path: root/pngrutil.c
Commit message (Collapse)AuthorAgeFilesLines
* [libpng15] Imported from libpng-1.5.6rc01.tarv1.5.6rc01Glenn Randers-Pehrson2011-10-261-1/+1
|
* [libpng15] New png_struct member png_ptr->old_prev_rowMans Rullgard2011-10-171-1/+0
|
* [libpng15] Made png_ptr->prev_row an aligned pointer into png_ptr->big_prev_rowMans Rullgard2011-10-171-15/+11
| | | | and removed a redundant assignment (Mans Rullgard).
* [libpng15] Prevent libpng overwriting unused bits at the end of the image whenJohn Bowler2011-10-161-2/+35
| | | | | | is not byte aligned, while reading. Prior to libpng-1.5.6 libpng would overwrite the end of the image if the row width is not an exact multiple of 8 bits and the image is not interlaced.
* [libpng15] Further optimization of png_combine_row() in the interlaced case.John Bowler2011-10-111-142/+337
|
* [libpng15] Optimized png_combine_row() when rows are aligned This gains aJohn Bowler2011-10-071-11/+16
| | | | | | small percentage for 16-bit and 32-bit pixels in the typical case where the output row buffers are appropriately aligned. The optimization was not previously possible because the png_struct buffer was always misaligned.
* [libpng15] Align png_struct::row_buf - previously it was always unaligned,John Bowler2011-10-061-173/+162
| | | | | | caused by a bug in the code that attempted to align it; the code needs to subtract one from the pointer to take account of the filter byte prepended to each row.
* [libpng15] Replaced a short but frequently-used memcpy() in png_combine_row()Glenn Randers-Pehrson2011-10-051-3/+13
| | | | with a loop.
* [libpng15] Bump version to libpng-1.5.6beta04v1.5.6beta04Glenn Randers-Pehrson2011-10-051-0/+3
|
* [libpng15] Bump version to libpng-1.5.6beta02Glenn Randers-Pehrson2011-09-221-64/+80
|
* [libpng15] Imported from libpng-1.5.6beta01.tarv1.5.6beta01Glenn Randers-Pehrson2011-09-221-1/+1
|
* [libpng15] Imported from libpng-1.5.5.tarv1.5.5Glenn Randers-Pehrson2011-09-221-1/+1
|
* [libpng15] Constant changes for 64-bit compatibility (removal of L suffixes).John Bowler2011-09-091-6/+6
| | | | The 16-bit cases still use "L" as we don't have a 16-bit test system.
* [libpng15] Fixed 64-bit compilation errors (gcc). The errors fixed relateJohn Bowler2011-09-091-2/+2
| | | | | | | to conditions where types that are 32 bits in the GCC 32-bit world (uLong and png_size_t) become 64 bits in the 64-bit world. This produces potential truncation errors which the compiler correctly flags.
* [devel] Fixes to rgb_to_gray and cHRM XYZ APIsJohn Bowler2011-08-251-16/+110
|
* [devel] Imported from libpng-1.5.5beta03.tarv1.5.5beta03Glenn Randers-Pehrson2011-07-271-1/+1
|
* [devel] Enabled compilation with g++ compiler. This compiler does notJohn Bowler2011-07-141-2/+2
| | | | | recognize the file extension, so it always compiles with C++ rules. Made minor changes to pngrutil.c to cast results where C++ expects it but C does not.
* [devel] Imported from libpng-1.5.4.tarv1.5.4Glenn Randers-Pehrson2011-07-071-1/+1
|
* [devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.John Bowler2011-06-181-4/+9
|
* [devel] Updated comments that mention 1.5.3; changed them to 1.5.4.Glenn Randers-Pehrson2011-06-151-1/+1
|
* [devel] Removed the ACCURATE and LEGACY options (they are no longer useable)John Bowler2011-06-141-1/+1
| | | | Fixed some compiliation problems with scaling options.
* [devel] Fixed png_handle_sCAL which is broken in 1.5Glenn Randers-Pehrson2011-06-101-1/+10
|
* [devel] pngvalid: add memory overwrite and palette image checksJohn Bowler2011-05-151-0/+8
| | | | | also minor cleanup in the libpng code itself (pngrtran.c and pngrutil.c) and some extra checking there.
* [devel] Documented png_set_alpha_mode(), other changes in libpng.3 andJohn Bowler2011-05-121-16/+47
| | | | | | | | | | | | | | libpng-manual.txt. The cHRM chunk now sets the defaults for png_set_rgb_to_gray() (when negative parameters are supplied by the caller), while in the absence of cHRM sRGB/Rec 709 values are still used. The bKGD chunk no longer overwrites the background value set by png_set_background(), allowing the latter to be used before the file header is read. It never performed any useful function to override the default anyway. Send comments/corrections/commendations to png-mng-implement at lists.sf.net: (subscription required; visit
* [devel] Remove png_snprintf, add formatted warning messages.John Bowler2011-05-051-70/+50
| | | | | | | 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.
* [devel] Cleanup of conditional compilation code and of background/gammaJohn Bowler2011-04-171-0/+2
| | | | | | | 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.
* [devel] Added some whitespace in comments.Glenn Randers-Pehrson2011-04-161-2/+2
|
* [devel] Add comment in pngtest.c about setting zlib strategy for textGlenn Randers-Pehrson2011-04-011-1/+1
| | | | compression
* [devel] Added PNG_READ_COMPRESSED_TEXT_SUPPORTED macro.Glenn Randers-Pehrson2011-04-011-3/+2
|
* [devel] Imported from libpng-1.5.2.tarv1.5.2Glenn Randers-Pehrson2011-03-311-1/+1
|
* [devel] Fixed a long-standing bug in png_handle_sPLT() whenGlenn Randers-Pehrson2011-03-211-3/+1
| | | | PNG_NO_POINTER_INDEXING is defined.
* [devel] Imported from libpng-1.5.2beta01.tarGlenn Randers-Pehrson2011-02-131-1/+1
|
* [devel] Implement expansion to 16 bitsJohn Bowler2011-02-121-0/+18
|
* --amend [devel] Imported from libpng-1.5.1.tarv1.5.1Glenn Randers-Pehrson2011-02-021-1/+1
|
* [devel] Eliminate more GCC shadow warningsJohn Bowler2011-01-161-8/+8
|
* [devel] Imported from libpng-1.5.1beta03.tarv1.5.1beta03Glenn Randers-Pehrson2011-01-141-5/+5
|
* [devel] The wrong pngrutil.c (version 1.4.1) was checked in.Glenn Randers-Pehrson2011-01-071-682/+916
|
* [devel] Add typecasts to stifle compiler warnings in pngrutil.cGlenn Randers-Pehrson2011-01-061-914/+682
|
* [devel] Imported from libpng-1.5.0.tarv1.5.0Glenn Randers-Pehrson2011-01-061-1/+1
|
* [devel] Update copyright year and bump to version libpng-1.5.0rc07Glenn Randers-Pehrson2011-01-041-1/+1
|
* [devel] Fixed interlace image handling and add test cases (John Bowler)John Bowler2010-12-191-56/+2
|
* [devel] Added the private PNG_UNUSED() macro definition in pngpriv.h.Glenn Randers-Pehrson2010-12-041-3/+3
| | | | (adapted from the UNUSED() macro in pngvalid.c by John Bowler)
* [devel] Changes to remove gcc warnings (John Bowler)Glenn Randers-Pehrson2010-11-211-0/+5
| | | | | | | | | | 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'.
* [devel] Added comment in pngrutil.c about some extra parentheses.Glenn Randers-Pehrson2010-11-201-2/+5
|
* [master] Revised png_get_uint_32, png_get_int_32, png_get_uint_16 (Cosmin)Glenn Randers-Pehrson2010-11-201-40/+65
| | | | | | | Moved reading of file signature into png_read_sig (Cosmin) Fixed atomicity of chunk header serialization (Cosmin) Added test for io_state in pngtest.c (Cosmin) Added "#!/bin/sh" at the top of contrib/pngminim/*/gather.sh scripts.
* [devel] Added whitespace in pngrutil.c, pngwtran.c, and pngwutil.cGlenn Randers-Pehrson2010-10-231-1/+49
|
* [devel] Used a consistent structure for the pngget.c functions.Glenn Randers-Pehrson2010-10-231-7/+35
| | | | added some whitespace in pngrio.c and pngrutil.c
* [devel] Imported from libpng-1.5.0beta52.tarv1.5.0beta52Glenn Randers-Pehrson2010-10-151-1/+1
|
* [devel] Imported from libpng-1.5.0beta51.tarv1.5.0beta51Glenn Randers-Pehrson2010-10-151-1/+1
|
* [devel] Imported from libpng-1.5.0beta50.tarv1.5.0beta50Glenn Randers-Pehrson2010-10-141-1/+1
|