Improve ref (hue chroma luma) management - prepare mask and blend

This commit is contained in:
Desmis
2019-01-07 16:51:05 +01:00
parent 1f900c03df
commit d6f13b0753
15 changed files with 288 additions and 27 deletions

View File

@@ -632,6 +632,63 @@ public:
}
};
class LocCCmaskCurve
{
private:
LUTf lutLocCCmaskCurve; // 0xffff range
void Set(const Curve &pCurve);
public:
float sum;
virtual ~LocCCmaskCurve() {};
LocCCmaskCurve();
void Reset();
void Set(const std::vector<double> &curvePoints, bool &HHutili);
float getSum() const
{
return sum;
}
float operator[](float index) const
{
return lutLocCCmaskCurve[index];
}
operator bool (void) const
{
return lutLocCCmaskCurve;
}
};
class LocLLmaskCurve
{
private:
LUTf lutLocLLmaskCurve; // 0xffff range
void Set(const Curve &pCurve);
public:
float sum;
virtual ~LocLLmaskCurve() {};
LocLLmaskCurve();
void Reset();
void Set(const std::vector<double> &curvePoints, bool &HHutili);
float getSum() const
{
return sum;
}
float operator[](float index) const
{
return lutLocLLmaskCurve[index];
}
operator bool (void) const
{
return lutLocLLmaskCurve;
}
};
class LocHHCurve
{
private: