cjpeg -sample 4x2 -> color havoc in JPEGsnoop
JPEG decoder and detailed analysis
Brought to you by:
calvinhass
Hello,
I'm exploring the limits of chorma subsampling and it appears that JPEGsnoop does not handle it, files produced by:
cjpeg -optimize -quality 90 -sample 4x2 (that's eight Y' samples for one Cr Cb sample 4:1:0) really looks bad in JPEGsnoop.
The small attached sample file becomes pink, whereas it should have a white background (ok in other decoders).
Black text on white backroud, gets pink in JPEGsnoop.
There was a limitation in the code that limited chroma subsampling to a maximum of 2x2. The sample was 4x2, which would have triggered an exception in the debug build only.
Issue is now fixed in local code and undergoing testing before release.
Fixed in version 1.6.0