Don't simulate color space after correction
Change-Id: Ied0918ffa2be5f9382e693f442b142b3e068e735
This commit is contained in:
parent
544b09523b
commit
cd554e36a8
@ -148,9 +148,6 @@ void Daltonizer::update() {
|
|||||||
// set to identity, errp, errd, errt ([0] for simulation only)
|
// set to identity, errp, errd, errt ([0] for simulation only)
|
||||||
mat4 correction(0);
|
mat4 correction(0);
|
||||||
|
|
||||||
// control: simulation post-correction (used for debugging):
|
|
||||||
// set to identity or lms2lmsp, lms2lmsd, lms2lmst
|
|
||||||
mat4 control;
|
|
||||||
switch (mType) {
|
switch (mType) {
|
||||||
case protanopia:
|
case protanopia:
|
||||||
case protanomaly:
|
case protanomaly:
|
||||||
@ -172,12 +169,8 @@ void Daltonizer::update() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true) {
|
mColorTransform = lms2rgb *
|
||||||
control = simulation;
|
(simulation * rgb2lms + correction * (rgb2lms - simulation * rgb2lms));
|
||||||
}
|
|
||||||
|
|
||||||
mColorTransform = lms2rgb * control *
|
|
||||||
(simulation * rgb2lms + correction * (rgb2lms - simulation * rgb2lms));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* namespace android */
|
} /* namespace android */
|
||||||
|
Loading…
Reference in New Issue
Block a user