快速即时图像解压缩
我需要处理大量 4 位图像。然而,它必须是针对J2ME设备的,这意味着内存严重不足。那么,您能否提出一种压缩算法,可以相对快速地即时解压缩,并且仍然具有一定程度的合理压缩?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于图像的性质。简单的游程编码(RLE)可能就足够了,而且实现起来很简单并且速度非常快。
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.
对于大多数实际用途,我会使用现有的软件压缩包,而不是自己实现一个。
尝试 imagemagick covnert,它快速、灵活且开源。
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.