Local adjustments - improve exposure - issue 6274 (#6277)

* Various change to improve LA exposure

* Removed pow_Fr - clean code

* Remove unused code
This commit is contained in:
Desmis 2021-06-08 07:38:47 +02:00 committed by GitHub
parent 9d052e267d
commit d02ed52e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 9 deletions

View File

@ -1647,13 +1647,6 @@ static void calcLocalParams(int sp, int oW, int oH, const LocallabParams& locall
lp.hlcomp = locallab.spots.at(sp).hlcompr;
lp.hlcompthr = locallab.spots.at(sp).hlcomprthresh;
lp.expcomp = LIM(locallab.spots.at(sp).expcomp, -2.0, 4.0); //to prevent crash with Old pp3 with integer
//increase sensitivity for low values
float proexp = lp.expcomp;
if (std::fabs(proexp) < 0.6f) {
float interm = std::fabs(proexp) / 0.6f;
interm = pow(interm, 3.f);
lp.expcomp = proexp * interm;
}
lp.expchroma = locallab.spots.at(sp).expchroma / 100.;
lp.sensex = local_sensiex;
lp.war = local_warm;

View File

@ -20,7 +20,7 @@
////////////////////////////////////////////////////////////////
#pragma once
#define pow_F(a,b) (xexpf(b*xlogf(a)))
#define pow_F(a,b) (xexpf((b)*xlogf(a)))
#ifdef __SSE2__
#include "sleefsseavx.h"

View File

@ -26,7 +26,6 @@
#define L2U .69314718055966295651160180568695068359375
#define L2L .28235290563031577122588448175013436025525412068e-12
#define R_LN2 1.442695040888963407359924681001892137426645954152985934135449406931
#define pow_F(a,b) (xexpf(b*xlogf(a)))
__inline int64_t doubleToRawLongBits(double d) {
union {