diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2011-12-28 14:37:49 -0800 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2011-12-28 17:32:07 -0800 |
commit | 4e681a04de79896406946d5487efe0a37eb6d2b2 (patch) | |
tree | adc30cdb9ee986326f97f14f3e0c46683e709fb8 /gs/base/gxiscale.c | |
parent | d4625c5b5a262501fefabe68f2bbea000dcecb52 (diff) | |
download | ghostpdl-4e681a04de79896406946d5487efe0a37eb6d2b2.tar.gz |
Proof and DeviceLink ICC profile support
This enables the use of the device link and/or a proofing profile. When
present, the transformations are as follows
src profile -> PCS -> proof -> PCS -> proof -> PCS -> device profile -> device link
where PCS is the profile connection space. The CMM obviously would
normally mash these together in a single transform. This is what
occurs in lcms.
This implies that the output color space for the device link
profile must match the color model for the real target device and
that the input color space for the device link profile must match
the color space specified for the device profile.
Still need to do some additional testing and update documentation.
Diffstat (limited to 'gs/base/gxiscale.c')
-rw-r--r-- | gs/base/gxiscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/base/gxiscale.c b/gs/base/gxiscale.c index 185300dd7..ff225ae4e 100644 --- a/gs/base/gxiscale.c +++ b/gs/base/gxiscale.c @@ -103,7 +103,7 @@ gs_image_class_0_interpolate(gx_image_enum * penum) profile output size. For example sep device with CMYK profile should not go through the fast method */ code = dev_proc(penum->dev, get_profile)(penum->dev, &dev_profile); - num_des_comps = dev_profile->device_profile[0]->num_comps; + num_des_comps = gsicc_get_device_profile_comps(dev_profile); if (num_des_comps != penum->dev->color_info.num_components) { use_icc = false; } @@ -830,7 +830,7 @@ image_render_interpolate_icc(gx_image_enum * penum, const byte * buffer, int num_bytes_decode = pss->params.BitsPerComponentIn / 8; code = dev_proc(dev, get_profile)(dev, &dev_profile); - spp_cm = dev_profile->device_profile[0]->num_comps; + spp_cm = gsicc_get_device_profile_comps(dev_profile); if (penum->matrix.yy > 0) dy = 1; else |