diff options
author | Lynx3d <151539+Lynx3d@users.noreply.github.com> | 2021-09-21 04:37:10 +0300 |
---|---|---|
committer | Lynx3d <151539+Lynx3d@users.noreply.github.com> | 2021-09-21 09:49:56 +0300 |
commit | edab0f90cfba3812c82693f54fbe629e9462ff97 (patch) | |
tree | 28c96dece7c9d2d0cf7ce3fcc5fcca054a3ba76a /plugins | |
parent | 6837564bc4148815784487c60518aef747ec897a (diff) |
Fix copy alpha for float CMYK and L*a*b*
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fast_float/src/fast_float_cmyk.c | 5 | ||||
-rw-r--r-- | plugins/fast_float/src/fast_float_lab.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/fast_float/src/fast_float_cmyk.c b/plugins/fast_float/src/fast_float_cmyk.c index a0a23de..0b68fad 100644 --- a/plugins/fast_float/src/fast_float_cmyk.c +++ b/plugins/fast_float/src/fast_float_cmyk.c @@ -304,8 +304,9 @@ void FloatCMYKCLUTEval(struct _cmstransform_struct *CMMcargo, } if (ain) - *out[TotalOut] = *ain; - + *(cmsFloat32Number*)(out[TotalOut]) = *(cmsFloat32Number*)ain; + ain += SourceIncrements[4]; + out[TotalOut] += DestIncrements[TotalOut]; } strideIn += Stride->BytesPerLineIn; diff --git a/plugins/fast_float/src/fast_float_lab.c b/plugins/fast_float/src/fast_float_lab.c index 2f31d7d..376e93d 100644 --- a/plugins/fast_float/src/fast_float_lab.c +++ b/plugins/fast_float/src/fast_float_lab.c @@ -317,7 +317,8 @@ void LabCLUTEval(struct _cmstransform_struct* CMMcargo, if (xin) { - *(cmsFloat32Number*) (out[TotalOut]) = *xin; + *(cmsFloat32Number*) (out[TotalOut]) = *(cmsFloat32Number*)xin; + xin += SourceIncrements[3]; out[TotalOut] += DestIncrements[TotalOut]; } } |