From 328c226af654adb321cedaa5cbe470eebd10e021 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Sun, 4 Dec 2022 17:04:59 +0100 Subject: [PATCH] some CMYK profiles doers not work with plug-in optimization Disabling it until a better solution would be found. --- plugins/fast_float/src/fast_8_tethra.c | 7 +++---- 1 file 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 84c36a0d6..a843813ce 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;