forked from vapoursynth/vapoursynth
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some necessary evil: ``` def tcanny(**args): if 'gmmax' in args: args['scale'] = args['gmmax'] / 255.0 del args['gmmax'] return core.tcanny._TCanny(**args) core.tcanny._register_func('TCanny', core.tcanny.TCanny.signature+'gmmax:float:opt;', core.tcanny.TCanny.return_signature, tcanny, override=True) ``` and ``` import havsfunc as haf core._create_plugin('id', 'haf')._register_func('QTGMC', \ 'clip:vnode;any', 'clip:vnode', \ lambda clip, **kwargs: haf.QTGMC(clip, **kwargs)) c = core.std.BlankClip(format=vs.YUV420P10) d = c.haf.QTGMC(TFF=1) ```
- Loading branch information
Showing
8 changed files
with
243 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (c) 2012-2022 Fredrik Mellbin | ||
* | ||
* This file is part of VapourSynth Classic. | ||
* | ||
* VS-C is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* VapourSynth is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with VapourSynth; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
// This API is for VS-C internal use only. | ||
|
||
#ifndef VAPOURSYNTHC_H | ||
#define VAPOURSYNTHC_H | ||
|
||
#include <stdint.h> | ||
|
||
#define VAPOURSYNTHC_API_VERSION 0x76732d63 // 'vs-c' | ||
|
||
typedef struct VSCAPI { | ||
int (VS_CC *getPluginAPIVersion)(const VSPlugin *); // major version only | ||
int (VS_CC *pluginSetRO)(VSPlugin *, int readonly); // returns old status | ||
int (VS_CC *pluginRenameFunc)(VSPlugin *, const char *oldname, const char *newname); | ||
VSPlugin *(VS_CC *createPlugin)(const char *id, const char *ns, int version, VSCore *core); | ||
} VSCAPI; | ||
|
||
#endif /* VAPOURSYNTHC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters