renderDestinationImage(_:sourceImages:pluginState:at:)
Sends a request that the host wants your plug-in to do its rendering for a given output image tile.
Declaration
func renderDestinationImage(_ destinationImage: FxImageTile, sourceImages: [FxImageTile], pluginState: Data?, at renderTime: CMTime) throwsParameters
- destinationImage:
The output image tile that your plug-in should render to.
- sourceImages:
An array of image tiles. Each one will have the size calculated in your plug-in’s Sourcetilerect(_:sourceimageindex:sourceimages:destinationtilerect:destinationimage:pluginstate:at:) method.
- pluginState:
The
NSDatareturned from your plug-in’s Pluginstate(_:at:quality:) method. - renderTime:
The rational time at which to render your output.
Mentioned in
Discussion
The host calls method when it wants your plug-in to render an image tile of the output image. It passes in each of the input tiles needed as well as the plug-in state needed for the calculations. Your plug-in does all its rendering in this method. Do not attempt to use the FxParameterRetrievalAPI* object, as it is invalid at this time. Note that this method will be called on multiple threads at the same time.