TuttleOFX
1
|
Normalize plugin. More...
#include <NormalizePlugin.hpp>
Normalize plugin.
Definition at line 32 of file NormalizePlugin.hpp.
typedef float tuttle::plugin::normalize::NormalizePlugin::Scalar |
Definition at line 35 of file NormalizePlugin.hpp.
tuttle::plugin::normalize::NormalizePlugin::NormalizePlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 19 of file NormalizePlugin.cpp.
References _analyseMode, _analyseNow, _dstGroup, _dstMaxColor, _dstMinColor, _mode, _processA, _processB, _processG, _processGroup, _processR, _srcGroup, _srcMaxColor, _srcMinColor, changedParam(), OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchGroupParam(), OFX::ParamSet::fetchPushButtonParam(), OFX::ParamSet::fetchRGBAParam(), tuttle::plugin::normalize::kParamAnalyseMode, tuttle::plugin::normalize::kParamAnalyseNow, tuttle::plugin::normalize::kParamDstCustomColorMax, tuttle::plugin::normalize::kParamDstCustomColorMin, tuttle::plugin::normalize::kParamDstGroup, tuttle::plugin::normalize::kParamMode, tuttle::plugin::normalize::kParamProcessA, tuttle::plugin::normalize::kParamProcessB, tuttle::plugin::normalize::kParamProcessG, tuttle::plugin::normalize::kParamProcessGroup, tuttle::plugin::normalize::kParamProcessR, tuttle::plugin::normalize::kParamSrcCustomColorMax, tuttle::plugin::normalize::kParamSrcCustomColorMin, and tuttle::plugin::normalize::kParamSrcGroup.
void tuttle::plugin::normalize::NormalizePlugin::changedParam | ( | const OFX::InstanceChangedArgs & | args, |
const std::string & | paramName | ||
) | [virtual] |
called when a param has just had its value changed
Reimplemented from OFX::ImageEffect.
Definition at line 63 of file NormalizePlugin.cpp.
References _analyseMode, _analyseNow, tuttle::plugin::ImageEffectGilPlugin::_clipSrc, _mode, _srcGroup, _srcMaxColor, _srcMinColor, boost::gil::color_convert(), OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, tuttle::plugin::eImageOrientationIndependant, tuttle::plugin::normalize::eParamModeAnalyse, tuttle::plugin::normalize::eParamModeCustom, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::fetchImage(), OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), OFX::Clip::getPixelRod(), OFX::ChoiceParam::getValue(), OFX::Clip::isConnected(), tuttle::plugin::normalize::kParamAnalyseNow, tuttle::plugin::normalize::kParamMode, tuttle::max(), tuttle::min(), OFX::InstanceChangedArgs::renderScale, OFX::Param::setIsSecretAndDisabled(), tuttle::plugin::setRGBAParamValues(), tuttle::plugin::setRGBParamValues(), OFX::InstanceChangedArgs::time, TUTTLE_INFO, TUTTLE_TLOG, TUTTLE_TLOG_VAR, and TUTTLE_TRACE.
Referenced by NormalizePlugin().
NormalizeProcessParams< NormalizePlugin::Scalar > tuttle::plugin::normalize::NormalizePlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 42 of file NormalizePlugin.cpp.
References _analyseMode, _dstMaxColor, _dstMinColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_mode, _mode, _processA, _processB, _processG, _processR, _srcMaxColor, _srcMinColor, boost::gil::color_convert(), OFX::RGBAParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), and tuttle::plugin::ofxToGil().
Referenced by getRegionsOfInterest(), and isIdentity().
void tuttle::plugin::normalize::NormalizePlugin::getRegionsOfInterest | ( | const OFX::RegionsOfInterestArguments & | args, |
OFX::RegionOfInterestSetter & | rois | ||
) | [virtual] |
the get region of interest action
the get RoI action
If the effect wants change its region of interest on any input clip from the default values (which is the same as the RoI in the arguments) it should do so by calling the OFX::RegionOfInterestSetter::setRegionOfInterest function on the rois argument.
Note, everything is in cannonical coordinates.
Reimplemented from OFX::ImageEffect.
Definition at line 229 of file NormalizePlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_mode, tuttle::plugin::normalize::eParamModeAnalyse, tuttle::plugin::normalize::eParamModeCustom, OFX::Clip::getCanonicalRod(), getProcessParams(), OFX::RegionsOfInterestArguments::regionOfInterest, OFX::RegionOfInterestSetter::setRegionOfInterest(), and OFX::RegionsOfInterestArguments::time.
bool tuttle::plugin::normalize::NormalizePlugin::isIdentity | ( | const OFX::RenderArguments & | args, |
OFX::Clip *& | identityClip, | ||
double & | identityTime | ||
) | [virtual] |
client is identity function, returns the clip and time for the identity function
If the effect would do no processing for the given param set and render arguments, then this function should return true and set the identityClip pointer to point to the clip that is the identity and identityTime to be the time at which to access the clip for the identity operation.
Reimplemented from OFX::ImageEffect.
Definition at line 250 of file NormalizePlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_dstMaxColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_dstMinColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_mode, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_srcMaxColor, tuttle::plugin::normalize::NormalizeProcessParams< Scalar >::_srcMinColor, tuttle::plugin::normalize::eParamModeCustom, getProcessParams(), and OFX::RenderArguments::time.
void tuttle::plugin::normalize::NormalizePlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 268 of file NormalizePlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipDst, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, OFX::ePixelComponentAlpha, OFX::ePixelComponentCustom, OFX::ePixelComponentNone, OFX::ePixelComponentRGB, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), OFX::mapBitDepthEnumToString(), and OFX::mapPixelComponentEnumToString().
Definition at line 52 of file NormalizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and NormalizePlugin().
Definition at line 53 of file NormalizePlugin.hpp.
Referenced by changedParam(), and NormalizePlugin().
Definition at line 58 of file NormalizePlugin.hpp.
Referenced by NormalizePlugin().
Definition at line 60 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 59 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 51 of file NormalizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and NormalizePlugin().
Definition at line 65 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 64 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 63 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 61 of file NormalizePlugin.hpp.
Referenced by NormalizePlugin().
Definition at line 62 of file NormalizePlugin.hpp.
Referenced by getProcessParams(), and NormalizePlugin().
Definition at line 55 of file NormalizePlugin.hpp.
Referenced by changedParam(), and NormalizePlugin().
Definition at line 57 of file NormalizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and NormalizePlugin().
Definition at line 56 of file NormalizePlugin.hpp.
Referenced by changedParam(), getProcessParams(), and NormalizePlugin().