Simple, fast implementation of LZW (Lempel–Ziv–Welch) data compression algorithm in C.
- Console encoder/decoder tools
- OS independent
- Could be used in embedded projects
- Works with raw code-stream
LZW features:
- Hardcoded dictionary size
- Variable code size
- Code search is performed by hash table and embedded in dictionary linked lists (encoder)
- No dynamic memory allocation
...Try this project, I hope it can make a banlance between caculation and bandwidth.
But first of all, you should know that the compression ratio of RLE is highly depend on the bitmap
file data, the ratio can larger than 1, only when the same color continuously repeats in one line,
it will gain a smaller compression ratio.