Merge branch 'svb_tonecurve_speedup' into dev

This commit is contained in:
heckflosse 2018-01-04 23:16:36 +01:00
commit bb7afbe01d

View File

@ -313,18 +313,12 @@ public:
s = del_Max / var_Max;
if (r == var_Max) {
h = (g - b) / del_Max;
h = (g < b ? 6.f : 0.f) + (g - b) / del_Max;
} else if (g == var_Max) {
h = 2.f + (b - r) / del_Max;
} else { /*if ( b == var_Max ) */
h = 4.f + (r - g) / del_Max;
}
if (h < 0.f) {
h += 6.f;
} else if (h > 6.f) {
h -= 6.f;
}
}
}