Export to GitHub

openjpeg - issue #412

Palette image with cdef fails to decompress


Posted on Oct 10, 2014 by Quick Lion

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

Attachments

Comment #1

Posted on Oct 23, 2014 by Quick Lion

Patch verified against the test suite & ok

Attachments

Comment #2

Posted on Oct 30, 2014 by Happy Rabbit

This issue was closed by revision r2922.

Status: Fixed

Labels:
Type-Defect Priority-High