Page 1 of 1
Arithmetic decoding disabled in libjpeg-turbo
Posted: Mon Aug 13, 2012 7:58 am
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.
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Mon Aug 13, 2012 9:18 am
by xnview
ok, do you have such jpeg?
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Mon Aug 13, 2012 10:04 am
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.
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Tue Aug 14, 2012 10:21 am
by jgutierrez
Hello Pierre,
Were the samples I provided enought for you?
Do you want some more?
Thanks.
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Thu Aug 16, 2012 2:57 pm
by xnview
thanks, i'll check
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Sun Dec 30, 2012 4:15 am
by XnTriq
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Tue Dec 06, 2016 9:56 pm
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.
Re: Arithmetic decoding disabled in libjpeg-turbo
Posted: Tue Dec 06, 2016 11:00 pm
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.