Merge branch 'dev' into testoutputprofile

This commit is contained in:
Hombre
2018-06-25 01:07:02 +02:00
59 changed files with 580 additions and 372 deletions

View File

@@ -1792,19 +1792,19 @@ bool VignettingParams::operator !=(const VignettingParams& other) const
ChannelMixerParams::ChannelMixerParams() :
enabled(false),
red{
100,
1000,
0,
0
},
green{
0,
100,
1000,
0
},
blue{
0,
0,
100
1000
}
{
}
@@ -2444,7 +2444,9 @@ const std::vector<const char*>& RAWParams::BayerSensor::getMethodStrings()
"amaze",
"amazevng4",
"rcd",
"rcdvng4",
"dcb",
"dcbvng4",
"lmmse",
"igv",
"ahd",
@@ -2512,6 +2514,7 @@ const std::vector<const char*>& RAWParams::XTransSensor::getMethodStrings()
static const std::vector<const char*> method_strings {
"4-pass",
"3-pass (best)",
"2-pass",
"1-pass (medium)",
"fast",
"mono",
@@ -3537,6 +3540,13 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
memcpy(chmixer.green, gmix.data(), 3 * sizeof(int));
memcpy(chmixer.blue, bmix.data(), 3 * sizeof(int));
}
if (ppVersion < 338) {
for (int i = 0; i < 3; ++i) {
chmixer.red[i] *= 10;
chmixer.green[i] *= 10;
chmixer.blue[i] *= 10;
}
}
if (pedited) {
pedited->chmixer.red[0] = pedited->chmixer.red[1] = pedited->chmixer.red[2] = true;