Solving issue 1529: "Better color handling of the Tone curve" + ICM panel code cleanup

This commit is contained in:
natureh
2012-09-02 12:30:59 +02:00
parent 73d1b9dae9
commit 9574f6e7d2
45 changed files with 745 additions and 416 deletions

View File

@@ -30,6 +30,11 @@ namespace rtengine {
return std::max(b,std::min(a,c));
}
template<typename _Tp>
inline const _Tp LIM01(const _Tp& a) {
return std::max(_Tp(1),std::min(a,_Tp(0)));
}
template<typename _Tp>
inline const _Tp ULIM(const _Tp& a, const _Tp& b, const _Tp& c) {
return ((b < c) ? LIM(a,b,c) : LIM(a,c,b));