Compressor based on Rice coding
This is the implementation of Rice coding. You can find information about this algorithm here.
File Compression
Compile program
make
Compress file
./rice input_file
Decompress file
./rice -d input_file
Flags
8, 16, 32 or 64 bit compression flags (by default it is 16 bit)
-i8, -i16, -i32 or -i64
Custom output file (by default it is input_file.rice)
-o output_file
Set variable k to new value n. For 8, 16, 32 and 64 bit compression default value for k is 4, 8, 16 and 32 respectively.
-k=n
Make int signed or unsigned
-sign=true
-sign=false