home *** CD-ROM | disk | FTP | other *** search
/ Amiga Computing 59 / ac059.adf / Utilities / AGAOnly / Gif.doc / Gif.doc
Text File  |  1993-02-05  |  4KB  |  71 lines

  1. How to use your GIF datatype. This version is 39.2.
  2.  
  3.  
  4. This program can ONLY be used under WB3 (or above, I presume).
  5.  
  6. The Gif.datatype file must be copied into the directory:
  7. SYS:Classes/Datatypes
  8. The GIF and GIF.info files can be copied into one of two places:
  9. SYS:Storage/Datatypes
  10. If you just want to have the datatype available. You will have to double-
  11. click on the GIF icon, or use AddDataType to actually use it. OR
  12. SYS:Devs/Datatypes
  13. If you want the datatype permanently installed. Doing this means that the
  14. datatype is automatically added to the system every time you boot. This
  15. means that the very first time you install it, you will have to double-click
  16. on it or reboot to use it.
  17.  
  18. Once the GIF datatype has been installed, any datatype aware program can be
  19. used to read GIF files as if they were IFF. For example, MultiView will
  20. display them, and you can use them as screen/window backdrops. MultiView
  21. will display the images on the workbench, and will remap the colours to
  22. whatever workbench you have selected. If you run a 4 colour WB, you will get
  23. a best effort in four colours. Actually, MultiView does quite a good job of
  24. this. Normally, you will want to use a 256 colour workbench, in which case,
  25. you will get all the colours. Due to the pen sharing in WB3, you can have
  26. several pictures open simultaneously, and still get a good colour match.
  27.  
  28. By selecting the appropriate tooltypes, MultiView can also display pictures
  29. on their own screen. Consult the MultiView documentation for more details.
  30.  
  31. The datatype was written to handle 87a and 89a type GIFs, although I haven't
  32. been able to test the 89a ones. It will only read the first image in a file
  33. containing multiple images, although I haven't been able to test this either.
  34. A datatype is a library, and so naturally is fully re-entrant. This version
  35. has also been tested on a 68000.
  36.  
  37. This version of the the datatype is a performance-enhanced version of the
  38. first release, 39.1. A number of enhancements were made:
  39.  
  40.   1) General cleaning up of the code, and removal of redundant bits.
  41.   2) Use of registerised parameters in selected places.
  42.   3) A lot of SetAPen commands were eliminated by using multiple RastPorts.
  43.   4) Some optimisation of the GIF decoder.
  44.   5) Asynchronous file I/O. This means that while the decoder is working on
  45.      one piece of data, the file system is prefetching the next piece. This
  46.      should make a significant difference on DMA devices.
  47.   6) Recompiled to pull the global data into the code space.
  48.   7) Added call to BestModeID. This means that if you display a picture with
  49.      the screen tooltype enabled, the datatype will choose the screen-mode
  50.      it thinks is best-suited to displaying this picture from the selection
  51.      available in the graphics database. The old version would always pick
  52.      a Hires (640 by 256/200) screen.
  53.  
  54. As with everything, you never get something for nothing. The speed
  55. enhancements in this version have been obtained at the expense of runtime
  56. memory usage, which is approximately 30K greater than version 39.1. I do
  57. not think this is onerous.
  58.  
  59. There are no restrictions on the distribution of this archive. The datatype
  60. copes successfully with the modest collection of GIFs I have access to, but
  61. testing has been somewhat less than rigorous. If you have any problems, I
  62. can be contacted on sgoddy@cix.compulink.co.uk or 100014,674 on CIS. There
  63. are unlikely to be any further improvements on this version, unless any bugs
  64. are reported, as the performance is as good as I can get it without major
  65. rewriting.
  66.  
  67. The Graphics Interchange Format (c) is the Copyright property of CompuServe
  68. Incorporated. GIF (sm) is a Service Mark property of Compuserve Incorporated.
  69.  
  70. Steve the G. 30/12/92.
  71.