variesOverTime method of an FxPlug
variesOverTime method of an FxPlug
- Subject: variesOverTime method of an FxPlug
- From: Brian <email@hidden>
- Date: Wed, 30 Jan 2008 16:12:52 -0500 (EST)
I am a little confused about the "variesOverTime" method.
The default FxPlug template for a "filter" type FxPlug
(which implements "brightness" by default),
has the following code for "variesOverTime":
- (BOOL)variesOverTime
{
return NO;
}
But doesn't the explanation comment above the code
seems to indicate that this code is wrong?
Since the two different frames will typically
yield different results, even with the
same parameter settings? (eg "brightness" stays = 1.0)
So, frame 1 results can't be cached and reused for frame 2's results.
The comment (and also API help doc) states:
//---------------------------------------------------------
// variesOverTime
//
// This method should return YES if the plug-in's output can
// vary over time even when all of its parameter values remain
// constant. Returning NO means that a rendered frame can be
// cached and reused for other frames with the same parameter
// values.
//---------------------------------------------------------
Could anyone clarify this for me?
Is this a mistake in the documentation,
or a mistake in the default code,
or am I misunderstanding the docs?
Thanks.
-- Brian
_______________________________________________
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