1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Copyright (c) 2013-2018 Fredrik Mellbin
*
* This file is part of VapourSynth.
*
* VapourSynth 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 2.1 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
*/
/* As of api 3.2 all functions are threadsafe */
typedef struct VSScript VSScript;
typedef enum VSEvalFlags VSEvalFlags;
/* Get the api version */
; /* api 3.1 */
/* Initialize the available scripting runtimes, returns zero on failure */
;
/* Free all scripting runtimes */
;
/*
* Pass a pointer to a null handle to create a new one
* The values returned by the query functions are only valid during the lifetime of the VSScript
* scriptFilename is if the error message should reference a certain file, NULL allowed in vsscript_evaluateScript()
* core is to pass in an already created instance so that mixed environments can be used,
* NULL creates a new core that can be fetched with vsscript_getCore() later OR implicitly uses the one associated with an already existing handle when passed
* If efSetWorkingDir is passed to flags the current working directory will be changed to the path of the script
* note that if scriptFilename is NULL in vsscript_evaluateScript() then __file__ won't be set and the working directory won't be changed
* Set efSetWorkingDir to get the default and recommended behavior
*/
;
/* Convenience version of the above function that loads the script from a file */
;
/* Create an empty environment for use in later invocations, mostly useful to set script variables before execution */
;
;
;
;
/* The node returned must be freed using freeNode() before calling vsscript_freeScript() */
;
/* Both nodes returned must be freed using freeNode() before calling vsscript_freeScript(), the alpha node pointer will only be set if an alpha clip has been set in the script */
; /* api 3.1 */
/* Unset an output index */
;
/* The core is valid as long as the environment exists */
;
/* Convenience function for retrieving a vsapi pointer */
; /* deprecated as of api 3.2 since it's impossible to tell the api version supported */
; /* api 3.2, generally you should pass VAPOURSYNTH_API_VERSION */
/* Variables names that are not set or not of a convertible type will return an error */
;
;
;
/* Tries to clear everything set in an environment, normally it is better to simply free an environment completely and create a new one */
;
/* VSSCRIPT_H */