TuttleOFX
1
|
Blur plugin. More...
#include <BlurPlugin.hpp>
Public Member Functions | |
BlurPlugin (OfxImageEffectHandle handle) | |
BlurProcessParams< Scalar > | getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const |
bool | getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod) |
The get RoD action. | |
void | getRegionsOfInterest (const OFX::RegionsOfInterestArguments &args, OFX::RegionOfInterestSetter &rois) |
the get region of interest action | |
bool | isIdentity (const OFX::RenderArguments &args, OFX::Clip *&identityClip, double &identityTime) |
client is identity function, returns the clip and time for the identity function | |
void | render (const OFX::RenderArguments &args) |
The overridden render function. | |
Data Fields | |
OFX::Double2DParam * | _paramSize |
OFX::ChoiceParam * | _paramBorder |
OFX::BooleanParam * | _paramNormalizedKernel |
OFX::DoubleParam * | _paramKernelEpsilon |
Private Types | |
typedef float | Scalar |
Blur plugin.
Definition at line 30 of file BlurPlugin.hpp.
typedef float tuttle::plugin::blur::BlurPlugin::Scalar [private] |
Definition at line 32 of file BlurPlugin.hpp.
tuttle::plugin::blur::BlurPlugin::BlurPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 13 of file BlurPlugin.cpp.
References _paramBorder, _paramKernelEpsilon, _paramNormalizedKernel, _paramSize, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ParamSet::fetchDouble2DParam(), OFX::ParamSet::fetchDoubleParam(), tuttle::plugin::blur::kParamBorder, tuttle::plugin::blur::kParamKernelEpsilon, tuttle::plugin::blur::kParamNormalizedKernel, and tuttle::plugin::blur::kParamSize.
BlurProcessParams< BlurPlugin::Scalar > tuttle::plugin::blur::BlurPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 22 of file BlurPlugin.cpp.
References _paramBorder, _paramKernelEpsilon, _paramNormalizedKernel, _paramSize, tuttle::plugin::blur::BlurProcessParams< Scalar >::_size, terry::filter::convolve_option_extend_constant, terry::filter::convolve_option_extend_mirror, terry::filter::convolve_option_extend_padded, terry::filter::convolve_option_extend_zero, tuttle::plugin::blur::eParamBorderBlack, tuttle::plugin::blur::eParamBorderConstant, tuttle::plugin::blur::eParamBorderMirror, tuttle::plugin::blur::eParamBorderNo, tuttle::plugin::blur::eParamBorderPadded, OFX::DoubleParam::getValue(), OFX::Double2DParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), and tuttle::plugin::ofxToGil().
Referenced by getRegionOfDefinition(), getRegionsOfInterest(), and isIdentity().
bool tuttle::plugin::blur::BlurPlugin::getRegionOfDefinition | ( | const OFX::RegionOfDefinitionArguments & | args, |
OfxRectD & | rod | ||
) | [virtual] |
The get RoD action.
If the effect wants change the rod from the default value (which is the union of RoD's of all input clips) it should set the rod argument and return true.
This is all in cannonical coordinates.
Reimplemented from OFX::ImageEffect.
Definition at line 70 of file BlurPlugin.cpp.
References tuttle::plugin::blur::BlurProcessParams< Scalar >::_border, tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelX, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelY, tuttle::plugin::blur::eParamBorderBlack, tuttle::plugin::blur::eParamBorderConstant, tuttle::plugin::blur::eParamBorderMirror, tuttle::plugin::blur::eParamBorderNo, tuttle::plugin::blur::eParamBorderPadded, OFX::Clip::getCanonicalRod(), getProcessParams(), OFX::RegionOfDefinitionArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
void tuttle::plugin::blur::BlurPlugin::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 99 of file BlurPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelX, tuttle::plugin::blur::BlurProcessParams< Scalar >::_gilKernelY, OFX::Clip::getCanonicalRod(), getProcessParams(), OFX::RegionOfInterestSetter::setRegionOfInterest(), OFX::RegionsOfInterestArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
bool tuttle::plugin::blur::BlurPlugin::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 112 of file BlurPlugin.cpp.
References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, tuttle::plugin::blur::BlurProcessParams< Scalar >::_size, getProcessParams(), OFX::RenderArguments::renderScale, and OFX::RenderArguments::time.
void tuttle::plugin::blur::BlurPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 127 of file BlurPlugin.cpp.
Definition at line 50 of file BlurPlugin.hpp.
Referenced by BlurPlugin(), and getProcessParams().
Definition at line 52 of file BlurPlugin.hpp.
Referenced by BlurPlugin(), and getProcessParams().
Definition at line 51 of file BlurPlugin.hpp.
Referenced by BlurPlugin(), and getProcessParams().
Definition at line 49 of file BlurPlugin.hpp.
Referenced by BlurPlugin(), and getProcessParams().