PageRenderTime 97ms CodeModel.GetById 68ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/src/FreeImage/Source/LibPNG/CHANGES

https://bitbucket.org/cabalistic/ogredeps/
#! | 3820 lines | 3272 code | 548 blank | 0 comment | 0 complexity | a753dc94585d3dfde96687f09c133d5a MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1#if 0
  2CHANGES - changes for libpng
  3
  4Version 0.2
  5  added reader into png.h
  6  fixed small problems in stub file
  7
  8Version 0.3
  9  added pull reader
 10  split up pngwrite.c to several files
 11  added pnglib.txt
 12  added example.c
 13  cleaned up writer, adding a few new transformations
 14  fixed some bugs in writer
 15  interfaced with zlib 0.5
 16  added K&R support
 17  added check for 64 KB blocks for 16-bit machines
 18
 19Version 0.4
 20  cleaned up code and commented code
 21  simplified time handling into png_time
 22  created png_color_16 and png_color_8 to handle color needs
 23  cleaned up color type defines
 24  fixed various bugs
 25  made various names more consistent
 26  interfaced with zlib 0.71
 27  cleaned up zTXt reader and writer (using zlib's Reset functions)
 28  split transformations into pngrtran.c and pngwtran.c
 29
 30Version 0.5
 31  interfaced with zlib 0.8
 32  fixed many reading and writing bugs
 33  saved using 3 spaces instead of tabs
 34
 35Version 0.6
 36  added png_large_malloc() and png_large_free()
 37  added png_size_t
 38  cleaned up some compiler warnings
 39  added png_start_read_image()
 40
 41Version 0.7
 42  cleaned up lots of bugs
 43  finished dithering and other stuff
 44  added test program
 45  changed name from pnglib to libpng
 46
 47Version 0.71 [June, 1995]
 48  changed pngtest.png for zlib 0.93
 49  fixed error in libpng.txt and example.c
 50
 51Version 0.8
 52  cleaned up some bugs
 53  added png_set_filler()
 54  split up pngstub.c into pngmem.c, pngio.c, and pngerror.c
 55  added #define's to remove unwanted code
 56  moved png_info_init() to png.c
 57  added old_size into png_realloc()
 58  added functions to manually set filtering and compression info
 59  changed compression parameters based on image type
 60  optimized filter selection code
 61  added version info
 62  changed external functions passing floats to doubles (k&r problems?)
 63  put all the configurable stuff in pngconf.h
 64  enabled png_set_shift to work with paletted images on read
 65  added png_read_update_info() - updates info structure with transformations
 66
 67Version 0.81 [August, 1995]
 68  incorporated Tim Wegner's medium model code (thanks, Tim)
 69
 70Version 0.82 [September, 1995]
 71  [unspecified changes]
 72
 73Version 0.85 [December, 1995]
 74  added more medium model code (almost everything's a far)
 75  added i/o, error, and memory callback functions
 76  fixed some bugs (16-bit, 4-bit interlaced, etc.)
 77  added first run progressive reader (barely tested)
 78
 79Version 0.86 [January, 1996]
 80  fixed bugs
 81  improved documentation
 82
 83Version 0.87 [January, 1996]
 84  fixed medium model bugs
 85  fixed other bugs introduced in 0.85 and 0.86
 86  added some minor documentation
 87
 88Version 0.88 [January, 1996]
 89  fixed progressive bugs
 90  replaced tabs with spaces
 91  cleaned up documentation
 92  added callbacks for read/write and warning/error functions
 93
 94Version 0.89 [July, 1996]
 95  Added new initialization API to make libpng work better with shared libs
 96    we now have png_create_read_struct(), png_create_write_struct(),
 97    png_create_info_struct(), png_destroy_read_struct(), and
 98    png_destroy_write_struct() instead of the separate calls to
 99    malloc and png_read_init(), png_info_init(), and png_write_init()
100  Changed warning/error callback functions to fix bug - this means you
101    should use the new initialization API if you were using the old
102    png_set_message_fn() calls, and that the old API no longer exists
103    so that people are aware that they need to change their code
104  Changed filter selection API to allow selection of multiple filters
105    since it didn't work in previous versions of libpng anyways
106  Optimized filter selection code
107  Fixed png_set_background() to allow using an arbitrary RGB color for
108    paletted images
109  Fixed gamma and background correction for paletted images, so
110    png_correct_palette is not needed unless you are correcting an
111    external palette (you will need to #define PNG_CORRECT_PALETTE_SUPPORTED
112    in pngconf.h) - if nobody uses this, it may disappear in the future.
113  Fixed bug with Borland 64K memory allocation (Alexander Lehmann)
114  Fixed bug in interlace handling (Smarasderagd, I think)
115  Added more error checking for writing and image to reduce invalid files
116  Separated read and write functions so that they won't both be linked
117    into a binary when only reading or writing functionality is used
118  New pngtest image also has interlacing and zTXt
119  Updated documentation to reflect new API
120
121Version 0.90 [January, 1997]
122  Made CRC errors/warnings on critical and ancillary chunks configurable
123  libpng will use the zlib CRC routines by (compile-time) default
124  Changed DOS small/medium model memory support - needs zlib 1.04 (Tim Wegner)
125  Added external C++ wrapper statements to png.h (Gilles Dauphin)
126  Allow PNG file to be read when some or all of file signature has already
127    been read from the beginning of the stream.  ****This affects the size
128    of info_struct and invalidates all programs that use a shared libpng****
129  Fixed png_filler() declarations
130  Fixed? background color conversions
131  Fixed order of error function pointers to match documentation
132  Current chunk name is now available in png_struct to reduce the number
133    of nearly identical error messages (will simplify multi-lingual
134    support when available)
135  Try to get ready for unknown-chunk callback functions:
136    - previously read critical chunks are flagged, so the chunk handling
137      routines can determine if the chunk is in the right place
138    - all chunk handling routines have the same prototypes, so we will
139      be able to handle all chunks via a callback mechanism
140  Try to fix Linux "setjmp" buffer size problems
141  Removed png_large_malloc, png_large_free, and png_realloc functions.
142
143Version 0.95 [March, 1997]
144  Fixed bug in pngwutil.c allocating "up_row" twice and "avg_row" never
145  Fixed bug in PNG file signature compares when start != 0
146  Changed parameter type of png_set_filler(...filler...) from png_byte
147    to png_uint_32
148  Added test for MACOS to ensure that both math.h and fp.h are not #included
149  Added macros for libpng to be compiled as a Windows DLL (Andreas Kupries)
150  Added "packswap" transformation, which changes the endianness of
151    packed-pixel bytes (Kevin Bracey)
152  Added "strip_alpha" transformation, which removes the alpha channel of
153    input images without using it (not necessarily a good idea)
154  Added "swap_alpha" transformation, which puts the alpha channel in front
155    of the color bytes instead of after
156  Removed all implicit variable tests which assume NULL == 0 (I think)
157  Changed several variables to "png_size_t" to show 16/32-bit limitations
158  Added new pCAL chunk read/write support
159  Added experimental filter selection weighting (Greg Roelofs)
160  Removed old png_set_rgbx() and png_set_xrgb() functions that have been
161     obsolete for about 2 years now (use png_set_filler() instead)
162  Added macros to read 16- and 32-bit ints directly from buffer, to be
163    used only on those systems that support it (namely PowerPC and 680x0)
164    With some testing, this may become the default for MACOS/PPC systems.
165  Only calculate CRC on data if we are going to use it
166  Added macros for zTXt compression type PNG_zTXt_COMPRESSION_???
167  Added macros for simple libpng debugging output selectable at compile time
168  Removed PNG_READ_END_MODE in progressive reader (Smarasderagd)
169  More description of info_struct in libpng.txt and png.h
170  More instructions in example.c
171  More chunk types tested in pngtest.c
172  Renamed pngrcb.c to pngset.c, and all png_read_<chunk> functions to be
173    png_set_<chunk>.  We now have corresponding png_get_<chunk>
174    functions in pngget.c to get information in info_ptr.  This isolates
175    the application from the internal organization of png_info_struct
176    (good for shared library implementations).
177
178Version 0.96 [May, 1997]
179  Fixed serious bug with < 8bpp images introduced in 0.95
180  Fixed 256-color transparency bug (Greg Roelofs)
181  Fixed up documentation (Greg Roelofs, Laszlo Nyul)
182  Fixed "error" in pngconf.h for Linux setjmp() behavior
183  Fixed DOS medium model support (Tim Wegner)
184  Fixed png_check_keyword() for case with error in static string text
185  Added read of CRC after IEND chunk for embedded PNGs (Laszlo Nyul)
186  Added typecasts to quiet compiler errors
187  Added more debugging info
188
189Version 0.97 [January, 1998]
190  Removed PNG_USE_OWN_CRC capability
191  Relocated png_set_crc_action from pngrutil.c to pngrtran.c
192  Fixed typecasts of "new_key", etc. (Andreas Dilger)
193  Added RFC 1152 [sic] date support
194  Fixed bug in gamma handling of 4-bit grayscale
195  Added 2-bit grayscale gamma handling (Glenn R-P)
196  Added more typecasts. 65536L becomes (png_uint_32)65536L, etc. (Glenn R-P)
197  Minor corrections in libpng.txt
198  Added simple sRGB support (Glenn R-P)
199  Easier conditional compiling, e.g.,
200    define PNG_READ/WRITE_NOT_FULLY_SUPPORTED;
201    all configurable options can be selected from command-line instead
202    of having to edit pngconf.h (Glenn R-P)
203  Fixed memory leak in pngwrite.c (free info_ptr->text) (Glenn R-P)
204  Added more conditions for png_do_background, to avoid changing
205    black pixels to background when a background is supplied and
206    no pixels are transparent
207  Repaired PNG_NO_STDIO behavior
208  Tested NODIV support and made it default behavior (Greg Roelofs)
209  Added "-m" option and PNGTEST_DEBUG_MEMORY to pngtest (John Bowler)
210  Regularized version numbering scheme and bumped shared-library major
211    version number to 2 to avoid problems with libpng 0.89 apps
212    (Greg Roelofs)
213
214Version 0.98 [January, 1998]
215  Cleaned up some typos in libpng.txt and in code documentation
216  Fixed memory leaks in pCAL chunk processing (Glenn R-P and John Bowler)
217  Cosmetic change "display_gamma" to "screen_gamma" in pngrtran.c
218  Changed recommendation about file_gamma for PC images to .51 from .45,
219    in example.c and libpng.txt, added comments to distinguish between
220    screen_gamma, viewing_gamma, and display_gamma.
221  Changed all references to RFC1152 to read RFC1123 and changed the
222    PNG_TIME_RFC1152_SUPPORTED macro to PNG_TIME_RFC1123_SUPPORTED
223  Added png_invert_alpha capability (Glenn R-P -- suggestion by Jon Vincent)
224  Changed srgb_intent from png_byte to int to avoid compiler bugs
225
226Version 0.99 [January 30, 1998]
227  Free info_ptr->text instead of end_info_ptr->text in pngread.c (John Bowler)
228  Fixed a longstanding "packswap" bug in pngtrans.c
229  Fixed some inconsistencies in pngconf.h that prevented compiling with
230    PNG_READ_GAMMA_SUPPORTED and PNG_READ_hIST_SUPPORTED undefined
231  Fixed some typos and made other minor rearrangement of libpng.txt (Andreas)
232  Changed recommendation about file_gamma for PC images to .50 from .51 in
233    example.c and libpng.txt, and changed file_gamma for sRGB images to .45
234  Added a number of functions to access information from the png structure
235    png_get_image_height(), etc. (Glenn R-P, suggestion by Brad Pettit)
236  Added TARGET_MACOS similar to zlib-1.0.8
237  Define PNG_ALWAYS_EXTERN when __MWERKS__ && WIN32 are defined
238  Added type casting to all png_malloc() function calls
239
240Version 0.99a [January 31, 1998]
241  Added type casts and parentheses to all returns that return a value.(Tim W.)
242
243Version 0.99b [February 4, 1998]
244  Added type cast png_uint_32 on malloc function calls where needed.
245  Changed type of num_hist from png_uint_32 to int (same as num_palette).
246  Added checks for rowbytes overflow, in case png_size_t is less than 32 bits.
247  Renamed makefile.elf to makefile.lnx.
248
249Version 0.99c [February 7, 1998]
250  More type casting.  Removed erroneous overflow test in pngmem.c.
251  Added png_buffered_memcpy() and png_buffered_memset(), apply them to rowbytes.
252  Added UNIX manual pages libpng.3 (incorporating libpng.txt) and  png.5.
253
254Version 0.99d [February 11, 1998]
255  Renamed "far_to_near()" "png_far_to_near()"
256  Revised libpng.3
257  Version 99c "buffered" operations didn't work as intended.  Replaced them
258    with png_memcpy_check() and png_memset_check().
259  Added many "if (png_ptr == NULL) return" to quell compiler warnings about
260    unused png_ptr, mostly in pngget.c and pngset.c.
261  Check for overlength tRNS chunk present when indexed-color PLTE is read.
262  Cleaned up spelling errors in libpng.3/libpng.txt
263  Corrected a problem with png_get_tRNS() which returned undefined trans array
264
265Version 0.99e [February 28, 1998]
266  Corrected png_get_tRNS() again.
267  Add parentheses for easier reading of pngget.c, fixed "||" should be "&&".
268  Touched up example.c to make more of it compileable, although the entire
269    file still can't be compiled (Willem van Schaik)
270  Fixed a bug in png_do_shift() (Bryan Tsai)
271  Added a space in png.h prototype for png_write_chunk_start()
272  Replaced pngtest.png with one created with zlib 1.1.1
273  Changed pngtest to report PASS even when file size is different (Jean-loup G.)
274  Corrected some logic errors in png_do_invert_alpha() (Chris Patterson)
275
276Version 0.99f [March 5, 1998]
277  Corrected a bug in pngpread() introduced in version 99c (Kevin Bracey)
278  Moved makefiles into a "scripts" directory, and added INSTALL instruction file
279  Added makefile.os2 and pngos2.def (A. Zabolotny) and makefile.s2x (W. Sebok)
280  Added pointers to "note on libpng versions" in makefile.lnx and README
281  Added row callback feature when reading and writing nonprogressive rows
282    and added a test of this feature in pngtest.c
283  Added user transform callbacks, with test of the feature in pngtest.c
284
285Version 0.99g [March 6, 1998, morning]
286  Minor changes to pngtest.c to suppress compiler warnings.
287  Removed "beta" language from documentation.
288
289Version 0.99h [March 6, 1998, evening]
290  Minor changes to previous minor changes to pngtest.c
291  Changed PNG_READ_NOT_FULLY_SUPPORTED to PNG_READ_TRANSFORMS_NOT_SUPPORTED
292    and added PNG_PROGRESSIVE_READ_NOT_SUPPORTED macro
293  Added user transform capability
294
295Version 1.00 [March 7, 1998]
296  Changed several typedefs in pngrutil.c
297  Added makefile.wat (Pawel Mrochen), updated makefile.tc3 (Willem van Schaik)
298  Replaced "while(1)" with "for(;;)"
299  Added PNGARG() to prototypes in pngtest.c and removed some prototypes
300  Updated some of the makefiles (Tom Lane)
301  Changed some typedefs (s_start, etc.) in pngrutil.c
302  Fixed dimensions of "short_months" array in pngwrite.c
303  Replaced ansi2knr.c with the one from jpeg-v6
304
305Version 1.0.0 [March 8, 1998]
306  Changed name from 1.00 to 1.0.0 (Adam Costello)
307  Added smakefile.ppc (with SCOPTIONS.ppc) for Amiga PPC (Andreas Kleinert)
308
309Version 1.0.0a [March 9, 1998]
310  Fixed three bugs in pngrtran.c to make gamma+background handling consistent
311    (Greg Roelofs)
312  Changed format of the PNG_LIBPNG_VER integer to xyyzz instead of xyz
313    for major, minor, and bugfix releases.  This is 10001. (Adam Costello,
314    Tom Lane)
315  Make months range from 1-12 in png_convert_to_rfc1123
316
317Version 1.0.0b [March 13, 1998]
318  Quieted compiler complaints about two empty "for" loops in pngrutil.c
319  Minor changes to makefile.s2x
320  Removed #ifdef/#endif around a png_free() in pngread.c
321
322Version 1.0.1 [March 14, 1998]
323  Changed makefile.s2x to reduce security risk of using a relative pathname
324  Fixed some typos in the documentation (Greg).
325  Fixed a problem with value of "channels" returned by png_read_update_info()
326
327Version 1.0.1a [April 21, 1998]
328  Optimized Paeth calculations by replacing abs() function calls with intrinsics
329  plus other loop optimizations. Improves avg decoding speed by about 20%.
330  Commented out i386istic "align" compiler flags in makefile.lnx.
331  Reduced the default warning level in some makefiles, to make them consistent.
332  Removed references to IJG and JPEG in the ansi2knr.c copyright statement.
333  Fixed a bug in png_do_strip_filler with XXRRGGBB => RRGGBB transformation.
334  Added grayscale and 16-bit capability to png_do_read_filler().
335  Fixed a bug in pngset.c, introduced in version 0.99c, that sets rowbytes
336    too large when writing an image with bit_depth < 8 (Bob Dellaca).
337  Corrected some bugs in the experimental weighted filtering heuristics.
338  Moved a misplaced pngrutil code block that truncates tRNS if it has more
339    than num_palette entries -- test was done before num_palette was defined.
340  Fixed a png_convert_to_rfc1123() bug that converts day 31 to 0 (Steve Eddins).
341  Changed compiler flags in makefile.wat for better optimization
342    (Pawel Mrochen).
343
344Version 1.0.1b [May 2, 1998]
345  Relocated png_do_gray_to_rgb() within png_do_read_transformations() (Greg).
346  Relocated the png_composite macros from pngrtran.c to png.h (Greg).
347  Added makefile.sco (contributed by Mike Hopkirk).
348  Fixed two bugs (missing definitions of "istop") introduced in libpng-1.0.1a.
349  Fixed a bug in pngrtran.c that would set channels=5 under some circumstances.
350  More work on the Paeth-filtering, achieving imperceptible speedup
351    (A Kleinert).
352  More work on loop optimization which may help when compiled with C++
353    compilers.
354  Added warnings when people try to use transforms they've defined out.
355  Collapsed 4 "i" and "c" loops into single "i" loops in pngrtran and pngwtran.
356  Revised paragraph about png_set_expand() in libpng.txt and libpng.3 (Greg)
357
358Version 1.0.1c [May 11, 1998]
359  Fixed a bug in pngrtran.c (introduced in libpng-1.0.1a) where the masks for
360    filler bytes should have been 0xff instead of 0xf.
361  Added max_pixel_depth=32 in pngrutil.c when using FILLER with palette images.
362  Moved PNG_WRITE_WEIGHTED_FILTER_SUPPORTED and PNG_WRITE_FLUSH_SUPPORTED
363    out of the PNG_WRITE_TRANSFORMS_NOT_SUPPORTED block of pngconf.h
364  Added "PNG_NO_WRITE_TRANSFORMS" etc., as alternatives for *_NOT_SUPPORTED,
365    for consistency, in pngconf.h
366  Added individual "ifndef PNG_NO_[CAPABILITY]" in pngconf.h to make it easier
367    to remove unwanted capabilities via the compile line
368  Made some corrections to grammar (which, it's) in documentation (Greg).
369  Corrected example.c, use of row_pointers in png_write_image().
370
371Version 1.0.1d [May 24, 1998]
372  Corrected several statements that used side effects illegally in pngrutil.c
373    and pngtrans.c, that were introduced in version 1.0.1b
374  Revised png_read_rows() to avoid repeated if-testing for NULL (A Kleinert)
375  More corrections to example.c, use of row_pointers in png_write_image()
376    and png_read_rows().
377  Added pngdll.mak and pngdef.pas to scripts directory, contributed by
378    Bob Dellaca, to make a png32bd.dll with Borland C++ 4.5
379  Fixed error in example.c with png_set_text: num_text is 3, not 2 (Guido V.)
380  Changed several loops from count-down to count-up, for consistency.
381
382Version 1.0.1e [June 6, 1998]
383  Revised libpng.txt and libpng.3 description of png_set_read|write_fn(), and
384    added warnings when people try to set png_read_fn and png_write_fn in
385    the same structure.
386  Added a test such that png_do_gamma will be done when num_trans==0
387    for truecolor images that have defined a background.  This corrects an
388    error that was introduced in libpng-0.90 that can cause gamma processing
389    to be skipped.
390  Added tests in png.h to include "trans" and "trans_values" in structures
391    when PNG_READ_BACKGROUND_SUPPORTED or PNG_READ_EXPAND_SUPPORTED is defined.
392  Add png_free(png_ptr->time_buffer) in png_destroy_read_struct()
393  Moved png_convert_to_rfc_1123() from pngwrite.c to png.c
394  Added capability for user-provided malloc_fn() and free_fn() functions,
395    and revised pngtest.c to demonstrate their use, replacing the
396    PNGTEST_DEBUG_MEM feature.
397  Added makefile.w32, for Microsoft C++ 4.0 and later (Tim Wegner).
398
399Version 1.0.2 [June 14, 1998]
400  Fixed two bugs in makefile.bor .
401
402Version 1.0.2a [December 30, 1998]
403  Replaced and extended code that was removed from png_set_filler() in 1.0.1a.
404  Fixed a bug in png_do_filler() that made it fail to write filler bytes in
405    the left-most pixel of each row (Kevin Bracey).
406  Changed "static pngcharp tIME_string" to "static char tIME_string[30]"
407    in pngtest.c (Duncan Simpson).
408  Fixed a bug in pngtest.c that caused pngtest to try to write a tIME chunk
409    even when no tIME chunk was present in the source file.
410  Fixed a problem in pngrutil.c: gray_to_rgb didn't always work with 16-bit.
411  Fixed a problem in png_read_push_finish_row(), which would not skip some
412    passes that it should skip, for images that are less than 3 pixels high.
413  Interchanged the order of calls to png_do_swap() and png_do_shift()
414    in pngwtran.c (John Cromer).
415  Added #ifdef PNG_DEBUG/#endif surrounding use of PNG_DEBUG in png.h .
416  Changed "bad adaptive filter type" from error to warning in pngrutil.c .
417  Fixed a documentation error about default filtering with 8-bit indexed-color.
418  Separated the PNG_NO_STDIO macro into PNG_NO_STDIO and PNG_NO_CONSOLE_IO
419    (L. Peter Deutsch).
420  Added png_set_rgb_to_gray() and png_get_rgb_to_gray_status() functions.
421  Added png_get_copyright() and png_get_header_version() functions.
422  Revised comments on png_set_progressive_read_fn() in libpng.txt and example.c
423  Added information about debugging in libpng.txt and libpng.3 .
424  Changed "ln -sf" to "ln -s -f" in makefile.s2x, makefile.lnx, and
425    makefile.sco.
426  Removed lines after Dynamic Dependencies" in makefile.aco .
427  Revised makefile.dec to make a shared library (Jeremie Petit).
428  Removed trailing blanks from all files.
429
430Version 1.0.2a [January 6, 1999]
431  Removed misplaced #endif and #ifdef PNG_NO_EXTERN near the end of png.h
432  Added "if" tests to silence complaints about unused png_ptr in png.h and png.c
433  Changed "check_if_png" function in example.c to return true (nonzero) if PNG.
434  Changed libpng.txt to demonstrate png_sig_cmp() instead of png_check_sig()
435    which is obsolete.
436
437Version 1.0.3 [January 14, 1999]
438  Added makefile.hux, for Hewlett Packard HPUX 10.20 and 11.00 (Jim Rice)
439  Added a statement of Y2K compliance in png.h, libpng.3, and Y2KINFO.
440
441Version 1.0.3a [August 12, 1999]
442  Added check for PNG_READ_INTERLACE_SUPPORTED in pngread.c; issue a warning
443     if an attempt is made to read an interlaced image when it's not supported.
444  Added check if png_ptr->trans is defined before freeing it in pngread.c
445  Modified the Y2K statement to include versions back to version 0.71
446  Fixed a bug in the check for valid IHDR bit_depth/color_types in pngrutil.c
447  Modified makefile.wat (added -zp8 flag, ".symbolic", changed some comments)
448  Replaced leading blanks with tab characters in makefile.hux
449  Changed "dworkin.wustl.edu" to "ccrc.wustl.edu" in various documents.
450  Changed (float)red and (float)green to (double)red, (double)green
451     in png_set_rgb_to_gray() to avoid "promotion" problems in AIX.
452  Fixed a bug in pngconf.h that omitted <stdio.h> when PNG_DEBUG==0 (K Bracey).
453  Reformatted libpng.3 and libpngpf.3 with proper fonts (script by J. vanZandt).
454  Updated documentation to refer to the PNG-1.2 specification.
455  Removed ansi2knr.c and left pointers to the latest source for ansi2knr.c
456    in makefile.knr, INSTALL, and README (L. Peter Deutsch)
457  Fixed bugs in calculation of the length of rowbytes when adding alpha
458    channels to 16-bit images, in pngrtran.c (Chris Nokleberg)
459  Added function png_set_user_transform_info() to store user_transform_ptr,
460    user_depth, and user_channels into the png_struct, and a function
461    png_get_user_transform_ptr() to retrieve the pointer (Chris Nokleberg)
462  Added function png_set_empty_plte_permitted() to make libpng useable
463    in MNG applications.
464  Corrected the typedef for png_free_ptr in png.h (Jesse Jones).
465  Correct gamma with srgb is 45455 instead of 45000 in pngrutil.c, to be
466    consistent with PNG-1.2, and allow variance of 500 before complaining.
467  Added assembler code contributed by Intel in file pngvcrd.c and modified
468    makefile.w32 to use it (Nirav Chhatrapati, INTEL Corporation,
469    Gilles Vollant)
470  Changed "ln -s -f" to "ln -f -s" in the makefiles to make Solaris happy.
471  Added some aliases for png_set_expand() in pngrtran.c, namely
472    png_set_expand_PLTE(), png_set_expand_depth(), and png_set_expand_tRNS()
473    (Greg Roelofs, in "PNG: The Definitive Guide").
474  Added makefile.beo for BEOS on X86, contributed by Sander Stok.
475
476Version 1.0.3b [August 26, 1999]
477  Replaced 2147483647L several places with PNG_MAX_UINT macro, defined in png.h
478  Changed leading blanks to tabs in all makefiles.
479  Define PNG_USE_PNGVCRD in makefile.w32, to get MMX assembler code.
480  Made alternate versions of  png_set_expand() in pngrtran.c, namely
481    png_set_gray_1_2_4_to_8, png_set_palette_to_rgb, and png_set_tRNS_to_alpha
482    (Greg Roelofs, in "PNG: The Definitive Guide").  Deleted the 1.0.3a aliases.
483  Relocated start of 'extern "C"' block in png.h so it doesn't include pngconf.h
484  Revised calculation of num_blocks in pngmem.c to avoid a potentially
485    negative shift distance, whose results are undefined in the C language.
486  Added a check in pngset.c to prevent writing multiple tIME chunks.
487  Added a check in pngwrite.c to detect invalid small window_bits sizes.
488
489Version 1.0.3d [September 4, 1999]
490  Fixed type casting of igamma in pngrutil.c
491  Added new png_expand functions to scripts/pngdef.pas and pngos2.def
492  Added a demo read_user_transform_fn that examines the row filters in pngtest.c
493
494Version 1.0.4 [September 24, 1999]
495  Define PNG_ALWAYS_EXTERN in pngconf.h if __STDC__ is defined
496  Delete #define PNG_INTERNAL and include "png.h" from pngasmrd.h
497  Made several minor corrections to pngtest.c
498  Renamed the makefiles with longer but more user friendly extensions.
499  Copied the PNG copyright and license to a separate LICENSE file.
500  Revised documentation, png.h, and example.c to remove reference to
501    "viewing_gamma" which no longer appears in the PNG specification.
502  Revised pngvcrd.c to use MMX code for interlacing only on the final pass.
503  Updated pngvcrd.c to use the faster C filter algorithms from libpng-1.0.1a
504  Split makefile.win32vc into two versions, makefile.vcawin32 (uses MMX
505    assembler code) and makefile.vcwin32 (doesn't).
506  Added a CPU timing report to pngtest.c (enabled by defining PNGTEST_TIMING)
507  Added a copy of pngnow.png to the distribution.
508
509Version 1.0.4a [September 25, 1999]
510  Increase max_pixel_depth in pngrutil.c if a user transform needs it.
511  Changed several division operations to right-shifts in pngvcrd.c
512
513Version 1.0.4b [September 30, 1999]
514  Added parentheses in line 3732 of pngvcrd.c
515  Added a comment in makefile.linux warning about buggy -O3 in pgcc 2.95.1
516
517Version 1.0.4c [October 1, 1999]
518  Added a "png_check_version" function in png.c and pngtest.c that will generate
519    a helpful compiler error if an old png.h is found in the search path.
520  Changed type of png_user_transform_depth|channels from int to png_byte.
521
522Version 1.0.4d [October 6, 1999]
523  Changed 0.45 to 0.45455 in png_set_sRGB()
524  Removed unused PLTE entries from pngnow.png
525  Re-enabled some parts of pngvcrd.c (png_combine_row) that work properly.
526
527Version 1.0.4e [October 10, 1999]
528  Fixed sign error in pngvcrd.c (Greg Roelofs)
529  Replaced some instances of memcpy with simple assignments in pngvcrd (GR-P)
530
531Version 1.0.4f [October 15, 1999]
532  Surrounded example.c code with #if 0 .. #endif to prevent people from
533    inadvertently trying to compile it.
534  Changed png_get_header_version() from a function to a macro in png.h
535  Added type casting mostly in pngrtran.c and pngwtran.c
536  Removed some pointless "ptr = NULL" in pngmem.c
537  Added a "contrib" directory containing the source code from Greg's book.
538
539Version 1.0.5 [October 15, 1999]
540  Minor editing of the INSTALL and README files.
541
542Version 1.0.5a [October 23, 1999]
543  Added contrib/pngsuite and contrib/pngminus (Willem van Schaik)
544  Fixed a typo in the png_set_sRGB() function call in example.c (Jan Nijtmans)
545  Further optimization and bugfix of pngvcrd.c
546  Revised pngset.c so that it does not allocate or free memory in the user's
547    text_ptr structure.  Instead, it makes its own copy.
548  Created separate write_end_info_struct in pngtest.c for a more severe test.
549  Added code in pngwrite.c to free info_ptr->text[i].key to stop a memory leak.
550
551Version 1.0.5b [November 23, 1999]
552  Moved PNG_FLAG_HAVE_CHUNK_HEADER, PNG_FLAG_BACKGROUND_IS_GRAY and
553    PNG_FLAG_WROTE_tIME from flags to mode.
554  Added png_write_info_before_PLTE() function.
555  Fixed some typecasting in contrib/gregbook/*.c
556  Updated scripts/makevms.com and added makevms.com to contrib/gregbook
557    and contrib/pngminus (Martin Zinser)
558
559Version 1.0.5c [November 26, 1999]
560  Moved png_get_header_version from png.h to png.c, to accommodate ansi2knr.
561  Removed all global arrays (according to PNG_NO_GLOBAL_ARRAYS macro), to
562    accommodate making DLL's: Moved usr_png_ver from global variable to function
563    png_get_header_ver() in png.c.  Moved png_sig to png_sig_bytes in png.c and
564    eliminated use of png_sig in pngwutil.c.  Moved the various png_CHNK arrays
565    into pngtypes.h.  Eliminated use of global png_pass arrays.  Declared the
566    png_CHNK and png_pass arrays to be "const".  Made the global arrays
567    available to applications (although none are used in libpng itself) when
568    PNG_NO_GLOBAL_ARRAYS is not defined or when PNG_GLOBAL_ARRAYS is defined.
569  Removed some extraneous "-I" from contrib/pngminus/makefile.std
570  Changed the PNG_sRGB_INTENT macros in png.h to be consistent with PNG-1.2.
571  Change PNG_SRGB_INTENT to PNG_sRGB_INTENT in libpng.txt and libpng.3
572
573Version 1.0.5d [November 29, 1999]
574  Add type cast (png_const_charp) two places in png.c
575  Eliminated pngtypes.h; use macros instead to declare PNG_CHNK arrays.
576  Renamed "PNG_GLOBAL_ARRAYS" to "PNG_USE_GLOBAL_ARRAYS" and made available
577    to applications a macro "PNG_USE_LOCAL_ARRAYS".
578  comment out (with #ifdef) all the new declarations when
579    PNG_USE_GLOBAL_ARRAYS is defined.
580  Added PNG_EXPORT_VAR macro to accommodate making DLL's.
581
582Version 1.0.5e [November 30, 1999]
583  Added iCCP, iTXt, and sPLT support; added "lang" member to the png_text
584    structure; refactored the inflate/deflate support to make adding new chunks
585    with trailing compressed parts easier in the future, and added new functions
586    png_free_iCCP, png_free_pCAL, png_free_sPLT, png_free_text, png_get_iCCP,
587    png_get_spalettes, png_set_iCCP, png_set_spalettes (Eric S. Raymond).
588  NOTE: Applications that write text chunks MUST define png_text->lang
589    before calling png_set_text(). It must be set to NULL if you want to
590    write tEXt or zTXt chunks.  If you want your application to be able to
591    run with older versions of libpng, use
592
593      #ifdef PNG_iTXt_SUPPORTED
594         png_text[i].lang = NULL;
595      #endif
596
597  Changed png_get_oFFs() and png_set_oFFs() to use signed rather than unsigned
598    offsets (Eric S. Raymond).
599  Combined PNG_READ_cHNK_SUPPORTED and PNG_WRITE_cHNK_SUPPORTED macros into
600    PNG_cHNK_SUPPORTED and combined the three types of PNG_text_SUPPORTED
601    macros, leaving the separate macros also available.
602  Removed comments on #endifs at the end of many short, non-nested #if-blocks.
603
604Version 1.0.5f [December 6, 1999]
605  Changed makefile.solaris to issue a warning about potential problems when
606    the ucb "ld" is in the path ahead of the ccs "ld".
607  Removed "- [date]" from the "synopsis" line in libpng.3 and libpngpf.3.
608  Added sCAL chunk support (Eric S. Raymond).
609
610Version 1.0.5g [December 7, 1999]
611  Fixed "png_free_spallettes" typo in png.h
612  Added code to handle new chunks in pngpread.c
613  Moved PNG_CHNK string macro definitions outside of PNG_NO_EXTERN block
614  Added "translated_key" to png_text structure and png_write_iTXt().
615  Added code in pngwrite.c to work around a newly discovered zlib bug.
616
617Version 1.0.5h [December 10, 1999]
618  NOTE: regarding the note for version 1.0.5e, the following must also
619    be included in your code:
620        png_text[i].translated_key = NULL;
621  Unknown chunk handling is now supported.
622  Option to eliminate all floating point support was added.  Some new
623    fixed-point functions such as png_set_gAMA_fixed() were added.
624  Expanded tabs and removed trailing blanks in source files.
625
626Version 1.0.5i [December 13, 1999]
627  Added some type casts to silence compiler warnings.
628  Renamed "png_free_spalette" to "png_free_spalettes" for consistency.
629  Removed leading blanks from a #define in pngvcrd.c
630  Added some parameters to the new png_set_keep_unknown_chunks() function.
631  Added a test for up->location != 0 in the first instance of writing
632    unknown chunks in pngwrite.c
633  Changed "num" to "i" in png_free_spalettes() and png_free_unknowns() to
634    prevent recursion.
635  Added png_free_hIST() function.
636  Various patches to fix bugs in the sCAL and integer cHRM processing,
637    and to add some convenience macros for use with sCAL.
638
639Version 1.0.5j [December 21, 1999]
640  Changed "unit" parameter of png_write_sCAL from png_byte to int, to work
641    around buggy compilers.
642  Added new type "png_fixed_point" for integers that hold float*100000 values
643  Restored backward compatibility of tEXt/zTXt chunk processing:
644    Restored the first four members of png_text to the same order as v.1.0.5d.
645    Added members "lang_key" and "itxt_length" to png_text struct.  Set
646    text_length=0 when "text" contains iTXt data.  Use the "compression"
647    member to distinguish among tEXt/zTXt/iTXt types.  Added
648    PNG_ITXT_COMPRESSION_NONE (1) and PNG_ITXT_COMPRESSION_zTXt(2) macros.
649    The "Note" above, about backward incompatibility of libpng-1.0.5e, no
650    longer applies.
651  Fixed png_read|write_iTXt() to read|write parameters in the right order,
652    and to write the iTXt chunk after IDAT if it appears in the end_ptr.
653  Added pnggccrd.c, version of pngvcrd.c Intel assembler for gcc (Greg Roelofs)
654  Reversed the order of trying to write floating-point and fixed-point gAMA.
655
656Version 1.0.5k [December 27, 1999]
657  Added many parentheses, e.g., "if (a && b & c)" becomes "if (a && (b & c))"
658  Added png_handle_as_unknown() function (Glenn)
659  Added png_free_chunk_list() function and chunk_list and num_chunk_list members
660    of png_ptr.
661  Eliminated erroneous warnings about multiple sPLT chunks and sPLT-after-PLTE.
662  Fixed a libpng-1.0.5h bug in pngrutil.c that was issuing erroneous warnings
663    about ignoring incorrect gAMA with sRGB (gAMA was in fact not ignored)
664  Added png_free_tRNS(); png_set_tRNS() now malloc's its own trans array (ESR).
665  Define png_get_int_32 when oFFs chunk is supported as well as when pCAL is.
666  Changed type of proflen from png_int_32 to png_uint_32 in png_get_iCCP().
667
668Version 1.0.5l [January 1, 2000]
669  Added functions png_set_read_user_chunk_fn() and png_get_user_chunk_ptr()
670    for setting a callback function to handle unknown chunks and for
671    retrieving the associated user pointer (Glenn).
672
673Version 1.0.5m [January 7, 2000]
674  Added high-level functions png_read_png(), png_write_png(), png_free_pixels().
675
676Version 1.0.5n [January 9, 2000]
677  Added png_free_PLTE() function, and modified png_set_PLTE() to malloc its
678    own memory for info_ptr->palette.  This makes it safe for the calling
679    application to free its copy of the palette any time after it calls
680    png_set_PLTE().
681
682Version 1.0.5o [January 20, 2000]
683  Cosmetic changes only (removed some trailing blanks and TABs)
684
685Version 1.0.5p [January 31, 2000]
686  Renamed pngdll.mak to makefile.bd32
687  Cosmetic changes in pngtest.c
688
689Version 1.0.5q [February 5, 2000]
690  Relocated the makefile.solaris warning about PATH problems.
691  Fixed pngvcrd.c bug by pushing/popping registers in mmxsupport (Bruce Oberg)
692  Revised makefile.gcmmx
693  Added PNG_SETJMP_SUPPORTED, PNG_SETJMP_NOT_SUPPORTED, and PNG_ABORT() macros
694
695Version 1.0.5r [February 7, 2000]
696  Removed superfluous prototype for png_get_itxt from png.h
697  Fixed a bug in pngrtran.c that improperly expanded the background color.
698  Return *num_text=0 from png_get_text() when appropriate, and fix documentation
699    of png_get_text() in libpng.txt/libpng.3.
700
701Version 1.0.5s [February 18, 2000]
702  Added "png_jmp_env()" macro to pngconf.h, to help people migrate to the
703    new error handler that's planned for the next libpng release, and changed
704    example.c, pngtest.c, and contrib programs to use this macro.
705  Revised some of the DLL-export macros in pngconf.h (Greg Roelofs)
706  Fixed a bug in png_read_png() that caused it to fail to expand some images
707    that it should have expanded.
708  Fixed some mistakes in the unused and undocumented INCH_CONVERSIONS functions
709    in pngget.c
710  Changed the allocation of palette, history, and trans arrays back to
711    the version 1.0.5 method (linking instead of copying) which restores
712    backward compatibility with version 1.0.5.  Added some remarks about
713    that in example.c.  Added "free_me" member to info_ptr and png_ptr
714    and added png_free_data() function.
715  Updated makefile.linux and makefile.gccmmx to make directories conditionally.
716  Made cosmetic changes to pngasmrd.h
717  Added png_set_rows() and png_get_rows(), for use with png_read|write_png().
718  Modified png_read_png() to allocate info_ptr->row_pointers only if it
719    hasn't already been allocated.
720
721Version 1.0.5t [March 4, 2000]
722  Changed png_jmp_env() migration aiding macro to png_jmpbuf().
723  Fixed "interlace" typo (should be "interlaced") in contrib/gregbook/read2-x.c
724  Fixed bug with use of PNG_BEFORE_IHDR bit in png_ptr->mode, introduced when
725    PNG_FLAG_HAVE_CHUNK_HEADER was moved into png_ptr->mode in version 1.0.5b
726  Files in contrib/gregbook were revised to use png_jmpbuf() and to select
727    a 24-bit visual if one is available, and to allow abbreviated options.
728  Files in contrib/pngminus were revised to use the png_jmpbuf() macro.
729  Removed spaces in makefile.linux and makefile.gcmmx, introduced in 1.0.5s
730
731Version 1.0.5u [March 5, 2000]
732  Simplified the code that detects old png.h in png.c and pngtest.c
733  Renamed png_spalette (_p, _pp) to png_sPLT_t (_tp, _tpp)
734  Increased precision of rgb_to_gray calculations from 8 to 15 bits and
735    added png_set_rgb_to_gray_fixed() function.
736  Added makefile.bc32 (32-bit Borland C++, C mode)
737
738Version 1.0.5v [March 11, 2000]
739  Added some parentheses to the png_jmpbuf macro definition.
740  Updated references to the zlib home page, which has moved to freesoftware.com.
741  Corrected bugs in documentation regarding png_read_row() and png_write_row().
742  Updated documentation of png_rgb_to_gray calculations in libpng.3/libpng.txt.
743  Renamed makefile.borland,turboc3 back to makefile.bor,tc3 as in version 1.0.3,
744    revised borland makefiles; added makefile.ibmvac3 and makefile.gcc (Cosmin)
745
746Version 1.0.6 [March 20, 2000]
747  Minor revisions of makefile.bor, libpng.txt, and gregbook/rpng2-win.c
748  Added makefile.sggcc (SGI IRIX with gcc)
749
750Version 1.0.6d [April 7, 2000]
751  Changed sprintf() to strcpy() in png_write_sCAL_s() to work without STDIO
752  Added data_length parameter to png_decompress_chunk() function
753  Revised documentation to remove reference to abandoned png_free_chnk functions
754  Fixed an error in png_rgb_to_gray_fixed()
755  Revised example.c, usage of png_destroy_write_struct().
756  Renamed makefile.ibmvac3 to makefile.ibmc, added libpng.icc IBM project file
757  Added a check for info_ptr->free_me&PNG_FREE_TEXT when freeing text in png.c
758  Simplify png_sig_bytes() function to remove use of non-ISO-C strdup().
759
760Version 1.0.6e [April 9, 2000]
761  Added png_data_freer() function.
762  In the code that checks for over-length tRNS chunks, added check of
763    info_ptr->num_trans as well as png_ptr->num_trans (Matthias Benckmann)
764  Minor revisions of libpng.txt/libpng.3.
765  Check for existing data and free it if the free_me flag is set, in png_set_*()
766    and png_handle_*().
767  Only define PNG_WEIGHTED_FILTERS_SUPPORTED when PNG_FLOATING_POINT_SUPPORTED
768    is defined.
769  Changed several instances of PNG_NO_CONSOLE_ID to PNG_NO_STDIO in pngrutil.c
770    and mentioned the purposes of the two macros in libpng.txt/libpng.3.
771
772Version 1.0.6f [April 14, 2000]
773  Revised png_set_iCCP() and png_set_rows() to avoid prematurely freeing data.
774  Add checks in png_set_text() for NULL members of the input text structure.
775  Revised libpng.txt/libpng.3.
776  Removed superfluous prototype for png_set_iTXt from png.h
777  Removed "else" from pngread.c, after png_error(), and changed "0" to "length".
778  Changed several png_errors about malformed ancillary chunks to png_warnings.
779
780Version 1.0.6g [April 24, 2000]
781  Added png_pass-* arrays to pnggccrd.c when PNG_USE_LOCAL_ARRAYS is defined.
782  Relocated paragraph about png_set_background() in libpng.3/libpng.txt
783    and other revisions (Matthias Benckmann)
784  Relocated info_ptr->free_me, png_ptr->free_me, and other info_ptr and
785    png_ptr members to restore binary compatibility with libpng-1.0.5
786    (breaks compatibility with libpng-1.0.6).
787
788Version 1.0.6h [April 24, 2000]
789  Changed shared library so-number pattern from 2.x.y.z to xy.z (this builds
790    libpng.so.10 & libpng.so.10.6h instead of libpng.so.2 & libpng.so.2.1.0.6h)
791    This is a temporary change for test purposes.
792
793Version 1.0.6i [May 2, 2000]
794  Rearranged some members at the end of png_info and png_struct, to put
795    unknown_chunks_num and free_me within the original size of the png_structs
796    and free_me, png_read_user_fn, and png_free_fn within the original png_info,
797    because some old applications allocate the structs directly instead of
798    using png_create_*().
799  Added documentation of user memory functions in libpng.txt/libpng.3
800  Modified png_read_png so that it will use user_allocated row_pointers
801    if present, unless free_me directs that it be freed, and added description
802    of the use of png_set_rows() and png_get_rows() in libpng.txt/libpng.3.
803  Added PNG_LEGACY_SUPPORTED macro, and #ifdef out all new (since version
804    1.00) members of png_struct and png_info, to regain binary compatibility
805    when you define this macro.  Capabilities lost in this event
806    are user transforms (new in version 1.0.0),the user transform pointer
807    (new in version 1.0.2), rgb_to_gray (new in 1.0.5), iCCP, sCAL, sPLT,
808    the high-level interface, and unknown chunks support (all new in 1.0.6).
809    This was necessary because of old applications that allocate the structs
810    directly as authors were instructed to do in libpng-0.88 and earlier,
811    instead of using png_create_*().
812  Added modes PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT which
813    can be used to detect codes that directly allocate the structs, and
814    code to check these modes in png_read_init() and png_write_init() and
815    generate a libpng error if the modes aren't set and PNG_LEGACY_SUPPORTED
816    was not defined.
817  Added makefile.intel and updated makefile.watcom (Pawel Mrochen)
818
819Version 1.0.6j [May 3, 2000]
820  Overloaded png_read_init() and png_write_init() with macros that convert
821    calls to png_read_init_2() or png_write_init_2() that check the version
822    and structure sizes.
823
824Version 1.0.7beta11 [May 7, 2000]
825  Removed the new PNG_CREATED_READ_STRUCT and PNG_CREATED_WRITE_STRUCT modes
826    which are no longer used.
827  Eliminated the three new members of png_text when PNG_LEGACY_SUPPORTED is
828    defined or when neither PNG_READ_iTXt_SUPPORTED nor PNG_WRITE_iTXT_SUPPORTED
829    is defined.
830  Made PNG_NO_READ|WRITE_iTXt the default setting, to avoid memory
831    overrun when old applications fill the info_ptr->text structure directly.
832  Added PNGAPI macro, and added it to the definitions of all exported functions.
833  Relocated version macro definitions ahead of the includes of zlib.h and
834    pngconf.h in png.h.
835
836Version 1.0.7beta12 [May 12, 2000]
837  Revised pngset.c to avoid a problem with expanding the png_debug macro.
838  Deleted some extraneous defines from pngconf.h
839  Made PNG_NO_CONSOLE_IO the default condition when PNG_BUILD_DLL is defined.
840  Use MSC _RPTn debugging instead of fprintf if _MSC_VER is defined.
841  Added png_access_version_number() function.
842  Check for mask&PNG_FREE_CHNK (for TEXT, SCAL, PCAL) in png_free_data().
843  Expanded libpng.3/libpng.txt information about png_data_freer().
844
845Version 1.0.7beta14 [May 17, 2000] (beta13 was not published)
846  Changed pnggccrd.c and pngvcrd.c to handle bad adaptive filter types as
847    warnings instead of errors, as pngrutil.c does.
848  Set the PNG_INFO_IDAT valid flag in png_set_rows() so png_write_png()
849    will actually write IDATs.
850  Made the default PNG_USE_LOCAL_ARRAYS depend on PNG_DLL instead of WIN32.
851  Make png_free_data() ignore its final parameter except when freeing data
852    that can have multiple instances (text, sPLT, unknowns).
853  Fixed a new bug in png_set_rows().
854  Removed info_ptr->valid tests from png_free_data(), as in version 1.0.5.
855  Added png_set_invalid() function.
856  Fixed incorrect illustrations of png_destroy_write_struct() in example.c.
857
858Version 1.0.7beta15 [May 30, 2000]
859  Revised the deliberately erroneous Linux setjmp code in pngconf.h to produce
860    fewer error messages.
861  Rearranged checks for Z_OK to check the most likely path first in pngpread.c
862    and pngwutil.c.
863  Added checks in pngtest.c for png_create_*() returning NULL, and mentioned
864    in libpng.txt/libpng.3 the need for applications to check this.
865  Changed names of png_default_*() functions in pngtest to pngtest_*().
866  Changed return type of png_get_x|y_offset_*() from png_uint_32 to png_int_32.
867  Fixed some bugs in the unused PNG_INCH_CONVERSIONS functions in pngget.c
868  Set each pointer to NULL after freeing it in png_free_data().
869  Worked around a problem in pngconf.h; AIX's strings.h defines an "index"
870    macro that conflicts with libpng's png_color_16.index. (Dimitri
871    Papadapoulos)
872  Added "msvc" directory with MSVC++ project files (Simon-Pierre Cadieux).
873
874Version 1.0.7beta16 [June 4, 2000]
875  Revised the workaround of AIX string.h "index" bug.
876  Added a check for overlength PLTE chunk in pngrutil.c.
877  Added PNG_NO_POINTER_INDEXING macro to use array-indexing instead of pointer
878    indexing in pngrutil.c and pngwutil.c to accommodate a buggy compiler.
879  Added a warning in png_decompress_chunk() when it runs out of data, e.g.
880    when it tries to read an erroneous PhotoShop iCCP chunk.
881  Added PNG_USE_DLL macro.
882  Revised the copyright/disclaimer/license notice.
883  Added contrib/msvctest directory
884
885Version 1.0.7rc1 [June 9, 2000]
886  Corrected the definition of PNG_TRANSFORM_INVERT_ALPHA  (0x0400 not 0x0200)
887  Added contrib/visupng directory (Willem van Schaik)
888
889Version 1.0.7beta18 [June 23, 2000]
890  Revised PNGAPI definition, and pngvcrd.c to work with __GCC__
891    and do not redefine PNGAPI if it is passed in via a compiler directive.
892  Revised visupng/PngFile.c to remove returns from within the Try block.
893  Removed leading underscores from "_PNG_H" and "_PNG_SAVE_BSD_SOURCE" macros.
894  Updated contrib/visupng/cexcept.h to version 1.0.0.
895  Fixed bugs in pngwrite.c and pngwutil.c that prevented writing iCCP chunks.
896
897Version 1.0.7rc2 [June 28, 2000]
898  Updated license to include disclaimers required by UCITA.
899  Fixed "DJBPP" typo in pnggccrd.c introduced in beta18.
900
901Version 1.0.7 [July 1, 2000]
902  Revised the definition of "trans_values" in libpng.3/libpng.txt
903
904Version 1.0.8beta1 [July 8, 2000]
905  Added png_free(png_ptr, key) two places in pngpread.c to stop memory leaks.
906  Changed PNG_NO_STDIO to PNG_NO_CONSOLE_IO, several places in pngrutil.c and
907     pngwutil.c.
908  Changed PNG_EXPORT_VAR to use PNG_IMPEXP, in pngconf.h.
909  Removed unused "#include <assert.h>" from png.c
910  Added WindowsCE support.
911  Revised pnggccrd.c to work with gcc-2.95.2 and in the Cygwin environment.
912
913Version 1.0.8beta2 [July 10, 2000]
914  Added project files to the wince directory and made further revisions
915     of pngtest.c, pngrio.c, and pngwio.c in support of WindowsCE.
916
917Version 1.0.8beta3 [July 11, 2000]
918  Only set the PNG_FLAG_FREE_TRNS or PNG_FREE_TRNS flag in png_handle_tRNS()
919     for indexed-color input files to avoid potential double-freeing trans array
920     under some unusual conditions; problem was introduced in version 1.0.6f.
921  Further revisions to pngtest.c and files in the wince subdirectory.
922
923Version 1.0.8beta4 [July 14, 2000]
924  Added the files pngbar.png and pngbar.jpg to the distribution.
925  Added makefile.cygwin, and cygwin support in pngconf.h
926  Added PNG_NO_ZALLOC_ZERO macro (makes png_zalloc skip zeroing memory)
927
928Version 1.0.8rc1 [July 16, 2000]
929  Revised png_debug() macros and statements to eliminate compiler warnings.
930
931Version 1.0.8 [July 24, 2000]
932  Added png_flush() in pngwrite.c, after png_write_IEND().
933  Updated makefile.hpux to build a shared library.
934
935Version 1.0.9beta1 [November 10, 2000]
936  Fixed typo in scripts/makefile.hpux
937  Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser)
938  Fixed seqence-point bug in contrib/pngminus/png2pnm (Martin Zinser)
939  Changed "cdrom.com" in documentation to "libpng.org"
940  Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg).
941  Changed type of "params" from voidp to png_voidp in png_read|write_png().
942  Make sure PNGAPI and PNG_IMPEXP are defined in pngconf.h.
943  Revised the 3 instances of WRITEFILE in pngtest.c.
944  Relocated "msvc" and "wince" project subdirectories into "dll" subdirectory.
945  Updated png.rc in dll/msvc project
946  Revised makefile.dec to define and use LIBPATH and INCPATH
947  Increased size of global png_libpng_ver[] array from 12 to 18 chars.
948  Made global png_libpng_ver[], png_sig[] and png_pass_*[] arrays const.
949  Removed duplicate png_crc_finish() from png_handle_bKGD() function.
950  Added a warning when application calls png_read_update_info() multiple times.
951  Revised makefile.cygwin
952  Fixed bugs in iCCP support in pngrutil.c and pngwutil.c.
953  Replaced png_set_empty_plte_permitted() with png_permit_mng_features().
954
955Version 1.0.9beta2 [November 19, 2000]
956  Renamed the "dll" subdirectory "projects".
957  Added borland project files to "projects" subdirectory.
958  Set VS_FF_PRERELEASE and VS_FF_PATCHED flags in msvc/png.rc when appropriate.
959  Add error message in png_set_compression_buffer_size() when malloc fails.
960
961Version 1.0.9beta3 [November 23, 2000]
962  Revised PNG_LIBPNG_BUILD_TYPE macro in png.h, used in the msvc project.
963  Removed the png_flush() in pngwrite.c that crashes some applications
964    that don't set png_output_flush_fn.
965  Added makefile.macosx and makefile.aix to scripts directory.
966
967Version 1.0.9beta4 [December 1, 2000]
968  Cha…

Large files files are truncated, but you can click here to view the full file