Name

OfxImageEffectSuiteV1::clipGetImage — Get a handle for an image in a clip at the indicated time and indicated region

Synopsis

#include "ofxImageEffect.h" 
OfxStatus(*clipGetImage)(OfxImageClipHandleclip,
 OfxTime time,
 OfxRectD *region,
 OfxPropertySetHandle *imageHandle);
 

Arguments

  • clip - the clip to extract the image from
  • time - time to fetch the image at
  • region - region to fetch the image from (optional, set to NULL to get a 'default' region) this is in the CanonicalCoordinates.
  • imageHandle - property set containing the image's data

Description

An image is fetched from a clip at the indicated time for the given region and returned in the imageHandle.

Returns

  • kOfxStatOK - the image was successfully fetched and returned in the handle,
  • kOfxStatFailed - the image could not be fetched because it does not exist in the clip at the indicated time and/or region, the plugin

should continue operation, but assume the image was black and transparent.