diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index bc39211d22..22ee019557 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -2690,9 +2690,9 @@ void RawImageSource::copyOriginalPixels(const RAWParams &raw, RawImage *src, con */ if (ri->getSensorType() == ST_BAYER) { - getMinValsBayer(ri->zeroIsBad()); + getMinValsBayer(rawData, ri->zeroIsBad()); } else { - getMinValsXtrans(); + getMinValsXtrans(rawData); } // reddeha = minVals[0]; @@ -8384,7 +8384,7 @@ void RawImageSource::getRawValues(int x, int y, int rotate, int &R, int &G, int /* Copyright (c) Ingo Weyrich 2020 (heckflosse67@gmx.de) */ -void RawImageSource::getMinValsXtrans() { +void RawImageSource::getMinValsXtrans(const array2D &rawData) { #ifdef _OPENMP #pragma omp parallel for reduction (min:minVals) #endif @@ -8530,7 +8530,7 @@ void RawImageSource::applyDngGainMap(const float black[4], const std::vector &rawData, bool zeroIsBad) { BENCHFUN if (!zeroIsBad) { #ifdef _OPENMP diff --git a/rtengine/rawimagesource.h b/rtengine/rawimagesource.h index cff3b97eb1..8af6493276 100644 --- a/rtengine/rawimagesource.h +++ b/rtengine/rawimagesource.h @@ -310,8 +310,8 @@ class RawImageSource final : public ImageSource void vflip (Imagefloat* im); void getRawValues(int x, int y, int rotate, int &R, int &G, int &B) override; void captureSharpening(const procparams::CaptureSharpeningParams &sharpeningParams, bool showMask, double &conrastThreshold, double &radius) override; - void getMinValsXtrans(); - void getMinValsBayer(bool zeroIsBad); + void getMinValsXtrans(const array2D &rawData); + void getMinValsBayer(const array2D &rawData, bool zeroIsBad); void applyDngGainMap(const float black[4], const std::vector &gainMaps); public: void wbMul2Camera(double &rm, double &gm, double &bm) override;