2003.03.26 12:02 "LZW and 4bit tiffs", by John Carter

2003.03.26 23:30 "Re: LZW and 4bit tiffs", by Michael Still

I'm having great fun here trying to write a LZW decompression function.

There is one case in decompression (I think it was) where a code can be used which doesn't exist yet. Have you googled yet? There's a really good Dr Dobbs article from ages ago about this.

I use the following code for LZW decompression:

http://www.stillhq.com/extracted/pandaedit/lzw.cpp
http://www.stillhq.com/extracted/pandaedit/lzw.h

(the rest of the code in that directory uses this if you need calling examples)

Note that it's in C++, but once you've ditched the use of STL templates for vectors etc that shouldn't be too bad. A couple of things to note:

Cheers,
Mikal

Michael Still (mikal@stillhq.com) | Stage 1: Steal underpants
http://www.stillhq.com            | Stage 2: ????
UTC + 11                          | Stage 3: Profit