View Single Post
Old 11th April 2019, 10:10   #8799  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Quote:
Originally Posted by LouieChuckyMerry View Post
3) Is there a trick to loading YADIFMod2? I can use my old YADIF.dll (Version 1.7.0.0) without issue, but if I replace it with the updated YADIFMod2.dll I receive the message "Script error: There is no function named 'Yadif.'"
Yadif()
Yadifmod()
Yadifmod2()



On the plus side, you can put all three in the plugins folder and they'll co-exist.

If you want to just swap them, but still use Yadif() in scripts, you could create a wrapper function to load YadifMod2() and put it in the auto-loading folder. I think they only have three arguments in common, but this should work.

function yadif(clip c, int "mode", int "order", int "opt") {
return c.yadifmod2(int "mode", int "order", int "opt") }

Thinking about it, classic Avisynth won't auto-load C plugins, and Yadif be one.
You could also rectify that by putting an avsi script in the auto-loading plugins folder. Something like

Yadif = "C:\Program Files\AviSynth\C Plugins\yadif.dll"
exist(Yadif) ? Load_Stdcall_Plugin(Yadif) : nop()

Last edited by hello_hello; 11th April 2019 at 10:19.
hello_hello is offline   Reply With Quote