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 »

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: 34695
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by xnview »

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 »

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 261 times
jgutierrez
Posts: 50
Joined: Tue Nov 15, 2005 9:25 am
Contact:

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by jgutierrez »

Hello Pierre,

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

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

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by xnview »

thanks, i'll check
Pierre.
User avatar
dma_k
Posts: 85
Joined: Tue Apr 14, 2009 8:50 am

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by dma_k »

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: 5659
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Arithmetic decoding disabled in libjpeg-turbo

Post by XnTriq »

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