Commit c23d85f0 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

Apply patch #89859 from JAn Wolter to fix Local Contrast tool settings...

Apply patch #89859 from JAn Wolter to fix Local Contrast tool settings conversion from/to XML for BQM workflow
CCBUGS: 318726
parent be72e5d8
......@@ -60,14 +60,14 @@ LocalContrastContainer::~LocalContrastContainer()
{
}
float LocalContrastContainer::getPower(int nstage) const
double LocalContrastContainer::getPower(int nstage) const
{
float power = stage[nstage].power;
power = (float)(qPow(power / 100.0, 1.5) * 100.0);
return power;
}
float LocalContrastContainer::getBlur(int nstage) const
double LocalContrastContainer::getBlur(int nstage) const
{
return stage[nstage].blur;
}
......
......@@ -43,8 +43,8 @@ public:
LocalContrastContainer();
~LocalContrastContainer();
float getPower(int nstage) const;
float getBlur(int nstage) const;
double getPower(int nstage) const;
double getBlur(int nstage) const;
public:
......@@ -57,8 +57,8 @@ public:
struct
{
bool enabled;
float power;
float blur;
double power;
double blur;
}
stage[TONEMAPPING_MAX_STAGES];
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment