Merge branch 'master' into clang-tidy
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "mytime.h"
|
||||
#include "sleef.c"
|
||||
#include "opthelper.h"
|
||||
#include "iccstore.h"
|
||||
|
||||
#define pow_F(a,b) (xexpf(b*xlogf(a)))
|
||||
|
||||
@@ -542,7 +543,7 @@ void Color::rgb2hsl(float r, float g, float b, float &h, float &s, float &l)
|
||||
h_ = 4. + (var_R - var_G) / C;
|
||||
}
|
||||
|
||||
h = float(h_ /= 6.0);
|
||||
h = float(h_ / 6.0);
|
||||
|
||||
if ( h < 0.f ) {
|
||||
h += 1.f;
|
||||
@@ -923,7 +924,7 @@ void Color::hsv2rgb (float h, float s, float v, int &r, int &g, int &b)
|
||||
r1 = t;
|
||||
g1 = p;
|
||||
b1 = v;
|
||||
} else if (i == 5) {
|
||||
} else /*if (i == 5)*/ {
|
||||
r1 = v;
|
||||
g1 = p;
|
||||
b1 = q;
|
||||
@@ -1647,7 +1648,7 @@ void Color::interpolateRGBColor (float realL, float iplow, float iphigh, int alg
|
||||
Color::xyz2rgb(X, Y, Z, ro, go, bo, rgb_xyz);// ro go bo in gamut
|
||||
}
|
||||
|
||||
void Color::calcGamma (double pwr, double ts, int mode, int imax, double &gamma0, double &gamma1, double &gamma2, double &gamma3, double &gamma4, double &gamma5)
|
||||
void Color::calcGamma (double pwr, double ts, int mode, int imax, GammaValues &gamma)
|
||||
{
|
||||
//from Dcraw (D.Coffin)
|
||||
int i;
|
||||
@@ -1683,12 +1684,13 @@ void Color::calcGamma (double pwr, double ts, int mode, int imax, double &gamma0
|
||||
}
|
||||
|
||||
if (!mode--) {
|
||||
gamma0 = g[0];
|
||||
gamma1 = g[1];
|
||||
gamma2 = g[2];
|
||||
gamma3 = g[3];
|
||||
gamma4 = g[4];
|
||||
gamma5 = g[5];
|
||||
gamma[0] = g[0];
|
||||
gamma[1] = g[1];
|
||||
gamma[2] = g[2];
|
||||
gamma[3] = g[3];
|
||||
gamma[4] = g[4];
|
||||
gamma[5] = g[5];
|
||||
gamma[6] = 0.;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1996,7 +1998,6 @@ void Color::skinred ( double J, double h, double sres, double Sp, float dred, fl
|
||||
float factorskin, factorsat, factor, factorskinext, interm;
|
||||
float scale = 100.0f / 100.1f; //reduction in normal zone
|
||||
float scaleext = 1.0f; //reduction in transition zone
|
||||
float protect_redh;
|
||||
float deltaHH = 0.3f; //HH value transition : I have choice 0.3 radians
|
||||
float HH;
|
||||
bool doskin = false;
|
||||
@@ -2077,7 +2078,6 @@ void Color::skinredfloat ( float J, float h, float sres, float Sp, float dred, f
|
||||
|
||||
if(doskin) {
|
||||
float factorskin, factorsat, factor, factorskinext;
|
||||
float protect_redh;
|
||||
float deltaHH = 0.3f; //HH value transition : I have choice 0.3 radians
|
||||
float chromapro = sres / Sp;
|
||||
|
||||
@@ -2757,8 +2757,8 @@ SSEFUNCTION void Color::LabGamutMunsell(float *labL, float *laba, float *labb,
|
||||
printf(" Gamut : G1negat=%iiter G165535=%iiter \n", negat, moreRGB);
|
||||
|
||||
if (MunsDebugInfo) {
|
||||
printf(" Munsell chrominance: MaxBP=%1.2frad MaxRY=%1.2frad MaxGY=%1.2frad MaxRP=%1.2frad depass=%i\n", MunsDebugInfo->maxdhue[0], MunsDebugInfo->maxdhue[1], MunsDebugInfo->maxdhue[2], MunsDebugInfo->maxdhue[3], MunsDebugInfo->depass);
|
||||
printf(" Munsell luminance : MaxBP=%1.2frad MaxRY=%1.2frad MaxGY=%1.2frad MaxRP=%1.2frad depass=%i\n", MunsDebugInfo->maxdhuelum[0] , MunsDebugInfo->maxdhuelum[1], MunsDebugInfo->maxdhuelum[2], MunsDebugInfo->maxdhuelum[3], MunsDebugInfo->depassLum);
|
||||
printf(" Munsell chrominance: MaxBP=%1.2frad MaxRY=%1.2frad MaxGY=%1.2frad MaxRP=%1.2frad depass=%u\n", MunsDebugInfo->maxdhue[0], MunsDebugInfo->maxdhue[1], MunsDebugInfo->maxdhue[2], MunsDebugInfo->maxdhue[3], MunsDebugInfo->depass);
|
||||
printf(" Munsell luminance : MaxBP=%1.2frad MaxRY=%1.2frad MaxGY=%1.2frad MaxRP=%1.2frad depass=%u\n", MunsDebugInfo->maxdhuelum[0] , MunsDebugInfo->maxdhuelum[1], MunsDebugInfo->maxdhuelum[2], MunsDebugInfo->maxdhuelum[3], MunsDebugInfo->depassLum);
|
||||
} else {
|
||||
printf(" Munsell correction wasn't requested\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user