Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!netnews.upenn.edu!eecae!cps3xx!cpsvax!dulimart From: dulimart@cpsvax.cps.msu.edu (Hansye S. Dulimarta) Newsgroups: comp.graphics Subject: Re: GIF decoding info Message-ID: <3726@cps3xx.UUCP> Date: 10 Jul 89 15:11:42 GMT References: <3718@cps3xx.UUCP> <2716@blake.acs.washington.edu> Sender: usenet@cps3xx.UUCP Reply-To: dulimart@cpsvax.UUCP (Hansye S. Dulimarta) Distribution: comp Organization: Michigan State University, Computer Science Department Lines: 27 In article <2716@blake.acs.washington.edu> wiml@blake.acs.washington.edu (William Lewis) writes: >In article <3718@cps3xx.UUCP> dulimart@cpsvax.UUCP (Hansye S. Dulimarta) writes: >>My problem is : I don't understand what I'm supposed to do when the >>code is read ? Should I re-initilize the string table as well, like when we > Obviously once you get the EOI code you're done with that image. It doesn't >really matter what you do with your string table at this point: if this >was the last image in the file (the usual case) you'll be deallocating the >whole thing anyway, and not using it any more. If there's another image, >it will probably start with a CC code (the standard suggests this..) and if >it doesn't, it should. Every image in a .gif file starts anew with respect >to the LZW tables. > > --- phelliax Thank for your reply, Unfortunately, I got the when the image is not complete and at about the end of the _first_ raster block (there are at least four raster blocks, I knwo this because I develop my program in "debugging" mode by printing out information I got from the file). You said that when I get the code I'm done with the image. DO you mean that I'm done with the current raster block or done with the entire image ? I also follow the documentation which says that whenever the string table is filled up I have to increase the "compression size" by one bit. When I do this, is it necessary to recalculate the and code ?