Allow custom raw border in range 1..16 for pixelshift files

This commit is contained in:
heckflosse
2018-06-30 14:22:11 +02:00
parent 4b227709d1
commit be07fd83c5
3 changed files with 3 additions and 7 deletions

View File

@@ -231,10 +231,10 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
}
}
if(imgsrc->getSensorType() == ST_BAYER) {
if(params.raw.bayersensor.method!= RAWParams::BayerSensor::getMethodString(RAWParams::BayerSensor::Method::PIXELSHIFT)) {
if(params.raw.bayersensor.method != RAWParams::BayerSensor::getMethodString(RAWParams::BayerSensor::Method::PIXELSHIFT)) {
imgsrc->setBorder(params.raw.bayersensor.border);
} else {
imgsrc->setBorder(4);
imgsrc->setBorder(std::max(params.raw.bayersensor.border, 1));
}
}
bool autoContrast = false;