快速的方式来解除code JPEG图像图像、快速、方式、code

2023-09-07 16:36:58 作者:◣ネ申秘网混Ζī◥

我需要取消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涡轮增压:的http://的libjpeg -turbo.virtualgl.org/

Try Libjpeg Turbo: http://libjpeg-turbo.virtualgl.org/