Do not treat changes of tonecurve.fromHistMatching as related to panning
This commit is contained in:
@@ -1514,7 +1514,7 @@ void ImProcCoordinator::process()
|
||||
|
||||
while (changeSinceLast) {
|
||||
const bool panningRelatedChange =
|
||||
params->toneCurve != nextParams->toneCurve
|
||||
params->toneCurve.isPanningRelatedChange(nextParams->toneCurve)
|
||||
|| params->labCurve != nextParams->labCurve
|
||||
|| params->localContrast != nextParams->localContrast
|
||||
|| params->rgbCurves != nextParams->rgbCurves
|
||||
|
||||
@@ -330,6 +330,29 @@ ToneCurveParams::ToneCurveParams() :
|
||||
{
|
||||
}
|
||||
|
||||
bool ToneCurveParams::isPanningRelatedChange(const ToneCurveParams& other) const
|
||||
{
|
||||
return !
|
||||
(autoexp == other.autoexp
|
||||
&& clip == other.clip
|
||||
&& hrenabled == other.hrenabled
|
||||
&& method == other.method
|
||||
&& expcomp == other.expcomp
|
||||
&& curve == other.curve
|
||||
&& curve2 == other.curve2
|
||||
&& curveMode == other.curveMode
|
||||
&& curveMode2 == other.curveMode2
|
||||
&& brightness == other.brightness
|
||||
&& black == other.black
|
||||
&& contrast == other.contrast
|
||||
&& saturation == other.saturation
|
||||
&& shcompr == other.shcompr
|
||||
&& hlcompr == other.hlcompr
|
||||
&& hlcomprthresh == other.hlcomprthresh
|
||||
&& histmatching == other.histmatching
|
||||
&& clampOOG == other.clampOOG);
|
||||
}
|
||||
|
||||
bool ToneCurveParams::operator ==(const ToneCurveParams& other) const
|
||||
{
|
||||
return
|
||||
|
||||
@@ -284,6 +284,7 @@ struct ToneCurveParams {
|
||||
|
||||
ToneCurveParams();
|
||||
|
||||
bool isPanningRelatedChange(const ToneCurveParams& other) const;
|
||||
bool operator ==(const ToneCurveParams& other) const;
|
||||
bool operator !=(const ToneCurveParams& other) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user