Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any free or commercal jpeg decode which is really fast [closed]

I am using c++, libjpeg for decoding jpeg file. I find it is not fast enough, is there any method to make it faster by setting some compile parameter? or are there any other lib can open jpeg files more faster?

now it takes about 750ms to open a 4368 * 2912 4m jpeg image. I wish this can be reduced to 150ms. Many thanks!

Added: IJL seems faster than libjpeg:)

like image 603
user25749 Avatar asked Dec 10 '22 19:12

user25749


1 Answers

The fastest way is not to decode it at all. Usually you can use a low-res preview first; that requires only the low frequencies. For a 546 x 289 pixel preview, you in fact only need the (0,0) (DC) component.

like image 197
MSalters Avatar answered Dec 28 '22 06:12

MSalters