JonBCode / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Palette image with cdef fails to decompress #412

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Image with no cdef decodes properly
./bin/opj_decompress -i palette.jp2 -o palette.bmp 

[INFO] Start to read j2k main header (913).
[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 / 1 has been read.
[INFO] Tile 1/1 has been decoded.
[INFO] Image data has been updated with tile 1.

[INFO] Stream reached its end !
[INFO] Generated Outfile 0.bmp

With cdef, not decoded :
./bin/opj_decompress -i palette-cdef.jp2 -o palette-cdef.bmp 

[INFO] Start to read j2k main header (941).
[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 / 1 has been read.
[INFO] Tile 1/1 has been decoded.
[INFO] Image data has been updated with tile 1.

[ERROR] Invalid component index 1 (>= 1).
ERROR -> opj_decompress: failed to decode image!

cdef box was inserted between the 2 to rotate channels
Patch is ready but waiting for other commits as it would conflict.
Kakadu decodes this properly

Original issue reported on code.google.com by m.darb...@gmail.com on 10 Oct 2014 at 10:47

Attachments:

GoogleCodeExporter commented 9 years ago
Patch verified against the test suite & ok

Original comment by m.darb...@gmail.com on 23 Oct 2014 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2922.

Original comment by antonin on 30 Oct 2014 at 6:26