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