LoadPlugin

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''Plugins''' With these functions you can add external functions to AviSynth. ''LoadPlugin ("filename" [, ...])'' Loads one or more external avisynth plugins (DLLs). ----...")
 
m (one less TODO: add category)
Line 39: Line 39:
 
Kevin provides a LoadCPlugin.dll that overloads the LoadCPlugin() verb to support plugins compiled using the C subroutine calling sequence, use Load_Stdcall_Plugin() to load stdcall calling sequence plugins when using Kevins version. Advice: keep these plugins outside your auto plugin loading directory to prevent crashes. [http://forum.doom9.org/showthread.php?s=&threadid=58840 discussion] [http://kevin.atkinson.dhs.org/avisynth_c/ AVISynth C API (by kevina20723)]
 
Kevin provides a LoadCPlugin.dll that overloads the LoadCPlugin() verb to support plugins compiled using the C subroutine calling sequence, use Load_Stdcall_Plugin() to load stdcall calling sequence plugins when using Kevins version. Advice: keep these plugins outside your auto plugin loading directory to prevent crashes. [http://forum.doom9.org/showthread.php?s=&threadid=58840 discussion] [http://kevin.atkinson.dhs.org/avisynth_c/ AVISynth C API (by kevina20723)]
  
 
+
[[Category:AviSynth_Syntax]]
todo: add category
+
[[Category:Scripting_Reference]]

Revision as of 02:40, 23 August 2014

Plugins

With these functions you can add external functions to AviSynth.

LoadPlugin ("filename" [, ...])

Loads one or more external avisynth plugins (DLLs).


VirtualDub Plugins

LoadVirtualDubPlugin ("filename", "filtername", preroll)

This loads a plugin written for VirtualDub. "filename" is the name of the .vdf file. After calling this function, the filter will be known as "filtername" in avisynth. VirtualDub filters only supports RGB32. If the video happens to be in RGB24-format, then you must use ConvertToRGB32 (ConvertToRGB won't suffice).

Some filters output depends on previous frames; for those preroll should be set to at least the number of frames the filter needs to pre-process to fill its buffers and/or updates its internal variables.


VFAPI Plugins

LoadVFAPIPlugin ("filename", "filtername")

This allows you to use VFAPI plugins (TMPGEnc import plugins).


StdCall C Plugins

LoadCPlugin ("filename" [, ...])

Load_Stdcall_Plugin ("filename" [, ...])

Loads so called Avisynth C-plugins (DLLs). Load_Stdcall_Plugin() is an alias for LoadCPlugin(). C-plugins are created on pure C language and use special "AviSynth C API" (unlike ordinary Avisynt plugins which are created with MS C++). C-plugins must be loaded with LoadCPlugin() or Load_Stdcall_Plugin().

Kevin provides a LoadCPlugin.dll that overloads the LoadCPlugin() verb to support plugins compiled using the C subroutine calling sequence, use Load_Stdcall_Plugin() to load stdcall calling sequence plugins when using Kevins version. Advice: keep these plugins outside your auto plugin loading directory to prevent crashes. discussion AVISynth C API (by kevina20723)

Personal tools