home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / SOURCE / LIBPNG / README < prev    next >
Encoding:
Text File  |  1997-01-16  |  7.8 KB  |  169 lines  |  [TEXT/R*ch]

  1. readme.txt - for libpng 0.90
  2.  
  3. This is the fourth beta version of libpng 1.0.  The changes from
  4. libpng-0.89 include bug fixes, a C++ wrapper for png.h, some
  5. additions to the API, as well as internal changes to the library.
  6.  
  7. **
  8. Note that some of the changes to the png_info structure render
  9. this version of the library binary incompatible with libpng-0.89
  10. if you are using a shared library.  Re-compiling the application
  11. should be enough to remove this problem.
  12. **
  13.  
  14. The additions to 0.89 include the ability to read from a PNG stream
  15. which has had some (or all) of the signature bytes read by the
  16. calling application.  This also allows the reading of embedded PNG
  17. streams that do not have the PNG file signature.  As well, it is
  18. now possible to set the library action on the detection of chunk
  19. CRC errors.  It is possible to set different actions based on
  20. whether the error occurred in a critical or an ancillary chunk.
  21.  
  22. The callback functions for the error/warning messages have changed
  23. since the 0.88 release because their implementation was broken,
  24. and it was thought best to change the API itself (which was only
  25. introduced in libpng-0.88 itself) to alert the user to the change,
  26. rather than mislead the user into thinking their application was
  27. OK after re-compiling.  This means that calls to png_set_message_fn()
  28. no longer exist, because the previously suggested method of calling
  29. them before png_read_init() or png_write_init() is now ineffective.
  30.  
  31. The preferred method of setting the error and warning callbacks
  32. has been incorporated into the allocation of the png_struct and
  33. info_struct itself, which allow them to be safely used during the
  34. initialization of the structure, as well as to keep the size of
  35. the png_struct internal to the library, rather than at compile time
  36. of the application.  This will hopefully remove any problems with
  37. dynamically linked libraries, and should be considered the preferred
  38. method of creating these structures, although the previous
  39. initialization API is still available for compatibility.  See libpng.txt
  40. for more information on the new API.
  41.  
  42. The changes made to the library, and bugs fixed are based on discussions
  43. on the PNG implementation mailing list <png-implement@dworking.wustl.edu>
  44. and not on material submitted to Guy.
  45.  
  46. For a detailed description on using libpng, read libpng.txt.  For
  47. usage information and restrictions (what little they are) on libpng,
  48. see png.h.  For a description on using zlib (the compression library
  49. used by libpng) and zlib's restrictions, see zlib.h
  50.  
  51. I have included a general makefile, as well as several machine and compiler
  52. specific ones, but you may have to modify one for your own needs.
  53.  
  54. You should use zlib 1.0.4 or later to run this, but it MAY work with
  55. versions as old as zlib 0.95.  Even so, there are bugs in older zlib
  56. versions which can cause the output of invalid compression streams for
  57. some images.  You will definitely need zlib 1.0.4 or later if you are
  58. taking advantage of the MS-DOS "far" structure allocation for the small
  59. and medium memory models.  You should also note that zlib is a
  60. compression library that is useful for more things than just PNG files.
  61. You can use zlib as a drop-in replacement for fread() and fwrite() if
  62. you are so inclined.
  63.  
  64. zlib should be available at the same place that libpng is.
  65. If not, it should be at ftp.uu.net in /graphics/png
  66. Eventually, it will be at ftp.uu.net in /pub/archiving/zip/zlib
  67.  
  68. You may also want a copy of the PNG specification.  It is available
  69. as an Internet Draft, and RFC, and a W3C Recommendation.  Failing
  70. these resources you can try ftp.uu.net in the /graphics/png directory.
  71.  
  72. This code is currently being archived at ftp.uu.net in the
  73. /graphics/png directory, and on CompuServe, Lib 20 (PNG SUPPORT)
  74. at GO GRAPHSUP.  If you can't find it in any of those places,
  75. e-mail me, and I'll help you find it.
  76.  
  77. If you have any code changes, requests, problems, etc., please e-mail
  78. them to me.  Also, I'd appreciate any make files or project files,
  79. and any modifications you needed to make to get libpng to compile,
  80. along with a #define variable to tell what compiler/system you are on.
  81. If you needed to add transformations to libpng, or wish libpng would
  82. provide the image in a different way, drop me a note (and code, if
  83. possible), so I can consider supporting the transformation.
  84. Finally, if you get any warning messages when compiling libpng
  85. (note: not zlib), and they are easy to fix, I'd appreciate the
  86. fix.  Please mention "libpng" somewhere in the subject line.  Thanks.
  87.  
  88. This release was created and will be supported by myself (of course
  89. based in a large way on Guy's earlier work), and the PNG group.
  90.  
  91. adilger@enel.ucalgary.ca
  92. png-implement@dworkin.wustl.edu
  93.  
  94. You can reach Guy, the original libpng author, at (internet preferred):
  95.  
  96. internet: schalnat@group42.com
  97. CompuServe: 75501,1625
  98.  
  99. Please do not send general questions about PNG.  Send them to
  100. the address in the specification.  At the same time, please do
  101. not send libpng questions to that address, send them to me.  I'll
  102. get them in the end anyway.  If you have a question about something
  103. in the PNG specification that is related to using libpng, send it
  104. to me.  Send me any questions that start with "I was using libpng,
  105. and ...".  If in doubt, send questions to me.  I'll bounce them
  106. to others, if necessary.
  107.  
  108. Please do not send suggestions on how to change PNG.  We have
  109. been discussing PNG for a couple years now, and it is official and
  110. finished.  If you have suggestions for libpng, however, I'll
  111. gladly listen.  Even if your suggestion is not used for version
  112. 1.0, it may be used later.
  113.  
  114. Files in this distribution:
  115.  
  116.       CHANGES.txt   =>  Description of changes between libpng versions
  117.       README        =>  This file
  118.       TODO          =>  Things not implemented in the current library
  119.       ansi2knr.c    =>  Converts files to K&R style function declarations
  120.       build.bat     =>  MS-DOS batch file for Borland compiler
  121.       descrip.mms   =>  VMS project file
  122.       example.c     =>  Example code for using libpng functions
  123.       libpng.txt    =>  Description of libpng and its functions
  124.       makefile      =>  Defualt makefile
  125.       makefile.aco  =>  ACORN makefile
  126.       makefile.ama  =>  Amiga makefile
  127.       makefile.atr  =>  Atari makefile
  128.       makefile.bor  =>  Borland makefile
  129.       makefile.dj2  =>  DJGPP 2 makefile
  130.       makefile.elf  =>  Unix ELF makefile
  131.       makefile.knr  =>  Makefile which calls ansi2knr to convert files
  132.       makefile.mip  =>  MIPS makefile
  133.       makefile.msc  =>  Microsoft C makefile
  134.       makefile.std  =>  Standard Unix makefile
  135.       makefile.tc   =>  Turbo C makefile
  136.       makevms.com   =>  VMS make program
  137.       png.c         =>  Basic interface functions common to library
  138.       png.h         =>  Library function and interface declarations
  139.       pngconf.h     =>  System specific library configuration
  140.       pngerror.c    =>  Error/warning message I/O functions
  141.       pngmem.c      =>  Memory handling functions
  142.       pngpread.c    =>  Progressive reading functions
  143.       pngrcb.c      =>  Read callback (data handling) low-level functions
  144.       pngread.c     =>  Read data/helper high-level functions
  145.       pngrio.c      =>  Lowest-level data read I/O functions
  146.       pngrtran.c    =>  Read data transformation functions
  147.       pngrutil.c    =>  Read data utility functions
  148.       pngtest.c     =>  Library test program
  149.       pngtest.png   =>  Library test sample image
  150.       pngtrans.c    =>  Common data transformation functions
  151.       pngwio.c      =>  Lowest-level write I/O functions
  152.       pngwrite.c    =>  High-level write functions
  153.       pngwtran.c    =>  Write data transformations
  154.       pngwutil.c    =>  Write utility functions
  155.  
  156. Good luck, and happy coding.
  157.  
  158. -Andreas Eric Dilger
  159.  University of Calgary
  160.  Internet: adilger@enel.ucalgary.ca
  161.  Web: www-mddsp.enel.ucalgary.ca/People/adilger/
  162.  
  163. -Guy Eric Schalnat
  164.  Group 42, Inc.
  165.  Internet: schalnat@group42.com
  166.  CompuServe: 75501,1625
  167.  Web: www.group42.com
  168.  
  169.