Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fast on-the-fly image decompression

I need to work with a good amount of 4-bit images. However, it's got to be for J2ME devices, which means great lack of memory. So, could you propose a compression algorithm that could decompress on the fly relatively fast and still have some reasonable degree of compression?

like image 462
Albus Dumbledore Avatar asked Dec 02 '25 04:12

Albus Dumbledore


2 Answers

It depends on the nature of your images. Simple run length encoding (RLE) might be enough and it's trivial to implement and very fast.

like image 65
Antti Huima Avatar answered Dec 03 '25 19:12

Antti Huima


For most practical uses, I would use an existing software compression package rather than implementing one myself.

Try imagemagick covnert, it is fast, flexible and open source.

like image 20
Adam Matan Avatar answered Dec 03 '25 17:12

Adam Matan