Move function into anonymous namespace
This commit is contained in:
parent
91dc97eafb
commit
51277dc7d2
@ -420,6 +420,16 @@ void transLineD1x(const float* const red, const float* const green, const float*
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool checkRawDataDimensions(const array2D<float> &rawData, const rtengine::RawImage &rawImage, int width, int height)
|
||||||
|
{
|
||||||
|
const int colors = (rawImage.getSensorType() == rtengine::ST_BAYER ||
|
||||||
|
rawImage.getSensorType() == rtengine::ST_FUJI_XTRANS ||
|
||||||
|
rawImage.get_colors() == 1)
|
||||||
|
? 1
|
||||||
|
: 3;
|
||||||
|
return rawData.getHeight() == height && rawData.getWidth() == colors * width;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -742,16 +752,6 @@ void RawImageSource::getWBMults(const ColorTemp &ctemp, const RAWParams &raw, st
|
|||||||
autoGainComp = camInitialGain / initialGain;
|
autoGainComp = camInitialGain / initialGain;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkRawDataDimensions(const array2D<float> &rawData, const RawImage &rawImage, int width, int height)
|
|
||||||
{
|
|
||||||
const int colors = (rawImage.getSensorType() == rtengine::ST_BAYER ||
|
|
||||||
rawImage.getSensorType() == rtengine::ST_FUJI_XTRANS ||
|
|
||||||
rawImage.get_colors() == 1)
|
|
||||||
? 1
|
|
||||||
: 3;
|
|
||||||
return rawData.getHeight() == height && rawData.getWidth() == colors * width;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RawImageSource::getImage(const ColorTemp &ctemp, int tran, Imagefloat* image, const PreviewProps &pp, const ToneCurveParams &hrp, const RAWParams &raw)
|
void RawImageSource::getImage(const ColorTemp &ctemp, int tran, Imagefloat* image, const PreviewProps &pp, const ToneCurveParams &hrp, const RAWParams &raw)
|
||||||
{
|
{
|
||||||
assert(checkRawDataDimensions(rawData, *ri, W, H));
|
assert(checkRawDataDimensions(rawData, *ri, W, H));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user