I am using Rice-Golumb encoding for image compression. Compression and decompression working perfectly on 12-bit greyscale image. The pixels are saved in a short int type array. But when compressing it is saved in a long int type buffer. My question is If the input is short int type then can it be saved in a short int type buffer? Because it will increase the compression ratio.
If possible, Any idea how to do it?
Tahnk you.