Attached file is corrupted. OpenJPEG should issue a warning, as Kakadu does.
OpenJPEG output :
[15:13:24 ~/dev/opj/git/openjpeg-build] ./bin/opj_decompress -i
../../../../data/opj/issue399/0.jp2 -o
../../../../data/opj/issue399/0.jp2_opj.png
===========================================
The extension of this file is incorrect.
FOUND .jp2. SHOULD BE .j2k or .jpc or .j2c
===========================================
[INFO] Start to read j2k main header (0).
[INFO] Main header has been correctly decoded.
[INFO] No decoded area parameters, set the decoded area to the whole image
[INFO] Header of tile 1 / 9 has been read.
[INFO] Tile 1/9 has been decoded.
[INFO] Image data has been updated with tile 1.
[INFO] Header of tile 2 / 9 has been read.
[INFO] Tile 2/9 has been decoded.
[INFO] Image data has been updated with tile 2.
[INFO] Header of tile 3 / 9 has been read.
[INFO] Tile 3/9 has been decoded.
[INFO] Image data has been updated with tile 3.
[INFO] Header of tile 4 / 9 has been read.
[INFO] Tile 4/9 has been decoded.
[INFO] Image data has been updated with tile 4.
[INFO] Header of tile 5 / 9 has been read.
[INFO] Tile 5/9 has been decoded.
[INFO] Image data has been updated with tile 5.
[INFO] Header of tile 6 / 9 has been read.
[INFO] Tile 6/9 has been decoded.
[INFO] Image data has been updated with tile 6.
[INFO] Header of tile 7 / 9 has been read.
[INFO] Tile 7/9 has been decoded.
[INFO] Image data has been updated with tile 7.
[INFO] Header of tile 8 / 9 has been read.
[INFO] Tile 8/9 has been decoded.
[INFO] Image data has been updated with tile 8.
[INFO] Header of tile 9 / 9 has been read.
[INFO] Tile 9/9 has been decoded.
[INFO] Image data has been updated with tile 9.
[INFO] Generated Outfile ../../../../data/opj/issue399/0.jp2_opj.png
Kakadu output:
[15:12:05 ~/dev/opj/git/openjpeg-build] kdu_expand -i
../../../../data/opj/issue399/0.jp2 -o
../../../../data/opj/issue399/0.jp2_kdu.tif
Kakadu Core Error:
Illegal inclusion tag tree encountered while decoding a packet header. This
problem can arise if empty packets are used (i.e., packets whose first header
bit is 0) and the value coded by the inclusion tag tree in a subsequent packet
is not exactly equal to the index of the quality layer in which each code-block
makes its first contribution. Such an error may arise from a
mis-interpretation of the standard. The problem may also occur as a result of
a corrupted code-stream. Try re-opening the image with the resilient mode
enabled.
-------
[15:12:15 ~/dev/opj/git/openjpeg-build] kdu_expand -i
../../../../data/opj/issue399/0.jp2 -o
../../../../data/opj/issue399/0.jp2_kdu.tif -resilient
Consumed 9 tile-part(s) from a total of 9 tile(s).
Consumed 35,107 codestream bytes (excluding any file format) = 5.178310
bits/pel.
Processed using the multi-threaded environment, with
4 parallel threads of execution
Original issue reported on code.google.com by antonin on 22 Oct 2014 at 1:19
Original issue reported on code.google.com by
antonin
on 22 Oct 2014 at 1:19Attachments: