summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarti Maria <mmaria@abindustries.com>2022-01-24 12:00:22 +0100
committerMarti Maria <mmaria@abindustries.com>2022-01-24 12:00:22 +0100
commitfac0411e85ab1c84b71c06dd2328553eef0618d0 (patch)
tree4e917dba682b12e6211a8170c22137aba48cdb9d /plugins
parentab5029d60d5dc41a414e4acc472d024e3449d36a (diff)
downloadlcms2-fac0411e85ab1c84b71c06dd2328553eef0618d0.tar.gz
8 bit optimization only works on RGB8->RGB8
Thanks to Krita folks for discovering the issue
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fast_float/src/fast_8_tethra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/fast_float/src/fast_8_tethra.c b/plugins/fast_float/src/fast_8_tethra.c
index 3e29dd1..770123b 100644
--- a/plugins/fast_float/src/fast_8_tethra.c
+++ b/plugins/fast_float/src/fast_8_tethra.c
@@ -364,8 +364,8 @@ cmsBool Optimize8BitRGBTransform(_cmsTransform2Fn* TransformFn,
// Only on RGB
if (T_COLORSPACE(*InputFormat) != PT_RGB) return FALSE;
- // Lab8 is not suitable due to the encoding
- if (T_COLORSPACE(*OutputFormat) == PT_Lab) return FALSE;
+ // This optimization only works on RGB8->RGB8
+ if (T_COLORSPACE(*OutputFormat) != PT_RGB) return FALSE;
OriginalLut = *Lut;