mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
Fix Alpha + testcase images
This commit is contained in:
parent
e4e386babf
commit
c52ffa2227
BIN
autotests/read/psd/cmyka-16bits.png
Normal file
BIN
autotests/read/psd/cmyka-16bits.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 KiB |
BIN
autotests/read/psd/cmyka-16bits.psd
Normal file
BIN
autotests/read/psd/cmyka-16bits.psd
Normal file
Binary file not shown.
BIN
autotests/read/psd/cmyka-8bits.png
Normal file
BIN
autotests/read/psd/cmyka-8bits.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
BIN
autotests/read/psd/cmyka-8bits.psd
Normal file
BIN
autotests/read/psd/cmyka-8bits.psd
Normal file
Binary file not shown.
@ -667,9 +667,10 @@ inline void cmykToRgb(uchar *target, qint32 targetChannels, const char *source,
|
||||
*(t + pt + 1) = T(std::min(max - (M * (1 - K) + K) * max + 0.5, max));
|
||||
*(t + pt + 2) = T(std::min(max - (Y * (1 - K) + K) * max + 0.5, max));
|
||||
if (targetChannels == 4) {
|
||||
*(t + pt + 3) = std::numeric_limits<T>::max();
|
||||
if (sourceChannels == 5)
|
||||
*(t + pt + 3) -= *(s + ps + 4);
|
||||
*(t + pt + 3) = *(s + ps + 4);
|
||||
else
|
||||
*(t + pt + 3) = std::numeric_limits<T>::max();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user