ADC Home > Reference Library > Reference > Apple Applications > Final Cut Pro/Final Cut Express > FxPlug Reference
|
FxFilter |
Extends Protocol: | |
Declared In: |
Specifies the methods a filter plug-in needs to implement.
This protocol inherits from the parent protocol FxBaseEffect, whose methods must be implemented by any type of plug-in.
frameCleanup |
Asks the plug-in to clean up any memory allocated in frameSetup:. Called after renderOutput:.
- (BOOL)frameCleanup;
Returns YES if the cleanup is successful; NO otherwise.
frameSetup:inputInfo:hardware:software: |
Determines the type of input/output image the plug-in requires. The application calls this method before renderOutput:.
- (BOOL)frameSetup:(FxRenderInfo)renderInfo inputInfo:(FxImageInfo)inputInfo hardware:(BOOL *)canRenderHardware software:(BOOL *)canRenderSoftware;
renderInfo
inputInfo
canRenderHardware
canRenderSoftware
Returns YES if frame setup is successful; NO otherwise.
getOutputWidth:height:withInput:withInfo: |
Allows the host application to retrieve the size of an output image produced by the plug-in. The application can then allocate and setup a proper output image for rendering.
- (BOOL)getOutputWidth:(UInt32 *)width height:(UInt32 *)height withInput:(FxImageInfo)inputInfo withInfo:(FxRenderInfo)renderInfo;
width
height
inputInfo
renderInfo
Returns YES if the output size is properly determined and set to the width and
height parameters; NO otherwise.
NOTE: This method may not be called by some host applications that do not support
resizing.
renderOutput:withInput:withInfo: |
Renders output image from a plug-in.
- (BOOL)renderOutput:(FxImage *)output withInput:(FxImage *)inputImage withInfo:(FxRenderInfo)renderInfo;
output
inputImage
renderInfo
Returns YES if the output image is correctly populated and processing is successful; NO otherwise.
|