1pub const _STDINT_H: u32 = 1;
4pub const _FEATURES_H: u32 = 1;
5pub const _DEFAULT_SOURCE: u32 = 1;
6pub const __GLIBC_USE_ISOC2Y: u32 = 0;
7pub const __GLIBC_USE_ISOC23: u32 = 0;
8pub const __USE_ISOC11: u32 = 1;
9pub const __USE_ISOC99: u32 = 1;
10pub const __USE_ISOC95: u32 = 1;
11pub const __USE_POSIX_IMPLICITLY: u32 = 1;
12pub const _POSIX_SOURCE: u32 = 1;
13pub const _POSIX_C_SOURCE: u32 = 202405;
14pub const __USE_POSIX: u32 = 1;
15pub const __USE_POSIX2: u32 = 1;
16pub const __USE_POSIX199309: u32 = 1;
17pub const __USE_POSIX199506: u32 = 1;
18pub const __USE_XOPEN2K: u32 = 1;
19pub const __USE_XOPEN2K8: u32 = 1;
20pub const _ATFILE_SOURCE: u32 = 1;
21pub const __USE_XOPEN2K24: u32 = 1;
22pub const __WORDSIZE: u32 = 64;
23pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
24pub const __SYSCALL_WORDSIZE: u32 = 64;
25pub const __TIMESIZE: u32 = 64;
26pub const __USE_TIME_BITS64: u32 = 1;
27pub const __USE_MISC: u32 = 1;
28pub const __USE_ATFILE: u32 = 1;
29pub const __USE_FORTIFY_LEVEL: u32 = 0;
30pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
31pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
32pub const __GLIBC_USE_C23_STRTOL: u32 = 0;
33pub const _STDC_PREDEF_H: u32 = 1;
34pub const __STDC_IEC_559__: u32 = 1;
35pub const __STDC_IEC_60559_BFP__: u32 = 201404;
36pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
37pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
38pub const __STDC_ISO_10646__: u32 = 201706;
39pub const __GNU_LIBRARY__: u32 = 6;
40pub const __GLIBC__: u32 = 2;
41pub const __GLIBC_MINOR__: u32 = 43;
42pub const _SYS_CDEFS_H: u32 = 1;
43pub const __glibc_c99_flexarr_available: u32 = 1;
44pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
45pub const __HAVE_GENERIC_SELECTION: u32 = 1;
46pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
47pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
48pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23: u32 = 0;
49pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
50pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
51pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23: u32 = 0;
52pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
53pub const _BITS_TYPES_H: u32 = 1;
54pub const _BITS_TYPESIZES_H: u32 = 1;
55pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
56pub const __INO_T_MATCHES_INO64_T: u32 = 1;
57pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
58pub const __STATFS_MATCHES_STATFS64: u32 = 1;
59pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
60pub const __FD_SETSIZE: u32 = 1024;
61pub const _BITS_TIME64_H: u32 = 1;
62pub const _BITS_WCHAR_H: u32 = 1;
63pub const _BITS_STDINT_INTN_H: u32 = 1;
64pub const _BITS_STDINT_UINTN_H: u32 = 1;
65pub const _BITS_STDINT_LEAST_H: u32 = 1;
66pub const INT8_MIN: i32 = -128;
67pub const INT16_MIN: i32 = -32768;
68pub const INT32_MIN: i32 = -2147483648;
69pub const INT8_MAX: u32 = 127;
70pub const INT16_MAX: u32 = 32767;
71pub const INT32_MAX: u32 = 2147483647;
72pub const UINT8_MAX: u32 = 255;
73pub const UINT16_MAX: u32 = 65535;
74pub const UINT32_MAX: u32 = 4294967295;
75pub const INT_LEAST8_MIN: i32 = -128;
76pub const INT_LEAST16_MIN: i32 = -32768;
77pub const INT_LEAST32_MIN: i32 = -2147483648;
78pub const INT_LEAST8_MAX: u32 = 127;
79pub const INT_LEAST16_MAX: u32 = 32767;
80pub const INT_LEAST32_MAX: u32 = 2147483647;
81pub const UINT_LEAST8_MAX: u32 = 255;
82pub const UINT_LEAST16_MAX: u32 = 65535;
83pub const UINT_LEAST32_MAX: u32 = 4294967295;
84pub const INT_FAST8_MIN: i32 = -128;
85pub const INT_FAST16_MIN: i64 = -9223372036854775808;
86pub const INT_FAST32_MIN: i64 = -9223372036854775808;
87pub const INT_FAST8_MAX: u32 = 127;
88pub const INT_FAST16_MAX: u64 = 9223372036854775807;
89pub const INT_FAST32_MAX: u64 = 9223372036854775807;
90pub const UINT_FAST8_MAX: u32 = 255;
91pub const UINT_FAST16_MAX: i32 = -1;
92pub const UINT_FAST32_MAX: i32 = -1;
93pub const INTPTR_MIN: i64 = -9223372036854775808;
94pub const INTPTR_MAX: u64 = 9223372036854775807;
95pub const UINTPTR_MAX: i32 = -1;
96pub const PTRDIFF_MIN: i64 = -9223372036854775808;
97pub const PTRDIFF_MAX: u64 = 9223372036854775807;
98pub const SIG_ATOMIC_MIN: i32 = -2147483648;
99pub const SIG_ATOMIC_MAX: u32 = 2147483647;
100pub const SIZE_MAX: i32 = -1;
101pub const WINT_MIN: u32 = 0;
102pub const WINT_MAX: u32 = 4294967295;
103pub const VAPOURSYNTH_API_MAJOR: u32 = 4;
104pub const VAPOURSYNTH_API_MINOR: u32 = 0;
105pub const VS_AUDIO_FRAME_SAMPLES: u32 = 3072;
106pub const VSSCRIPT_API_MAJOR: u32 = 4;
107pub const VSSCRIPT_API_MINOR: u32 = 1;
108pub type __u_char = ::std::os::raw::c_uchar;
109pub type __u_short = ::std::os::raw::c_ushort;
110pub type __u_int = ::std::os::raw::c_uint;
111pub type __u_long = ::std::os::raw::c_ulong;
112pub type __int8_t = ::std::os::raw::c_schar;
113pub type __uint8_t = ::std::os::raw::c_uchar;
114pub type __int16_t = ::std::os::raw::c_short;
115pub type __uint16_t = ::std::os::raw::c_ushort;
116pub type __int32_t = ::std::os::raw::c_int;
117pub type __uint32_t = ::std::os::raw::c_uint;
118pub type __int64_t = ::std::os::raw::c_long;
119pub type __uint64_t = ::std::os::raw::c_ulong;
120pub type __int_least8_t = __int8_t;
121pub type __uint_least8_t = __uint8_t;
122pub type __int_least16_t = __int16_t;
123pub type __uint_least16_t = __uint16_t;
124pub type __int_least32_t = __int32_t;
125pub type __uint_least32_t = __uint32_t;
126pub type __int_least64_t = __int64_t;
127pub type __uint_least64_t = __uint64_t;
128pub type __quad_t = ::std::os::raw::c_long;
129pub type __u_quad_t = ::std::os::raw::c_ulong;
130pub type __intmax_t = ::std::os::raw::c_long;
131pub type __uintmax_t = ::std::os::raw::c_ulong;
132pub type __dev_t = ::std::os::raw::c_ulong;
133pub type __uid_t = ::std::os::raw::c_uint;
134pub type __gid_t = ::std::os::raw::c_uint;
135pub type __ino_t = ::std::os::raw::c_ulong;
136pub type __ino64_t = ::std::os::raw::c_ulong;
137pub type __mode_t = ::std::os::raw::c_uint;
138pub type __nlink_t = ::std::os::raw::c_ulong;
139pub type __off_t = ::std::os::raw::c_long;
140pub type __off64_t = ::std::os::raw::c_long;
141pub type __pid_t = ::std::os::raw::c_int;
142#[repr(C)]
143#[derive(Debug, Copy, Clone)]
144pub struct __fsid_t {
145 pub __val: [::std::os::raw::c_int; 2usize],
146}
147#[allow(clippy::unnecessary_operation, clippy::identity_op)]
148const _: () = {
149 ["Size of __fsid_t"][::std::mem::size_of::<__fsid_t>() - 8usize];
150 ["Alignment of __fsid_t"][::std::mem::align_of::<__fsid_t>() - 4usize];
151 ["Offset of field: __fsid_t::__val"][::std::mem::offset_of!(__fsid_t, __val) - 0usize];
152};
153pub type __clock_t = ::std::os::raw::c_long;
154pub type __rlim_t = ::std::os::raw::c_ulong;
155pub type __rlim64_t = ::std::os::raw::c_ulong;
156pub type __id_t = ::std::os::raw::c_uint;
157pub type __time_t = ::std::os::raw::c_long;
158pub type __useconds_t = ::std::os::raw::c_uint;
159pub type __suseconds_t = ::std::os::raw::c_long;
160pub type __suseconds64_t = ::std::os::raw::c_long;
161pub type __daddr_t = ::std::os::raw::c_int;
162pub type __key_t = ::std::os::raw::c_int;
163pub type __clockid_t = ::std::os::raw::c_int;
164pub type __timer_t = *mut ::std::os::raw::c_void;
165pub type __blksize_t = ::std::os::raw::c_long;
166pub type __blkcnt_t = ::std::os::raw::c_long;
167pub type __blkcnt64_t = ::std::os::raw::c_long;
168pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
169pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
170pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
171pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
172pub type __fsword_t = ::std::os::raw::c_long;
173pub type __ssize_t = ::std::os::raw::c_long;
174pub type __syscall_slong_t = ::std::os::raw::c_long;
175pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
176pub type __loff_t = __off64_t;
177pub type __caddr_t = *mut ::std::os::raw::c_char;
178pub type __intptr_t = ::std::os::raw::c_long;
179pub type __socklen_t = ::std::os::raw::c_uint;
180pub type __sig_atomic_t = ::std::os::raw::c_int;
181pub type int_least8_t = __int_least8_t;
182pub type int_least16_t = __int_least16_t;
183pub type int_least32_t = __int_least32_t;
184pub type int_least64_t = __int_least64_t;
185pub type uint_least8_t = __uint_least8_t;
186pub type uint_least16_t = __uint_least16_t;
187pub type uint_least32_t = __uint_least32_t;
188pub type uint_least64_t = __uint_least64_t;
189pub type int_fast8_t = ::std::os::raw::c_schar;
190pub type int_fast16_t = ::std::os::raw::c_long;
191pub type int_fast32_t = ::std::os::raw::c_long;
192pub type int_fast64_t = ::std::os::raw::c_long;
193pub type uint_fast8_t = ::std::os::raw::c_uchar;
194pub type uint_fast16_t = ::std::os::raw::c_ulong;
195pub type uint_fast32_t = ::std::os::raw::c_ulong;
196pub type uint_fast64_t = ::std::os::raw::c_ulong;
197pub type intmax_t = __intmax_t;
198pub type uintmax_t = __uintmax_t;
199pub type wchar_t = ::std::os::raw::c_int;
200#[repr(C)]
201#[repr(align(16))]
202#[derive(Debug, Copy, Clone)]
203pub struct max_align_t {
204 pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
205 pub __bindgen_padding_0: u64,
206 pub __clang_max_align_nonce2: u128,
207}
208#[allow(clippy::unnecessary_operation, clippy::identity_op)]
209const _: () = {
210 ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
211 ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
212 ["Offset of field: max_align_t::__clang_max_align_nonce1"]
213 [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
214 ["Offset of field: max_align_t::__clang_max_align_nonce2"]
215 [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
216};
217#[repr(C)]
218#[derive(Debug, Copy, Clone)]
219pub struct VSFrame {
220 _unused: [u8; 0],
221}
222#[repr(C)]
223#[derive(Debug, Copy, Clone)]
224pub struct VSNode {
225 _unused: [u8; 0],
226}
227#[repr(C)]
228#[derive(Debug, Copy, Clone)]
229pub struct VSCore {
230 _unused: [u8; 0],
231}
232#[repr(C)]
233#[derive(Debug, Copy, Clone)]
234pub struct VSPlugin {
235 _unused: [u8; 0],
236}
237#[repr(C)]
238#[derive(Debug, Copy, Clone)]
239pub struct VSPluginFunction {
240 _unused: [u8; 0],
241}
242#[repr(C)]
243#[derive(Debug, Copy, Clone)]
244pub struct VSFunction {
245 _unused: [u8; 0],
246}
247#[repr(C)]
248#[derive(Debug, Copy, Clone)]
249pub struct VSMap {
250 _unused: [u8; 0],
251}
252#[repr(C)]
253#[derive(Debug, Copy, Clone)]
254pub struct VSLogHandle {
255 _unused: [u8; 0],
256}
257#[repr(C)]
258#[derive(Debug, Copy, Clone)]
259pub struct VSFrameContext {
260 _unused: [u8; 0],
261}
262pub const VSColorFamily_cfUndefined: VSColorFamily = 0;
263pub const VSColorFamily_cfGray: VSColorFamily = 1;
264pub const VSColorFamily_cfRGB: VSColorFamily = 2;
265pub const VSColorFamily_cfYUV: VSColorFamily = 3;
266pub type VSColorFamily = ::std::os::raw::c_uint;
267pub const VSSampleType_stInteger: VSSampleType = 0;
268pub const VSSampleType_stFloat: VSSampleType = 1;
269pub type VSSampleType = ::std::os::raw::c_uint;
270pub const VSPresetVideoFormat_pfNone: VSPresetVideoFormat = 0;
271pub const VSPresetVideoFormat_pfGray8: VSPresetVideoFormat = 268959744;
272pub const VSPresetVideoFormat_pfGray9: VSPresetVideoFormat = 269025280;
273pub const VSPresetVideoFormat_pfGray10: VSPresetVideoFormat = 269090816;
274pub const VSPresetVideoFormat_pfGray12: VSPresetVideoFormat = 269221888;
275pub const VSPresetVideoFormat_pfGray14: VSPresetVideoFormat = 269352960;
276pub const VSPresetVideoFormat_pfGray16: VSPresetVideoFormat = 269484032;
277pub const VSPresetVideoFormat_pfGray32: VSPresetVideoFormat = 270532608;
278pub const VSPresetVideoFormat_pfGrayH: VSPresetVideoFormat = 286261248;
279pub const VSPresetVideoFormat_pfGrayS: VSPresetVideoFormat = 287309824;
280pub const VSPresetVideoFormat_pfYUV410P8: VSPresetVideoFormat = 805831170;
281pub const VSPresetVideoFormat_pfYUV411P8: VSPresetVideoFormat = 805831168;
282pub const VSPresetVideoFormat_pfYUV440P8: VSPresetVideoFormat = 805830657;
283pub const VSPresetVideoFormat_pfYUV420P8: VSPresetVideoFormat = 805830913;
284pub const VSPresetVideoFormat_pfYUV422P8: VSPresetVideoFormat = 805830912;
285pub const VSPresetVideoFormat_pfYUV444P8: VSPresetVideoFormat = 805830656;
286pub const VSPresetVideoFormat_pfYUV420P9: VSPresetVideoFormat = 805896449;
287pub const VSPresetVideoFormat_pfYUV422P9: VSPresetVideoFormat = 805896448;
288pub const VSPresetVideoFormat_pfYUV444P9: VSPresetVideoFormat = 805896192;
289pub const VSPresetVideoFormat_pfYUV420P10: VSPresetVideoFormat = 805961985;
290pub const VSPresetVideoFormat_pfYUV422P10: VSPresetVideoFormat = 805961984;
291pub const VSPresetVideoFormat_pfYUV444P10: VSPresetVideoFormat = 805961728;
292pub const VSPresetVideoFormat_pfYUV420P12: VSPresetVideoFormat = 806093057;
293pub const VSPresetVideoFormat_pfYUV422P12: VSPresetVideoFormat = 806093056;
294pub const VSPresetVideoFormat_pfYUV444P12: VSPresetVideoFormat = 806092800;
295pub const VSPresetVideoFormat_pfYUV420P14: VSPresetVideoFormat = 806224129;
296pub const VSPresetVideoFormat_pfYUV422P14: VSPresetVideoFormat = 806224128;
297pub const VSPresetVideoFormat_pfYUV444P14: VSPresetVideoFormat = 806223872;
298pub const VSPresetVideoFormat_pfYUV420P16: VSPresetVideoFormat = 806355201;
299pub const VSPresetVideoFormat_pfYUV422P16: VSPresetVideoFormat = 806355200;
300pub const VSPresetVideoFormat_pfYUV444P16: VSPresetVideoFormat = 806354944;
301pub const VSPresetVideoFormat_pfYUV420PH: VSPresetVideoFormat = 823132417;
302pub const VSPresetVideoFormat_pfYUV420PS: VSPresetVideoFormat = 824180993;
303pub const VSPresetVideoFormat_pfYUV422PH: VSPresetVideoFormat = 823132416;
304pub const VSPresetVideoFormat_pfYUV422PS: VSPresetVideoFormat = 824180992;
305pub const VSPresetVideoFormat_pfYUV444PH: VSPresetVideoFormat = 823132160;
306pub const VSPresetVideoFormat_pfYUV444PS: VSPresetVideoFormat = 824180736;
307pub const VSPresetVideoFormat_pfRGB24: VSPresetVideoFormat = 537395200;
308pub const VSPresetVideoFormat_pfRGB27: VSPresetVideoFormat = 537460736;
309pub const VSPresetVideoFormat_pfRGB30: VSPresetVideoFormat = 537526272;
310pub const VSPresetVideoFormat_pfRGB36: VSPresetVideoFormat = 537657344;
311pub const VSPresetVideoFormat_pfRGB42: VSPresetVideoFormat = 537788416;
312pub const VSPresetVideoFormat_pfRGB48: VSPresetVideoFormat = 537919488;
313pub const VSPresetVideoFormat_pfRGBH: VSPresetVideoFormat = 554696704;
314pub const VSPresetVideoFormat_pfRGBS: VSPresetVideoFormat = 555745280;
315pub type VSPresetVideoFormat = ::std::os::raw::c_uint;
316pub const VSFilterMode_fmParallel: VSFilterMode = 0;
317pub const VSFilterMode_fmParallelRequests: VSFilterMode = 1;
318pub const VSFilterMode_fmUnordered: VSFilterMode = 2;
319pub const VSFilterMode_fmFrameState: VSFilterMode = 3;
320pub type VSFilterMode = ::std::os::raw::c_uint;
321pub const VSMediaType_mtVideo: VSMediaType = 1;
322pub const VSMediaType_mtAudio: VSMediaType = 2;
323pub type VSMediaType = ::std::os::raw::c_uint;
324#[repr(C)]
325#[derive(Debug, Copy, Clone)]
326pub struct VSVideoFormat {
327 pub colorFamily: ::std::os::raw::c_int,
328 pub sampleType: ::std::os::raw::c_int,
329 pub bitsPerSample: ::std::os::raw::c_int,
330 pub bytesPerSample: ::std::os::raw::c_int,
331 pub subSamplingW: ::std::os::raw::c_int,
332 pub subSamplingH: ::std::os::raw::c_int,
333 pub numPlanes: ::std::os::raw::c_int,
334}
335#[allow(clippy::unnecessary_operation, clippy::identity_op)]
336const _: () = {
337 ["Size of VSVideoFormat"][::std::mem::size_of::<VSVideoFormat>() - 28usize];
338 ["Alignment of VSVideoFormat"][::std::mem::align_of::<VSVideoFormat>() - 4usize];
339 ["Offset of field: VSVideoFormat::colorFamily"]
340 [::std::mem::offset_of!(VSVideoFormat, colorFamily) - 0usize];
341 ["Offset of field: VSVideoFormat::sampleType"]
342 [::std::mem::offset_of!(VSVideoFormat, sampleType) - 4usize];
343 ["Offset of field: VSVideoFormat::bitsPerSample"]
344 [::std::mem::offset_of!(VSVideoFormat, bitsPerSample) - 8usize];
345 ["Offset of field: VSVideoFormat::bytesPerSample"]
346 [::std::mem::offset_of!(VSVideoFormat, bytesPerSample) - 12usize];
347 ["Offset of field: VSVideoFormat::subSamplingW"]
348 [::std::mem::offset_of!(VSVideoFormat, subSamplingW) - 16usize];
349 ["Offset of field: VSVideoFormat::subSamplingH"]
350 [::std::mem::offset_of!(VSVideoFormat, subSamplingH) - 20usize];
351 ["Offset of field: VSVideoFormat::numPlanes"]
352 [::std::mem::offset_of!(VSVideoFormat, numPlanes) - 24usize];
353};
354pub const VSAudioChannels_acFrontLeft: VSAudioChannels = 0;
355pub const VSAudioChannels_acFrontRight: VSAudioChannels = 1;
356pub const VSAudioChannels_acFrontCenter: VSAudioChannels = 2;
357pub const VSAudioChannels_acLowFrequency: VSAudioChannels = 3;
358pub const VSAudioChannels_acBackLeft: VSAudioChannels = 4;
359pub const VSAudioChannels_acBackRight: VSAudioChannels = 5;
360pub const VSAudioChannels_acFrontLeftOFCenter: VSAudioChannels = 6;
361pub const VSAudioChannels_acFrontRightOFCenter: VSAudioChannels = 7;
362pub const VSAudioChannels_acBackCenter: VSAudioChannels = 8;
363pub const VSAudioChannels_acSideLeft: VSAudioChannels = 9;
364pub const VSAudioChannels_acSideRight: VSAudioChannels = 10;
365pub const VSAudioChannels_acTopCenter: VSAudioChannels = 11;
366pub const VSAudioChannels_acTopFrontLeft: VSAudioChannels = 12;
367pub const VSAudioChannels_acTopFrontCenter: VSAudioChannels = 13;
368pub const VSAudioChannels_acTopFrontRight: VSAudioChannels = 14;
369pub const VSAudioChannels_acTopBackLeft: VSAudioChannels = 15;
370pub const VSAudioChannels_acTopBackCenter: VSAudioChannels = 16;
371pub const VSAudioChannels_acTopBackRight: VSAudioChannels = 17;
372pub const VSAudioChannels_acStereoLeft: VSAudioChannels = 29;
373pub const VSAudioChannels_acStereoRight: VSAudioChannels = 30;
374pub const VSAudioChannels_acWideLeft: VSAudioChannels = 31;
375pub const VSAudioChannels_acWideRight: VSAudioChannels = 32;
376pub const VSAudioChannels_acSurroundDirectLeft: VSAudioChannels = 33;
377pub const VSAudioChannels_acSurroundDirectRight: VSAudioChannels = 34;
378pub const VSAudioChannels_acLowFrequency2: VSAudioChannels = 35;
379pub type VSAudioChannels = ::std::os::raw::c_uint;
380#[repr(C)]
381#[derive(Debug, Copy, Clone)]
382pub struct VSAudioFormat {
383 pub sampleType: ::std::os::raw::c_int,
384 pub bitsPerSample: ::std::os::raw::c_int,
385 pub bytesPerSample: ::std::os::raw::c_int,
386 pub numChannels: ::std::os::raw::c_int,
387 pub channelLayout: u64,
388}
389#[allow(clippy::unnecessary_operation, clippy::identity_op)]
390const _: () = {
391 ["Size of VSAudioFormat"][::std::mem::size_of::<VSAudioFormat>() - 24usize];
392 ["Alignment of VSAudioFormat"][::std::mem::align_of::<VSAudioFormat>() - 8usize];
393 ["Offset of field: VSAudioFormat::sampleType"]
394 [::std::mem::offset_of!(VSAudioFormat, sampleType) - 0usize];
395 ["Offset of field: VSAudioFormat::bitsPerSample"]
396 [::std::mem::offset_of!(VSAudioFormat, bitsPerSample) - 4usize];
397 ["Offset of field: VSAudioFormat::bytesPerSample"]
398 [::std::mem::offset_of!(VSAudioFormat, bytesPerSample) - 8usize];
399 ["Offset of field: VSAudioFormat::numChannels"]
400 [::std::mem::offset_of!(VSAudioFormat, numChannels) - 12usize];
401 ["Offset of field: VSAudioFormat::channelLayout"]
402 [::std::mem::offset_of!(VSAudioFormat, channelLayout) - 16usize];
403};
404pub const VSPropertyType_ptUnset: VSPropertyType = 0;
405pub const VSPropertyType_ptInt: VSPropertyType = 1;
406pub const VSPropertyType_ptFloat: VSPropertyType = 2;
407pub const VSPropertyType_ptData: VSPropertyType = 3;
408pub const VSPropertyType_ptFunction: VSPropertyType = 4;
409pub const VSPropertyType_ptVideoNode: VSPropertyType = 5;
410pub const VSPropertyType_ptAudioNode: VSPropertyType = 6;
411pub const VSPropertyType_ptVideoFrame: VSPropertyType = 7;
412pub const VSPropertyType_ptAudioFrame: VSPropertyType = 8;
413pub type VSPropertyType = ::std::os::raw::c_uint;
414pub const VSMapPropertyError_peSuccess: VSMapPropertyError = 0;
415pub const VSMapPropertyError_peUnset: VSMapPropertyError = 1;
416pub const VSMapPropertyError_peType: VSMapPropertyError = 2;
417pub const VSMapPropertyError_peIndex: VSMapPropertyError = 4;
418pub const VSMapPropertyError_peError: VSMapPropertyError = 3;
419pub type VSMapPropertyError = ::std::os::raw::c_uint;
420pub const VSMapAppendMode_maReplace: VSMapAppendMode = 0;
421pub const VSMapAppendMode_maAppend: VSMapAppendMode = 1;
422pub type VSMapAppendMode = ::std::os::raw::c_uint;
423#[repr(C)]
424#[derive(Debug, Copy, Clone)]
425pub struct VSCoreInfo {
426 pub versionString: *const ::std::os::raw::c_char,
427 pub core: ::std::os::raw::c_int,
428 pub api: ::std::os::raw::c_int,
429 pub numThreads: ::std::os::raw::c_int,
430 pub maxFramebufferSize: i64,
431 pub usedFramebufferSize: i64,
432}
433#[allow(clippy::unnecessary_operation, clippy::identity_op)]
434const _: () = {
435 ["Size of VSCoreInfo"][::std::mem::size_of::<VSCoreInfo>() - 40usize];
436 ["Alignment of VSCoreInfo"][::std::mem::align_of::<VSCoreInfo>() - 8usize];
437 ["Offset of field: VSCoreInfo::versionString"]
438 [::std::mem::offset_of!(VSCoreInfo, versionString) - 0usize];
439 ["Offset of field: VSCoreInfo::core"][::std::mem::offset_of!(VSCoreInfo, core) - 8usize];
440 ["Offset of field: VSCoreInfo::api"][::std::mem::offset_of!(VSCoreInfo, api) - 12usize];
441 ["Offset of field: VSCoreInfo::numThreads"]
442 [::std::mem::offset_of!(VSCoreInfo, numThreads) - 16usize];
443 ["Offset of field: VSCoreInfo::maxFramebufferSize"]
444 [::std::mem::offset_of!(VSCoreInfo, maxFramebufferSize) - 24usize];
445 ["Offset of field: VSCoreInfo::usedFramebufferSize"]
446 [::std::mem::offset_of!(VSCoreInfo, usedFramebufferSize) - 32usize];
447};
448#[repr(C)]
449#[derive(Debug, Copy, Clone)]
450pub struct VSCoreInfo2 {
451 pub versionString: *const ::std::os::raw::c_char,
452 pub coreVersion: ::std::os::raw::c_int,
453 pub apiVersion: ::std::os::raw::c_int,
454 pub creationFlags: ::std::os::raw::c_int,
455 pub numThreads: ::std::os::raw::c_int,
456 pub maxFramebufferSize: i64,
457 pub usedFramebufferSize: i64,
458}
459#[allow(clippy::unnecessary_operation, clippy::identity_op)]
460const _: () = {
461 ["Size of VSCoreInfo2"][::std::mem::size_of::<VSCoreInfo2>() - 40usize];
462 ["Alignment of VSCoreInfo2"][::std::mem::align_of::<VSCoreInfo2>() - 8usize];
463 ["Offset of field: VSCoreInfo2::versionString"]
464 [::std::mem::offset_of!(VSCoreInfo2, versionString) - 0usize];
465 ["Offset of field: VSCoreInfo2::coreVersion"]
466 [::std::mem::offset_of!(VSCoreInfo2, coreVersion) - 8usize];
467 ["Offset of field: VSCoreInfo2::apiVersion"]
468 [::std::mem::offset_of!(VSCoreInfo2, apiVersion) - 12usize];
469 ["Offset of field: VSCoreInfo2::creationFlags"]
470 [::std::mem::offset_of!(VSCoreInfo2, creationFlags) - 16usize];
471 ["Offset of field: VSCoreInfo2::numThreads"]
472 [::std::mem::offset_of!(VSCoreInfo2, numThreads) - 20usize];
473 ["Offset of field: VSCoreInfo2::maxFramebufferSize"]
474 [::std::mem::offset_of!(VSCoreInfo2, maxFramebufferSize) - 24usize];
475 ["Offset of field: VSCoreInfo2::usedFramebufferSize"]
476 [::std::mem::offset_of!(VSCoreInfo2, usedFramebufferSize) - 32usize];
477};
478#[repr(C)]
479#[derive(Debug, Copy, Clone)]
480pub struct VSVideoInfo {
481 pub format: VSVideoFormat,
482 pub fpsNum: i64,
483 pub fpsDen: i64,
484 pub width: ::std::os::raw::c_int,
485 pub height: ::std::os::raw::c_int,
486 pub numFrames: ::std::os::raw::c_int,
487}
488#[allow(clippy::unnecessary_operation, clippy::identity_op)]
489const _: () = {
490 ["Size of VSVideoInfo"][::std::mem::size_of::<VSVideoInfo>() - 64usize];
491 ["Alignment of VSVideoInfo"][::std::mem::align_of::<VSVideoInfo>() - 8usize];
492 ["Offset of field: VSVideoInfo::format"][::std::mem::offset_of!(VSVideoInfo, format) - 0usize];
493 ["Offset of field: VSVideoInfo::fpsNum"][::std::mem::offset_of!(VSVideoInfo, fpsNum) - 32usize];
494 ["Offset of field: VSVideoInfo::fpsDen"][::std::mem::offset_of!(VSVideoInfo, fpsDen) - 40usize];
495 ["Offset of field: VSVideoInfo::width"][::std::mem::offset_of!(VSVideoInfo, width) - 48usize];
496 ["Offset of field: VSVideoInfo::height"][::std::mem::offset_of!(VSVideoInfo, height) - 52usize];
497 ["Offset of field: VSVideoInfo::numFrames"]
498 [::std::mem::offset_of!(VSVideoInfo, numFrames) - 56usize];
499};
500#[repr(C)]
501#[derive(Debug, Copy, Clone)]
502pub struct VSAudioInfo {
503 pub format: VSAudioFormat,
504 pub sampleRate: ::std::os::raw::c_int,
505 pub numSamples: i64,
506 pub numFrames: ::std::os::raw::c_int,
507}
508#[allow(clippy::unnecessary_operation, clippy::identity_op)]
509const _: () = {
510 ["Size of VSAudioInfo"][::std::mem::size_of::<VSAudioInfo>() - 48usize];
511 ["Alignment of VSAudioInfo"][::std::mem::align_of::<VSAudioInfo>() - 8usize];
512 ["Offset of field: VSAudioInfo::format"][::std::mem::offset_of!(VSAudioInfo, format) - 0usize];
513 ["Offset of field: VSAudioInfo::sampleRate"]
514 [::std::mem::offset_of!(VSAudioInfo, sampleRate) - 24usize];
515 ["Offset of field: VSAudioInfo::numSamples"]
516 [::std::mem::offset_of!(VSAudioInfo, numSamples) - 32usize];
517 ["Offset of field: VSAudioInfo::numFrames"]
518 [::std::mem::offset_of!(VSAudioInfo, numFrames) - 40usize];
519};
520pub const VSActivationReason_arInitial: VSActivationReason = 0;
521pub const VSActivationReason_arAllFramesReady: VSActivationReason = 1;
522pub const VSActivationReason_arError: VSActivationReason = -1;
523pub type VSActivationReason = ::std::os::raw::c_int;
524pub const VSMessageType_mtDebug: VSMessageType = 0;
525pub const VSMessageType_mtInformation: VSMessageType = 1;
526pub const VSMessageType_mtWarning: VSMessageType = 2;
527pub const VSMessageType_mtCritical: VSMessageType = 3;
528pub const VSMessageType_mtFatal: VSMessageType = 4;
529pub type VSMessageType = ::std::os::raw::c_uint;
530pub const VSCoreCreationFlags_ccfEnableGraphInspection: VSCoreCreationFlags = 1;
531pub const VSCoreCreationFlags_ccfDisableAutoLoading: VSCoreCreationFlags = 2;
532pub const VSCoreCreationFlags_ccfDisableLibraryUnloading: VSCoreCreationFlags = 4;
533pub const VSCoreCreationFlags_ccfEnableFrameRefDebug: VSCoreCreationFlags = 8;
534pub type VSCoreCreationFlags = ::std::os::raw::c_uint;
535pub const VSPluginConfigFlags_pcModifiable: VSPluginConfigFlags = 1;
536pub type VSPluginConfigFlags = ::std::os::raw::c_uint;
537pub const VSDataTypeHint_dtUnknown: VSDataTypeHint = -1;
538pub const VSDataTypeHint_dtBinary: VSDataTypeHint = 0;
539pub const VSDataTypeHint_dtUtf8: VSDataTypeHint = 1;
540pub type VSDataTypeHint = ::std::os::raw::c_int;
541pub const VSRequestPattern_rpGeneral: VSRequestPattern = 0;
542pub const VSRequestPattern_rpNoFrameReuse: VSRequestPattern = 1;
543pub const VSRequestPattern_rpStrictSpatial: VSRequestPattern = 2;
544pub type VSRequestPattern = ::std::os::raw::c_uint;
545pub const VSCacheMode_cmAuto: VSCacheMode = -1;
546pub const VSCacheMode_cmForceDisable: VSCacheMode = 0;
547pub const VSCacheMode_cmForceEnable: VSCacheMode = 1;
548pub type VSCacheMode = ::std::os::raw::c_int;
549pub type VSGetVapourSynthAPI =
550 ::std::option::Option<unsafe extern "C" fn(version: ::std::os::raw::c_int) -> *const VSAPI>;
551pub type VSPublicFunction = ::std::option::Option<
552 unsafe extern "C" fn(
553 in_: *const VSMap,
554 out: *mut VSMap,
555 userData: *mut ::std::os::raw::c_void,
556 core: *mut VSCore,
557 vsapi: *const VSAPI,
558 ),
559>;
560pub type VSInitPlugin =
561 ::std::option::Option<unsafe extern "C" fn(plugin: *mut VSPlugin, vspapi: *const VSPLUGINAPI)>;
562pub type VSFreeFunctionData =
563 ::std::option::Option<unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void)>;
564pub type VSFilterGetFrame = ::std::option::Option<
565 unsafe extern "C" fn(
566 n: ::std::os::raw::c_int,
567 activationReason: ::std::os::raw::c_int,
568 instanceData: *mut ::std::os::raw::c_void,
569 frameData: *mut *mut ::std::os::raw::c_void,
570 frameCtx: *mut VSFrameContext,
571 core: *mut VSCore,
572 vsapi: *const VSAPI,
573 ) -> *const VSFrame,
574>;
575pub type VSFilterFree = ::std::option::Option<
576 unsafe extern "C" fn(
577 instanceData: *mut ::std::os::raw::c_void,
578 core: *mut VSCore,
579 vsapi: *const VSAPI,
580 ),
581>;
582pub type VSFrameDoneCallback = ::std::option::Option<
583 unsafe extern "C" fn(
584 userData: *mut ::std::os::raw::c_void,
585 f: *const VSFrame,
586 n: ::std::os::raw::c_int,
587 node: *mut VSNode,
588 errorMsg: *const ::std::os::raw::c_char,
589 ),
590>;
591pub type VSLogHandler = ::std::option::Option<
592 unsafe extern "C" fn(
593 msgType: ::std::os::raw::c_int,
594 msg: *const ::std::os::raw::c_char,
595 userData: *mut ::std::os::raw::c_void,
596 ),
597>;
598pub type VSLogHandlerFree =
599 ::std::option::Option<unsafe extern "C" fn(userData: *mut ::std::os::raw::c_void)>;
600#[repr(C)]
601#[derive(Debug, Copy, Clone)]
602pub struct VSPLUGINAPI {
603 pub getAPIVersion: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
604 pub configPlugin: ::std::option::Option<
605 unsafe extern "C" fn(
606 identifier: *const ::std::os::raw::c_char,
607 pluginNamespace: *const ::std::os::raw::c_char,
608 name: *const ::std::os::raw::c_char,
609 pluginVersion: ::std::os::raw::c_int,
610 apiVersion: ::std::os::raw::c_int,
611 flags: ::std::os::raw::c_int,
612 plugin: *mut VSPlugin,
613 ) -> ::std::os::raw::c_int,
614 >,
615 pub registerFunction: ::std::option::Option<
616 unsafe extern "C" fn(
617 name: *const ::std::os::raw::c_char,
618 args: *const ::std::os::raw::c_char,
619 returnType: *const ::std::os::raw::c_char,
620 argsFunc: VSPublicFunction,
621 functionData: *mut ::std::os::raw::c_void,
622 plugin: *mut VSPlugin,
623 ) -> ::std::os::raw::c_int,
624 >,
625}
626#[allow(clippy::unnecessary_operation, clippy::identity_op)]
627const _: () = {
628 ["Size of VSPLUGINAPI"][::std::mem::size_of::<VSPLUGINAPI>() - 24usize];
629 ["Alignment of VSPLUGINAPI"][::std::mem::align_of::<VSPLUGINAPI>() - 8usize];
630 ["Offset of field: VSPLUGINAPI::getAPIVersion"]
631 [::std::mem::offset_of!(VSPLUGINAPI, getAPIVersion) - 0usize];
632 ["Offset of field: VSPLUGINAPI::configPlugin"]
633 [::std::mem::offset_of!(VSPLUGINAPI, configPlugin) - 8usize];
634 ["Offset of field: VSPLUGINAPI::registerFunction"]
635 [::std::mem::offset_of!(VSPLUGINAPI, registerFunction) - 16usize];
636};
637#[repr(C)]
638#[derive(Debug, Copy, Clone)]
639pub struct VSFilterDependency {
640 pub source: *mut VSNode,
641 pub requestPattern: ::std::os::raw::c_int,
642}
643#[allow(clippy::unnecessary_operation, clippy::identity_op)]
644const _: () = {
645 ["Size of VSFilterDependency"][::std::mem::size_of::<VSFilterDependency>() - 16usize];
646 ["Alignment of VSFilterDependency"][::std::mem::align_of::<VSFilterDependency>() - 8usize];
647 ["Offset of field: VSFilterDependency::source"]
648 [::std::mem::offset_of!(VSFilterDependency, source) - 0usize];
649 ["Offset of field: VSFilterDependency::requestPattern"]
650 [::std::mem::offset_of!(VSFilterDependency, requestPattern) - 8usize];
651};
652#[repr(C)]
653#[derive(Debug, Copy, Clone)]
654pub struct VSAPI {
655 pub createVideoFilter: ::std::option::Option<
656 unsafe extern "C" fn(
657 out: *mut VSMap,
658 name: *const ::std::os::raw::c_char,
659 vi: *const VSVideoInfo,
660 getFrame: VSFilterGetFrame,
661 free: VSFilterFree,
662 filterMode: ::std::os::raw::c_int,
663 dependencies: *const VSFilterDependency,
664 numDeps: ::std::os::raw::c_int,
665 instanceData: *mut ::std::os::raw::c_void,
666 core: *mut VSCore,
667 ),
668 >,
669 pub createVideoFilter2: ::std::option::Option<
670 unsafe extern "C" fn(
671 name: *const ::std::os::raw::c_char,
672 vi: *const VSVideoInfo,
673 getFrame: VSFilterGetFrame,
674 free: VSFilterFree,
675 filterMode: ::std::os::raw::c_int,
676 dependencies: *const VSFilterDependency,
677 numDeps: ::std::os::raw::c_int,
678 instanceData: *mut ::std::os::raw::c_void,
679 core: *mut VSCore,
680 ) -> *mut VSNode,
681 >,
682 pub createAudioFilter: ::std::option::Option<
683 unsafe extern "C" fn(
684 out: *mut VSMap,
685 name: *const ::std::os::raw::c_char,
686 ai: *const VSAudioInfo,
687 getFrame: VSFilterGetFrame,
688 free: VSFilterFree,
689 filterMode: ::std::os::raw::c_int,
690 dependencies: *const VSFilterDependency,
691 numDeps: ::std::os::raw::c_int,
692 instanceData: *mut ::std::os::raw::c_void,
693 core: *mut VSCore,
694 ),
695 >,
696 pub createAudioFilter2: ::std::option::Option<
697 unsafe extern "C" fn(
698 name: *const ::std::os::raw::c_char,
699 ai: *const VSAudioInfo,
700 getFrame: VSFilterGetFrame,
701 free: VSFilterFree,
702 filterMode: ::std::os::raw::c_int,
703 dependencies: *const VSFilterDependency,
704 numDeps: ::std::os::raw::c_int,
705 instanceData: *mut ::std::os::raw::c_void,
706 core: *mut VSCore,
707 ) -> *mut VSNode,
708 >,
709 pub setLinearFilter:
710 ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode) -> ::std::os::raw::c_int>,
711 pub setCacheMode:
712 ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode, mode: ::std::os::raw::c_int)>,
713 pub setCacheOptions: ::std::option::Option<
714 unsafe extern "C" fn(
715 node: *mut VSNode,
716 fixedSize: ::std::os::raw::c_int,
717 maxSize: ::std::os::raw::c_int,
718 maxHistorySize: ::std::os::raw::c_int,
719 ),
720 >,
721 pub freeNode: ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode)>,
722 pub addNodeRef: ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode) -> *mut VSNode>,
723 pub getNodeType:
724 ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode) -> ::std::os::raw::c_int>,
725 pub getVideoInfo:
726 ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode) -> *const VSVideoInfo>,
727 pub getAudioInfo:
728 ::std::option::Option<unsafe extern "C" fn(node: *mut VSNode) -> *const VSAudioInfo>,
729 pub newVideoFrame: ::std::option::Option<
730 unsafe extern "C" fn(
731 format: *const VSVideoFormat,
732 width: ::std::os::raw::c_int,
733 height: ::std::os::raw::c_int,
734 propSrc: *const VSFrame,
735 core: *mut VSCore,
736 ) -> *mut VSFrame,
737 >,
738 pub newVideoFrame2: ::std::option::Option<
739 unsafe extern "C" fn(
740 format: *const VSVideoFormat,
741 width: ::std::os::raw::c_int,
742 height: ::std::os::raw::c_int,
743 planeSrc: *mut *const VSFrame,
744 planes: *const ::std::os::raw::c_int,
745 propSrc: *const VSFrame,
746 core: *mut VSCore,
747 ) -> *mut VSFrame,
748 >,
749 pub newAudioFrame: ::std::option::Option<
750 unsafe extern "C" fn(
751 format: *const VSAudioFormat,
752 numSamples: ::std::os::raw::c_int,
753 propSrc: *const VSFrame,
754 core: *mut VSCore,
755 ) -> *mut VSFrame,
756 >,
757 pub newAudioFrame2: ::std::option::Option<
758 unsafe extern "C" fn(
759 format: *const VSAudioFormat,
760 numSamples: ::std::os::raw::c_int,
761 channelSrc: *mut *const VSFrame,
762 channels: *const ::std::os::raw::c_int,
763 propSrc: *const VSFrame,
764 core: *mut VSCore,
765 ) -> *mut VSFrame,
766 >,
767 pub freeFrame: ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame)>,
768 pub addFrameRef:
769 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> *const VSFrame>,
770 pub copyFrame: ::std::option::Option<
771 unsafe extern "C" fn(f: *const VSFrame, core: *mut VSCore) -> *mut VSFrame,
772 >,
773 pub getFramePropertiesRO:
774 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> *const VSMap>,
775 pub getFramePropertiesRW:
776 ::std::option::Option<unsafe extern "C" fn(f: *mut VSFrame) -> *mut VSMap>,
777 pub getStride: ::std::option::Option<
778 unsafe extern "C" fn(f: *const VSFrame, plane: ::std::os::raw::c_int) -> isize,
779 >,
780 pub getReadPtr: ::std::option::Option<
781 unsafe extern "C" fn(f: *const VSFrame, plane: ::std::os::raw::c_int) -> *const u8,
782 >,
783 pub getWritePtr: ::std::option::Option<
784 unsafe extern "C" fn(f: *mut VSFrame, plane: ::std::os::raw::c_int) -> *mut u8,
785 >,
786 pub getVideoFrameFormat:
787 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> *const VSVideoFormat>,
788 pub getAudioFrameFormat:
789 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> *const VSAudioFormat>,
790 pub getFrameType:
791 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> ::std::os::raw::c_int>,
792 pub getFrameWidth: ::std::option::Option<
793 unsafe extern "C" fn(
794 f: *const VSFrame,
795 plane: ::std::os::raw::c_int,
796 ) -> ::std::os::raw::c_int,
797 >,
798 pub getFrameHeight: ::std::option::Option<
799 unsafe extern "C" fn(
800 f: *const VSFrame,
801 plane: ::std::os::raw::c_int,
802 ) -> ::std::os::raw::c_int,
803 >,
804 pub getFrameLength:
805 ::std::option::Option<unsafe extern "C" fn(f: *const VSFrame) -> ::std::os::raw::c_int>,
806 pub getVideoFormatName: ::std::option::Option<
807 unsafe extern "C" fn(
808 format: *const VSVideoFormat,
809 buffer: *mut ::std::os::raw::c_char,
810 ) -> ::std::os::raw::c_int,
811 >,
812 pub getAudioFormatName: ::std::option::Option<
813 unsafe extern "C" fn(
814 format: *const VSAudioFormat,
815 buffer: *mut ::std::os::raw::c_char,
816 ) -> ::std::os::raw::c_int,
817 >,
818 pub queryVideoFormat: ::std::option::Option<
819 unsafe extern "C" fn(
820 format: *mut VSVideoFormat,
821 colorFamily: ::std::os::raw::c_int,
822 sampleType: ::std::os::raw::c_int,
823 bitsPerSample: ::std::os::raw::c_int,
824 subSamplingW: ::std::os::raw::c_int,
825 subSamplingH: ::std::os::raw::c_int,
826 core: *mut VSCore,
827 ) -> ::std::os::raw::c_int,
828 >,
829 pub queryAudioFormat: ::std::option::Option<
830 unsafe extern "C" fn(
831 format: *mut VSAudioFormat,
832 sampleType: ::std::os::raw::c_int,
833 bitsPerSample: ::std::os::raw::c_int,
834 channelLayout: u64,
835 core: *mut VSCore,
836 ) -> ::std::os::raw::c_int,
837 >,
838 pub queryVideoFormatID: ::std::option::Option<
839 unsafe extern "C" fn(
840 colorFamily: ::std::os::raw::c_int,
841 sampleType: ::std::os::raw::c_int,
842 bitsPerSample: ::std::os::raw::c_int,
843 subSamplingW: ::std::os::raw::c_int,
844 subSamplingH: ::std::os::raw::c_int,
845 core: *mut VSCore,
846 ) -> u32,
847 >,
848 pub getVideoFormatByID: ::std::option::Option<
849 unsafe extern "C" fn(
850 format: *mut VSVideoFormat,
851 id: u32,
852 core: *mut VSCore,
853 ) -> ::std::os::raw::c_int,
854 >,
855 pub getFrame: ::std::option::Option<
856 unsafe extern "C" fn(
857 n: ::std::os::raw::c_int,
858 node: *mut VSNode,
859 errorMsg: *mut ::std::os::raw::c_char,
860 bufSize: ::std::os::raw::c_int,
861 ) -> *const VSFrame,
862 >,
863 pub getFrameAsync: ::std::option::Option<
864 unsafe extern "C" fn(
865 n: ::std::os::raw::c_int,
866 node: *mut VSNode,
867 callback: VSFrameDoneCallback,
868 userData: *mut ::std::os::raw::c_void,
869 ),
870 >,
871 pub getFrameFilter: ::std::option::Option<
872 unsafe extern "C" fn(
873 n: ::std::os::raw::c_int,
874 node: *mut VSNode,
875 frameCtx: *mut VSFrameContext,
876 ) -> *const VSFrame,
877 >,
878 pub requestFrameFilter: ::std::option::Option<
879 unsafe extern "C" fn(
880 n: ::std::os::raw::c_int,
881 node: *mut VSNode,
882 frameCtx: *mut VSFrameContext,
883 ),
884 >,
885 pub releaseFrameEarly: ::std::option::Option<
886 unsafe extern "C" fn(
887 node: *mut VSNode,
888 n: ::std::os::raw::c_int,
889 frameCtx: *mut VSFrameContext,
890 ),
891 >,
892 pub cacheFrame: ::std::option::Option<
893 unsafe extern "C" fn(
894 frame: *const VSFrame,
895 n: ::std::os::raw::c_int,
896 frameCtx: *mut VSFrameContext,
897 ),
898 >,
899 pub setFilterError: ::std::option::Option<
900 unsafe extern "C" fn(
901 errorMessage: *const ::std::os::raw::c_char,
902 frameCtx: *mut VSFrameContext,
903 ),
904 >,
905 pub createFunction: ::std::option::Option<
906 unsafe extern "C" fn(
907 func: VSPublicFunction,
908 userData: *mut ::std::os::raw::c_void,
909 free: VSFreeFunctionData,
910 core: *mut VSCore,
911 ) -> *mut VSFunction,
912 >,
913 pub freeFunction: ::std::option::Option<unsafe extern "C" fn(f: *mut VSFunction)>,
914 pub addFunctionRef:
915 ::std::option::Option<unsafe extern "C" fn(f: *mut VSFunction) -> *mut VSFunction>,
916 pub callFunction: ::std::option::Option<
917 unsafe extern "C" fn(func: *mut VSFunction, in_: *const VSMap, out: *mut VSMap),
918 >,
919 pub createMap: ::std::option::Option<unsafe extern "C" fn() -> *mut VSMap>,
920 pub freeMap: ::std::option::Option<unsafe extern "C" fn(map: *mut VSMap)>,
921 pub clearMap: ::std::option::Option<unsafe extern "C" fn(map: *mut VSMap)>,
922 pub copyMap: ::std::option::Option<unsafe extern "C" fn(src: *const VSMap, dst: *mut VSMap)>,
923 pub mapSetError: ::std::option::Option<
924 unsafe extern "C" fn(map: *mut VSMap, errorMessage: *const ::std::os::raw::c_char),
925 >,
926 pub mapGetError: ::std::option::Option<
927 unsafe extern "C" fn(map: *const VSMap) -> *const ::std::os::raw::c_char,
928 >,
929 pub mapNumKeys:
930 ::std::option::Option<unsafe extern "C" fn(map: *const VSMap) -> ::std::os::raw::c_int>,
931 pub mapGetKey: ::std::option::Option<
932 unsafe extern "C" fn(
933 map: *const VSMap,
934 index: ::std::os::raw::c_int,
935 ) -> *const ::std::os::raw::c_char,
936 >,
937 pub mapDeleteKey: ::std::option::Option<
938 unsafe extern "C" fn(
939 map: *mut VSMap,
940 key: *const ::std::os::raw::c_char,
941 ) -> ::std::os::raw::c_int,
942 >,
943 pub mapNumElements: ::std::option::Option<
944 unsafe extern "C" fn(
945 map: *const VSMap,
946 key: *const ::std::os::raw::c_char,
947 ) -> ::std::os::raw::c_int,
948 >,
949 pub mapGetType: ::std::option::Option<
950 unsafe extern "C" fn(
951 map: *const VSMap,
952 key: *const ::std::os::raw::c_char,
953 ) -> ::std::os::raw::c_int,
954 >,
955 pub mapSetEmpty: ::std::option::Option<
956 unsafe extern "C" fn(
957 map: *mut VSMap,
958 key: *const ::std::os::raw::c_char,
959 type_: ::std::os::raw::c_int,
960 ) -> ::std::os::raw::c_int,
961 >,
962 pub mapGetInt: ::std::option::Option<
963 unsafe extern "C" fn(
964 map: *const VSMap,
965 key: *const ::std::os::raw::c_char,
966 index: ::std::os::raw::c_int,
967 error: *mut ::std::os::raw::c_int,
968 ) -> i64,
969 >,
970 pub mapGetIntSaturated: ::std::option::Option<
971 unsafe extern "C" fn(
972 map: *const VSMap,
973 key: *const ::std::os::raw::c_char,
974 index: ::std::os::raw::c_int,
975 error: *mut ::std::os::raw::c_int,
976 ) -> ::std::os::raw::c_int,
977 >,
978 pub mapGetIntArray: ::std::option::Option<
979 unsafe extern "C" fn(
980 map: *const VSMap,
981 key: *const ::std::os::raw::c_char,
982 error: *mut ::std::os::raw::c_int,
983 ) -> *const i64,
984 >,
985 pub mapSetInt: ::std::option::Option<
986 unsafe extern "C" fn(
987 map: *mut VSMap,
988 key: *const ::std::os::raw::c_char,
989 i: i64,
990 append: ::std::os::raw::c_int,
991 ) -> ::std::os::raw::c_int,
992 >,
993 pub mapSetIntArray: ::std::option::Option<
994 unsafe extern "C" fn(
995 map: *mut VSMap,
996 key: *const ::std::os::raw::c_char,
997 i: *const i64,
998 size: ::std::os::raw::c_int,
999 ) -> ::std::os::raw::c_int,
1000 >,
1001 pub mapGetFloat: ::std::option::Option<
1002 unsafe extern "C" fn(
1003 map: *const VSMap,
1004 key: *const ::std::os::raw::c_char,
1005 index: ::std::os::raw::c_int,
1006 error: *mut ::std::os::raw::c_int,
1007 ) -> f64,
1008 >,
1009 pub mapGetFloatSaturated: ::std::option::Option<
1010 unsafe extern "C" fn(
1011 map: *const VSMap,
1012 key: *const ::std::os::raw::c_char,
1013 index: ::std::os::raw::c_int,
1014 error: *mut ::std::os::raw::c_int,
1015 ) -> f32,
1016 >,
1017 pub mapGetFloatArray: ::std::option::Option<
1018 unsafe extern "C" fn(
1019 map: *const VSMap,
1020 key: *const ::std::os::raw::c_char,
1021 error: *mut ::std::os::raw::c_int,
1022 ) -> *const f64,
1023 >,
1024 pub mapSetFloat: ::std::option::Option<
1025 unsafe extern "C" fn(
1026 map: *mut VSMap,
1027 key: *const ::std::os::raw::c_char,
1028 d: f64,
1029 append: ::std::os::raw::c_int,
1030 ) -> ::std::os::raw::c_int,
1031 >,
1032 pub mapSetFloatArray: ::std::option::Option<
1033 unsafe extern "C" fn(
1034 map: *mut VSMap,
1035 key: *const ::std::os::raw::c_char,
1036 d: *const f64,
1037 size: ::std::os::raw::c_int,
1038 ) -> ::std::os::raw::c_int,
1039 >,
1040 pub mapGetData: ::std::option::Option<
1041 unsafe extern "C" fn(
1042 map: *const VSMap,
1043 key: *const ::std::os::raw::c_char,
1044 index: ::std::os::raw::c_int,
1045 error: *mut ::std::os::raw::c_int,
1046 ) -> *const ::std::os::raw::c_char,
1047 >,
1048 pub mapGetDataSize: ::std::option::Option<
1049 unsafe extern "C" fn(
1050 map: *const VSMap,
1051 key: *const ::std::os::raw::c_char,
1052 index: ::std::os::raw::c_int,
1053 error: *mut ::std::os::raw::c_int,
1054 ) -> ::std::os::raw::c_int,
1055 >,
1056 pub mapGetDataTypeHint: ::std::option::Option<
1057 unsafe extern "C" fn(
1058 map: *const VSMap,
1059 key: *const ::std::os::raw::c_char,
1060 index: ::std::os::raw::c_int,
1061 error: *mut ::std::os::raw::c_int,
1062 ) -> ::std::os::raw::c_int,
1063 >,
1064 pub mapSetData: ::std::option::Option<
1065 unsafe extern "C" fn(
1066 map: *mut VSMap,
1067 key: *const ::std::os::raw::c_char,
1068 data: *const ::std::os::raw::c_char,
1069 size: ::std::os::raw::c_int,
1070 type_: ::std::os::raw::c_int,
1071 append: ::std::os::raw::c_int,
1072 ) -> ::std::os::raw::c_int,
1073 >,
1074 pub mapGetNode: ::std::option::Option<
1075 unsafe extern "C" fn(
1076 map: *const VSMap,
1077 key: *const ::std::os::raw::c_char,
1078 index: ::std::os::raw::c_int,
1079 error: *mut ::std::os::raw::c_int,
1080 ) -> *mut VSNode,
1081 >,
1082 pub mapSetNode: ::std::option::Option<
1083 unsafe extern "C" fn(
1084 map: *mut VSMap,
1085 key: *const ::std::os::raw::c_char,
1086 node: *mut VSNode,
1087 append: ::std::os::raw::c_int,
1088 ) -> ::std::os::raw::c_int,
1089 >,
1090 pub mapConsumeNode: ::std::option::Option<
1091 unsafe extern "C" fn(
1092 map: *mut VSMap,
1093 key: *const ::std::os::raw::c_char,
1094 node: *mut VSNode,
1095 append: ::std::os::raw::c_int,
1096 ) -> ::std::os::raw::c_int,
1097 >,
1098 pub mapGetFrame: ::std::option::Option<
1099 unsafe extern "C" fn(
1100 map: *const VSMap,
1101 key: *const ::std::os::raw::c_char,
1102 index: ::std::os::raw::c_int,
1103 error: *mut ::std::os::raw::c_int,
1104 ) -> *const VSFrame,
1105 >,
1106 pub mapSetFrame: ::std::option::Option<
1107 unsafe extern "C" fn(
1108 map: *mut VSMap,
1109 key: *const ::std::os::raw::c_char,
1110 f: *const VSFrame,
1111 append: ::std::os::raw::c_int,
1112 ) -> ::std::os::raw::c_int,
1113 >,
1114 pub mapConsumeFrame: ::std::option::Option<
1115 unsafe extern "C" fn(
1116 map: *mut VSMap,
1117 key: *const ::std::os::raw::c_char,
1118 f: *const VSFrame,
1119 append: ::std::os::raw::c_int,
1120 ) -> ::std::os::raw::c_int,
1121 >,
1122 pub mapGetFunction: ::std::option::Option<
1123 unsafe extern "C" fn(
1124 map: *const VSMap,
1125 key: *const ::std::os::raw::c_char,
1126 index: ::std::os::raw::c_int,
1127 error: *mut ::std::os::raw::c_int,
1128 ) -> *mut VSFunction,
1129 >,
1130 pub mapSetFunction: ::std::option::Option<
1131 unsafe extern "C" fn(
1132 map: *mut VSMap,
1133 key: *const ::std::os::raw::c_char,
1134 func: *mut VSFunction,
1135 append: ::std::os::raw::c_int,
1136 ) -> ::std::os::raw::c_int,
1137 >,
1138 pub mapConsumeFunction: ::std::option::Option<
1139 unsafe extern "C" fn(
1140 map: *mut VSMap,
1141 key: *const ::std::os::raw::c_char,
1142 func: *mut VSFunction,
1143 append: ::std::os::raw::c_int,
1144 ) -> ::std::os::raw::c_int,
1145 >,
1146 pub registerFunction: ::std::option::Option<
1147 unsafe extern "C" fn(
1148 name: *const ::std::os::raw::c_char,
1149 args: *const ::std::os::raw::c_char,
1150 returnType: *const ::std::os::raw::c_char,
1151 argsFunc: VSPublicFunction,
1152 functionData: *mut ::std::os::raw::c_void,
1153 plugin: *mut VSPlugin,
1154 ) -> ::std::os::raw::c_int,
1155 >,
1156 pub getPluginByID: ::std::option::Option<
1157 unsafe extern "C" fn(
1158 identifier: *const ::std::os::raw::c_char,
1159 core: *mut VSCore,
1160 ) -> *mut VSPlugin,
1161 >,
1162 pub getPluginByNamespace: ::std::option::Option<
1163 unsafe extern "C" fn(ns: *const ::std::os::raw::c_char, core: *mut VSCore) -> *mut VSPlugin,
1164 >,
1165 pub getNextPlugin: ::std::option::Option<
1166 unsafe extern "C" fn(plugin: *mut VSPlugin, core: *mut VSCore) -> *mut VSPlugin,
1167 >,
1168 pub getPluginName: ::std::option::Option<
1169 unsafe extern "C" fn(plugin: *mut VSPlugin) -> *const ::std::os::raw::c_char,
1170 >,
1171 pub getPluginID: ::std::option::Option<
1172 unsafe extern "C" fn(plugin: *mut VSPlugin) -> *const ::std::os::raw::c_char,
1173 >,
1174 pub getPluginNamespace: ::std::option::Option<
1175 unsafe extern "C" fn(plugin: *mut VSPlugin) -> *const ::std::os::raw::c_char,
1176 >,
1177 pub getNextPluginFunction: ::std::option::Option<
1178 unsafe extern "C" fn(
1179 func: *mut VSPluginFunction,
1180 plugin: *mut VSPlugin,
1181 ) -> *mut VSPluginFunction,
1182 >,
1183 pub getPluginFunctionByName: ::std::option::Option<
1184 unsafe extern "C" fn(
1185 name: *const ::std::os::raw::c_char,
1186 plugin: *mut VSPlugin,
1187 ) -> *mut VSPluginFunction,
1188 >,
1189 pub getPluginFunctionName: ::std::option::Option<
1190 unsafe extern "C" fn(func: *mut VSPluginFunction) -> *const ::std::os::raw::c_char,
1191 >,
1192 pub getPluginFunctionArguments: ::std::option::Option<
1193 unsafe extern "C" fn(func: *mut VSPluginFunction) -> *const ::std::os::raw::c_char,
1194 >,
1195 pub getPluginFunctionReturnType: ::std::option::Option<
1196 unsafe extern "C" fn(func: *mut VSPluginFunction) -> *const ::std::os::raw::c_char,
1197 >,
1198 pub getPluginPath: ::std::option::Option<
1199 unsafe extern "C" fn(plugin: *const VSPlugin) -> *const ::std::os::raw::c_char,
1200 >,
1201 pub getPluginVersion: ::std::option::Option<
1202 unsafe extern "C" fn(plugin: *const VSPlugin) -> ::std::os::raw::c_int,
1203 >,
1204 pub invoke: ::std::option::Option<
1205 unsafe extern "C" fn(
1206 plugin: *mut VSPlugin,
1207 name: *const ::std::os::raw::c_char,
1208 args: *const VSMap,
1209 ) -> *mut VSMap,
1210 >,
1211 pub createCore:
1212 ::std::option::Option<unsafe extern "C" fn(flags: ::std::os::raw::c_int) -> *mut VSCore>,
1213 pub freeCore: ::std::option::Option<unsafe extern "C" fn(core: *mut VSCore)>,
1214 pub setMaxCacheSize:
1215 ::std::option::Option<unsafe extern "C" fn(bytes: i64, core: *mut VSCore) -> i64>,
1216 pub setThreadCount: ::std::option::Option<
1217 unsafe extern "C" fn(
1218 threads: ::std::os::raw::c_int,
1219 core: *mut VSCore,
1220 ) -> ::std::os::raw::c_int,
1221 >,
1222 pub getCoreInfo:
1223 ::std::option::Option<unsafe extern "C" fn(core: *mut VSCore, info: *mut VSCoreInfo)>,
1224 pub getAPIVersion: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
1225 pub logMessage: ::std::option::Option<
1226 unsafe extern "C" fn(
1227 msgType: ::std::os::raw::c_int,
1228 msg: *const ::std::os::raw::c_char,
1229 core: *mut VSCore,
1230 ),
1231 >,
1232 pub addLogHandler: ::std::option::Option<
1233 unsafe extern "C" fn(
1234 handler: VSLogHandler,
1235 free: VSLogHandlerFree,
1236 userData: *mut ::std::os::raw::c_void,
1237 core: *mut VSCore,
1238 ) -> *mut VSLogHandle,
1239 >,
1240 pub removeLogHandler: ::std::option::Option<
1241 unsafe extern "C" fn(handle: *mut VSLogHandle, core: *mut VSCore) -> ::std::os::raw::c_int,
1242 >,
1243}
1244#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1245const _: () = {
1246 ["Size of VSAPI"][::std::mem::size_of::<VSAPI>() - 848usize];
1247 ["Alignment of VSAPI"][::std::mem::align_of::<VSAPI>() - 8usize];
1248 ["Offset of field: VSAPI::createVideoFilter"]
1249 [::std::mem::offset_of!(VSAPI, createVideoFilter) - 0usize];
1250 ["Offset of field: VSAPI::createVideoFilter2"]
1251 [::std::mem::offset_of!(VSAPI, createVideoFilter2) - 8usize];
1252 ["Offset of field: VSAPI::createAudioFilter"]
1253 [::std::mem::offset_of!(VSAPI, createAudioFilter) - 16usize];
1254 ["Offset of field: VSAPI::createAudioFilter2"]
1255 [::std::mem::offset_of!(VSAPI, createAudioFilter2) - 24usize];
1256 ["Offset of field: VSAPI::setLinearFilter"]
1257 [::std::mem::offset_of!(VSAPI, setLinearFilter) - 32usize];
1258 ["Offset of field: VSAPI::setCacheMode"][::std::mem::offset_of!(VSAPI, setCacheMode) - 40usize];
1259 ["Offset of field: VSAPI::setCacheOptions"]
1260 [::std::mem::offset_of!(VSAPI, setCacheOptions) - 48usize];
1261 ["Offset of field: VSAPI::freeNode"][::std::mem::offset_of!(VSAPI, freeNode) - 56usize];
1262 ["Offset of field: VSAPI::addNodeRef"][::std::mem::offset_of!(VSAPI, addNodeRef) - 64usize];
1263 ["Offset of field: VSAPI::getNodeType"][::std::mem::offset_of!(VSAPI, getNodeType) - 72usize];
1264 ["Offset of field: VSAPI::getVideoInfo"][::std::mem::offset_of!(VSAPI, getVideoInfo) - 80usize];
1265 ["Offset of field: VSAPI::getAudioInfo"][::std::mem::offset_of!(VSAPI, getAudioInfo) - 88usize];
1266 ["Offset of field: VSAPI::newVideoFrame"]
1267 [::std::mem::offset_of!(VSAPI, newVideoFrame) - 96usize];
1268 ["Offset of field: VSAPI::newVideoFrame2"]
1269 [::std::mem::offset_of!(VSAPI, newVideoFrame2) - 104usize];
1270 ["Offset of field: VSAPI::newAudioFrame"]
1271 [::std::mem::offset_of!(VSAPI, newAudioFrame) - 112usize];
1272 ["Offset of field: VSAPI::newAudioFrame2"]
1273 [::std::mem::offset_of!(VSAPI, newAudioFrame2) - 120usize];
1274 ["Offset of field: VSAPI::freeFrame"][::std::mem::offset_of!(VSAPI, freeFrame) - 128usize];
1275 ["Offset of field: VSAPI::addFrameRef"][::std::mem::offset_of!(VSAPI, addFrameRef) - 136usize];
1276 ["Offset of field: VSAPI::copyFrame"][::std::mem::offset_of!(VSAPI, copyFrame) - 144usize];
1277 ["Offset of field: VSAPI::getFramePropertiesRO"]
1278 [::std::mem::offset_of!(VSAPI, getFramePropertiesRO) - 152usize];
1279 ["Offset of field: VSAPI::getFramePropertiesRW"]
1280 [::std::mem::offset_of!(VSAPI, getFramePropertiesRW) - 160usize];
1281 ["Offset of field: VSAPI::getStride"][::std::mem::offset_of!(VSAPI, getStride) - 168usize];
1282 ["Offset of field: VSAPI::getReadPtr"][::std::mem::offset_of!(VSAPI, getReadPtr) - 176usize];
1283 ["Offset of field: VSAPI::getWritePtr"][::std::mem::offset_of!(VSAPI, getWritePtr) - 184usize];
1284 ["Offset of field: VSAPI::getVideoFrameFormat"]
1285 [::std::mem::offset_of!(VSAPI, getVideoFrameFormat) - 192usize];
1286 ["Offset of field: VSAPI::getAudioFrameFormat"]
1287 [::std::mem::offset_of!(VSAPI, getAudioFrameFormat) - 200usize];
1288 ["Offset of field: VSAPI::getFrameType"]
1289 [::std::mem::offset_of!(VSAPI, getFrameType) - 208usize];
1290 ["Offset of field: VSAPI::getFrameWidth"]
1291 [::std::mem::offset_of!(VSAPI, getFrameWidth) - 216usize];
1292 ["Offset of field: VSAPI::getFrameHeight"]
1293 [::std::mem::offset_of!(VSAPI, getFrameHeight) - 224usize];
1294 ["Offset of field: VSAPI::getFrameLength"]
1295 [::std::mem::offset_of!(VSAPI, getFrameLength) - 232usize];
1296 ["Offset of field: VSAPI::getVideoFormatName"]
1297 [::std::mem::offset_of!(VSAPI, getVideoFormatName) - 240usize];
1298 ["Offset of field: VSAPI::getAudioFormatName"]
1299 [::std::mem::offset_of!(VSAPI, getAudioFormatName) - 248usize];
1300 ["Offset of field: VSAPI::queryVideoFormat"]
1301 [::std::mem::offset_of!(VSAPI, queryVideoFormat) - 256usize];
1302 ["Offset of field: VSAPI::queryAudioFormat"]
1303 [::std::mem::offset_of!(VSAPI, queryAudioFormat) - 264usize];
1304 ["Offset of field: VSAPI::queryVideoFormatID"]
1305 [::std::mem::offset_of!(VSAPI, queryVideoFormatID) - 272usize];
1306 ["Offset of field: VSAPI::getVideoFormatByID"]
1307 [::std::mem::offset_of!(VSAPI, getVideoFormatByID) - 280usize];
1308 ["Offset of field: VSAPI::getFrame"][::std::mem::offset_of!(VSAPI, getFrame) - 288usize];
1309 ["Offset of field: VSAPI::getFrameAsync"]
1310 [::std::mem::offset_of!(VSAPI, getFrameAsync) - 296usize];
1311 ["Offset of field: VSAPI::getFrameFilter"]
1312 [::std::mem::offset_of!(VSAPI, getFrameFilter) - 304usize];
1313 ["Offset of field: VSAPI::requestFrameFilter"]
1314 [::std::mem::offset_of!(VSAPI, requestFrameFilter) - 312usize];
1315 ["Offset of field: VSAPI::releaseFrameEarly"]
1316 [::std::mem::offset_of!(VSAPI, releaseFrameEarly) - 320usize];
1317 ["Offset of field: VSAPI::cacheFrame"][::std::mem::offset_of!(VSAPI, cacheFrame) - 328usize];
1318 ["Offset of field: VSAPI::setFilterError"]
1319 [::std::mem::offset_of!(VSAPI, setFilterError) - 336usize];
1320 ["Offset of field: VSAPI::createFunction"]
1321 [::std::mem::offset_of!(VSAPI, createFunction) - 344usize];
1322 ["Offset of field: VSAPI::freeFunction"]
1323 [::std::mem::offset_of!(VSAPI, freeFunction) - 352usize];
1324 ["Offset of field: VSAPI::addFunctionRef"]
1325 [::std::mem::offset_of!(VSAPI, addFunctionRef) - 360usize];
1326 ["Offset of field: VSAPI::callFunction"]
1327 [::std::mem::offset_of!(VSAPI, callFunction) - 368usize];
1328 ["Offset of field: VSAPI::createMap"][::std::mem::offset_of!(VSAPI, createMap) - 376usize];
1329 ["Offset of field: VSAPI::freeMap"][::std::mem::offset_of!(VSAPI, freeMap) - 384usize];
1330 ["Offset of field: VSAPI::clearMap"][::std::mem::offset_of!(VSAPI, clearMap) - 392usize];
1331 ["Offset of field: VSAPI::copyMap"][::std::mem::offset_of!(VSAPI, copyMap) - 400usize];
1332 ["Offset of field: VSAPI::mapSetError"][::std::mem::offset_of!(VSAPI, mapSetError) - 408usize];
1333 ["Offset of field: VSAPI::mapGetError"][::std::mem::offset_of!(VSAPI, mapGetError) - 416usize];
1334 ["Offset of field: VSAPI::mapNumKeys"][::std::mem::offset_of!(VSAPI, mapNumKeys) - 424usize];
1335 ["Offset of field: VSAPI::mapGetKey"][::std::mem::offset_of!(VSAPI, mapGetKey) - 432usize];
1336 ["Offset of field: VSAPI::mapDeleteKey"]
1337 [::std::mem::offset_of!(VSAPI, mapDeleteKey) - 440usize];
1338 ["Offset of field: VSAPI::mapNumElements"]
1339 [::std::mem::offset_of!(VSAPI, mapNumElements) - 448usize];
1340 ["Offset of field: VSAPI::mapGetType"][::std::mem::offset_of!(VSAPI, mapGetType) - 456usize];
1341 ["Offset of field: VSAPI::mapSetEmpty"][::std::mem::offset_of!(VSAPI, mapSetEmpty) - 464usize];
1342 ["Offset of field: VSAPI::mapGetInt"][::std::mem::offset_of!(VSAPI, mapGetInt) - 472usize];
1343 ["Offset of field: VSAPI::mapGetIntSaturated"]
1344 [::std::mem::offset_of!(VSAPI, mapGetIntSaturated) - 480usize];
1345 ["Offset of field: VSAPI::mapGetIntArray"]
1346 [::std::mem::offset_of!(VSAPI, mapGetIntArray) - 488usize];
1347 ["Offset of field: VSAPI::mapSetInt"][::std::mem::offset_of!(VSAPI, mapSetInt) - 496usize];
1348 ["Offset of field: VSAPI::mapSetIntArray"]
1349 [::std::mem::offset_of!(VSAPI, mapSetIntArray) - 504usize];
1350 ["Offset of field: VSAPI::mapGetFloat"][::std::mem::offset_of!(VSAPI, mapGetFloat) - 512usize];
1351 ["Offset of field: VSAPI::mapGetFloatSaturated"]
1352 [::std::mem::offset_of!(VSAPI, mapGetFloatSaturated) - 520usize];
1353 ["Offset of field: VSAPI::mapGetFloatArray"]
1354 [::std::mem::offset_of!(VSAPI, mapGetFloatArray) - 528usize];
1355 ["Offset of field: VSAPI::mapSetFloat"][::std::mem::offset_of!(VSAPI, mapSetFloat) - 536usize];
1356 ["Offset of field: VSAPI::mapSetFloatArray"]
1357 [::std::mem::offset_of!(VSAPI, mapSetFloatArray) - 544usize];
1358 ["Offset of field: VSAPI::mapGetData"][::std::mem::offset_of!(VSAPI, mapGetData) - 552usize];
1359 ["Offset of field: VSAPI::mapGetDataSize"]
1360 [::std::mem::offset_of!(VSAPI, mapGetDataSize) - 560usize];
1361 ["Offset of field: VSAPI::mapGetDataTypeHint"]
1362 [::std::mem::offset_of!(VSAPI, mapGetDataTypeHint) - 568usize];
1363 ["Offset of field: VSAPI::mapSetData"][::std::mem::offset_of!(VSAPI, mapSetData) - 576usize];
1364 ["Offset of field: VSAPI::mapGetNode"][::std::mem::offset_of!(VSAPI, mapGetNode) - 584usize];
1365 ["Offset of field: VSAPI::mapSetNode"][::std::mem::offset_of!(VSAPI, mapSetNode) - 592usize];
1366 ["Offset of field: VSAPI::mapConsumeNode"]
1367 [::std::mem::offset_of!(VSAPI, mapConsumeNode) - 600usize];
1368 ["Offset of field: VSAPI::mapGetFrame"][::std::mem::offset_of!(VSAPI, mapGetFrame) - 608usize];
1369 ["Offset of field: VSAPI::mapSetFrame"][::std::mem::offset_of!(VSAPI, mapSetFrame) - 616usize];
1370 ["Offset of field: VSAPI::mapConsumeFrame"]
1371 [::std::mem::offset_of!(VSAPI, mapConsumeFrame) - 624usize];
1372 ["Offset of field: VSAPI::mapGetFunction"]
1373 [::std::mem::offset_of!(VSAPI, mapGetFunction) - 632usize];
1374 ["Offset of field: VSAPI::mapSetFunction"]
1375 [::std::mem::offset_of!(VSAPI, mapSetFunction) - 640usize];
1376 ["Offset of field: VSAPI::mapConsumeFunction"]
1377 [::std::mem::offset_of!(VSAPI, mapConsumeFunction) - 648usize];
1378 ["Offset of field: VSAPI::registerFunction"]
1379 [::std::mem::offset_of!(VSAPI, registerFunction) - 656usize];
1380 ["Offset of field: VSAPI::getPluginByID"]
1381 [::std::mem::offset_of!(VSAPI, getPluginByID) - 664usize];
1382 ["Offset of field: VSAPI::getPluginByNamespace"]
1383 [::std::mem::offset_of!(VSAPI, getPluginByNamespace) - 672usize];
1384 ["Offset of field: VSAPI::getNextPlugin"]
1385 [::std::mem::offset_of!(VSAPI, getNextPlugin) - 680usize];
1386 ["Offset of field: VSAPI::getPluginName"]
1387 [::std::mem::offset_of!(VSAPI, getPluginName) - 688usize];
1388 ["Offset of field: VSAPI::getPluginID"][::std::mem::offset_of!(VSAPI, getPluginID) - 696usize];
1389 ["Offset of field: VSAPI::getPluginNamespace"]
1390 [::std::mem::offset_of!(VSAPI, getPluginNamespace) - 704usize];
1391 ["Offset of field: VSAPI::getNextPluginFunction"]
1392 [::std::mem::offset_of!(VSAPI, getNextPluginFunction) - 712usize];
1393 ["Offset of field: VSAPI::getPluginFunctionByName"]
1394 [::std::mem::offset_of!(VSAPI, getPluginFunctionByName) - 720usize];
1395 ["Offset of field: VSAPI::getPluginFunctionName"]
1396 [::std::mem::offset_of!(VSAPI, getPluginFunctionName) - 728usize];
1397 ["Offset of field: VSAPI::getPluginFunctionArguments"]
1398 [::std::mem::offset_of!(VSAPI, getPluginFunctionArguments) - 736usize];
1399 ["Offset of field: VSAPI::getPluginFunctionReturnType"]
1400 [::std::mem::offset_of!(VSAPI, getPluginFunctionReturnType) - 744usize];
1401 ["Offset of field: VSAPI::getPluginPath"]
1402 [::std::mem::offset_of!(VSAPI, getPluginPath) - 752usize];
1403 ["Offset of field: VSAPI::getPluginVersion"]
1404 [::std::mem::offset_of!(VSAPI, getPluginVersion) - 760usize];
1405 ["Offset of field: VSAPI::invoke"][::std::mem::offset_of!(VSAPI, invoke) - 768usize];
1406 ["Offset of field: VSAPI::createCore"][::std::mem::offset_of!(VSAPI, createCore) - 776usize];
1407 ["Offset of field: VSAPI::freeCore"][::std::mem::offset_of!(VSAPI, freeCore) - 784usize];
1408 ["Offset of field: VSAPI::setMaxCacheSize"]
1409 [::std::mem::offset_of!(VSAPI, setMaxCacheSize) - 792usize];
1410 ["Offset of field: VSAPI::setThreadCount"]
1411 [::std::mem::offset_of!(VSAPI, setThreadCount) - 800usize];
1412 ["Offset of field: VSAPI::getCoreInfo"][::std::mem::offset_of!(VSAPI, getCoreInfo) - 808usize];
1413 ["Offset of field: VSAPI::getAPIVersion"]
1414 [::std::mem::offset_of!(VSAPI, getAPIVersion) - 816usize];
1415 ["Offset of field: VSAPI::logMessage"][::std::mem::offset_of!(VSAPI, logMessage) - 824usize];
1416 ["Offset of field: VSAPI::addLogHandler"]
1417 [::std::mem::offset_of!(VSAPI, addLogHandler) - 832usize];
1418 ["Offset of field: VSAPI::removeLogHandler"]
1419 [::std::mem::offset_of!(VSAPI, removeLogHandler) - 840usize];
1420};
1421unsafe extern "C" {
1422 pub fn getVapourSynthAPI(version: ::std::os::raw::c_int) -> *const VSAPI;
1423}
1424#[repr(C)]
1425#[derive(Debug, Copy, Clone)]
1426pub struct VSScript {
1427 _unused: [u8; 0],
1428}
1429#[repr(C)]
1430#[derive(Debug, Copy, Clone)]
1431pub struct VSSCRIPTAPI {
1432 pub getAPIVersion: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
1433 pub getVSAPI:
1434 ::std::option::Option<unsafe extern "C" fn(version: ::std::os::raw::c_int) -> *const VSAPI>,
1435 pub createScript:
1436 ::std::option::Option<unsafe extern "C" fn(core: *mut VSCore) -> *mut VSScript>,
1437 pub getCore: ::std::option::Option<unsafe extern "C" fn(handle: *mut VSScript) -> *mut VSCore>,
1438 pub evaluateBuffer: ::std::option::Option<
1439 unsafe extern "C" fn(
1440 handle: *mut VSScript,
1441 buffer: *const ::std::os::raw::c_char,
1442 scriptFilename: *const ::std::os::raw::c_char,
1443 ) -> ::std::os::raw::c_int,
1444 >,
1445 pub evaluateFile: ::std::option::Option<
1446 unsafe extern "C" fn(
1447 handle: *mut VSScript,
1448 scriptFilename: *const ::std::os::raw::c_char,
1449 ) -> ::std::os::raw::c_int,
1450 >,
1451 pub getError: ::std::option::Option<
1452 unsafe extern "C" fn(handle: *mut VSScript) -> *const ::std::os::raw::c_char,
1453 >,
1454 pub getExitCode:
1455 ::std::option::Option<unsafe extern "C" fn(handle: *mut VSScript) -> ::std::os::raw::c_int>,
1456 pub getVariable: ::std::option::Option<
1457 unsafe extern "C" fn(
1458 handle: *mut VSScript,
1459 name: *const ::std::os::raw::c_char,
1460 dst: *mut VSMap,
1461 ) -> ::std::os::raw::c_int,
1462 >,
1463 pub setVariables: ::std::option::Option<
1464 unsafe extern "C" fn(handle: *mut VSScript, vars: *const VSMap) -> ::std::os::raw::c_int,
1465 >,
1466 pub getOutputNode: ::std::option::Option<
1467 unsafe extern "C" fn(handle: *mut VSScript, index: ::std::os::raw::c_int) -> *mut VSNode,
1468 >,
1469 pub getOutputAlphaNode: ::std::option::Option<
1470 unsafe extern "C" fn(handle: *mut VSScript, index: ::std::os::raw::c_int) -> *mut VSNode,
1471 >,
1472 pub getAltOutputMode: ::std::option::Option<
1473 unsafe extern "C" fn(
1474 handle: *mut VSScript,
1475 index: ::std::os::raw::c_int,
1476 ) -> ::std::os::raw::c_int,
1477 >,
1478 pub freeScript: ::std::option::Option<unsafe extern "C" fn(handle: *mut VSScript)>,
1479 pub evalSetWorkingDir: ::std::option::Option<
1480 unsafe extern "C" fn(handle: *mut VSScript, setCWD: ::std::os::raw::c_int),
1481 >,
1482}
1483#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1484const _: () = {
1485 ["Size of VSSCRIPTAPI"][::std::mem::size_of::<VSSCRIPTAPI>() - 120usize];
1486 ["Alignment of VSSCRIPTAPI"][::std::mem::align_of::<VSSCRIPTAPI>() - 8usize];
1487 ["Offset of field: VSSCRIPTAPI::getAPIVersion"]
1488 [::std::mem::offset_of!(VSSCRIPTAPI, getAPIVersion) - 0usize];
1489 ["Offset of field: VSSCRIPTAPI::getVSAPI"]
1490 [::std::mem::offset_of!(VSSCRIPTAPI, getVSAPI) - 8usize];
1491 ["Offset of field: VSSCRIPTAPI::createScript"]
1492 [::std::mem::offset_of!(VSSCRIPTAPI, createScript) - 16usize];
1493 ["Offset of field: VSSCRIPTAPI::getCore"]
1494 [::std::mem::offset_of!(VSSCRIPTAPI, getCore) - 24usize];
1495 ["Offset of field: VSSCRIPTAPI::evaluateBuffer"]
1496 [::std::mem::offset_of!(VSSCRIPTAPI, evaluateBuffer) - 32usize];
1497 ["Offset of field: VSSCRIPTAPI::evaluateFile"]
1498 [::std::mem::offset_of!(VSSCRIPTAPI, evaluateFile) - 40usize];
1499 ["Offset of field: VSSCRIPTAPI::getError"]
1500 [::std::mem::offset_of!(VSSCRIPTAPI, getError) - 48usize];
1501 ["Offset of field: VSSCRIPTAPI::getExitCode"]
1502 [::std::mem::offset_of!(VSSCRIPTAPI, getExitCode) - 56usize];
1503 ["Offset of field: VSSCRIPTAPI::getVariable"]
1504 [::std::mem::offset_of!(VSSCRIPTAPI, getVariable) - 64usize];
1505 ["Offset of field: VSSCRIPTAPI::setVariables"]
1506 [::std::mem::offset_of!(VSSCRIPTAPI, setVariables) - 72usize];
1507 ["Offset of field: VSSCRIPTAPI::getOutputNode"]
1508 [::std::mem::offset_of!(VSSCRIPTAPI, getOutputNode) - 80usize];
1509 ["Offset of field: VSSCRIPTAPI::getOutputAlphaNode"]
1510 [::std::mem::offset_of!(VSSCRIPTAPI, getOutputAlphaNode) - 88usize];
1511 ["Offset of field: VSSCRIPTAPI::getAltOutputMode"]
1512 [::std::mem::offset_of!(VSSCRIPTAPI, getAltOutputMode) - 96usize];
1513 ["Offset of field: VSSCRIPTAPI::freeScript"]
1514 [::std::mem::offset_of!(VSSCRIPTAPI, freeScript) - 104usize];
1515 ["Offset of field: VSSCRIPTAPI::evalSetWorkingDir"]
1516 [::std::mem::offset_of!(VSSCRIPTAPI, evalSetWorkingDir) - 112usize];
1517};