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