add Vibrance - still some bugs...

This commit is contained in:
Desmis
2017-07-17 09:17:21 +02:00
parent c6ed2daf65
commit 4ec4dfe1ca
7 changed files with 1299 additions and 5 deletions

View File

@@ -2390,6 +2390,13 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
HHutili = true;
}
std::string t_curvskinref = "3000A0B0C1000D1000E@";
std::string t_none = "0A@";
if (skinstr[sp].c_str() != t_curvskinref && skinstr[sp].c_str() != t_none) {
localskutili = true;
}
// printf ("HHstr=%s\n", hhstr[sp].c_str());
params.locallab.getCurves (locRETgainCurve, locRETgainCurverab, loclhCurve, lochhCurve, LHutili, HHutili);
CurveFactory::curveLocal (locallutili, params.locallab.llcurve, lllocalcurve, sca); //scale == 1 ? 1 : 16);
@@ -2810,6 +2817,14 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
localcutili = false;
localskutili = false;
std::string t_curvskinref2 = "3000A0B0C1000D1000E@";
std::string t_none2 = "0A@";
// printf("skstr=%s \n", skinstr[sp].c_str());
if (skinstr[sp].c_str() != t_curvskinref2 && skinstr[sp].c_str() != t_none2) {
localskutili = true;
}
CurveFactory::curveLocal (locallutili, params.locallab.llcurve, lllocalcurve, sca); //scale == 1 ? 1 : 16);
CurveFactory::curveCCLocal (localcutili, params.locallab.cccurve, cclocalcurve, sca); //scale == 1 ? 1 : 16);
CurveFactory::curveskLocal (localskutili, params.locallab.skintonescurve, sklocalcurve, sca); //scale == 1 ? 1 : 16);