#include "ofxImageEffect.h" #define kOfxImageEffectActionRender "OfxImageEffectActionRender"
handle
handle to the instance, cast to an OfxImageEffectHandle
,inArgs
has the following properties...
kOfxPropTime
- the time at which to test for identitykOfxImageEffectPropFieldToRender
- the field to test for identitykOfxImageEffectPropRenderWindow
- the window (in \ref PixelCoordinates) to test for identity underkOfxImageEffectPropRenderScale
- the scale factor being applied to the images being renderredkOfxImageEffectPropSequentialRenderStatus
- whether the effect is currently being rendered in strict frame order on a single instancekOfxImageEffectPropInteractiveRenderStatus
- if the render is in response to a user modifying the effect in an interactive sessionkOfxImageEffectPropRenderQualityDraft
- if the render should be done in draft mode (e.g. for faster scrubbing)outArgs
is redundant and should be set to NULL.
This action is where an effect gets to push pixels and turn its input clips and parameter set into an output image. This is possibly quite complicated and covered in the Rendering Image Effects chapter.
The render action must be trapped by the plug-in, it cannot return kOfxStatReplyDefault. The pixels needs be pushed I'm afraid.