summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2010-02-15 13:34:21 +0100
committerMarti Maria <info@littlecms.com>2010-02-15 13:34:21 +0100
commit65f916397634f78f9c78c6bf27158a07e4a168b6 (patch)
tree68b30e62766c5c26b80df3b3c8f1f0517a625ea5 /src
parentd594fd08a05ed927883090ad4cbc91e83c215b97 (diff)
downloadlcms2-65f916397634f78f9c78c6bf27158a07e4a168b6.tar.gz
Fixed gray optimization and some typos in the API reference.
Diffstat (limited to 'src')
-rw-r--r--src/cmsopt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmsopt.c b/src/cmsopt.c
index 76b044d..2906088 100644
--- a/src/cmsopt.c
+++ b/src/cmsopt.c
@@ -671,7 +671,7 @@ cmsBool OptimizeByResampling(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt3
// -----------------------------------------------------------------------------------------------------------------------------------------------
// Fixes the gamma balancing of transform. This is described in my paper "Prelinearization Stages on
// Color-Management Application-Specific Integrated Circuits (ASICs)" presented at NIP24. It only works
-// for gray and RGB transforms. See the paper for more details
+// for RGB transforms. See the paper for more details
// -----------------------------------------------------------------------------------------------------------------------------------------------
@@ -897,9 +897,9 @@ cmsBool OptimizeByComputingLinearization(cmsPipeline** Lut, cmsUInt32Number Inte
// This is a loosy optimization! does not apply in floating-point cases
if (_cmsFormatterIsFloat(*InputFormat) || _cmsFormatterIsFloat(*OutputFormat)) return FALSE;
- // Only on RGB/Gray
- if ((T_COLORSPACE(*InputFormat) != PT_GRAY) && (T_COLORSPACE(*InputFormat) != PT_RGB)) return FALSE;
- if ((T_COLORSPACE(*OutputFormat) != PT_GRAY) && (T_COLORSPACE(*OutputFormat) != PT_RGB)) return FALSE;
+ // Only on RGB
+ if (T_COLORSPACE(*InputFormat) != PT_RGB) return FALSE;
+ if (T_COLORSPACE(*OutputFormat) != PT_RGB) return FALSE;
OriginalLut = *Lut;