Using the FxPlug SDK 1.2.5 and Motion 4, I make a new Filter plugin, and take out all the "functional" code. So, I end up with a main plugin .m file that looks like:
#import "MyPlugin.h"
#import <FxPlug/FxPlugSDK.h>
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#include <OpenGL/glu.h>
@implementation MyPlugin
- (id)initWithAPIManager:(id)apiManager;
{
_apiManager = apiManager;
return self;
}
- (void)dealloc
{
[super dealloc];
}
- (BOOL)variesOverTime
{
return NO;
}
- (NSDictionary *)properties
{
return [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool: YES], kFxPropertyKey_SupportsRowBytes,
[NSNumber numberWithBool: NO], kFxPropertyKey_SupportsR408,
[NSNumber numberWithBool: NO], kFxPropertyKey_SupportsR4fl,
[NSNumber numberWithBool: NO], kFxPropertyKey_MayRemapTime,
[NSNumber numberWithInt:0], kFxPropertyKey_EquivalentSMPTEWipeCode,
NULL];
}
- (BOOL)addParameters
{
return YES;
}
- (BOOL)parameterChanged:(UInt32)parmId
{
return YES;
}
- (BOOL)getOutputWidth:(UInt32 *)width
height:(UInt32 *)height
withInput:(FxImageInfo)inputInfo
withInfo:(FxRenderInfo)renderInfo
{
if ( width != NULL && height != NULL )
{
*width = inputInfo.width;
*height = inputInfo.height;
return YES;
}
else
return NO;
}
- (BOOL)renderOutput:(FxImage *)outputImage
withInput:(FxImage *)inputImage
withInfo:(FxRenderInfo)renderInfo
{
return NO;
}
- (BOOL)frameSetup:(FxRenderInfo)renderInfo
inputInfo:(FxImageInfo)inputInfo
hardware:(BOOL *)canRenderHardware
software:(BOOL *)canRenderSoftware
{
*canRenderSoftware = YES;
*canRenderHardware = NO;
return YES;
}
- (BOOL)frameCleanup
{
return YES;
}
@end
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden