"Fossies" - the Fresh Open Source Software Archive

Member "rawtherapee-5.7/rtengine/refreshmap.cc" (10 Sep 2019, 21595 Bytes) of package /linux/misc/rawtherapee-5.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "refreshmap.cc" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.6_vs_5.7.

    1 /*
    2  *  This file is part of RawTherapee.
    3  *
    4  *  Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
    5  *
    6  *  RawTherapee is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 3 of the License, or
    9  *  (at your option) any later version.
   10  *
   11  *  RawTherapee is distributed in the hope that it will be useful,
   12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  *  GNU General Public License for more details.
   15  *
   16  *  You should have received a copy of the GNU General Public License
   17  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
   18  */
   19 #include "refreshmap.h"
   20 #include "procevents.h"
   21 
   22 
   23 
   24 
   25 
   26 
   27 
   28 // Aligned so the first entry starts on line 30.
   29 int refreshmap[rtengine::NUMOFEVENTS] = {
   30     ALL,              // EvPhotoLoaded,
   31     ALL,              // EvProfileLoaded,
   32     ALL,              // EvProfileChanged,
   33     ALL,              // EvHistoryBrowsed,
   34     RGBCURVE,         // EvBrightness,
   35     RGBCURVE,         // EvContrast,
   36     RGBCURVE,         // EvBlack,
   37     RGBCURVE,         // EvExpComp,
   38     RGBCURVE,         // EvHLCompr,
   39     RGBCURVE,         // EvSHCompr,
   40     RGBCURVE,         // EvToneCurve1,
   41     AUTOEXP,          // EvAutoExp,
   42     AUTOEXP,          // EvClip,
   43     LUMINANCECURVE,   // EvLBrightness,
   44     LUMINANCECURVE,   // EvLContrast,
   45     LUMINANCECURVE,   // EvLBlack,
   46     LUMINANCECURVE,   // EvLHLCompr,
   47     LUMINANCECURVE,   // EvLSHCompr,
   48     LUMINANCECURVE,   // EvLLCurve,
   49     SHARPENING,       // EvShrEnabled,
   50     SHARPENING,       // EvShrRadius,
   51     SHARPENING,       // EvShrAmount,
   52     SHARPENING,       // EvShrThresh,
   53     SHARPENING,       // EvShrEdgeOnly,
   54     SHARPENING,       // EvShrEdgeRadius,
   55     SHARPENING,       // EvShrEdgeTolerance,
   56     SHARPENING,       // EvShrHaloControl,
   57     SHARPENING,       // EvShrHaloAmount,
   58     SHARPENING,       // EvShrMethod,
   59     SHARPENING,       // EvShrDRadius,
   60     SHARPENING,       // EvShrDAmount,
   61     SHARPENING,       // EvShrDDamping,
   62     SHARPENING,       // EvShrDIterations,
   63     TRANSFORM,        // EvLCPUseDist,
   64     DARKFRAME,        // EvLCPUseVign,
   65     TRANSFORM,        // EvLCPUseCA,
   66     M_VOID,           // EvFixedExp
   67     ALLNORAW,         // EvWBMethod,
   68     ALLNORAW,         // EvWBTemp,
   69     ALLNORAW,         // EvWBGreen,
   70     RGBCURVE,         // EvToneCurveMode1,
   71     RGBCURVE,         // EvToneCurve2,
   72     RGBCURVE,         // EvToneCurveMode2,
   73     0,                // EvLDNRadius: obsolete,
   74     0,                // EvLDNEdgeTolerance: obsolete,
   75     0,                // EvCDNEnabled:obsolete,
   76     0,                // free entry
   77     RGBCURVE|M_AUTOEXP, // EvDCPToneCurve,
   78     ALLNORAW,         // EvDCPIlluminant,
   79     RETINEX,          // EvSHEnabled,
   80     RGBCURVE,         // EvSHHighlights,
   81     RGBCURVE,         // EvSHShadows,
   82     RGBCURVE,         // EvSHHLTonalW,
   83     RGBCURVE,         // EvSHSHTonalW,
   84     RGBCURVE,         // EvSHLContrast,
   85     RETINEX,          // EvSHRadius,
   86     ALLNORAW,         // EvCTRotate,
   87     ALLNORAW,         // EvCTHFlip,
   88     ALLNORAW,         // EvCTVFlip,
   89     TRANSFORM,        // EvROTDegree,
   90     TRANSFORM,        // EvTransAutoFill,
   91     TRANSFORM,        // EvDISTAmount,
   92     ALL,              // EvBookmarkSelected,
   93     CROP,             // EvCrop,
   94     TRANSFORM,        // EvCACorr,
   95     ALLNORAW,         // EvHREnabled,
   96     ALLNORAW,         // EvHRAmount,
   97     ALLNORAW,         // EvHRMethod,
   98     DEMOSAIC,         // EvWProfile,
   99     OUTPUTPROFILE,    // EvOProfile,
  100     ALLNORAW,         // EvIProfile,
  101     TRANSFORM,        // EvVignettingAmount,
  102     RGBCURVE,         // EvChMixer,
  103     RESIZE,           // EvResizeScale,
  104     RESIZE,           // EvResizeMethod,
  105     EXIF,             // EvExif,
  106     IPTC,             // EvIPTC
  107     RESIZE,           // EvResizeSpec,
  108     RESIZE,           // EvResizeWidth
  109     RESIZE,           // EvResizeHeight
  110     RESIZE,           // EvResizeEnabled
  111     ALL,              // EvProfileChangeNotification
  112     RETINEX,          // EvShrHighQuality
  113     TRANSFORM,        // EvPerspCorr
  114     DARKFRAME,        // EvLCPFile
  115     RGBCURVE,         // EvRGBrCurveLumamode
  116     IMPULSEDENOISE,   // EvIDNEnabled,
  117     IMPULSEDENOISE,   // EvIDNThresh,
  118     ALLNORAW,         // EvDPDNEnabled,
  119     ALLNORAW,         // EvDPDNLuma,
  120     ALLNORAW,         // EvDPDNChroma,
  121     ALLNORAW,         // EvDPDNGamma,
  122     ALLNORAW,         // EvDirPyrEqualizer,
  123     ALLNORAW,         // EvDirPyrEqlEnabled,
  124     LUMINANCECURVE,   // EvLSaturation,
  125     LUMINANCECURVE,   // EvLaCurve,
  126     LUMINANCECURVE,   // EvLbCurve,
  127     DEMOSAIC,         // EvDemosaicMethod
  128     DARKFRAME,        // EvPreProcessHotPixel
  129     RGBCURVE,         // EvSaturation,
  130     RGBCURVE,         // EvHSVEqualizerH,
  131     RGBCURVE,         // EvHSVEqualizerS,
  132     RGBCURVE,         // EvHSVEqualizerV,
  133     RGBCURVE,         // EvHSVEqEnabled,
  134     DEFRINGE,         // EvDefringeEnabled,
  135     DEFRINGE,         // EvDefringeRadius,
  136     DEFRINGE,         // EvDefringeThreshold,
  137     RGBCURVE,         // EvHLComprThreshold,
  138     RESIZE,           // EvResizeBoundingBox
  139     RESIZE,           // EvResizeAppliesTo
  140     LUMINANCECURVE,   // EvCBAvoidClip,
  141     LUMINANCECURVE,   // EvCBSatLimiter,
  142     LUMINANCECURVE,   // EvCBSatLimit,
  143     DEMOSAIC,         // EvDemosaicDCBIter
  144     ALLNORAW,         // EvDemosaicFalseColorIter
  145     DEMOSAIC,         // EvDemosaicDCBEnhanced
  146     DARKFRAME,        // EvPreProcessCARed
  147     DARKFRAME,        // EvPreProcessCABlue
  148     DARKFRAME,        // EvPreProcessLineDenoise
  149     DARKFRAME,        // EvPreProcessGEquilThresh
  150     DARKFRAME,        // EvPreProcessAutoCA
  151     DARKFRAME,        // EvPreProcessAutoDF
  152     DARKFRAME,        // EvPreProcessDFFile
  153     DARKFRAME,        // EvPreProcessExpCorrLinear
  154     0,                // --unused--
  155     FLATFIELD,        // EvFlatFieldFile,
  156     FLATFIELD,        // EvFlatFieldAutoSelect,
  157     FLATFIELD,        // EvFlatFieldBlurRadius,
  158     FLATFIELD,        // EvFlatFieldBlurType,
  159     TRANSFORM,        // EvAutoDIST,
  160     ALLNORAW,         // EvDPDNLumCurve,
  161     ALLNORAW,         // EvDPDNChromCurve,
  162     GAMMA,            // EvGAMMA
  163     GAMMA,            // EvGAMPOS
  164     GAMMA,            // EvGAMFREE
  165     GAMMA,            // EvSLPOS
  166     DARKFRAME,        // EvPreProcessExpBlackzero
  167     DARKFRAME,        // EvPreProcessExpBlackone
  168     DARKFRAME,        // EvPreProcessExpBlacktwo
  169     DARKFRAME,        // EvPreProcessExpBlackthree
  170     DARKFRAME,        // EvPreProcessExptwoGreen
  171     SHARPENING,       // EvSharpenEdgePasses
  172     SHARPENING,       // EvSharpenEdgeStrength
  173     SHARPENING,       // EvSharpenMicroStrength
  174     SHARPENING,       // EvSharpenMicroUniformity
  175     SHARPENING,       // EvSharpenEdgeEnabled
  176     SHARPENING,       // EvSharpenEdgeThreechannels
  177     SHARPENING,       // EvSharpenMicroEnabled
  178     SHARPENING,       // EvSharpenMicroMatrix
  179     DEMOSAIC,         // EvDemosaicALLEnhanced Disabled but not removed for now, may be reintroduced some day
  180     RGBCURVE,         // EvVibranceEnabled
  181     RGBCURVE,         // EvVibrancePastels
  182     RGBCURVE,         // EvVibranceSaturated
  183     RGBCURVE,         // EvVibranceProtectSkins
  184     RGBCURVE,         // EvVibranceAvoidColorShift
  185     RGBCURVE,         // EvVibrancePastSatTog
  186     RGBCURVE,         // EvVibrancePastSatThreshold
  187     SHARPENING,       // EvEPDStrength
  188     SHARPENING,       // EvEPDEdgeStopping
  189     SHARPENING,       // EvEPDScale
  190     SHARPENING,       // EvEPDReweightingIterates
  191     SHARPENING,       // EvEPDEnabled
  192     RGBCURVE,         // EvRGBrCurve
  193     RGBCURVE,         // EvRGBgCurve
  194     RGBCURVE,         // EvRGBbCurve
  195     RGBCURVE,         // EvNeutralExp
  196     DEMOSAIC | M_PREPROC, // EvDemosaicMethodPreProc
  197     LUMINANCECURVE,   // EvLCCurve
  198     LUMINANCECURVE,   // EvLCHCurve
  199     RGBCURVE,         // EvVibranceSkinTonesCurve
  200     LUMINANCECURVE,   // EvLLCCurve
  201     LUMINANCECURVE,   // EvLLCredsk
  202     ALLNORAW,         // EvDPDNLdetail
  203     ALLNORAW,         // EvCATEnabled
  204     LUMINANCECURVE,   // EvCATDegree
  205     LUMINANCECURVE,   // EvCATMethodsur
  206     LUMINANCECURVE,   // EvCATAdapscen
  207     LUMINANCECURVE,   // EvCATAdapLum
  208     LUMINANCECURVE,   // EvCATMethodWB
  209     LUMINANCECURVE,   // EvCATJLight
  210     LUMINANCECURVE,   // EvCATChroma
  211     LUMINANCECURVE,   // EvCATAutoDegree
  212     LUMINANCECURVE,   // EvCATContrast
  213     LUMINANCECURVE,   // EvCATSurr
  214     LUMINANCECURVE,   // EvCATgamut
  215     LUMINANCECURVE,   // EvCATmethodalg
  216     LUMINANCECURVE,   // EvCATRstpro
  217     LUMINANCECURVE,   // EvCATQbright
  218     LUMINANCECURVE,   // EvCATQContrast
  219     LUMINANCECURVE,   // EvCATSChroma
  220     LUMINANCECURVE,   // EvCATMchroma
  221     LUMINANCECURVE,   // EvCAThue
  222     LUMINANCECURVE,   // EvCATcurve1
  223     LUMINANCECURVE,   // EvCATcurve2
  224     LUMINANCECURVE,   // EvCATcurvemode1
  225     LUMINANCECURVE,   // EvCATcurvemode2
  226     LUMINANCECURVE,   // EvCATcurve3
  227     LUMINANCECURVE,   // EvCATcurvemode3
  228     LUMINANCECURVE,   // EvCATdatacie
  229     LUMINANCECURVE,   // EvCATtonecie
  230     ALLNORAW,         // EvDPDNbluechro
  231     ALLNORAW,         // EvDPDNperform
  232     ALLNORAW,         // EvDPDNmet
  233     DEMOSAIC,         // EvDemosaicLMMSEIter
  234     LUMINANCECURVE,   // EvCATbadpix
  235     LUMINANCECURVE,   // EvCATAutoadap
  236     DEFRINGE,         // EvPFCurve
  237     ALLNORAW,         // EvWBequal
  238     ALLNORAW,         // EvWBequalbo
  239     TRANSFORM,        // EvGradientDegree
  240     TRANSFORM,        // EvGradientEnabled
  241     TRANSFORM,        // EvPCVignetteStrength
  242     TRANSFORM,        // EvPCVignetteEnabled
  243     RGBCURVE,         // EvBWChmixEnabled
  244     RGBCURVE,         // EvBWred
  245     RGBCURVE,         // EvBWgreen
  246     RGBCURVE,         // EvBWblue
  247     RGBCURVE,         // EvBWredgam
  248     RGBCURVE,         // EvBWgreengam
  249     RGBCURVE,         // EvBWbluegam
  250     RGBCURVE,         // EvBWfilter
  251     RGBCURVE,         // EvBWsetting
  252     RGBCURVE,         // EvBWoran
  253     RGBCURVE,         // EvBWyell
  254     RGBCURVE,         // EvBWcyan
  255     RGBCURVE,         // EvBWmag
  256     RGBCURVE,         // EvBpur
  257     RGBCURVE,         // EvBWLuminanceEqual
  258     RGBCURVE,         // EvBWChmixEnabledLm
  259     RGBCURVE,         // EvBWmethod
  260     RGBCURVE,         // EvBWBeforeCurve
  261     RGBCURVE,         // EvBWBeforeCurveMode
  262     RGBCURVE,         // EvBWAfterCurve
  263     RGBCURVE,         // EvBWAfterCurveMode
  264     RGBCURVE,         // EvAutoch
  265     0,                // --unused--
  266     RGBCURVE,         // EvNeutralBW
  267     TRANSFORM,        // EvGradientFeather
  268     TRANSFORM,        // EvGradientStrength
  269     TRANSFORM,        // EvGradientCenter
  270     TRANSFORM,        // EvPCVignetteFeather
  271     TRANSFORM,        // EvPCVignetteRoundness
  272     TRANSFORM,        // EvVignettingRadius,
  273     TRANSFORM,        // EvVignettingStrength
  274     TRANSFORM,        // EvVignettingCenter
  275     LUMINANCECURVE,   // EvLCLCurve
  276     LUMINANCECURVE,   // EvLLHCurve
  277     LUMINANCECURVE,   // EvLHHCurve
  278     ALLNORAW,         // EvDirPyrEqualizerThreshold
  279     ALLNORAW,         // EvDPDNenhance
  280     RGBCURVE,         // EvBWMethodalg
  281     ALLNORAW,         // EvDirPyrEqualizerSkin
  282     ALLNORAW,         // EvDirPyrEqlgamutlab
  283     ALLNORAW,         // EvDirPyrEqualizerHueskin
  284     ALLNORAW,         // EvDPDNmedian
  285     ALLNORAW,         // EvDPDNmedmet
  286     RGBCURVE,         // EvColorToningEnabled
  287     RGBCURVE,         // EvColorToningColor
  288     RGBCURVE,         // EvColorToningOpacity
  289     RGBCURVE,         // EvColorToningCLCurve
  290     RGBCURVE,         // EvColorToningMethod
  291     RGBCURVE,         // EvColorToningLLCurve
  292     RGBCURVE,         // EvColorToningredlow
  293     RGBCURVE,         // EvColorToninggreenlow
  294     RGBCURVE,         // EvColorToningbluelow
  295     RGBCURVE,         // EvColorToningredmed
  296     RGBCURVE,         // EvColorToninggreenmed
  297     RGBCURVE,         // EvColorToningbluemed
  298     RGBCURVE,         // EvColorToningredhigh
  299     RGBCURVE,         // EvColorToninggreenhigh
  300     RGBCURVE,         // EvColorToningbluehigh
  301     RGBCURVE,         // EvColorToningbalance
  302     RGBCURVE,         // EvColorToningNeutral
  303     RGBCURVE,         // EvColorToningsatlow
  304     RGBCURVE,         // EvColorToningsathigh
  305     RGBCURVE,         // EvColorToningTwocolor
  306     RGBCURVE,         // EvColorToningNeutralcur
  307     RGBCURVE,         // EvColorToningLumamode
  308     RGBCURVE,         // EvColorToningShadows
  309     RGBCURVE,         // EvColorToningHighights
  310     RGBCURVE,         // EvColorToningSatProtection
  311     RGBCURVE,         // EvColorToningSatThreshold
  312     RGBCURVE,         // EvColorToningStrength
  313     RGBCURVE,         // EvColorToningautosat
  314     ALLNORAW,         // EvDPDNmetmed
  315     ALLNORAW,         // EvDPDNrgbmet
  316     ALLNORAW,         // EvDPDNpasses
  317     FLATFIELD,        // EvFlatFieldClipControl
  318     FLATFIELD,        // EvFlatFieldAutoClipControl
  319     DARKFRAME,        // EvPreProcessExpBlackRed
  320     DARKFRAME,        // EvPreProcessExpBlackGreen
  321     DARKFRAME,        // EvPreProcessExpBlackBlue
  322     RGBCURVE,         // EvFilmSimulationEnabled
  323     RGBCURVE,         // EvFilmSimulationStrength
  324     RGBCURVE,         // EvFilmSimulationFilename
  325     ALLNORAW,         // EvDPDNLCurve
  326     ALLNORAW,         // EvDPDNsmet
  327     DARKFRAME,        // EvPreProcessDeadPixel
  328     ALLNORAW,         // EvDPDNCCCurve
  329     ALLNORAW,         // EvDPDNautochroma
  330     ALLNORAW,         // EvDPDNLmet
  331     ALLNORAW,         // EvDPDNCmet
  332     ALLNORAW,         // EvDPDNC2met
  333     DIRPYREQUALIZER,  // EvWavelet
  334     DIRPYREQUALIZER,  // EvEnabled
  335     DIRPYREQUALIZER,  // EvWavLmethod
  336     DIRPYREQUALIZER,  // EvWavCLmethod
  337     DIRPYREQUALIZER,  // EvWavDirmethod
  338     DIRPYREQUALIZER,  // EvWavtiles
  339     DIRPYREQUALIZER,  // EvWavsky
  340     DIRPYREQUALIZER,  // EvWavthres
  341     DIRPYREQUALIZER,  // EvWavthr
  342     DIRPYREQUALIZER,  // EvWavchroma
  343     DIRPYREQUALIZER,  // EvWavmedian
  344     DIRPYREQUALIZER,  // EvWavunif
  345     DIRPYREQUALIZER,  // EvWavSkin
  346     DIRPYREQUALIZER,  // EvWavHueSkin
  347     DIRPYREQUALIZER,  // EvWavThreshold
  348     DIRPYREQUALIZER,  // EvWavlhl
  349     DIRPYREQUALIZER,  // EvWavbhl
  350     DIRPYREQUALIZER,  // EvWavThresHold2
  351     DIRPYREQUALIZER,  // EvWavavoid
  352     DIRPYREQUALIZER,  // EvWavCCCurve
  353     DIRPYREQUALIZER,  // EvWavpast
  354     DIRPYREQUALIZER,  // EvWavsat
  355     DIRPYREQUALIZER,  // EvWavCHmet
  356     DIRPYREQUALIZER,  // EvWavHSmet
  357     DIRPYREQUALIZER,  // EvWavchro
  358     DIRPYREQUALIZER,  // EvWavColor
  359     DIRPYREQUALIZER,  // EvWavOpac
  360     DIRPYREQUALIZER,  // EvWavsup
  361     DIRPYREQUALIZER,  // EvWavTilesmet
  362     DIRPYREQUALIZER,  // EvWavrescon
  363     DIRPYREQUALIZER,  // EvWavreschro
  364     DIRPYREQUALIZER,  // EvWavresconH
  365     DIRPYREQUALIZER,  // EvWavthrH
  366     DIRPYREQUALIZER,  // EvWavHueskin2
  367     DIRPYREQUALIZER,  // EvWavedgrad
  368     DIRPYREQUALIZER,  // EvWavedgval
  369     DIRPYREQUALIZER,  // EvWavStrngth
  370     DIRPYREQUALIZER,  // EvWavdaubcoeffmet
  371     DIRPYREQUALIZER,  // EvWavedgreinf
  372     DIRPYREQUALIZER,  // EvWaveletch
  373     DIRPYREQUALIZER,  // EvWavCHSLmet
  374     DIRPYREQUALIZER,  // EvWavedgcont
  375     DIRPYREQUALIZER,  // EvWavEDmet
  376     DIRPYREQUALIZER,  // EvWavlev0nois
  377     DIRPYREQUALIZER,  // EvWavlev1nois
  378     DIRPYREQUALIZER,  // EvWavlev2nois
  379     DIRPYREQUALIZER,  // EvWavmedianlev
  380     DIRPYREQUALIZER,  // EvWavHHCurve
  381     DIRPYREQUALIZER,  // EvWavBackmet
  382     DIRPYREQUALIZER,  // EvWavedgedetect
  383     DIRPYREQUALIZER,  // EvWavlipst
  384     DIRPYREQUALIZER,  // EvWavedgedetectthr
  385     DIRPYREQUALIZER,  // EvWavedgedetectthr2
  386     DIRPYREQUALIZER,  // EvWavlinkedg
  387     DIRPYREQUALIZER,  // EvWavCHCurve
  388     DARKFRAME,        // EvPreProcessHotDeadThresh
  389     SHARPENING,       // EvEPDgamma
  390     DIRPYREQUALIZER,  // EvWavtmr
  391     DIRPYREQUALIZER,  // EvWavTMmet
  392     DIRPYREQUALIZER,  // EvWavtmrs
  393     DIRPYREQUALIZER,  // EvWavbalance
  394     DIRPYREQUALIZER,  // EvWaviter
  395     DIRPYREQUALIZER,  // EvWavgamma
  396     DIRPYREQUALIZER,  // EvWavCLCurve
  397     DIRPYREQUALIZER,  // EvWavopacity
  398     DIRPYREQUALIZER,  // EvWavBAmet
  399     DIRPYREQUALIZER,  // EvWavopacityWL
  400     RESIZE,           // EvPrShrEnabled
  401     RESIZE,           // EvPrShrRadius
  402     RESIZE,           // EvPrShrAmount
  403     RESIZE,           // EvPrShrThresh
  404     RESIZE,           // EvPrShrEdgeOnly
  405     RESIZE,           // EvPrShrEdgeRadius=375,
  406     RESIZE,           // EvPrShrEdgeTolerance=376,
  407     RESIZE,           // EvPrShrHaloControl=377,
  408     RESIZE,           // EvPrShrHaloAmount=378,
  409     RESIZE,           // EvPrShrMethod=379,
  410     RESIZE,           // EvPrShrDRadius=380,
  411     RESIZE,           // EvPrShrDAmount=381,
  412     RESIZE,           // EvPrShrDDamping=382,
  413     RESIZE,           // EvPrShrDIterations=383,
  414     DIRPYREQUALIZER,  // EvWavcbenab
  415     DIRPYREQUALIZER,  // EvWavgreenhigh
  416     DIRPYREQUALIZER,  // EvWavbluehigh
  417     DIRPYREQUALIZER,  // EvWavgreenmed
  418     DIRPYREQUALIZER,  // EvWavbluemed
  419     DIRPYREQUALIZER,  // EvWavgreenlow
  420     DIRPYREQUALIZER,  // EvWavbluelow
  421     DIRPYREQUALIZER,  // EvWavNeutral
  422     RGBCURVE|M_AUTOEXP, // EvDCPApplyLookTable,
  423     RGBCURVE|M_AUTOEXP, // EvDCPApplyBaselineExposureOffset,
  424     ALLNORAW,         // EvDCPApplyHueSatMap
  425     DIRPYREQUALIZER,  // EvWavenacont
  426     DIRPYREQUALIZER,  // EvWavenachrom
  427     DIRPYREQUALIZER,  // EvWavenaedge
  428     DIRPYREQUALIZER,  // EvWavenares
  429     DIRPYREQUALIZER,  // EvWavenafin
  430     DIRPYREQUALIZER,  // EvWavenatoning
  431     DIRPYREQUALIZER,  // EvWavenanoise
  432     DIRPYREQUALIZER,  // EvWavedgesensi
  433     DIRPYREQUALIZER,  // EvWavedgeampli
  434     DIRPYREQUALIZER,  // EvWavlev3nois
  435     DIRPYREQUALIZER,  // EvWavNPmet
  436     DEMOSAIC,         // EvretinexMethod
  437     RETINEX,          // EvLneigh
  438     RETINEX,          // EvLgain
  439     RETINEX,          // EvLoffs
  440     RETINEX,          // EvLstr
  441     RETINEX,          // EvLscal
  442     RETINEX,          // EvLvart
  443     DEMOSAIC,         // EvLCDCurve
  444     RETINEX,          // EvRetinextransmission
  445     DEMOSAIC,         // EvRetinexEnabled
  446     RETINEX,          // EvRetinexmedianmap
  447     RETINEX,          // EvLlimd
  448     DEMOSAIC,         // Evretinexcolorspace
  449     DEMOSAIC,         // EvLCDHCurve
  450     DEMOSAIC,         // Evretinexgamma
  451     DEMOSAIC,         // EvLgam
  452     DEMOSAIC,         // EvLslope
  453     RETINEX,          // EvLhighl
  454     0,                // --unused--
  455     DEMOSAIC,         // EvRetinexlhcurve
  456     OUTPUTPROFILE,    // EvOIntent
  457     MONITORTRANSFORM, // EvMonitorTransform: no history message
  458     RETINEX,          // EvLiter
  459     RETINEX,          // EvLgrad
  460     RETINEX,          // EvLgrads
  461     RETINEX,          // EvLhighlights
  462     RETINEX,          // EvLh_tonalwidth
  463     RETINEX,          // EvLshadows
  464     RETINEX,          // EvLs_tonalwidth
  465     RETINEX,          // EvLradius
  466     RETINEX,          // EvmapMethod
  467     DEMOSAIC,         // EvRetinexmapcurve
  468     DEMOSAIC,         // EvviewMethod
  469     ALLNORAW,         // EvcbdlMethod
  470     RETINEX,          // EvRetinexgaintransmission
  471     RETINEX,          // EvLskal
  472     OUTPUTPROFILE,    // EvOBPCompens
  473     ALLNORAW,          // EvWBtempBias
  474     DARKFRAME,        // EvRawImageNum
  475     0,                // unused
  476     0,                // unused
  477     0,                // unused
  478     DEMOSAIC,         // EvPixelShiftEperIso
  479     0,                // unused
  480     0,                // unused
  481     DEMOSAIC,         // EvPixelshiftShowMotion
  482     DEMOSAIC,         // EvPixelshiftShowMotionMaskOnly
  483     0,                // unused
  484     0,                // unused
  485     0,                // unused
  486     DEMOSAIC,         // EvPixelShiftNonGreenCross
  487     0,                // unused
  488     0,                // unused
  489     0,                // unused
  490     0,                // unused
  491     DEMOSAIC,         // EvPixelShiftGreen
  492     0,                // unused
  493     DEMOSAIC,         // EvPixelShiftBlur
  494     DEMOSAIC,         // EvPixelShiftSigma
  495     0,                // unused
  496     0,                // unused
  497     DEMOSAIC,         // EvPixelShiftHoleFill
  498     DEMOSAIC,         // EvPixelShiftMedian
  499     0,                // unused
  500     DEMOSAIC,         // EvPixelShiftMotionMethod
  501     DEMOSAIC,         // EvPixelShiftSmooth
  502     DEMOSAIC,         // EvPixelShiftLmmse
  503     DEMOSAIC,         // EvPixelShiftEqualBright
  504     DEMOSAIC,         // EvPixelShiftEqualBrightChannel
  505     LUMINANCECURVE,   // EvCATtempout
  506     LUMINANCECURVE,   // EvCATgreenout
  507     LUMINANCECURVE,   // EvCATybout
  508     LUMINANCECURVE,   // EvCATDegreeout
  509     LUMINANCECURVE,   // EvCATAutoDegreeout
  510     LUMINANCECURVE,   // EvCATtempsc
  511     LUMINANCECURVE,   // EvCATgreensc
  512     LUMINANCECURVE,   // EvCATybscen
  513     LUMINANCECURVE,   // EvCATAutoyb
  514     DARKFRAME,        // EvLensCorrMode
  515     DARKFRAME,        // EvLensCorrLensfunCamera
  516     DARKFRAME,        // EvLensCorrLensfunLens
  517     ALLNORAW,         // EvTMFattalEnabled
  518     HDR,              // EvTMFattalThreshold
  519     HDR,              // EvTMFattalAmount
  520     ALLNORAW,         // EvWBEnabled
  521     RGBCURVE,         // EvRGBEnabled
  522     LUMINANCECURVE    // EvLEnabled
  523 };
  524 
  525 
  526 namespace rtengine {
  527 
  528 RefreshMapper::RefreshMapper():
  529     next_event_(rtengine::NUMOFEVENTS)
  530 {
  531     for (int event = 0; event < rtengine::NUMOFEVENTS; ++event) {
  532         actions_[event] = refreshmap[event];
  533     }
  534 }
  535 
  536 
  537 ProcEvent RefreshMapper::newEvent()
  538 {
  539     return ProcEvent(++next_event_);
  540 }
  541 
  542 
  543 void RefreshMapper::mapEvent(ProcEvent event, int action)
  544 {
  545     actions_[event] = action;
  546 }
  547 
  548 
  549 int RefreshMapper::getAction(ProcEvent event) const
  550 {
  551     auto it = actions_.find(event);
  552     if (it == actions_.end()) {
  553         return 0;
  554     } else {
  555         return it->second;
  556     }
  557 }
  558 
  559 
  560 RefreshMapper *RefreshMapper::getInstance()
  561 {
  562     static RefreshMapper instance;
  563     return &instance;
  564 }
  565 
  566 } // namespace rtengine