Init locallabgtk3
This commit is contained in:
@@ -1352,6 +1352,56 @@ public:
|
||||
static void skinredfloat ( float J, float h, float sres, float Sp, float dred, float protect_red, int sk, float rstprotection, float ko, float &s);
|
||||
// static void scaleredcdbl ( float skinprot, float param, float limit, float HH, float deltaHH, float &scale,float &scaleext);
|
||||
|
||||
static inline void pregamutlab (float lum, float hue, float &chr)//big approximation to limit gamut (Prophoto) before good gamut procedure for locallab chroma, to avoid crash
|
||||
{
|
||||
if (lum >= 95.0f) {
|
||||
if(hue > 1.5f && hue < 2.f ) {
|
||||
chr = 120.f;
|
||||
} else if(hue > 0.7f && hue <= 1.5f) {
|
||||
chr = 60.f;
|
||||
} else {
|
||||
chr = 40.f;
|
||||
}
|
||||
} else if(lum > 75.f) {
|
||||
if(hue > 1.f && hue < 3.14f ) {
|
||||
chr = 130.f;
|
||||
} else if(hue > -0.4f && hue <= 1.f) {
|
||||
chr = 80.f;
|
||||
} else if(hue > -3.15f && hue > -2.f) {
|
||||
chr = 80.f;
|
||||
} else {
|
||||
chr = 60.f;
|
||||
}
|
||||
|
||||
} else if(lum > 35.f) {
|
||||
chr = 100.f;
|
||||
} else if(lum > 20.f) {
|
||||
if(hue < -1.f && hue > -2.f ) {
|
||||
chr = 120.f;
|
||||
} else {
|
||||
chr = 80.f;
|
||||
}
|
||||
} else if(lum > 7.f) {
|
||||
if(hue < -1.f && hue > -1.8f ) {
|
||||
chr = 120.f;
|
||||
} else {
|
||||
chr = 60.f;
|
||||
}
|
||||
|
||||
} else {
|
||||
if(hue < -1.f && hue > -1.6f ) {
|
||||
chr = 80.f;
|
||||
} else {
|
||||
chr = 40.f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// if(lum < 4.f) {
|
||||
// chr = 0.1f;
|
||||
// }
|
||||
}
|
||||
|
||||
static inline void SkinSatCbdl (float lum, float hue, float chrom, float skinprot, float &scale, bool neg, float b_l, float t_l, float t_r)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user