raw ca correction: first try to avoid colour shift, #4777
This commit is contained in:
@@ -2561,6 +2561,7 @@ RAWParams::RAWParams() :
|
||||
ff_AutoClipControl(false),
|
||||
ff_clipControl(0),
|
||||
ca_autocorrect(false),
|
||||
ca_avoidcolourshift(true),
|
||||
caautoiterations(2),
|
||||
cared(0.0),
|
||||
cablue(0.0),
|
||||
@@ -2586,6 +2587,7 @@ bool RAWParams::operator ==(const RAWParams& other) const
|
||||
&& ff_AutoClipControl == other.ff_AutoClipControl
|
||||
&& ff_clipControl == other.ff_clipControl
|
||||
&& ca_autocorrect == other.ca_autocorrect
|
||||
&& ca_avoidcolourshift == other.ca_avoidcolourshift
|
||||
&& caautoiterations == other.caautoiterations
|
||||
&& cared == other.cared
|
||||
&& cablue == other.cablue
|
||||
@@ -3383,6 +3385,7 @@ int ProcParams::save(const Glib::ustring& fname, const Glib::ustring& fname2, bo
|
||||
saveToKeyfile(!pedited || pedited->raw.ff_AutoClipControl, "RAW", "FlatFieldAutoClipControl", raw.ff_AutoClipControl, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.ff_clipControl, "RAW", "FlatFieldClipControl", raw.ff_clipControl, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.ca_autocorrect, "RAW", "CA", raw.ca_autocorrect, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.ca_avoidcolourshift, "RAW", "CAAvoidColourshift", raw.ca_avoidcolourshift, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.caautoiterations, "RAW", "CAAutoIterations", raw.caautoiterations, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.cared, "RAW", "CARed", raw.cared, keyFile);
|
||||
saveToKeyfile(!pedited || pedited->raw.cablue, "RAW", "CABlue", raw.cablue, keyFile);
|
||||
@@ -4761,6 +4764,12 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
|
||||
} else {
|
||||
raw.caautoiterations = 1;
|
||||
}
|
||||
|
||||
if (ppVersion >= 343) {
|
||||
assignFromKeyfile(keyFile, "RAW", "CAAvoidColourshift", pedited, raw.ca_avoidcolourshift, pedited->raw.ca_avoidcolourshift);
|
||||
} else {
|
||||
raw.ca_avoidcolourshift = false;
|
||||
}
|
||||
assignFromKeyfile(keyFile, "RAW", "CARed", pedited, raw.cared, pedited->raw.cared);
|
||||
assignFromKeyfile(keyFile, "RAW", "CABlue", pedited, raw.cablue, pedited->raw.cablue);
|
||||
// For compatibility to elder pp3 versions
|
||||
|
||||
Reference in New Issue
Block a user