Hey,Seems we're reaching a dead-end here in Natron when trying to maintain the internal state expected by the plug-in when calling suite functions if they are called by a thread of the multi-thread suite or any other thread that wasn't spawned by the Host.
--
You received this message because you are subscribed to a topic in the Google Groups "ofx-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ofx-discussion/V6F_5pdubWo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ofx-discussio...@googlegroups.com.
To post to this group, send email to ofx-dis...@googlegroups.com.
Visit this group at http://groups.google.com/group/ofx-discussion.
For more options, visit https://groups.google.com/d/optout.
#include "ofxImageEffect.h" #define kOfxImageEffectActionRender "OfxImageEffectActionRender"
handle handle to the instance, cast to an OfxImageEffectHandle,inArgs has the following properties...kOfxPropTime - the time at which to test for identitykOfxImageEffectPropFieldToRender - the field to test for identitykOfxImageEffectPropRenderWindow - the window (in \ref PixelCoordinates) to test for identity underkOfxImageEffectPropRenderScale - the scale factor being applied to the images being renderredkOfxImageEffectPropSequentialRenderStatus - whether the effect is currently being rendered in strict frame order on a single instancekOfxImageEffectPropInteractiveRenderStatus - if the render is in response to a user modifying the effect in an interactive sessionoutArgs is redundant and should be set to NULL.OfxStatus(*clipGetImage)( | OfxImageClipHandleclip, |
|  | OfxTime  time, |
|  | OfxRectD *region, |
| Â | OfxPropertySetHandle *imageHandle); |
OfxStatus(*clipGetImage)(OfxImageClipHandleclip,  OfxTime  time,  OfxRectD *region,  OfxPropertySetHandle *imageHandle );ÂWe’ve lost quite a bit of infos here!;) And this is sometimes not possible for the host to recover all parameters correctly
HI Alexandre; what additional information does the host need at this point to retrieve the clip image? Unless your host is going to give a different image to each effect instance (?!) I don't see what else you need. The clip is stored somewhere in the host, and the host data structure pointed to by the clip handle should have all the info the host needs to retrieve it.--
Gary
Hi, I've also experienced the same problem.
And it's not only with texture requests, for example the getParamValue function can be called by the plugin without the time set; or the plugin could call the getTime function.
If you called the plugin to render two frames from two separate threads, it becomes difficult for the host to know what time to return to the plugin.
--
You received this message because you are subscribed to the Google Groups "ofx-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ofx-discussio...@googlegroups.com.
Yes that is a possible work around. But that means you end up with multiple copies of instances which must be initialised and synchronised.
This makes something that should be simple, overly complicated.
You're basically designing around the limitations of the API instead of having an API that makes the simple things simple.
Yes that is a possible work around. But that means you end up with multiple copies of instances which must be initialised and synchronised.
This makes something that should be simple, overly complicated.
You're basically designing around the limitations of the API instead of having an API that makes the simple things simple.
It would have to give you an image of the size of the region of definition
(in pixel coordinates) and at render scale 1:1
According to the spec, that is exactly what I would expect. Â I'm not
sure what this render scale is. Â What in the spec makes you think it
should do something different?
kOfxImagePropRegionOfDefinition bounds.And if you need to map from instance back to clip (if you have to
store per-instance state with each clip for whatever reason, or you
just need to know which instance called clipGetImage), can't you just
give a different clip handle to each instance? Â The host will get that
handle back as the first arg to clipGetImage.
You received this message because you are subscribed to a topic in the Google Groups "ofx-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ofx-discussion/V6F_5pdubWo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ofx-discussio...@googlegroups.com.