merge with dev
This commit is contained in:
@@ -338,6 +338,18 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
|
||||
imgsrc->getRAWHistogram(histRedRaw, histGreenRaw, histBlueRaw);
|
||||
|
||||
highDetailPreprocessComputed = highDetailNeeded;
|
||||
|
||||
// After preprocess, run film negative processing if enabled
|
||||
if (
|
||||
(todo & M_RAW)
|
||||
&& (
|
||||
imgsrc->getSensorType() == ST_BAYER
|
||||
|| imgsrc->getSensorType() == ST_FUJI_XTRANS
|
||||
)
|
||||
&& params->filmNegative.enabled
|
||||
) {
|
||||
imgsrc->filmNegativeProcess(params->filmNegative);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1488,6 +1500,31 @@ void ImProcCoordinator::getSpotWB(int x, int y, int rect, double& temp, double&
|
||||
}
|
||||
}
|
||||
|
||||
bool ImProcCoordinator::getFilmNegativeExponents(int xA, int yA, int xB, int yB, std::array<float, 3>& newExps)
|
||||
{
|
||||
MyMutex::MyLock lock(mProcessing);
|
||||
|
||||
const auto xlate =
|
||||
[this](int x, int y) -> Coord2D
|
||||
{
|
||||
const std::vector<Coord2D> points = {Coord2D(x, y)};
|
||||
|
||||
std::vector<Coord2D> red;
|
||||
std::vector<Coord2D> green;
|
||||
std::vector<Coord2D> blue;
|
||||
ipf.transCoord(fw, fh, points, red, green, blue);
|
||||
|
||||
return green[0];
|
||||
};
|
||||
|
||||
const int tr = getCoarseBitMask(params->coarse);
|
||||
|
||||
const Coord2D p1 = xlate(xA, yA);
|
||||
const Coord2D p2 = xlate(xB, yB);
|
||||
|
||||
return imgsrc->getFilmNegativeExponents(p1, p2, tr, params->filmNegative, newExps);
|
||||
}
|
||||
|
||||
void ImProcCoordinator::getAutoCrop(double ratio, int &x, int &y, int &w, int &h)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user