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:
parent
9d052e267d
commit
d02ed52e00
@ -1647,13 +1647,6 @@ static void calcLocalParams(int sp, int oW, int oH, const LocallabParams& locall
|
|||||||
lp.hlcomp = locallab.spots.at(sp).hlcompr;
|
lp.hlcomp = locallab.spots.at(sp).hlcompr;
|
||||||
lp.hlcompthr = locallab.spots.at(sp).hlcomprthresh;
|
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
|
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.expchroma = locallab.spots.at(sp).expchroma / 100.;
|
||||||
lp.sensex = local_sensiex;
|
lp.sensex = local_sensiex;
|
||||||
lp.war = local_warm;
|
lp.war = local_warm;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define pow_F(a,b) (xexpf(b*xlogf(a)))
|
#define pow_F(a,b) (xexpf((b)*xlogf(a)))
|
||||||
|
|
||||||
#ifdef __SSE2__
|
#ifdef __SSE2__
|
||||||
#include "sleefsseavx.h"
|
#include "sleefsseavx.h"
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#define L2U .69314718055966295651160180568695068359375
|
#define L2U .69314718055966295651160180568695068359375
|
||||||
#define L2L .28235290563031577122588448175013436025525412068e-12
|
#define L2L .28235290563031577122588448175013436025525412068e-12
|
||||||
#define R_LN2 1.442695040888963407359924681001892137426645954152985934135449406931
|
#define R_LN2 1.442695040888963407359924681001892137426645954152985934135449406931
|
||||||
#define pow_F(a,b) (xexpf(b*xlogf(a)))
|
|
||||||
|
|
||||||
__inline int64_t doubleToRawLongBits(double d) {
|
__inline int64_t doubleToRawLongBits(double d) {
|
||||||
union {
|
union {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user