Log in

View Full Version : How to load a C plugin


sbt5
4th June 2005, 14:36
I am trying to load leakkerneldeint c plugin into a avs script. I am using avisynth version 2.55. Here is a copy of my script so far.

LoadPlugin("D:\DVD Software\dgmpgdec131b9\DGDecode.dll")
LoadCPlugin("D:\DVDSoftware\leakkerneldeint_25_dll_20050118\LeakKernelDeint.dll")
MPEG2Source("D:\Working DVD\movie.d2v")
LanczosResize(720,480)

Cant seem to find the answer in the avisnyth manual nor in the forums.

Thanks :confused:

loa-ash
4th June 2005, 15:18
place all .dll in avs directory..

Wilbert
4th June 2005, 15:28
afaik leakkerneldeint isn't a c-plugin. (Btw, if it would be a c-plugin, you need to load avisynth_c.dll first. Do you have this dll?)

Guest
4th June 2005, 16:00
Load LeakKernelDeint() with LoadPlugin(). Wilbert is right.

Leak
4th June 2005, 23:23
Load LeakKernelDeint() with LoadPlugin(). Wilbert is right.

I third that. And I guess I know a bit or two about which interface it's using... ;)

np: Marko Fürstenberg - Visions (Dub) (Crossways Part 2)

sbt5
4th June 2005, 23:24
Thanks to Wilbert and neuron2. I quess when I extracted the plugin I thought it was a c_plugin since some of the files extensions were .cpp .h and also had the included folder. So does that mean the only file I really need is the leakkerneldeint.dll file and that I can delete all the other files and place the dll in my external filter directory? Again thanks for the quick reply. I learning but its a long uphill road.

Thanks
sbt5

Leak
4th June 2005, 23:30
Thanks to Wilbert and neuron2. I quess when I extracted the plugin I thought it was a c_plugin since some of the files extensions were .cpp .h and also had the included folder. So does that mean the only file I really need is the leakkerneldeint.dll file and that I can delete all the other files and place the dll in my external filter directory? Again thanks for the quick reply. I learning but its a long uphill road.

Yep, all files other than the DLL and the readme file make up the source code, should you wish to make changes to the filter... .cpp means it's a C++ file, which almost all AviSynth plugins are written in. The c_plugin interface was made so you can write a plugin in a language other than C++ (and mostly using Microsoft's implementation of that), like (nomen est omen) C, Pascal, VB and the like.

np: Xoki - A Forest Dub (Crossways Part 3)