cleaned up gamut warning code

This commit is contained in:
Alberto Griggio
2018-03-16 17:57:03 +01:00
parent 83521b0c92
commit 956c44905e
7 changed files with 183 additions and 98 deletions

View File

@@ -34,6 +34,7 @@
#include "curves.h"
#include "cplx_wavelet_dec.h"
#include "pipettebuffer.h"
#include "gamutwarning.h"
namespace rtengine
{
@@ -45,9 +46,7 @@ class ImProcFunctions
cmsHTRANSFORM monitorTransform;
cmsHTRANSFORM gw_lab2refTransform;
cmsHTRANSFORM gw_lab2softproofTransform;
cmsHTRANSFORM gw_softproof2refTransform;
std::unique_ptr<GamutWarning> gamutWarning;
const ProcParams* params;
double scale;
@@ -198,7 +197,7 @@ public:
double lumimul[3];
ImProcFunctions (const ProcParams* iparams, bool imultiThread = true)
: monitorTransform (nullptr), gw_lab2refTransform(nullptr), gw_lab2softproofTransform(nullptr), gw_softproof2refTransform(nullptr), params (iparams), scale (1), multiThread (imultiThread), lumimul{} {}
: monitorTransform (nullptr), params (iparams), scale (1), multiThread (imultiThread), lumimul{} {}
~ImProcFunctions ();
bool needsLuminanceOnly() { return !(needsCA() || needsDistortion() || needsRotation() || needsPerspective() || needsLCP() || needsLensfun()) && (needsVignetting() || needsPCVignetting() || needsGradient());}
void setScale (double iscale);