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