update retinexadd with master 4d6833c
This commit is contained in:
@@ -907,6 +907,7 @@ void ColorManagementParams::setDefaults()
|
||||
dcpIlluminant = 0;
|
||||
working = "ProPhoto";
|
||||
output = "RT_sRGB";
|
||||
outputIntent = RI_RELATIVE;
|
||||
gamma = "default";
|
||||
gampos = 2.22;
|
||||
slpos = 4.5;
|
||||
@@ -2606,6 +2607,27 @@ int ProcParams::save (Glib::ustring fname, Glib::ustring fname2, bool fnameAbsol
|
||||
keyFile.set_string ("Color Management", "OutputProfile", icm.output);
|
||||
}
|
||||
|
||||
if (!pedited || pedited->icm.outputIntent) {
|
||||
Glib::ustring intent;
|
||||
switch (icm.outputIntent) {
|
||||
default:
|
||||
case RI_PERCEPTUAL:
|
||||
intent = "Perceptual";
|
||||
break;
|
||||
case RI_RELATIVE:
|
||||
intent = "Relative";
|
||||
break;
|
||||
case RI_SATURATION:
|
||||
intent = "Saturation";
|
||||
break;
|
||||
case RI_ABSOLUTE:
|
||||
intent = "Absolute";
|
||||
break;
|
||||
}
|
||||
|
||||
keyFile.set_string ("Color Management", "OutputProfileIntent", intent);
|
||||
}
|
||||
|
||||
if (!pedited || pedited->icm.gamma) {
|
||||
keyFile.set_string ("Color Management", "Gammafree", icm.gamma);
|
||||
}
|
||||
@@ -5821,6 +5843,23 @@ int ProcParams::load (Glib::ustring fname, ParamsEdited* pedited)
|
||||
}
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("Color Management", "OutputProfileIntent")) {
|
||||
Glib::ustring intent = keyFile.get_string ("Color Management", "OutputProfileIntent");
|
||||
if (intent == "Perceptual") {
|
||||
icm.outputIntent = RI_PERCEPTUAL;
|
||||
} else if (intent == "Relative") {
|
||||
icm.outputIntent = RI_RELATIVE;
|
||||
} else if (intent == "Saturation") {
|
||||
icm.outputIntent = RI_SATURATION;
|
||||
} else if (intent == "Absolute") {
|
||||
icm.outputIntent = RI_ABSOLUTE;
|
||||
}
|
||||
|
||||
if (pedited) {
|
||||
pedited->icm.outputIntent = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (keyFile.has_key ("Color Management", "Gammafree")) {
|
||||
icm.gamma = keyFile.get_string ("Color Management", "Gammafree");
|
||||
|
||||
|
Reference in New Issue
Block a user