mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 722831 - qcms_transform_precacheLUT_float only works with RGB data, so only call it in that case. Grayscale images would fail. r=bgirard
This commit is contained in:
parent
ae73002280
commit
a036896107
@ -1209,7 +1209,11 @@ qcms_transform* qcms_transform_create(
|
||||
precache = true;
|
||||
}
|
||||
|
||||
if (qcms_supports_iccv4 && (in->A2B0 || out->B2A0 || in->mAB || out->mAB)) {
|
||||
// This precache assumes RGB_SIGNATURE (fails on GRAY_SIGNATURE, for instance)
|
||||
if (qcms_supports_iccv4 &&
|
||||
(in_type == QCMS_DATA_RGB_8 || in_type == QCMS_DATA_RGBA_8) &&
|
||||
(in->A2B0 || out->B2A0 || in->mAB || out->mAB))
|
||||
{
|
||||
// Precache the transformation to a CLUT 33x33x33 in size.
|
||||
// 33 is used by many profiles and works well in pratice.
|
||||
// This evenly divides 256 into blocks of 8x8x8.
|
||||
|
Loading…
Reference in New Issue
Block a user