Instance Method

getOutputWidth:height:withInputA:withInputB:withTimeFraction:withInfo:

Allows the host application to retrieve the size of an output image produced by the plug-in.

Required.

Declaration

- (BOOL)getOutputWidth:(NSUInteger *)width height:(NSUInteger *)height withInputA:(FxImageInfo)inputInfoA withInputB:(FxImageInfo)inputInfoB withTimeFraction:(float)timeFraction withInfo:(FxRenderInfo)renderInfo;

Parameters

width

Returns, by-reference, the width of the output image generated by the plug-in.

height

Returns, by-reference, the height of the output image generated by the plug-in.

inputInfoA

An image information structure that defines the first input image.

inputInfoB

An image information structure that defines the second input image.

timeFraction

Fraction of duration (between 0.0 and 1.0)

renderInfo

Information about the render type the application is requesting.

Return Value

YES if the output size is properly determined and set to the width and height parameters; otherwise NO.

Discussion

The application will call this method and then allocate the required memory and setup a proper output image for rendering.

This method may not be called by host applications that do not support resizing.