Re: Can an FxGenerator Access images in the from the timeline?
Re: Can an FxGenerator Access images in the from the timeline?
- Subject: Re: Can an FxGenerator Access images in the from the timeline?
- From: Darrin Cardani <email@hidden>
- Date: Sun, 10 Aug 2008 21:44:20 -0700
On Aug 10, 2008, at 8:29 PM, Brad Wright wrote: I'm trying to create a FxGenerator that can access images from the timeline using the FxTemporalImageAPI. So far, it doesn't work. I'd like to use the an image from the timeline, but still have the FxGenerator on it's own video track so that it can read input from multiple clips. I know this is kind of complicated sounding, but it makes the plug-in that I'm creating work much better as a generator than an FxFilter. The FxFilter ties it to only a single clip. I have the FxTemporalImageAPI working in the FxFilter version of the plug-in. However, no luck with the FxGenerator.
The documentation says that an FxGenerator doesn't require an input image. I don't know if that means it simple can't access one altogether.
The Temporal Image API is for accessing an input image, which generators don't have. What you probably want is to use an Image Reference parameter. Then the user can drop whatever clip they want to use into it, and the generator can get its frames. See <FxPlug/FxParameterAPI.h> for details:
- (BOOL)addImageReferenceWithName:(NSString *)name parmId:(UInt32)parmId parmFlags:(FxParameterFlags)flags;
- (BOOL)getBitmap:(FxBitmap **)image layerOffsetX:(double *)offsetX layerOffsetY:(double *)offsetY requestInfo:(FxRenderInfo)info fromParm:(UInt32)parmID atTime:(double)time;
- (BOOL)getTexture:(FxTexture **)image layerOffsetX:(double *)offsetX layerOffsetY:(double *)offsetY requestInfo:(FxRenderInfo)info fromParm:(UInt32)parmID atTime:(double)time;
Darrin |
_______________________________________________
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