A C++ tool that compresses 8-bit grayscale RAW images using dictionary-based compression methods.
make
./lz_codec [options]| Flag | Description |
|---|---|
-c |
Compress the input file |
-d |
Decompress the input file |
-i <file> |
Input file name |
-o <file> |
Output file name |
-w <width> |
Image width in pixels (required only for compression, must be |
-m |
Use predictive model (pixel difference) |
-a |
Use adaptive block scanning mode (16x16 blocks) |
Compress with model and adaptive scanning:
./lz_codec -c -i input.raw -o compressed.bin -w 512 -m -aDecompress:
./lz_codec -d -i compressed.bin -o output.raw