Quote:
Originally Posted by LaTo
What is the best way to detect Avisynth+ without losing compatibility with regular Avisynth?
I need that to automatically disable internal multi-threading in my filters.
Thanks.
|
There are several ways to identify the avisynth.dll.
1. Query "AVISYNTH_INTERFACE_VERSION". This only tells you if it's 2.5x or 2.6x
2. Parse the version string ("VersionString"). A bit unreliable.
3. Parse the export functions. That's the most useful and what I do in AVSMeter. For example:
Only 2.6x versions export "DeleteScriptEnvironment()"
Only AVS+ exports "CreateScriptEnvironment2"
Only SEt's and tsp's MT versions export "GetMTMode()".
A combination of the above should provide enough info.