[trunk] enhance the support of sYCC into opj_decompress application (thanks winfried).
This commit is contained in:
parent
07ae149955
commit
bf0fa4089f
|
@ -851,6 +851,13 @@ int main(int argc, char **argv)
|
||||||
color_sycc_to_rgb(image); /* FIXME */
|
color_sycc_to_rgb(image); /* FIXME */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( image->color_space != OPJ_CLRSPC_SYCC
|
||||||
|
&& image->numcomps == 3 && image->comps[0].dx == image->comps[0].dy
|
||||||
|
&& image->comps[1].dx != 1 )
|
||||||
|
image->color_space = OPJ_CLRSPC_SYCC;
|
||||||
|
else if (image->numcomps <= 2)
|
||||||
|
image->color_space = OPJ_CLRSPC_GRAY;
|
||||||
|
|
||||||
if(image->icc_profile_buf) {
|
if(image->icc_profile_buf) {
|
||||||
#if defined(OPJ_HAVE_LIBLCMS1) || defined(OPJ_HAVE_LIBLCMS2)
|
#if defined(OPJ_HAVE_LIBLCMS1) || defined(OPJ_HAVE_LIBLCMS2)
|
||||||
color_apply_icc_profile(image); /* FIXME */
|
color_apply_icc_profile(image); /* FIXME */
|
||||||
|
|
Loading…
Reference in New Issue