1 /*****************************************************************************
2
3 AvsFilterRemoveGrain/Repair16
4 Author: Laurent de Soras, 2012
5 Modified for VapourSynth by Fredrik Mellbin 2013
6
7 --- Legal stuff ---
8
9 This program is free software. It comes without any warranty, to
10 the extent permitted by applicable law. You can redistribute it
11 and/or modify it under the terms of the Do What The Fuck You Want
12 To Public License, Version 2, as published by Sam Hocevar. See
13 http://sam.zoy.org/wtfpl/COPYING for more details.
14
15 *Tab=3***********************************************************************/
16
17 #include "shared.h"
18
19 //////////////////////////////////////////
20 // Init
21
VapourSynthPluginInit(VSConfigPlugin configFunc,VSRegisterFunction registerFunc,VSPlugin * plugin)22 VS_EXTERNAL_API(void) VapourSynthPluginInit(VSConfigPlugin configFunc, VSRegisterFunction registerFunc, VSPlugin *plugin) {
23 configFunc("com.vapoursynth.removegrainvs", "rgvs", "RemoveGrain VapourSynth Port", VAPOURSYNTH_API_VERSION, 1, plugin);
24 registerFunc("RemoveGrain", "clip:clip;mode:int[];", removeGrainCreate, nullptr, plugin);
25 registerFunc("Repair", "clip:clip;repairclip:clip;mode:int[];", repairCreate, nullptr, plugin);
26 registerFunc("Clense", "clip:clip;previous:clip:opt;next:clip:opt;planes:int[]:opt;", clenseCreate, reinterpret_cast<void *>(cmNormal), plugin);
27 registerFunc("ForwardClense", "clip:clip;planes:int[]:opt;", clenseCreate, reinterpret_cast<void *>(cmForward), plugin);
28 registerFunc("BackwardClense", "clip:clip;planes:int[]:opt;", clenseCreate, reinterpret_cast<void *>(cmBackward), plugin);
29 registerFunc("VerticalCleaner", "clip:clip;mode:int[];", verticalCleanerCreate, nullptr, plugin);
30 }
31