问题描述
我需要取消code(解压到的位图)pretty小(约1200 * 1200)JPEG。问题是我需要尽快做。我已经试过的libjpeg,这是相当缓慢的。我也曾尝试BitmapFactory.de codeByteArray的 - 这是一个快一点,但仍然不够快。什么是另一种选择?
本机(C ++库)是多少preferred。
I need to decode (unpack into bitmap) pretty small (about 1200 * 1200) JPEG. The problem is I need to do it quickly. I have tried libjpeg, and it's quite slow. I have also tried BitmapFactory.decodeByteArray - it's a bit faster, but still not fast enough. What are another options?A native (C++) library is much preferred.
P.S。我的JPEG文件在内存中直接创建。
P.S. My JPEGs are created directly in memory.
P.P.S。我不知道是怎么来的libjpeg比BitmapFactory.de codeByteArray的慢。
P.P.S. I wonder how come libjpeg is slower than BitmapFactory.decodeByteArray.
推荐答案
尝试的libjpeg涡轮增压:
Try Libjpeg Turbo: http://libjpeg-turbo.virtualgl.org/
这篇关于快速的方式来解除code JPEG图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!