1#[allow(non_camel_case_types,dead_code,non_upper_case_globals,non_snake_case,improper_ctypes)]
2pub mod kernel {
3pub const _STDINT_H: u32 = 1;
6pub const _FEATURES_H: u32 = 1;
7pub const _DEFAULT_SOURCE: u32 = 1;
8pub const __GLIBC_USE_ISOC2X: u32 = 0;
9pub const __USE_ISOC11: u32 = 1;
10pub const __USE_ISOC99: u32 = 1;
11pub const __USE_ISOC95: u32 = 1;
12pub const __USE_POSIX_IMPLICITLY: u32 = 1;
13pub const _POSIX_SOURCE: u32 = 1;
14pub const _POSIX_C_SOURCE: u32 = 200809;
15pub const __USE_POSIX: u32 = 1;
16pub const __USE_POSIX2: u32 = 1;
17pub const __USE_POSIX199309: u32 = 1;
18pub const __USE_POSIX199506: u32 = 1;
19pub const __USE_XOPEN2K: u32 = 1;
20pub const __USE_XOPEN2K8: u32 = 1;
21pub const _ATFILE_SOURCE: u32 = 1;
22pub const __USE_MISC: u32 = 1;
23pub const __USE_ATFILE: u32 = 1;
24pub const __USE_FORTIFY_LEVEL: u32 = 0;
25pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
26pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
27pub const _STDC_PREDEF_H: u32 = 1;
28pub const __STDC_IEC_559__: u32 = 1;
29pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
30pub const __STDC_ISO_10646__: u32 = 201706;
31pub const __GNU_LIBRARY__: u32 = 6;
32pub const __GLIBC__: u32 = 2;
33pub const __GLIBC_MINOR__: u32 = 31;
34pub const _SYS_CDEFS_H: u32 = 1;
35pub const __glibc_c99_flexarr_available: u32 = 1;
36pub const __WORDSIZE: u32 = 64;
37pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
38pub const __SYSCALL_WORDSIZE: u32 = 64;
39pub const __LONG_DOUBLE_USES_FLOAT128: u32 = 0;
40pub const __HAVE_GENERIC_SELECTION: u32 = 1;
41pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
42pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
43pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
44pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
45pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
46pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
47pub const _BITS_TYPES_H: u32 = 1;
48pub const __TIMESIZE: u32 = 64;
49pub const _BITS_TYPESIZES_H: u32 = 1;
50pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
51pub const __INO_T_MATCHES_INO64_T: u32 = 1;
52pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
53pub const __STATFS_MATCHES_STATFS64: u32 = 1;
54pub const __FD_SETSIZE: u32 = 1024;
55pub const _BITS_TIME64_H: u32 = 1;
56pub const _BITS_WCHAR_H: u32 = 1;
57pub const _BITS_STDINT_INTN_H: u32 = 1;
58pub const _BITS_STDINT_UINTN_H: u32 = 1;
59pub const INT8_MIN: i32 = -128;
60pub const INT16_MIN: i32 = -32768;
61pub const INT32_MIN: i32 = -2147483648;
62pub const INT8_MAX: u32 = 127;
63pub const INT16_MAX: u32 = 32767;
64pub const INT32_MAX: u32 = 2147483647;
65pub const UINT8_MAX: u32 = 255;
66pub const UINT16_MAX: u32 = 65535;
67pub const UINT32_MAX: u32 = 4294967295;
68pub const INT_LEAST8_MIN: i32 = -128;
69pub const INT_LEAST16_MIN: i32 = -32768;
70pub const INT_LEAST32_MIN: i32 = -2147483648;
71pub const INT_LEAST8_MAX: u32 = 127;
72pub const INT_LEAST16_MAX: u32 = 32767;
73pub const INT_LEAST32_MAX: u32 = 2147483647;
74pub const UINT_LEAST8_MAX: u32 = 255;
75pub const UINT_LEAST16_MAX: u32 = 65535;
76pub const UINT_LEAST32_MAX: u32 = 4294967295;
77pub const INT_FAST8_MIN: i32 = -128;
78pub const INT_FAST16_MIN: i64 = -9223372036854775808;
79pub const INT_FAST32_MIN: i64 = -9223372036854775808;
80pub const INT_FAST8_MAX: u32 = 127;
81pub const INT_FAST16_MAX: u64 = 9223372036854775807;
82pub const INT_FAST32_MAX: u64 = 9223372036854775807;
83pub const UINT_FAST8_MAX: u32 = 255;
84pub const UINT_FAST16_MAX: i32 = -1;
85pub const UINT_FAST32_MAX: i32 = -1;
86pub const INTPTR_MIN: i64 = -9223372036854775808;
87pub const INTPTR_MAX: u64 = 9223372036854775807;
88pub const UINTPTR_MAX: i32 = -1;
89pub const PTRDIFF_MIN: i64 = -9223372036854775808;
90pub const PTRDIFF_MAX: u64 = 9223372036854775807;
91pub const SIG_ATOMIC_MIN: i32 = -2147483648;
92pub const SIG_ATOMIC_MAX: u32 = 2147483647;
93pub const SIZE_MAX: i32 = -1;
94pub const WINT_MIN: u32 = 0;
95pub const WINT_MAX: u32 = 4294967295;
96pub const true_: u32 = 1;
97pub const false_: u32 = 0;
98pub const __bool_true_false_are_defined: u32 = 1;
99pub type __u_char = ::std::os::raw::c_uchar;
100pub type __u_short = ::std::os::raw::c_ushort;
101pub type __u_int = ::std::os::raw::c_uint;
102pub type __u_long = ::std::os::raw::c_ulong;
103pub type __int8_t = ::std::os::raw::c_schar;
104pub type __uint8_t = ::std::os::raw::c_uchar;
105pub type __int16_t = ::std::os::raw::c_short;
106pub type __uint16_t = ::std::os::raw::c_ushort;
107pub type __int32_t = ::std::os::raw::c_int;
108pub type __uint32_t = ::std::os::raw::c_uint;
109pub type __int64_t = ::std::os::raw::c_long;
110pub type __uint64_t = ::std::os::raw::c_ulong;
111pub type __int_least8_t = __int8_t;
112pub type __uint_least8_t = __uint8_t;
113pub type __int_least16_t = __int16_t;
114pub type __uint_least16_t = __uint16_t;
115pub type __int_least32_t = __int32_t;
116pub type __uint_least32_t = __uint32_t;
117pub type __int_least64_t = __int64_t;
118pub type __uint_least64_t = __uint64_t;
119pub type __quad_t = ::std::os::raw::c_long;
120pub type __u_quad_t = ::std::os::raw::c_ulong;
121pub type __intmax_t = ::std::os::raw::c_long;
122pub type __uintmax_t = ::std::os::raw::c_ulong;
123pub type __dev_t = ::std::os::raw::c_ulong;
124pub type __uid_t = ::std::os::raw::c_uint;
125pub type __gid_t = ::std::os::raw::c_uint;
126pub type __ino_t = ::std::os::raw::c_ulong;
127pub type __ino64_t = ::std::os::raw::c_ulong;
128pub type __mode_t = ::std::os::raw::c_uint;
129pub type __nlink_t = ::std::os::raw::c_ulong;
130pub type __off_t = ::std::os::raw::c_long;
131pub type __off64_t = ::std::os::raw::c_long;
132pub type __pid_t = ::std::os::raw::c_int;
133#[repr(C)]
134#[derive(Debug, Copy, Clone)]
135pub struct __fsid_t {
136 pub __val: [::std::os::raw::c_int; 2usize],
137}
138#[test]
139fn bindgen_test_layout___fsid_t() {
140 assert_eq!(
141 ::std::mem::size_of::<__fsid_t>(),
142 8usize,
143 concat!("Size of: ", stringify!(__fsid_t))
144 );
145 assert_eq!(
146 ::std::mem::align_of::<__fsid_t>(),
147 4usize,
148 concat!("Alignment of ", stringify!(__fsid_t))
149 );
150 assert_eq!(
151 unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
152 0usize,
153 concat!(
154 "Offset of field: ",
155 stringify!(__fsid_t),
156 "::",
157 stringify!(__val)
158 )
159 );
160}
161pub type __clock_t = ::std::os::raw::c_long;
162pub type __rlim_t = ::std::os::raw::c_ulong;
163pub type __rlim64_t = ::std::os::raw::c_ulong;
164pub type __id_t = ::std::os::raw::c_uint;
165pub type __time_t = ::std::os::raw::c_long;
166pub type __useconds_t = ::std::os::raw::c_uint;
167pub type __suseconds_t = ::std::os::raw::c_long;
168pub type __daddr_t = ::std::os::raw::c_int;
169pub type __key_t = ::std::os::raw::c_int;
170pub type __clockid_t = ::std::os::raw::c_int;
171pub type __timer_t = *mut ::std::os::raw::c_void;
172pub type __blksize_t = ::std::os::raw::c_long;
173pub type __blkcnt_t = ::std::os::raw::c_long;
174pub type __blkcnt64_t = ::std::os::raw::c_long;
175pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
176pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
177pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
178pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
179pub type __fsword_t = ::std::os::raw::c_long;
180pub type __ssize_t = ::std::os::raw::c_long;
181pub type __syscall_slong_t = ::std::os::raw::c_long;
182pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
183pub type __loff_t = __off64_t;
184pub type __caddr_t = *mut ::std::os::raw::c_char;
185pub type __intptr_t = ::std::os::raw::c_long;
186pub type __socklen_t = ::std::os::raw::c_uint;
187pub type __sig_atomic_t = ::std::os::raw::c_int;
188pub type int_least8_t = __int_least8_t;
189pub type int_least16_t = __int_least16_t;
190pub type int_least32_t = __int_least32_t;
191pub type int_least64_t = __int_least64_t;
192pub type uint_least8_t = __uint_least8_t;
193pub type uint_least16_t = __uint_least16_t;
194pub type uint_least32_t = __uint_least32_t;
195pub type uint_least64_t = __uint_least64_t;
196pub type int_fast8_t = ::std::os::raw::c_schar;
197pub type int_fast16_t = ::std::os::raw::c_long;
198pub type int_fast32_t = ::std::os::raw::c_long;
199pub type int_fast64_t = ::std::os::raw::c_long;
200pub type uint_fast8_t = ::std::os::raw::c_uchar;
201pub type uint_fast16_t = ::std::os::raw::c_ulong;
202pub type uint_fast32_t = ::std::os::raw::c_ulong;
203pub type uint_fast64_t = ::std::os::raw::c_ulong;
204pub type intmax_t = __intmax_t;
205pub type uintmax_t = __uintmax_t;
206#[repr(C)]
207#[derive(Debug, Copy, Clone)]
208pub struct rgba_surface {
209 pub ptr: *mut u8,
210 pub width: i32,
211 pub height: i32,
212 pub stride: i32,
213}
214#[test]
215fn bindgen_test_layout_rgba_surface() {
216 assert_eq!(
217 ::std::mem::size_of::<rgba_surface>(),
218 24usize,
219 concat!("Size of: ", stringify!(rgba_surface))
220 );
221 assert_eq!(
222 ::std::mem::align_of::<rgba_surface>(),
223 8usize,
224 concat!("Alignment of ", stringify!(rgba_surface))
225 );
226 assert_eq!(
227 unsafe { &(*(::std::ptr::null::<rgba_surface>())).ptr as *const _ as usize },
228 0usize,
229 concat!(
230 "Offset of field: ",
231 stringify!(rgba_surface),
232 "::",
233 stringify!(ptr)
234 )
235 );
236 assert_eq!(
237 unsafe { &(*(::std::ptr::null::<rgba_surface>())).width as *const _ as usize },
238 8usize,
239 concat!(
240 "Offset of field: ",
241 stringify!(rgba_surface),
242 "::",
243 stringify!(width)
244 )
245 );
246 assert_eq!(
247 unsafe { &(*(::std::ptr::null::<rgba_surface>())).height as *const _ as usize },
248 12usize,
249 concat!(
250 "Offset of field: ",
251 stringify!(rgba_surface),
252 "::",
253 stringify!(height)
254 )
255 );
256 assert_eq!(
257 unsafe { &(*(::std::ptr::null::<rgba_surface>())).stride as *const _ as usize },
258 16usize,
259 concat!(
260 "Offset of field: ",
261 stringify!(rgba_surface),
262 "::",
263 stringify!(stride)
264 )
265 );
266}
267#[repr(C)]
268#[derive(Debug, Copy, Clone)]
269pub struct bc6h_enc_settings {
270 pub slow_mode: bool,
271 pub fast_mode: bool,
272 pub refineIterations_1p: i32,
273 pub refineIterations_2p: i32,
274 pub fastSkipTreshold: i32,
275}
276#[test]
277fn bindgen_test_layout_bc6h_enc_settings() {
278 assert_eq!(
279 ::std::mem::size_of::<bc6h_enc_settings>(),
280 16usize,
281 concat!("Size of: ", stringify!(bc6h_enc_settings))
282 );
283 assert_eq!(
284 ::std::mem::align_of::<bc6h_enc_settings>(),
285 4usize,
286 concat!("Alignment of ", stringify!(bc6h_enc_settings))
287 );
288 assert_eq!(
289 unsafe { &(*(::std::ptr::null::<bc6h_enc_settings>())).slow_mode as *const _ as usize },
290 0usize,
291 concat!(
292 "Offset of field: ",
293 stringify!(bc6h_enc_settings),
294 "::",
295 stringify!(slow_mode)
296 )
297 );
298 assert_eq!(
299 unsafe { &(*(::std::ptr::null::<bc6h_enc_settings>())).fast_mode as *const _ as usize },
300 1usize,
301 concat!(
302 "Offset of field: ",
303 stringify!(bc6h_enc_settings),
304 "::",
305 stringify!(fast_mode)
306 )
307 );
308 assert_eq!(
309 unsafe {
310 &(*(::std::ptr::null::<bc6h_enc_settings>())).refineIterations_1p as *const _ as usize
311 },
312 4usize,
313 concat!(
314 "Offset of field: ",
315 stringify!(bc6h_enc_settings),
316 "::",
317 stringify!(refineIterations_1p)
318 )
319 );
320 assert_eq!(
321 unsafe {
322 &(*(::std::ptr::null::<bc6h_enc_settings>())).refineIterations_2p as *const _ as usize
323 },
324 8usize,
325 concat!(
326 "Offset of field: ",
327 stringify!(bc6h_enc_settings),
328 "::",
329 stringify!(refineIterations_2p)
330 )
331 );
332 assert_eq!(
333 unsafe {
334 &(*(::std::ptr::null::<bc6h_enc_settings>())).fastSkipTreshold as *const _ as usize
335 },
336 12usize,
337 concat!(
338 "Offset of field: ",
339 stringify!(bc6h_enc_settings),
340 "::",
341 stringify!(fastSkipTreshold)
342 )
343 );
344}
345#[repr(C)]
346#[derive(Debug, Copy, Clone)]
347pub struct bc7_enc_settings {
348 pub mode_selection: [bool; 4usize],
349 pub refineIterations: [i32; 8usize],
350 pub skip_mode2: bool,
351 pub fastSkipTreshold_mode1: i32,
352 pub fastSkipTreshold_mode3: i32,
353 pub fastSkipTreshold_mode7: i32,
354 pub mode45_channel0: i32,
355 pub refineIterations_channel: i32,
356 pub channels: i32,
357}
358#[test]
359fn bindgen_test_layout_bc7_enc_settings() {
360 assert_eq!(
361 ::std::mem::size_of::<bc7_enc_settings>(),
362 64usize,
363 concat!("Size of: ", stringify!(bc7_enc_settings))
364 );
365 assert_eq!(
366 ::std::mem::align_of::<bc7_enc_settings>(),
367 4usize,
368 concat!("Alignment of ", stringify!(bc7_enc_settings))
369 );
370 assert_eq!(
371 unsafe { &(*(::std::ptr::null::<bc7_enc_settings>())).mode_selection as *const _ as usize },
372 0usize,
373 concat!(
374 "Offset of field: ",
375 stringify!(bc7_enc_settings),
376 "::",
377 stringify!(mode_selection)
378 )
379 );
380 assert_eq!(
381 unsafe {
382 &(*(::std::ptr::null::<bc7_enc_settings>())).refineIterations as *const _ as usize
383 },
384 4usize,
385 concat!(
386 "Offset of field: ",
387 stringify!(bc7_enc_settings),
388 "::",
389 stringify!(refineIterations)
390 )
391 );
392 assert_eq!(
393 unsafe { &(*(::std::ptr::null::<bc7_enc_settings>())).skip_mode2 as *const _ as usize },
394 36usize,
395 concat!(
396 "Offset of field: ",
397 stringify!(bc7_enc_settings),
398 "::",
399 stringify!(skip_mode2)
400 )
401 );
402 assert_eq!(
403 unsafe {
404 &(*(::std::ptr::null::<bc7_enc_settings>())).fastSkipTreshold_mode1 as *const _ as usize
405 },
406 40usize,
407 concat!(
408 "Offset of field: ",
409 stringify!(bc7_enc_settings),
410 "::",
411 stringify!(fastSkipTreshold_mode1)
412 )
413 );
414 assert_eq!(
415 unsafe {
416 &(*(::std::ptr::null::<bc7_enc_settings>())).fastSkipTreshold_mode3 as *const _ as usize
417 },
418 44usize,
419 concat!(
420 "Offset of field: ",
421 stringify!(bc7_enc_settings),
422 "::",
423 stringify!(fastSkipTreshold_mode3)
424 )
425 );
426 assert_eq!(
427 unsafe {
428 &(*(::std::ptr::null::<bc7_enc_settings>())).fastSkipTreshold_mode7 as *const _ as usize
429 },
430 48usize,
431 concat!(
432 "Offset of field: ",
433 stringify!(bc7_enc_settings),
434 "::",
435 stringify!(fastSkipTreshold_mode7)
436 )
437 );
438 assert_eq!(
439 unsafe {
440 &(*(::std::ptr::null::<bc7_enc_settings>())).mode45_channel0 as *const _ as usize
441 },
442 52usize,
443 concat!(
444 "Offset of field: ",
445 stringify!(bc7_enc_settings),
446 "::",
447 stringify!(mode45_channel0)
448 )
449 );
450 assert_eq!(
451 unsafe {
452 &(*(::std::ptr::null::<bc7_enc_settings>())).refineIterations_channel as *const _
453 as usize
454 },
455 56usize,
456 concat!(
457 "Offset of field: ",
458 stringify!(bc7_enc_settings),
459 "::",
460 stringify!(refineIterations_channel)
461 )
462 );
463 assert_eq!(
464 unsafe { &(*(::std::ptr::null::<bc7_enc_settings>())).channels as *const _ as usize },
465 60usize,
466 concat!(
467 "Offset of field: ",
468 stringify!(bc7_enc_settings),
469 "::",
470 stringify!(channels)
471 )
472 );
473}
474#[repr(C)]
475#[derive(Debug, Copy, Clone)]
476pub struct etc_enc_settings {
477 pub fastSkipTreshold: i32,
478}
479#[test]
480fn bindgen_test_layout_etc_enc_settings() {
481 assert_eq!(
482 ::std::mem::size_of::<etc_enc_settings>(),
483 4usize,
484 concat!("Size of: ", stringify!(etc_enc_settings))
485 );
486 assert_eq!(
487 ::std::mem::align_of::<etc_enc_settings>(),
488 4usize,
489 concat!("Alignment of ", stringify!(etc_enc_settings))
490 );
491 assert_eq!(
492 unsafe {
493 &(*(::std::ptr::null::<etc_enc_settings>())).fastSkipTreshold as *const _ as usize
494 },
495 0usize,
496 concat!(
497 "Offset of field: ",
498 stringify!(etc_enc_settings),
499 "::",
500 stringify!(fastSkipTreshold)
501 )
502 );
503}
504extern "C" {
505 pub fn CompressBlocksBC1_ispc(src: *mut rgba_surface, dst: *mut u8);
506}
507extern "C" {
508 pub fn CompressBlocksBC3_ispc(src: *mut rgba_surface, dst: *mut u8);
509}
510extern "C" {
511 pub fn CompressBlocksBC4_ispc(src: *mut rgba_surface, dst: *mut u8);
512}
513extern "C" {
514 pub fn CompressBlocksBC5_ispc(src: *mut rgba_surface, dst: *mut u8);
515}
516extern "C" {
517 pub fn CompressBlocksBC6H_ispc(
518 src: *mut rgba_surface,
519 dst: *mut u8,
520 settings: *mut bc6h_enc_settings,
521 );
522}
523extern "C" {
524 pub fn CompressBlocksBC7_ispc(
525 src: *mut rgba_surface,
526 dst: *mut u8,
527 settings: *mut bc7_enc_settings,
528 );
529}
530extern "C" {
531 pub fn CompressBlocksETC1_ispc(
532 src: *mut rgba_surface,
533 dst: *mut u8,
534 settings: *mut etc_enc_settings,
535 );
536}
537}