home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / graphics / 9606 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!po.CWRU.Edu!mbc
  2. From: mbc@po.CWRU.Edu (Michael B. Comet)
  3. Newsgroups: comp.graphics
  4. Subject: Re: 2 color GIF decoding error!
  5. Date: 10 Sep 1992 21:36:45 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 20
  8. Message-ID: <18of5dINNau@usenet.INS.CWRU.Edu>
  9. References: <18mam4INNqqd@usenet.INS.CWRU.Edu>
  10. Reply-To: mbc@po.CWRU.Edu (Michael B. Comet)
  11. NNTP-Posting-Host: slc5.ins.cwru.edu
  12.  
  13.  
  14.  
  15.     Okay the problem is solved.  For others out there who wish to
  16. know the solution:
  17.  
  18.     2 color gifs are "special" in that just before the unpack image
  19. routine gets called, the initial bit size should be 3.  Normally a 256
  20. color image = 8 bits gets called to the compression routine as 8 and is
  21. then later incremented to 9.  4 goos to 5 and so on.
  22.  
  23.     HOWEVER, a 1 bitplane image NEEDS to end up at 3.   Thus i
  24. simply added 3 assembly lines to take any bitplane equal to 1 and to
  25. increment it to 2 just before unpack image is called.  Then unpack image
  26. works fine, and i don't get garbage.
  27.  
  28.     Thanks to Jason Andreas!
  29.  
  30.                Michael Comet
  31.                mbc@po.CWRU.Edu
  32.  
  33.