Merge branch 'dev' into capture_sharpening
This commit is contained in:
commit
a1a680fbdc
@ -1536,13 +1536,13 @@ 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
|
||||
|| params->colorToning != nextParams->colorToning
|
||||
|| params->vibrance != nextParams->vibrance
|
||||
|| params->wb != nextParams->wb
|
||||
|| params->wb.isPanningRelatedChange(nextParams->wb)
|
||||
|| params->colorappearance != nextParams->colorappearance
|
||||
|| params->epd != nextParams->epd
|
||||
|| params->fattal != nextParams->fattal
|
||||
|
@ -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
|
||||
@ -1214,6 +1237,21 @@ WBParams::WBParams() :
|
||||
{
|
||||
}
|
||||
|
||||
bool WBParams::isPanningRelatedChange(const WBParams& other) const
|
||||
{
|
||||
return !
|
||||
(enabled == other.enabled
|
||||
&& ((method == "Camera" && other.method == "Camera")
|
||||
||
|
||||
(method == other.method
|
||||
&& temperature == other.temperature
|
||||
&& green == other.green
|
||||
&& equal == other.equal
|
||||
&& tempBias == other.tempBias)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
bool WBParams::operator ==(const WBParams& 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;
|
||||
|
||||
@ -599,6 +600,7 @@ struct WBParams {
|
||||
|
||||
WBParams();
|
||||
|
||||
bool isPanningRelatedChange(const WBParams& other) const;
|
||||
bool operator ==(const WBParams& other) const;
|
||||
bool operator !=(const WBParams& other) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user