You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log message
[trunk] fixed a bug preventing palette image with cdef to decode properly (fixes
issue 412 )
'opj_jp2_apply_cdef()' is shifted down below 'opj_jp2_apply_pclr():
jp2.c, opj_jp2_decode(), line 1420:
if(jp2->color.jp2_pclr) {
/* Part 1, I.5.3.4: Either both or none : */
if( !jp2->color.jp2_pclr->cmap)
opj_jp2_free_pclr(&(jp2->color));
else
opj_jp2_apply_pclr(p_image, &(jp2->color));
}
/* Apply the color space if needed */
if(jp2->color.jp2_cdef) {
opj_jp2_apply_cdef(p_image, &(jp2->color));
}
But here it is not shifted down:
jp2.c, opj_jp2_get_tile((), line 2708:
if(p_jp2->color.jp2_cdef) {
opj_jp2_apply_cdef(p_image, &(p_jp2->color));
}
if(p_jp2->color.jp2_pclr) {
/* Part 1, I.5.3.4: Either both or none : */
if( !p_jp2->color.jp2_pclr->cmap)
opj_jp2_free_pclr(&(p_jp2->color));
else
opj_jp2_apply_pclr(p_image, &(p_jp2->color));
}
winfried
Winfried,
Thanks for pointing this out. I could easily verify this adding -t 0 to opj_decompress
command line.
Waiting for other commits before doing anything.
Originally reported on Google Code with ID 428
Reported by szukw000 on 2014-11-13 17:15:48
The text was updated successfully, but these errors were encountered: