hastur icon indicating copy to clipboard operation
hastur copied to clipboard

lzw decompression

Open robinlinden opened this issue 11 months ago • 3 comments

This is needed both for GIF decoding and Content-Encoding: compress.

robinlinden avatar Mar 25 '24 00:03 robinlinden

It looks like there are enough variants of LZW that writing one implementation that can be used for compress'd data, GIFs, PDF, etc may be tricky.

Zer0-One avatar May 19 '24 04:05 Zer0-One

Didn't notice you'd assigned yourself this. I worked a bit on this back when I was setting up the GIF stuff, but I don't recall what state it's in.

My plan back then was that archive/lzw would just be plain lzw but with support for either being big-endian or little-endian, and then just make sure that there is a method for the GIF-encoder/decoder to be able to handle the control commands and e.g. reset the dictionary or whatever else needs doing.

robinlinden avatar May 19 '24 14:05 robinlinden

Oh, I didn't realize you already had some code written. I'll let you finish this one, and I'll do zstd in the meantime.

Zer0-One avatar May 19 '24 20:05 Zer0-One