playing with dwt, lossy and lossless image compression
Quick start:
Encode the smpte.pnm PNM picture file into encoded.dwt
:
./encode smpte.pnm encoded.dwt
Decode encoded.dwt
back to the original picture file decoded.pnm
:
./decode encoded.dwt decoded.pnm
View the decoded.pnm
picture file in feh:
feh decoded.pnm
Allocate a maximum of 65536
bytes of space for compression. If necessary, the encoder will discard quality bytes to ensure the output stays below 65536
bytes:
./encode smpte.pnm encoded.dwt 65536