Arithmetic decoding disabled in libjpeg-turbo

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Arithmetic decoding disabled in libjpeg-turbo

Post by jgutierrez » Mon Aug 13, 2012 7:58 am

It seems that XnViewMP is not able to decoded JPEG files that use arithmetic encoding as opposite of Huffman. Since it is using libjpeg-turbo, it should be as easy as compiling with the define D_ARITH_CODING_SUPPORTED.

Is there any chance it would be added in future builds?

Thanks.

User avatar
xnview
Author of XnView
Posts: 31881
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by xnview » Mon Aug 13, 2012 9:18 am

ok, do you have such jpeg?
Pierre.

jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by jgutierrez » Mon Aug 13, 2012 10:04 am

Sure!

Find attached some requested samples, nevertheless, you can always use jpegtran -aritmetic in order to convert a regular Huffman JPEG to Aritmetic, or jpegtran -optimize to do the oposite.

For your information, GIMP is able to view and edit arithmetic JPEG images with no problems too.
arithmetic_jpeg.zip
Arithmetic JPEG samples
(187.49 KiB) Downloaded 255 times

jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by jgutierrez » Tue Aug 14, 2012 10:21 am

Hello Pierre,

Were the samples I provided enought for you?
Do you want some more?

Thanks.

User avatar
xnview
Author of XnView
Posts: 31881
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by xnview » Thu Aug 16, 2012 2:57 pm

thanks, i'll check
Pierre.


User avatar
dma_k
Posts: 80
Joined: Tue Apr 14, 2009 8:50 am

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by dma_k » Tue Dec 06, 2016 9:56 pm

I've just read two other related topics (Cant view lossless jpg and JPEG v9.1 now supports 12-bit color and lossless compression) and I wonder if JPEG arithmetic decoding is implemented in XnView Classic? As for XnView 2.35, it seems not to support arithmetic-encoded images.

User avatar
XnTriq
Moderator & Librarian
Posts: 5456
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by XnTriq » Tue Dec 06, 2016 11:00 pm

dma_k wrote:[…] and I wonder if JPEG arithmetic decoding is implemented in XnView Classic? As for XnView 2.35, it seems not to support arithmetic-encoded images.
I just did a quick test with an arithmetic coded JPEG saved by Jpegcrop (2015.12 / IJG JPEG 9b). XnView MP v0.83 is able to open the file, but Classic v2.39 can't.

Post Reply