TuttleOFX  1
tuttle::plugin::swscale::SwscalePlugin Class Reference

Swscale plugin. More...

#include <SwscalePlugin.hpp>

Inheritance diagram for tuttle::plugin::swscale::SwscalePlugin:
Collaboration diagram for tuttle::plugin::swscale::SwscalePlugin:

Public Types

typedef float Scalar
typedef boost::gil::point2
< double > 
Point2

Public Member Functions

 SwscalePlugin (OfxImageEffectHandle handle)
SwscaleProcessParams getProcessParams (const OfxPointD &renderScale=OFX::kNoRenderScale) const
void updateVisibleTools ()
void changedParam (const OFX::InstanceChangedArgs &args, const std::string &paramName)
 called when a param has just had its value changed
bool getRegionOfDefinition (const OFX::RegionOfDefinitionArguments &args, OfxRectD &rod)
 The get RoD 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::ChoiceParam_paramMode
OFX::ChoiceParam_paramFormat
OFX::Int2DParam_paramSize
OFX::IntParam_paramSizeWidth
OFX::IntParam_paramSizeHeight
OFX::BooleanParam_paramSizeKeepRatio
OFX::ChoiceParam_paramSizeOrientation
OFX::Double2DParam_paramScale
OFX::ChoiceParam_paramFilter

Private Member Functions

bool isIdentity () const

Detailed Description

Swscale plugin.

Definition at line 22 of file SwscalePlugin.hpp.


Member Typedef Documentation

typedef boost::gil::point2<double> tuttle::plugin::swscale::SwscalePlugin::Point2

Definition at line 26 of file SwscalePlugin.hpp.

Definition at line 25 of file SwscalePlugin.hpp.


Constructor & Destructor Documentation


Member Function Documentation

SwscaleProcessParams tuttle::plugin::swscale::SwscalePlugin::getProcessParams ( const OfxPointD renderScale = OFX::kNoRenderScale) const
bool tuttle::plugin::swscale::SwscalePlugin::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 301 of file SwscalePlugin.cpp.

References tuttle::plugin::ImageEffectGilPlugin::_clipSrc, isIdentity(), and OFX::RenderArguments::time.

Here is the call graph for this function:

bool tuttle::plugin::swscale::SwscalePlugin::isIdentity ( ) const [private]
Todo:
could we read the input rod at this step?
Todo:
could we read the input rod at this step?

Definition at line 276 of file SwscalePlugin.cpp.

References _paramMode, _paramScale, tuttle::plugin::swscale::eParamModeFormat, tuttle::plugin::swscale::eParamModeScale, tuttle::plugin::swscale::eParamModeSize, OFX::Double2DParam::getValue(), OFX::ChoiceParam::getValue(), tuttle::plugin::ofxToGil(), and tuttle::plugin::viewer::scale.

Referenced by isIdentity().

Here is the call graph for this function:

void tuttle::plugin::swscale::SwscalePlugin::render ( const OFX::RenderArguments args) [virtual]

The overridden render function.

Parameters:
[in]argsRendering parameters

Implements OFX::ImageEffect.

Definition at line 316 of file SwscalePlugin.cpp.

References OFX::ImageEffectHostDescription::_supportedPixelDepths, OFX::eBitDepthFloat, OFX::getImageEffectHostDescription(), and tuttle::plugin::ImageProcessor::setupAndProcess().

Here is the call graph for this function:

void tuttle::plugin::swscale::SwscalePlugin::updateVisibleTools ( )

Field Documentation


The documentation for this class was generated from the following files: