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:
(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:
- If you're in the US this is all covered by a Patent which hasn't yet expired (later this year it does)
- My code is covered by the GNU GPL
Michael Still (email@example.com) | Stage 1: Steal underpants
http://www.stillhq.com | Stage 2: ????
UTC + 11 | Stage 3: Profit