Blame | Last modification | View Log | RSS feed
Libpng 1.0.5 - October 15, 1999This is a public release of libpng, intended for use in production codes.Changes since the last public release (1.0.3):Added check for PNG_READ_INTERLACE_SUPPORTED in pngread.c; issue a warningif an attempt is made to read an interlaced image when it's not supported.Added check if png_ptr->trans is defined before free'ing it in pngread.cModified the Y2K statement to include versions back to version 0.71Fixed a bug in the check for valid IHDR bit_depth/color_types in pngrutil.cModified makefile.wat (added -zp8 flag, ".symbolic", changed some comments)Replaced leading blanks with tab characters in makefile.huxChanged "dworkin.wustl.edu" to "ccrc.wustl.edu" in various documents.Changed (float)red and (float)green to (double)red, (double)greenin png_set_rgb_to_gray() to avoid "promotion" problems in AIX.Fixed a bug in pngconf.h that omitted <stdio.h> when PNG_DEBUG==0 (K Bracey).Reformatted libpng.3 and libpngpf.3 with proper fonts (script by J. vanZandt).Updated documentation to refer to the PNG-1.2 specification.Removed ansi2knr.c and left pointers to the latest source for ansi2knr.cin makefile.knr, INSTALL, and README (L. Peter Deutsch)Fixed bugs in calculation of the length of rowbytes when adding alphachannels to 16-bit images, in pngrtran.c (Chris Nokleberg)Added function png_set_user_transform_info() to store user_transform_ptr,user_depth, and user_channels into the png_struct, and a functionpng_get_user_transform_ptr() to retrieve the pointer (Chris Nokleberg)Added function png_set_empty_plte_permitted() to make libpng useablein MNG applications.Corrected the typedef for png_free_ptr in png.h (Jesse Jones).Correct gamma with srgb is 45455 instead of 45000 in pngrutil.c andpngset.c, to be consistent with PNG-1.2, and allow variance of 500before complaining.Added assembler code contributed by Intel in file pngvcrd.c and modifiedmakefile.w32 to use it (Nirav Chhatrapati, INTEL Corporation, Gilles Vollant)Changed "ln -s -f" to "ln -f -s" in the makefiles to make Solaris happy.Added makefile.beo for BEOS on X86, contributed by Sander Stok.Replaced 2147483647L several places with PNG_MAX_UINT macro, defined in png.hChanged leading blanks to tabs in all makefiles.Made alternate versions of png_set_expand() in pngrtran.c, namelypng_set_gray_1_2_4_to_8, png_set_palette_to_rgb, and png_set_tRNS_to_alpha(Greg Roelofs, in "PNG: The Definitive Guide").Relocated start of 'extern "C"' block in png.h so it doesn't include pngconf.hRevised calculation of num_blocks in pngmem.c to avoid a potentiallynegative shift distance, whose results are undefined in the C language.Added a check in pngset.c to prevent writing multiple tIME chunks.Added a check in pngwrite.c to detect invalid small window_bits sizes.Added a demo read_user_transform_fn that examines the row filters in pngtest.cDefine PNG_ALWAYS_EXTERN in pngconf.h if __STDC__ is definedMade several minor corrections to pngtest.cChanged "hptr += 16L" to "hptr = hptr + 16L" in pngmem.c for Turbo 3.0Renamed the makefiles with longer but more user friendly extensions.Define PNG_USE_PNGVCRD in makefile.vcawin32, to get MMX assembler code.Copied the PNG copyright and license to a separate LICENSE file.Revised documentation, png.h, and example.c to remove reference to"viewing_gamma" which no longer appears in the PNG specification.Added a CPU timing report to pngtest.c (enabled by defining PNGTEST_TIMING)Increase max_pixel_depth in pngrutil.c if a user transform needs it.Added a comment in makefile.linux warning about buggy -O3 in pgcc 2.95.1Added a "png_check_version" function in png.c and pngtest.c that will generatea helpful compiler error if an old png.h is found in the search path.Added a copy of pngnow.png to the distribution.Surrounded example.c code with #if 0 .. #endif to prevent people frominadvertently trying to compile it.Added type casting mostly in pngrtran.c and pngwtran.cRemoved some pointless "ptr = NULL" in pngmem.cAdded a "contrib" directory containing the source code from Greg's book.Send comments/corrections/commendations topng-implement@ccrc.wustl.edu or to randeg@alum.rpi.eduGlenn R-P