VS plugin API
This is VapourSynth plugin API overview
In Nim you can create your custom filters as you would normally do in C or C++.
In VapourSynth, you can create a filter in pure Python as shown here. It is really easy (10 lines of code), but as the author mentioned, it is “exceptionally slow”.
In order to develop a filter in C, you need to include in a plugin or just to define a function. In any case, you need to fulfill the API depicted [here](/VapourSynth plugin/).
For example the crop filter in the std
You have two options.
You can always implement the C API as in mycrop.nim example.
This might be necessary in very particular cases, where you modify substancially the frame format.
I created a macro in order to make easier the development of filters.
This makes the creating of filters simple without having any impact on speed (this is because the macro creates all the required functions at compile time, not at runtime).
The question is how fast is this. It is fast as C, but right now I am not comparing apples to apples yet.
This is VapourSynth plugin API overview
Comparing filters performance in Nim and C++
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.