开发者

Fast on-the-fly image decompression

开发者 https://www.devze.com 2023-02-23 04:05 出处:网络
I need to work with a good amount of 4-bit images. However, it\'s 开发者_StackOverflow社区got to be for J2ME devices, which means great lack of memory. So, could you propose a compression algorithm th

I need to work with a good amount of 4-bit images. However, it's 开发者_StackOverflow社区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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消