FxParameterRetrievalAPI::getTexture scales timeline
FxParameterRetrievalAPI::getTexture scales timeline
- Subject: FxParameterRetrievalAPI::getTexture scales timeline
- From: Roman <email@hidden>
- Date: Thu, 03 Sep 2015 23:26:42 +0300
Hi guys,
I’m developing an FxPlug filter and need to blend two video sources. I have added a drop zone in the motion template and connected it with a filter’s parameter added as addImageReferenceWithName.
In my renderOutput function I invoke the following code
[parmsApi getTexture:&objectTexture layerOffsetX:0 layerOffsetY:0 requestInfo:renderInfo fromParm:kLayerParamID atTime:renderInfo.time.frame];
where renderInfo is a parameter passed into renderOutput
The returned objectTexture is correct and I successfully blend it over the main video clip. However I’m experiencing auto-scaling of the timeline of the clip added into the image well. E.g. if my main video clip is 20 seconds and I add a 6-seconds clip into the image well then this 6-seconds clip is scaled up to 20 seconds, though atTime:renderInfo.time.frame passed in getTexture is far beyond the 6-seconds limit, it is the time of the main timeline.
Also I tried to blend main video clip with title objects. The duration of title objects is also increased but differently. If I bend a 2 second title with 20 second clip then all title animation finishes at the 4th second. If I apply a 2 second title to a 2 second clip then the title animation finishes at the 1st second. It looks like title frames are retrieved faster by two times than they should.
Are there any rules I can use to compensate this timeline scales in my calculations?
Thanks, Roman |
_______________________________________________
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