mirror of https://github.com/GNOME/gimp.git
modules/cdisplay_lcms.c modules/cdisplay_proof.c
2007-10-04 Sven Neumann <sven@gimp.org> * modules/cdisplay_lcms.c * modules/cdisplay_proof.c * modules/colorsel_cmyk_lcms.c * plug-ins/common/lcms.c * plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION. svn path=/trunk/; revision=23724
This commit is contained in:
parent
e599d3901a
commit
b4f812491f
|
@ -1,3 +1,12 @@
|
|||
2007-10-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* modules/cdisplay_lcms.c
|
||||
* modules/cdisplay_proof.c
|
||||
* modules/colorsel_cmyk_lcms.c
|
||||
* plug-ins/common/lcms.c
|
||||
* plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION
|
||||
instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION.
|
||||
|
||||
2007-10-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/jpeg/jpeg-load.c (jpeg_load_cmyk_transform): use the
|
||||
|
|
|
@ -337,7 +337,7 @@ cdisplay_lcms_changed (GimpColorDisplay *display)
|
|||
if (config->display_intent ==
|
||||
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC)
|
||||
{
|
||||
flags |= cmsFLAGS_WHITEBLACKCOMPENSATION;
|
||||
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
}
|
||||
|
||||
if (proof_profile)
|
||||
|
|
|
@ -467,15 +467,18 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
|||
|
||||
if (proofProfile)
|
||||
{
|
||||
DWORD flags = cmsFLAGS_SOFTPROOFING;
|
||||
|
||||
if (proof->bpc)
|
||||
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
|
||||
proof->transform = cmsCreateProofingTransform (rgbProfile,
|
||||
TYPE_RGB_8,
|
||||
rgbProfile, TYPE_RGB_8,
|
||||
proofProfile,
|
||||
proof->intent,
|
||||
proof->intent,
|
||||
cmsFLAGS_SOFTPROOFING |
|
||||
(proof->bpc ?
|
||||
cmsFLAGS_WHITEBLACKCOMPENSATION : 0));
|
||||
flags);
|
||||
|
||||
cmsCloseProfile (proofProfile);
|
||||
}
|
||||
|
|
|
@ -416,7 +416,7 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
|||
if (config->display_intent ==
|
||||
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC)
|
||||
{
|
||||
flags |= cmsFLAGS_WHITEBLACKCOMPENSATION;
|
||||
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
}
|
||||
|
||||
module->rgb2cmyk = cmsCreateTransform (rgb_profile, TYPE_RGB_DBL,
|
||||
|
|
|
@ -961,7 +961,7 @@ lcms_image_transform_rgb (gint32 image,
|
|||
dest_profile, format,
|
||||
intent,
|
||||
bpc ?
|
||||
cmsFLAGS_WHITEBLACKCOMPENSATION : 0);
|
||||
cmsFLAGS_BLACKPOINTCOMPENSATION : 0);
|
||||
|
||||
last_format = format;
|
||||
}
|
||||
|
@ -1002,7 +1002,7 @@ lcms_image_transform_indexed (gint32 image,
|
|||
transform = cmsCreateTransform (src_profile, TYPE_RGB_8,
|
||||
dest_profile, TYPE_RGB_8,
|
||||
intent,
|
||||
bpc ? cmsFLAGS_WHITEBLACKCOMPENSATION : 0);
|
||||
bpc ? cmsFLAGS_BLACKPOINTCOMPENSATION : 0);
|
||||
|
||||
if (transform)
|
||||
{
|
||||
|
|
|
@ -959,7 +959,7 @@ jpeg_load_cmyk_transform (guint8 *profile_data,
|
|||
if (config->display_intent ==
|
||||
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC)
|
||||
{
|
||||
flags |= cmsFLAGS_WHITEBLACKCOMPENSATION;
|
||||
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
}
|
||||
|
||||
transform = cmsCreateTransform (cmyk_profile, TYPE_CMYK_8_REV,
|
||||
|
|
Loading…
Reference in New Issue