bhuvneshgarg / openjpeg

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

openjpeg decompress issue #326

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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!!!

Original issue reported on code.google.com by xiaochua...@gmail.com on 3 Apr 2014 at 8:10

Attachments:

GoogleCodeExporter commented 9 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

Original comment by szukw...@arcor.de on 3 Apr 2014 at 7:35

Attachments:

GoogleCodeExporter commented 9 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

Original comment by xiaochua...@gmail.com on 4 Apr 2014 at 2:23

GoogleCodeExporter commented 9 years ago
There is no official code change until now. I have sent a patch, see Issue 324.

winfried

Original comment by szukw...@arcor.de on 4 Apr 2014 at 3:27

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 28 Apr 2014 at 7:52