summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-12-04 17:04:59 +0100
committerMarti Maria <marti.maria@littlecms.com>2022-12-04 17:04:59 +0100
commit328c226af654adb321cedaa5cbe470eebd10e021 (patch)
tree929f7d5efe0d1485de890041f1da04ac1c5c0aa4
parent5e480386ea755a3a3059f9ff32d0d69e9bb7ae1f (diff)
downloadlcms2-328c226af654adb321cedaa5cbe470eebd10e021.tar.gz
some CMYK profiles doers not work with plug-in optimization
Disabling it until a better solution would be found.
-rw-r--r--plugins/fast_float/src/fast_8_tethra.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/fast_float/src/fast_8_tethra.c b/plugins/fast_float/src/fast_8_tethra.c
index 84c36a0..a843813 100644
--- a/plugins/fast_float/src/fast_8_tethra.c
+++ b/plugins/fast_float/src/fast_8_tethra.c
@@ -364,9 +364,8 @@ cmsBool Optimize8BitRGBTransform(_cmsTransform2Fn* TransformFn,
// Only on RGB
if (T_COLORSPACE(*InputFormat) != PT_RGB) return FALSE;
- // This optimization only works on RGB8->RGB8 or RGB8->CMYK8
- if (T_COLORSPACE(*OutputFormat) != PT_RGB &&
- T_COLORSPACE(*OutputFormat) != PT_CMYK) return FALSE;
+ // This optimization only works on RGB8->RGB8
+ if (T_COLORSPACE(*OutputFormat) != PT_RGB) return FALSE;
OriginalLut = *Lut;
@@ -428,7 +427,7 @@ cmsBool Optimize8BitRGBTransform(_cmsTransform2Fn* TransformFn,
if (TransReverse[t] == NULL) goto Error;
}
- // Now inset the reversed curves at the begin of transform
+ // Now insert the reversed curves at the begin of transform
LutPlusCurves = cmsPipelineDup(OriginalLut);
if (LutPlusCurves == NULL) goto Error;