summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarti Maria <mmaria@abindustries.com>2022-01-24 12:07:27 +0100
committerMarti Maria <mmaria@abindustries.com>2022-01-24 12:07:27 +0100
commit5ed033f2d0b5c5ef5dcff2c66c65abb7f3039490 (patch)
tree02376f904d4a55ebc168cafa93146c5590104d3a /plugins
parent63dc7a4b166a9427086111d2f0544051ad2131e0 (diff)
downloadlcms2-5ed033f2d0b5c5ef5dcff2c66c65abb7f3039490.tar.gz
fix a previous glitch
CMYK should also be taken into account
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fast_float/src/fast_8_tethra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/fast_float/src/fast_8_tethra.c b/plugins/fast_float/src/fast_8_tethra.c
index 770123b..0136a02 100644
--- a/plugins/fast_float/src/fast_8_tethra.c
+++ b/plugins/fast_float/src/fast_8_tethra.c
@@ -364,8 +364,9 @@ cmsBool Optimize8BitRGBTransform(_cmsTransform2Fn* TransformFn,
// Only on RGB
if (T_COLORSPACE(*InputFormat) != PT_RGB) return FALSE;
- // This optimization only works on RGB8->RGB8
- if (T_COLORSPACE(*OutputFormat) != 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;
OriginalLut = *Lut;