Change settings of complexCurvelocal

This commit is contained in:
Desmis
2018-02-10 08:40:24 +01:00
parent 91b8fa09b4
commit ed46993ff1
6 changed files with 23 additions and 45 deletions

View File

@@ -279,28 +279,6 @@ public:
}
}
static inline float hlcurveloc(const float exp_scale, const float comp, const float hlrange, float level, float niv)
{
if (comp > 0.0) {
float val = level + (hlrange - niv);//655536 32768
if (val == 0.0f) { // to avoid division by zero
val = 0.000001f;
}
float Y = val * exp_scale / hlrange;
Y *= comp;
if (Y <= -1.0) { // to avoid log(<=0)
Y = -.999999f;
}
float R = hlrange / (val * comp);
return log1p(Y) * R;
} else {
return exp_scale;
}
}
public:
static void complexCurve(double ecomp, double black, double hlcompr, double hlcomprthresh, double shcompr, double br, double contr,