uclouvain / openjpeg

Official repository of the OpenJPEG project
Other
955 stars 455 forks source link

openjpeg decompress issue #326

Closed gcode-importer closed 8 years ago

gcode-importer commented 10 years ago

Originally reported on Google Code with ID 326

I have a jp2 image,  it is fail to decompress to bmp when I run opj_decompress exe.

I found that p_colr_header_size == 35 not 7 in opj_jp2_read_colr function. 

If I ignore p_colr_header_size == 35, then jp2->enumcs get value 14, it is a CIELab
color space. Then I get a bmp, but the color is not the same to adobe acrobat. 

Can openjpeg support CIELab color space in the future?

Please help me, thanks a lot!!!

Reported by xiaochuan.liu19880512 on 2014-04-03 08:10:58


gcode-importer commented 10 years ago
I have changed some code in openjpeg-2.x-trunk-r2833. With a reduction
factor of 2 I get the attached image.

Is this the image what you wanted?

winfried

Reported by szukw000 on 2014-04-03 19:35:08


gcode-importer commented 10 years ago
great, that's correct image.

I got the r2833 sources from svn, there are many changes, could you tell me which code
change works?

thanks

Reported by xiaochuan.liu19880512 on 2014-04-04 02:23:23

gcode-importer commented 10 years ago
There is no official code change until now. I have sent a patch, see Issue 324.

winfried

Reported by szukw000 on 2014-04-04 03:27:02

gcode-importer commented 10 years ago

Reported by malaterre on 2014-04-28 07:52:10

mayeut commented 8 years ago

Fixed by PR #559