merged 'dev' into 'sony-pixel-shift'
This commit is contained in:
@@ -82,6 +82,7 @@ void ParamsEdited::set (bool v)
|
||||
retinex.radius = v;
|
||||
|
||||
retinex.retinex = v;
|
||||
labCurve.enabled = v;
|
||||
labCurve.lcurve = v;
|
||||
labCurve.acurve = v;
|
||||
labCurve.bcurve = v;
|
||||
@@ -97,6 +98,7 @@ void ParamsEdited::set (bool v)
|
||||
labCurve.avoidcolorshift = v;
|
||||
labCurve.rstprotection = v;
|
||||
labCurve.lcredsk = v;
|
||||
rgbCurves.enabled = v;
|
||||
rgbCurves.lumamode = v;
|
||||
rgbCurves.rcurve = v;
|
||||
rgbCurves.gcurve = v;
|
||||
@@ -219,6 +221,7 @@ void ParamsEdited::set (bool v)
|
||||
//colorBoost.avoidclip = v;
|
||||
//colorBoost.enable_saturationlimiter = v;
|
||||
//colorBoost.saturationlimit = v;
|
||||
wb.enabled = v;
|
||||
wb.method = v;
|
||||
wb.green = v;
|
||||
wb.temperature = v;
|
||||
@@ -319,6 +322,7 @@ void ParamsEdited::set (bool v)
|
||||
vignetting.strength = v;
|
||||
vignetting.centerX = v;
|
||||
vignetting.centerY = v;
|
||||
chmixer.enabled = v;
|
||||
chmixer.red[0] = v;
|
||||
chmixer.red[1] = v;
|
||||
chmixer.red[2] = v;
|
||||
@@ -548,6 +552,7 @@ void ParamsEdited::set (bool v)
|
||||
dirpyrequalizer.skinprotect = v;
|
||||
dirpyrequalizer.hueskin = v;
|
||||
//dirpyrequalizer.algo = v;
|
||||
hsvequalizer.enabled = v;
|
||||
hsvequalizer.hcurve = v;
|
||||
hsvequalizer.scurve = v;
|
||||
hsvequalizer.vcurve = v;
|
||||
@@ -623,6 +628,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
retinex.radius = retinex.radius && p.retinex.radius == other.retinex.radius;
|
||||
|
||||
retinex.enabled = retinex.enabled && p.retinex.enabled == other.retinex.enabled;
|
||||
labCurve.enabled = labCurve.enabled && p.labCurve.enabled == other.labCurve.enabled;
|
||||
labCurve.lcurve = labCurve.lcurve && p.labCurve.lcurve == other.labCurve.lcurve;
|
||||
labCurve.acurve = labCurve.acurve && p.labCurve.acurve == other.labCurve.acurve;
|
||||
labCurve.bcurve = labCurve.bcurve && p.labCurve.bcurve == other.labCurve.bcurve;
|
||||
@@ -638,6 +644,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
labCurve.avoidcolorshift = labCurve.avoidcolorshift && p.labCurve.avoidcolorshift == other.labCurve.avoidcolorshift;
|
||||
labCurve.rstprotection = labCurve.rstprotection && p.labCurve.rstprotection == other.labCurve.rstprotection;
|
||||
labCurve.lcredsk = labCurve.lcredsk && p.labCurve.lcredsk == other.labCurve.lcredsk;
|
||||
rgbCurves.enabled = rgbCurves.enabled && p.rgbCurves.enabled == other.rgbCurves.enabled;
|
||||
rgbCurves.lumamode = rgbCurves.lumamode && p.rgbCurves.lumamode == other.rgbCurves.lumamode;
|
||||
rgbCurves.rcurve = rgbCurves.rcurve && p.rgbCurves.rcurve == other.rgbCurves.rcurve;
|
||||
rgbCurves.gcurve = rgbCurves.gcurve && p.rgbCurves.gcurve == other.rgbCurves.gcurve;
|
||||
@@ -759,6 +766,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
//colorBoost.avoidclip = colorBoost.avoidclip && p.colorBoost.avoidclip == other.colorBoost.avoidclip;
|
||||
//colorBoost.enable_saturationlimiter = colorBoost.enable_saturationlimiter && p.colorBoost.enable_saturationlimiter == other.colorBoost.enable_saturationlimiter;
|
||||
//colorBoost.saturationlimit = colorBoost.saturationlimit && p.colorBoost.saturationlimit == other.colorBoost.saturationlimit;
|
||||
wb.enabled = wb.enabled && p.wb.enabled == other.wb.enabled;
|
||||
wb.method = wb.method && p.wb.method == other.wb.method;
|
||||
wb.green = wb.green && p.wb.green == other.wb.green;
|
||||
wb.equal = wb.equal && p.wb.equal == other.wb.equal;
|
||||
@@ -864,6 +872,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
vignetting.strength = vignetting.strength && p.vignetting.strength == other.vignetting.strength;
|
||||
vignetting.centerX = vignetting.centerX && p.vignetting.centerX == other.vignetting.centerX;
|
||||
vignetting.centerY = vignetting.centerY && p.vignetting.centerY == other.vignetting.centerY;
|
||||
chmixer.enabled = chmixer.enabled && p.chmixer.enabled == other.chmixer.enabled;
|
||||
chmixer.red[0] = chmixer.red[0] && p.chmixer.red[0] == other.chmixer.red[0];
|
||||
chmixer.red[1] = chmixer.red[1] && p.chmixer.red[1] == other.chmixer.red[1];
|
||||
chmixer.red[2] = chmixer.red[2] && p.chmixer.red[2] == other.chmixer.red[2];
|
||||
@@ -1086,6 +1095,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
dirpyrequalizer.skinprotect = dirpyrequalizer.skinprotect && p.dirpyrequalizer.skinprotect == other.dirpyrequalizer.skinprotect;
|
||||
// dirpyrequalizer.algo = dirpyrequalizer.algo && p.dirpyrequalizer.algo == other.dirpyrequalizer.algo;
|
||||
dirpyrequalizer.hueskin = dirpyrequalizer.hueskin && p.dirpyrequalizer.hueskin == other.dirpyrequalizer.hueskin;
|
||||
hsvequalizer.enabled = hsvequalizer.enabled && p.hsvequalizer.enabled == other.hsvequalizer.enabled;
|
||||
hsvequalizer.hcurve = hsvequalizer.hcurve && p.hsvequalizer.hcurve == other.hsvequalizer.hcurve;
|
||||
hsvequalizer.scurve = hsvequalizer.scurve && p.hsvequalizer.scurve == other.hsvequalizer.scurve;
|
||||
hsvequalizer.vcurve = hsvequalizer.vcurve && p.hsvequalizer.vcurve == other.hsvequalizer.vcurve;
|
||||
@@ -1298,6 +1308,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
}
|
||||
|
||||
|
||||
if (labCurve.enabled) {
|
||||
toEdit.labCurve.enabled = mods.labCurve.enabled;
|
||||
}
|
||||
|
||||
if (labCurve.lcurve) {
|
||||
toEdit.labCurve.lcurve = mods.labCurve.lcurve;
|
||||
}
|
||||
@@ -1358,6 +1372,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
toEdit.labCurve.lcredsk = mods.labCurve.lcredsk;
|
||||
}
|
||||
|
||||
if (rgbCurves.enabled) {
|
||||
toEdit.rgbCurves.enabled = mods.rgbCurves.enabled;
|
||||
}
|
||||
|
||||
if (rgbCurves.lumamode) {
|
||||
toEdit.rgbCurves.lumamode = mods.rgbCurves.lumamode;
|
||||
}
|
||||
@@ -1666,6 +1684,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
//if (colorBoost.avoidclip) toEdit.colorBoost.avoidclip = mods.colorBoost.avoidclip;
|
||||
//if (colorBoost.enable_saturationlimiter)toEdit.colorBoost.enable_saturationlimiter = mods.colorBoost.enable_saturationlimiter;
|
||||
//if (colorBoost.saturationlimit) toEdit.colorBoost.saturationlimit = mods.colorBoost.saturationlimit;
|
||||
if (wb.enabled) {
|
||||
toEdit.wb.enabled = mods.wb.enabled;
|
||||
}
|
||||
|
||||
if (wb.method) {
|
||||
toEdit.wb.method = mods.wb.method;
|
||||
}
|
||||
@@ -2191,6 +2213,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
toEdit.vignetting.centerY = dontforceSet && options.baBehav[ADDSET_VIGN_CENTER] ? toEdit.vignetting.centerY + mods.vignetting.centerY : mods.vignetting.centerY;
|
||||
}
|
||||
|
||||
if (chmixer.enabled) {
|
||||
toEdit.chmixer.enabled = mods.chmixer.enabled;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (chmixer.red[i]) {
|
||||
toEdit.chmixer.red[i] = dontforceSet && options.baBehav[ADDSET_CHMIXER] ? toEdit.chmixer.red[i] + mods.chmixer.red[i] : mods.chmixer.red[i];
|
||||
@@ -3014,6 +3040,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
}
|
||||
|
||||
// if (dirpyrequalizer.algo) toEdit.dirpyrequalizer.algo = mods.dirpyrequalizer.algo;
|
||||
if (hsvequalizer.enabled) {
|
||||
toEdit.hsvequalizer.enabled = mods.hsvequalizer.enabled;
|
||||
}
|
||||
|
||||
if (hsvequalizer.hcurve) {
|
||||
toEdit.hsvequalizer.hcurve = mods.hsvequalizer.hcurve;
|
||||
}
|
||||
|
Reference in New Issue
Block a user