[trunk] Import patch from sumatrapdf team. Start using new color space when found.

Update issue 225
This commit is contained in:
Mathieu Malaterre 2014-02-26 11:24:38 +00:00
parent 51e3764519
commit 4a7ba87d99
1 changed files with 2 additions and 0 deletions

View File

@ -1294,6 +1294,8 @@ OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2,
p_image->color_space = OPJ_CLRSPC_GRAY;
else if (jp2->enumcs == 18)
p_image->color_space = OPJ_CLRSPC_SYCC;
else if (jp2->enumcs == 24)
p_image->color_space = OPJ_CLRSPC_EYCC;
else
p_image->color_space = OPJ_CLRSPC_UNKNOWN;