jpeg 2000 decoding performance

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Post Reply
thibaud
Posts: 274
Joined: Sat Dec 02, 2006 12:41 am
Contact:

jpeg 2000 decoding performance

Post by thibaud »

I know that some comparison can be unfair.
I don't often deal with jpeg2000 files but I recently had to work with some old book scans (appears not uncommon for librarians to rely on this formats when scanning their collection).
and much to my surprise, it appeared that xnview/xnviewMP took a very very very long time to render the thumbnails.

so I did some test, and here are the results:
one folder with 500 .jp2 files (each file 3065x4676 - 24 bit per pixel - average file size 390KB)
  • Xnview: 50 min to render the 500 thumbnails.
  • acdsee: 5 sec to render the 500 thumbnails.
That's about 600 times slower !
at first, given the huge difference I though acdsee was probably only reading some embedded thumbnail or something, but no, it does reads and display the fullsize in a snap.
may be worth finding out what jp2 lib is acdsee using... or perhaps consider finding a more efficient decoder for xnview.
(btw I had to copy the jpeg 2000 plugin from xnconvert to be able to open the files in xnviewMp. before that it did display the thumbnail but would not open the file (right click > open was grayed out)

Anyway, it looks like xnview won't be up to the task as I have about 9000 jp2 files to go through :)
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpeg 2000 decoding performance

Post by xnview »

Yes, acdsee seems to use a better (commercial) library, i use OpenJpeg or Jasper
Pierre.
thibaud
Posts: 274
Joined: Sat Dec 02, 2006 12:41 am
Contact:

Re: jpeg 2000 decoding performance

Post by thibaud »

yeah, this one http://j2k-codec.com/ claims to be 10x faster than jasper or openjpeg.
not free though...
Last edited by thibaud on Mon Apr 29, 2013 9:05 am, edited 2 times in total.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpeg 2000 decoding performance

Post by xnview »

thibaud wrote:yeah, this one http://j2k-codec.com/ claims to be 10x faster than jasper or openjpeg.
not free though, but relatively cheap...
yes right
Pierre.
thibaud
Posts: 274
Joined: Sat Dec 02, 2006 12:41 am
Contact:

Re: jpeg 2000 decoding performance

Post by thibaud »

also looks like there's some open source gpu based (cuda only) codec.
http://apps.man.poznan.pl/trac/jpeg2k/wiki
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpeg 2000 decoding performance

Post by xnview »

thibaud wrote:also looks like there's some open source gpu based (cuda only) codec.
http://apps.man.poznan.pl/trac/jpeg2k/wiki
yes but with cuda
Pierre.
jgutierrez
Posts: 53
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Re: jpeg 2000 decoding performance

Post by jgutierrez »

Maybe J2K-Codec guys will be interested in a free license to XnViewMP as an exchange of a credit in the about dialog?
http://newsgroup.xnview.com/viewtopic.php?f=60&t=27931
Delphisa
Posts: 1
Joined: Mon Mar 12, 2018 3:22 pm
Contact:

Re: jpeg 2000 decoding performance

Post by Delphisa »

Hello

I had difficulties with handling of .jp2 files downloaded from French IGN Geoportail "Remonter le temps".

I made some trails with XnviewMP for Linux, on a PC with Ubuntu 16.04, 4 Go RAM. For small files (less than 6 or 7 Mo) it's OK . A little bit slow, but that's not a problem for me. But for large files : software freeze (or maybe several minutes to give a response).

I found a intermediate solution with an earlier version of Xnview (I have version 2.20), with pluggin LuraWave JPEG-2000 (lwf\jp2.dll), on a Windows XP machine with 2 Go RAM. But there I have "lack of memory" problem when processing big files, 15 Mo or more.

Eventually, The better results I have are with my Linux Ubuntu PC (4 Go RAM), with Xnview V2.20 (for Windows) running under Wine (and the LuraWave JPEG-2000 pluggin). Yes Xnview is well supported by Wine! (I have Wine V3.0).

Would it be possible to get a pluggin LuraWave JPEG-2000 for XnviewMP in Linux (without Wine) ?
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpeg 2000 decoding performance

Post by xnview »

Delphisa wrote: Would it be possible to get a pluggin LuraWave JPEG-2000 for XnviewMP in Linux (without Wine) ?
Now the lurawave JPEG-2000 is no more free :(
Pierre.
Post Reply