Skip to content

Commit

Permalink
some CMYK profiles doers not work with plug-in optimization
Browse files Browse the repository at this point in the history
Disabling it until a better solution would be found.
  • Loading branch information
mm2 committed Dec 4, 2022
1 parent 5e48038 commit 328c226
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/fast_float/src/fast_8_tethra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 328c226

Please sign in to comment.