TuttleOFX
1
|
PushPixel plugin. More...
#include <PushPixelPlugin.hpp>
PushPixel plugin.
Definition at line 35 of file PushPixelPlugin.hpp.
typedef float tuttle::plugin::pushPixel::PushPixelPlugin::Scalar |
Definition at line 38 of file PushPixelPlugin.hpp.
tuttle::plugin::pushPixel::PushPixelPlugin::PushPixelPlugin | ( | OfxImageEffectHandle | handle | ) |
Definition at line 21 of file PushPixelPlugin.cpp.
References _clipDst, _clipMask, _clipSrc, _paramAngle, _paramBorder, _paramIntensity, _paramInterpolation, _paramNormalizedKernel, _paramOutput, _paramSize, OFX::ParamSet::fetchBooleanParam(), OFX::ParamSet::fetchChoiceParam(), OFX::ImageEffect::fetchClip(), OFX::ParamSet::fetchDoubleParam(), tuttle::plugin::pushPixel::kClipMask, kOfxImageEffectOutputClipName, kOfxImageEffectSimpleSourceClipName, tuttle::plugin::pushPixel::kParamAngle, tuttle::plugin::pushPixel::kParamBorder, tuttle::plugin::pushPixel::kParamIntensity, tuttle::plugin::pushPixel::kParamInterpolation(), tuttle::plugin::pushPixel::kParamNormalizedKernel, tuttle::plugin::pushPixel::kParamOutput, and tuttle::plugin::pushPixel::kParamSize.
PushPixelProcessParams< PushPixelPlugin::Scalar > tuttle::plugin::pushPixel::PushPixelPlugin::getProcessParams | ( | const OfxPointD & | renderScale = OFX::kNoRenderScale | ) | const |
Definition at line 37 of file PushPixelPlugin.cpp.
References tuttle::plugin::pushPixel::PushPixelProcessParams< Scalar >::_output, _paramAngle, _paramBorder, _paramIntensity, _paramInterpolation, _paramNormalizedKernel, _paramOutput, _paramSize, 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::pushPixel::eParamBorderBlack, tuttle::plugin::pushPixel::eParamBorderConstant, tuttle::plugin::pushPixel::eParamBorderMirror, tuttle::plugin::pushPixel::eParamBorderPadded, OFX::DoubleParam::getValue(), OFX::ChoiceParam::getValue(), OFX::BooleanParam::getValue(), and OfxPointD::x.
Referenced by getRegionsOfInterest(), and isIdentity().
void tuttle::plugin::pushPixel::PushPixelPlugin::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 91 of file PushPixelPlugin.cpp.
References _clipMask, _clipSrc, tuttle::plugin::pushPixel::PushPixelProcessParams< Scalar >::_kernelGaussian, tuttle::plugin::pushPixel::PushPixelProcessParams< Scalar >::_kernelGaussianDerivative, OFX::Clip::getCanonicalRod(), OFX::Clip::getPixelAspectRatio(), getProcessParams(), OFX::Clip::isConnected(), terry::filter::detail::kernel_1d_adaptor< Core >::left_size(), tuttle::max(), OFX::RegionsOfInterestArguments::regionOfInterest, terry::filter::detail::kernel_1d_adaptor< Core >::right_size(), OFX::RegionOfInterestSetter::setRegionOfInterest(), OFX::RegionsOfInterestArguments::time, OfxRectD::x1, OfxRectD::x2, OfxRectD::y1, and OfxRectD::y2.
bool tuttle::plugin::pushPixel::PushPixelPlugin::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 80 of file PushPixelPlugin.cpp.
References _clipSrc, tuttle::plugin::pushPixel::PushPixelProcessParams< Scalar >::_intensity, tuttle::plugin::pushPixel::PushPixelProcessParams< Scalar >::_size, getProcessParams(), and OFX::RenderArguments::time.
void tuttle::plugin::pushPixel::PushPixelPlugin::render | ( | const OFX::RenderArguments & | args | ) | [virtual] |
The overridden render function.
[in] | args | Rendering parameters |
Implements OFX::ImageEffect.
Definition at line 120 of file PushPixelPlugin.cpp.
References _clipDst, _clipSrc, OFX::eBitDepthCustom, OFX::eBitDepthFloat, OFX::eBitDepthNone, OFX::eBitDepthUByte, OFX::eBitDepthUShort, OFX::ePixelComponentRGBA, OFX::Clip::getPixelComponents(), OFX::Clip::getPixelDepth(), tuttle::plugin::ImageProcessor::setupAndProcess(), and TUTTLE_LOG_FATAL.
Destination image clip.
Definition at line 55 of file PushPixelPlugin.hpp.
Referenced by PushPixelPlugin(), and render().
Mask clip.
Definition at line 54 of file PushPixelPlugin.hpp.
Referenced by getRegionsOfInterest(), and PushPixelPlugin().
Source image clip.
Definition at line 53 of file PushPixelPlugin.hpp.
Referenced by getRegionsOfInterest(), isIdentity(), PushPixelPlugin(), and render().
Definition at line 61 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
Definition at line 63 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
Definition at line 60 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
interpolation method
Definition at line 62 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
Definition at line 59 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
Definition at line 57 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().
Definition at line 58 of file PushPixelPlugin.hpp.
Referenced by getProcessParams(), and PushPixelPlugin().