astyled and removed whitespace from bayerpreprocess.cc
This commit is contained in:
parent
f72277bf4e
commit
aece987d55
@ -82,17 +82,21 @@ void BayerPreProcess::read(const rtengine::procparams::ProcParams* pp, const Par
|
||||
if (pedited) {
|
||||
lineDenoise->setEditedState(pedited->raw.bayersensor.linenoise ? Edited : UnEdited);
|
||||
greenEqThreshold->setEditedState(pedited->raw.bayersensor.greenEq ? Edited : UnEdited);
|
||||
|
||||
if (!pedited->raw.bayersensor.linenoiseDirection) {
|
||||
lineDenoiseDirection->set_active(3);
|
||||
}
|
||||
|
||||
pdafLinesFilter->set_inconsistent(!pedited->raw.bayersensor.pdafLinesFilter);
|
||||
}
|
||||
|
||||
lineDenoise->setValue(pp->raw.bayersensor.linenoise);
|
||||
int d = int(pp->raw.bayersensor.linenoiseDirection) - 1;
|
||||
|
||||
if (d == 4) {
|
||||
--d;
|
||||
}
|
||||
|
||||
lineDenoiseDirection->set_active(d);
|
||||
greenEqThreshold->setValue(pp->raw.bayersensor.greenthresh);
|
||||
pdafLinesFilter->set_active(pp->raw.bayersensor.pdafLinesFilter);
|
||||
@ -104,9 +108,11 @@ void BayerPreProcess::write( rtengine::procparams::ProcParams* pp, ParamsEdited*
|
||||
{
|
||||
pp->raw.bayersensor.linenoise = lineDenoise->getIntValue();
|
||||
int d = lineDenoiseDirection->get_active_row_number() + 1;
|
||||
|
||||
if (d == 4) {
|
||||
++d;
|
||||
}
|
||||
|
||||
pp->raw.bayersensor.linenoiseDirection = RAWParams::BayerSensor::LineNoiseDirection(d);
|
||||
pp->raw.bayersensor.greenthresh = greenEqThreshold->getIntValue();
|
||||
pp->raw.bayersensor.pdafLinesFilter = pdafLinesFilter->get_active();
|
||||
@ -142,6 +148,7 @@ void BayerPreProcess::setBatchMode(bool batchMode)
|
||||
ToolPanel::setBatchMode(batchMode);
|
||||
lineDenoise->showEditedCB();
|
||||
greenEqThreshold->showEditedCB();
|
||||
|
||||
if (batchMode) {
|
||||
lineDenoiseDirection->append(M("GENERAL_UNCHANGED"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user