From 694d13eb907b7c40ac0db4e1209c177fc96506d3 Mon Sep 17 00:00:00 2001 From: Stefan-olt Date: Wed, 9 Oct 2024 19:26:02 +0200 Subject: [PATCH] two new plugins --- plugins/dctf.json | 187 +++++++++++++++++++++++++++++++++++++++ plugins/fft3dfilter.json | 186 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 373 insertions(+) create mode 100644 plugins/dctf.json create mode 100644 plugins/fft3dfilter.json diff --git a/plugins/dctf.json b/plugins/dctf.json new file mode 100644 index 0000000..310cba1 --- /dev/null +++ b/plugins/dctf.json @@ -0,0 +1,187 @@ +{ + "name": "DCTFilter", + "type": "VSPlugin", + "description": "DCT/IDCT Frequency Suppressor", + "identifier": "com.holywu.dctfilter", + "github": "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DCTFilter", + "runtime_dependencies": { + "fftw3": { + "versions": { + "3.3.10": { + "source": "https://www.fftw.org/fftw-3.3.10.tar.gz", + "hash": "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467", + "build": { + ".*": { + "commands": [ + { + "cmd": [ + "tar", + "xzf", + "{DL_FILENAME}" + ] + }, + { + "env": { + "CFLAGS": "-fPIC" + }, + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "./configure", + "--prefix={WORKSPACEDIR}", + "--enable-static", + "--disable-shared", + "--enable-single" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "make", + "-j{NPROC}" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "make", + "install" + ] + } + ] + } + } + } + } + } + }, + "file_definitions": { + "test-filter-0.vpy": { + "path": "{TESTDIR}", + "encoding": "text/utf-8", + "data": "import vapoursynth as vs\ncore = vs.core\ncore.std.LoadPlugin('{TESTDIR}/{PLUGIN_FILENAME}')\nc = core.std.BlankClip(format=vs.YUV420P8,width=320,height=240,length=10)\nc = core.dctf.DCTFilter(c,[0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2])\nc.set_output(0)\n" + } + }, + "tests": [ + { + "name": "test-filter-0", + "create_files": [ + "test-filter-0.vpy" + ], + "commands": [ + { + "cwd": "{TESTDIR}", + "cmd": [ + "{VSPIPE}", + "test-filter-0.vpy", + "--" + ] + } + ] + } + ], + "releases": [ + { + "version": "r2.1", + "published": "2018-11-29T09:02:43Z", + "source": "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DCTFilter/archive/refs/tags/r2.1.tar.gz", + "hash": "80b2e283ac694a7b37cc84f7e50ca3f7f18e370f31342edf0cfbcc2e5869c573", + "filename": "VapourSynth-DCTFilter-r2.1.tar.gz", + "additional_files": { + ".*": [ + "{BUILDDIR}/{DL_DIRECTORY}/LICENSE", + "{BUILDDIR}/{DL_DIRECTORY}/README.md" + ] + }, + "build": { + ".*": { + "commands": [ + { + "cmd": [ + "tar", + "xzf", + "{DL_FILENAME}" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "meson", + "rewrite", + "kwargs", + "delete", + "target", + "dctfilter", + "install_dir", + "foobar" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "meson", + "setup", + "--prefix={WORKSPACEDIR}", + "--libdir={WORKSPACEDIR}/lib", + "build" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "ninja", + "-C", + "build" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "ninja", + "-C", + "build", + "install" + ] + } + ], + "dependencies": [ + { + "name": "fftw3", + "version": "3.3.10" + } + ] + } + }, + "buildtools_dependencies": { + ".*": [ + { + "name": "meson", + "version": [ + ">=", + "0.60.0" + ] + }, + { + "name": "ninja", + "version": [ + ">=", + "1.10.0" + ] + } + ] + }, + "release_files": { + "linux-.*": [ + "{WORKSPACEDIR}/lib/libdctfilter.so" + ], + "darwin-.*": [ + "{WORKSPACEDIR}/lib/libdctfilter.dylib" + ] + }, + "tests": { + ".*": [ + "test-filter-0" + ] + } + } + ] +} diff --git a/plugins/fft3dfilter.json b/plugins/fft3dfilter.json new file mode 100644 index 0000000..3a42753 --- /dev/null +++ b/plugins/fft3dfilter.json @@ -0,0 +1,186 @@ +{ + "name": "FFT3DFilter", + "type": "VSPlugin", + "description": "3D frequency domain denoiser/sharpener", + "identifier": "systems.innocent.fft3dfilter", + "github": "https://github.com/myrsloik/VapourSynth-FFT3DFilter", + "runtime_dependencies": { + "fftw3": { + "versions": { + "3.3.10": { + "source": "https://www.fftw.org/fftw-3.3.10.tar.gz", + "hash": "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467", + "build": { + ".*": { + "commands": [ + { + "cmd": [ + "tar", + "xzf", + "{DL_FILENAME}" + ] + }, + { + "env": { + "CFLAGS": "-fPIC" + }, + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "./configure", + "--prefix={WORKSPACEDIR}", + "--enable-static", + "--disable-shared", + "--enable-single" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "make", + "-j{NPROC}" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "make", + "install" + ] + } + ] + } + } + } + } + } + }, + "file_definitions": { + "test-filter-0.vpy": { + "path": "{TESTDIR}", + "encoding": "text/utf-8", + "data": "import vapoursynth as vs\ncore = vs.core\ncore.std.LoadPlugin('{TESTDIR}/{PLUGIN_FILENAME}')\nc = core.std.BlankClip(format=vs.YUV420P8,width=320,height=240,length=10)\nc = core.fft3dfilter.FFT3DFilter(c)\nc.set_output(0)\n" + } + }, + "tests": [ + { + "name": "test-filter-0", + "create_files": [ + "test-filter-0.vpy" + ], + "commands": [ + { + "cwd": "{TESTDIR}", + "cmd": [ + "{VSPIPE}", + "test-filter-0.vpy", + "--" + ] + } + ] + } + ], + "releases": [ + { + "version": "R2", + "published": "2021-09-11T18:41:47Z", + "source": "https://github.com/myrsloik/VapourSynth-FFT3DFilter/archive/refs/tags/R2.tar.gz", + "hash": "d6656e265da213bb396bab5cc0455522c491494cd2954a54c013788323e231f1", + "filename": "VapourSynth-FFT3DFilter-R2.tar.gz", + "additional_files": { + ".*": [ + "{BUILDDIR}/{DL_DIRECTORY}/LICENSE" + ] + }, + "build": { + ".*": { + "commands": [ + { + "cmd": [ + "tar", + "xzf", + "{DL_FILENAME}" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "meson", + "rewrite", + "kwargs", + "delete", + "target", + "fft3dfilter", + "install_dir", + "foobar" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "meson", + "setup", + "--prefix={WORKSPACEDIR}", + "--libdir={WORKSPACEDIR}/lib", + "build" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "ninja", + "-C", + "build" + ] + }, + { + "cwd": "{DL_DIRECTORY}", + "cmd": [ + "ninja", + "-C", + "build", + "install" + ] + } + ], + "dependencies": [ + { + "name": "fftw3", + "version": "3.3.10" + } + ] + } + }, + "buildtools_dependencies": { + ".*": [ + { + "name": "meson", + "version": [ + ">=", + "0.60.0" + ] + }, + { + "name": "ninja", + "version": [ + ">=", + "1.10.0" + ] + } + ] + }, + "release_files": { + "linux-.*": [ + "{WORKSPACEDIR}/lib/libfft3dfilter.so" + ], + "darwin-.*": [ + "{WORKSPACEDIR}/lib/libfft3dfilter.dylib" + ] + }, + "tests": { + ".*": [ + "test-filter-0" + ] + } + } + ] +}