/* automatically generated by rust-bindgen 0.72.1 */ #[doc = r" If Bindgen could only determine the size and alignment of a"] #[doc = r" type, it is represented like this."] #[derive(PartialEq, Copy, Clone, Debug, Hash)] #[repr(C)] pub struct __BindgenOpaqueArray(pub [T; N]); impl Default for __BindgenOpaqueArray { fn default() -> Self { Self([::default(); N]) } } pub const __BIONIC__: u32 = 1; pub const __WORDSIZE: u32 = 64; pub const __bos_level: u32 = 0; pub const __ANDROID_API_FUTURE__: u32 = 10000; pub const __ANDROID_API_G__: u32 = 9; pub const __ANDROID_API_I__: u32 = 14; pub const __ANDROID_API_J__: u32 = 16; pub const __ANDROID_API_J_MR1__: u32 = 17; pub const __ANDROID_API_J_MR2__: u32 = 18; pub const __ANDROID_API_K__: u32 = 19; pub const __ANDROID_API_L__: u32 = 21; pub const __ANDROID_API_L_MR1__: u32 = 22; pub const __ANDROID_API_M__: u32 = 23; pub const __ANDROID_API_N__: u32 = 24; pub const __ANDROID_API_N_MR1__: u32 = 25; pub const __ANDROID_API_O__: u32 = 26; pub const __ANDROID_API_O_MR1__: u32 = 27; pub const __ANDROID_API_P__: u32 = 28; pub const __ANDROID_API_Q__: u32 = 29; pub const __ANDROID_API_R__: u32 = 30; pub const __ANDROID_API_S__: u32 = 31; pub const __ANDROID_API_T__: u32 = 33; pub const __ANDROID_API_U__: u32 = 34; pub const __ANDROID_API_V__: u32 = 35; pub const __ANDROID_NDK__: u32 = 1; pub const __NDK_MAJOR__: u32 = 29; pub const __NDK_MINOR__: u32 = 0; pub const __NDK_BETA__: u32 = 0; pub const __NDK_BUILD__: u32 = 14206865; pub const __NDK_CANARY__: u32 = 0; pub const WCHAR_MIN: u8 = 0u8; pub const INT8_MIN: i32 = -128; pub const INT8_MAX: u32 = 127; pub const INT_LEAST8_MIN: i32 = -128; pub const INT_LEAST8_MAX: u32 = 127; pub const INT_FAST8_MIN: i32 = -128; pub const INT_FAST8_MAX: u32 = 127; pub const UINT8_MAX: u32 = 255; pub const UINT_LEAST8_MAX: u32 = 255; pub const UINT_FAST8_MAX: u32 = 255; pub const INT16_MIN: i32 = -32768; pub const INT16_MAX: u32 = 32767; pub const INT_LEAST16_MIN: i32 = -32768; pub const INT_LEAST16_MAX: u32 = 32767; pub const UINT16_MAX: u32 = 65535; pub const UINT_LEAST16_MAX: u32 = 65535; pub const INT32_MIN: i32 = -2147483648; pub const INT32_MAX: u32 = 2147483647; pub const INT_LEAST32_MIN: i32 = -2147483648; pub const INT_LEAST32_MAX: u32 = 2147483647; pub const INT_FAST32_MIN: i32 = -2147483648; pub const INT_FAST32_MAX: u32 = 2147483647; pub const UINT32_MAX: u32 = 4294967295; pub const UINT_LEAST32_MAX: u32 = 4294967295; pub const UINT_FAST32_MAX: u32 = 4294967295; pub const SIG_ATOMIC_MAX: u32 = 2147483647; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const WINT_MAX: u32 = 4294967295; pub const WINT_MIN: u32 = 0; pub const P4D_MAX: u32 = 256; pub const __BITS_PER_LONG: u32 = 64; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; pub const _IOFBF: u32 = 0; pub const _IOLBF: u32 = 1; pub const _IONBF: u32 = 2; pub const BUFSIZ: u32 = 1024; pub const EOF: i32 = -1; pub const FOPEN_MAX: u32 = 20; pub const FILENAME_MAX: u32 = 4096; pub const L_tmpnam: u32 = 4096; pub const TMP_MAX: u32 = 308915776; pub const P_tmpdir: &[u8; 6] = b"/tmp/\0"; pub const L_ctermid: u32 = 1024; pub const __bool_true_false_are_defined: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; pub const LUT_CHUNK_COUNT: u32 = 64; unsafe extern "C" { pub fn android_get_application_target_sdk_version() -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn android_get_device_api_level() -> ::std::os::raw::c_int; } pub type wchar_t = ::std::os::raw::c_uint; #[repr(C)] #[repr(align(16))] #[derive(Debug, Copy, Clone)] pub struct max_align_t { pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, pub __bindgen_padding_0: u64, pub __clang_max_align_nonce2: u128, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of max_align_t"][::std::mem::size_of::() - 32usize]; ["Alignment of max_align_t"][::std::mem::align_of::() - 16usize]; ["Offset of field: max_align_t::__clang_max_align_nonce1"] [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize]; ["Offset of field: max_align_t::__clang_max_align_nonce2"] [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize]; }; pub type __int8_t = ::std::os::raw::c_schar; pub type __uint8_t = ::std::os::raw::c_uchar; pub type __int16_t = ::std::os::raw::c_short; pub type __uint16_t = ::std::os::raw::c_ushort; pub type __int32_t = ::std::os::raw::c_int; pub type __uint32_t = ::std::os::raw::c_uint; pub type __int64_t = ::std::os::raw::c_long; pub type __uint64_t = ::std::os::raw::c_ulong; pub type __intptr_t = ::std::os::raw::c_long; pub type __uintptr_t = ::std::os::raw::c_ulong; pub type int_least8_t = i8; pub type uint_least8_t = u8; pub type int_least16_t = i16; pub type uint_least16_t = u16; pub type int_least32_t = i32; pub type uint_least32_t = u32; pub type int_least64_t = i64; pub type uint_least64_t = u64; pub type int_fast8_t = i8; pub type uint_fast8_t = u8; pub type int_fast64_t = i64; pub type uint_fast64_t = u64; pub type int_fast16_t = i64; pub type uint_fast16_t = u64; pub type int_fast32_t = i64; pub type uint_fast32_t = u64; pub type uintmax_t = u64; pub type intmax_t = i64; unsafe extern "C" { pub fn p4nenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc128v64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc256w32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nd1enc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc128v16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc128v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc256v32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nzenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4ndec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize; } unsafe extern "C" { pub fn p4ndec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4ndec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4ndec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn p4ndec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4ndec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4ndec128v64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn p4ndec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nddec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize; } unsafe extern "C" { pub fn p4nddec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nddec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nddec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nddec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nddec256w32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nddec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nddec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn p4nd1dec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize; } unsafe extern "C" { pub fn p4nd1dec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nd1dec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nd1dec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nd1dec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nd1dec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nd1dec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn p4nzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8) -> usize; } unsafe extern "C" { pub fn p4nzdec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nzdec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nzdec128v16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nzdec128v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nzdec256v32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nzdec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn p4enc8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc128v16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc128v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc128v64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc256v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4enc256w32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4encx8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4encx16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4encx32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4encx64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc128v16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc128v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc256v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4denc256w32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dencx8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dencx16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dencx32( in_: *mut ::std::os::raw::c_uint, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc128v16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc128v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc256v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1enc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1encx8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1encx16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1encx32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc128v16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc128v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc256v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zenc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4senc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4senc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4senc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4sdec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4sdec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4sdec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4nsenc16(in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nsenc32(in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nsenc64(in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar) -> usize; } unsafe extern "C" { pub fn p4nsdec16(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16) -> usize; } unsafe extern "C" { pub fn p4nsdec32(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32) -> usize; } unsafe extern "C" { pub fn p4nsdec64(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64) -> usize; } unsafe extern "C" { pub fn _p4enc8( in_: *mut u8, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc128v16( in_: *mut u16, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc128v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc128v64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc256v32( in_: *mut u32, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4enc64( in_: *mut u64, n: ::std::os::raw::c_uint, out: *mut ::std::os::raw::c_uchar, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4bits8( in_: *mut u8, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bits16( in_: *mut u16, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bits32( in_: *mut u32, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bits64( in_: *mut u64, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bitsx8( in_: *mut u8, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bitsx16( in_: *mut u16, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bitsx32( in_: *mut u32, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4bitsx64( in_: *mut u64, n: ::std::os::raw::c_uint, pbx: *mut ::std::os::raw::c_uint, ) -> ::std::os::raw::c_uint; } unsafe extern "C" { pub fn _p4dec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec128v64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4dec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec128v64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4dec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4ddec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4ddec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4d1dec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4d1dec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn _p4zdec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, b: ::std::os::raw::c_uint, bx: ::std::os::raw::c_uint, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec8( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u8, start: u8, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec128v16( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u16, start: u16, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec128v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec256v32( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u32, start: u32, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4zdec64( in_: *mut ::std::os::raw::c_uchar, n: ::std::os::raw::c_uint, out: *mut u64, start: u64, ) -> *mut ::std::os::raw::c_uchar; } unsafe extern "C" { pub fn p4nzzenc128v8( in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> usize; } unsafe extern "C" { pub fn p4nzzdec128v8( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8, ) -> usize; } unsafe extern "C" { pub fn p4nzzenc128v16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn p4nzzdec128v16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn p4nzzenc128v32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn p4nzzdec128v32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn p4nzzenc128v64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn p4nzzdec128v64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn bvzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize; } unsafe extern "C" { pub fn bvzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize; } unsafe extern "C" { pub fn bvzenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn bvzdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn bvzenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn bvzdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn bvzenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn bvzdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn bvzzenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize; } unsafe extern "C" { pub fn bvzzdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize; } unsafe extern "C" { pub fn bvzzenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn bvzzdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn bvzzenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn bvzzdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn bvzzenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn bvzzdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpgenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize; } unsafe extern "C" { pub fn fpgdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize; } unsafe extern "C" { pub fn fpgenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpgdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpgenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpgdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpgenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpgdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpxenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize; } unsafe extern "C" { pub fn fpxdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize; } unsafe extern "C" { pub fn fpxenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpxdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpxenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpxdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpxenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpxdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpfcmenc8(in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8) -> usize; } unsafe extern "C" { pub fn fpfcmdec8(in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8) -> usize; } unsafe extern "C" { pub fn fpfcmenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpfcmdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpfcmenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpfcmdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpfcmenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpfcmdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpdfcmenc8( in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> usize; } unsafe extern "C" { pub fn fpdfcmdec8( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8, ) -> usize; } unsafe extern "C" { pub fn fpdfcmenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpdfcmdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn fpdfcmenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpdfcmdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn fpdfcmenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn fpdfcmdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmenc8( in_: *mut u8, n: usize, out: *mut ::std::os::raw::c_uchar, start: u8, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmdec8( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u8, start: u8, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmenc16( in_: *mut u16, n: usize, out: *mut ::std::os::raw::c_uchar, start: u16, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmdec16( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u16, start: u16, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmenc32( in_: *mut u32, n: usize, out: *mut ::std::os::raw::c_uchar, start: u32, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmdec32( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u32, start: u32, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmenc64( in_: *mut u64, n: usize, out: *mut ::std::os::raw::c_uchar, start: u64, ) -> usize; } unsafe extern "C" { pub fn fp2dfcmdec64( in_: *mut ::std::os::raw::c_uchar, n: usize, out: *mut u64, start: u64, ) -> usize; } pub type __s8 = ::std::os::raw::c_schar; pub type __u8 = ::std::os::raw::c_uchar; pub type __s16 = ::std::os::raw::c_short; pub type __u16 = ::std::os::raw::c_ushort; pub type __s32 = ::std::os::raw::c_int; pub type __u32 = ::std::os::raw::c_uint; pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_fd_set { pub fds_bits: [::std::os::raw::c_ulong; 16usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of __kernel_fd_set"][::std::mem::size_of::<__kernel_fd_set>() - 128usize]; ["Alignment of __kernel_fd_set"][::std::mem::align_of::<__kernel_fd_set>() - 8usize]; ["Offset of field: __kernel_fd_set::fds_bits"] [::std::mem::offset_of!(__kernel_fd_set, fds_bits) - 0usize]; }; pub type __kernel_sighandler_t = ::std::option::Option; pub type __kernel_key_t = ::std::os::raw::c_int; pub type __kernel_mqd_t = ::std::os::raw::c_int; pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; pub type __kernel_long_t = ::std::os::raw::c_long; pub type __kernel_ulong_t = ::std::os::raw::c_ulong; pub type __kernel_ino_t = __kernel_ulong_t; pub type __kernel_mode_t = ::std::os::raw::c_uint; pub type __kernel_pid_t = ::std::os::raw::c_int; pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; pub type __kernel_uid_t = ::std::os::raw::c_uint; pub type __kernel_gid_t = ::std::os::raw::c_uint; pub type __kernel_suseconds_t = __kernel_long_t; pub type __kernel_daddr_t = ::std::os::raw::c_int; pub type __kernel_uid32_t = ::std::os::raw::c_uint; pub type __kernel_gid32_t = ::std::os::raw::c_uint; pub type __kernel_old_dev_t = ::std::os::raw::c_uint; pub type __kernel_size_t = __kernel_ulong_t; pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __kernel_fsid_t { pub val: [::std::os::raw::c_int; 2usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of __kernel_fsid_t"][::std::mem::size_of::<__kernel_fsid_t>() - 8usize]; ["Alignment of __kernel_fsid_t"][::std::mem::align_of::<__kernel_fsid_t>() - 4usize]; ["Offset of field: __kernel_fsid_t::val"] [::std::mem::offset_of!(__kernel_fsid_t, val) - 0usize]; }; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = ::std::os::raw::c_longlong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = ::std::os::raw::c_longlong; pub type __kernel_clock_t = __kernel_long_t; pub type __kernel_timer_t = ::std::os::raw::c_int; pub type __kernel_clockid_t = ::std::os::raw::c_int; pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; pub type __kernel_uid16_t = ::std::os::raw::c_ushort; pub type __kernel_gid16_t = ::std::os::raw::c_ushort; pub type __s128 = i128; pub type __u128 = u128; pub type __le16 = __u16; pub type __be16 = __u16; pub type __le32 = __u32; pub type __be32 = __u32; pub type __le64 = __u64; pub type __be64 = __u64; pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_attr_t { pub flags: u32, pub stack_base: *mut ::std::os::raw::c_void, pub stack_size: usize, pub guard_size: usize, pub sched_policy: i32, pub sched_priority: i32, pub __reserved: [::std::os::raw::c_char; 16usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_attr_t"][::std::mem::size_of::() - 56usize]; ["Alignment of pthread_attr_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: pthread_attr_t::flags"] [::std::mem::offset_of!(pthread_attr_t, flags) - 0usize]; ["Offset of field: pthread_attr_t::stack_base"] [::std::mem::offset_of!(pthread_attr_t, stack_base) - 8usize]; ["Offset of field: pthread_attr_t::stack_size"] [::std::mem::offset_of!(pthread_attr_t, stack_size) - 16usize]; ["Offset of field: pthread_attr_t::guard_size"] [::std::mem::offset_of!(pthread_attr_t, guard_size) - 24usize]; ["Offset of field: pthread_attr_t::sched_policy"] [::std::mem::offset_of!(pthread_attr_t, sched_policy) - 32usize]; ["Offset of field: pthread_attr_t::sched_priority"] [::std::mem::offset_of!(pthread_attr_t, sched_priority) - 36usize]; ["Offset of field: pthread_attr_t::__reserved"] [::std::mem::offset_of!(pthread_attr_t, __reserved) - 40usize]; }; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_barrier_t { pub __private: [i64; 4usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_barrier_t"][::std::mem::size_of::() - 32usize]; ["Alignment of pthread_barrier_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: pthread_barrier_t::__private"] [::std::mem::offset_of!(pthread_barrier_t, __private) - 0usize]; }; pub type pthread_barrierattr_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_cond_t { pub __private: [i32; 12usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_cond_t"][::std::mem::size_of::() - 48usize]; ["Alignment of pthread_cond_t"][::std::mem::align_of::() - 4usize]; ["Offset of field: pthread_cond_t::__private"] [::std::mem::offset_of!(pthread_cond_t, __private) - 0usize]; }; pub type pthread_condattr_t = ::std::os::raw::c_long; pub type pthread_key_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_mutex_t { pub __private: [i32; 10usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_mutex_t"][::std::mem::size_of::() - 40usize]; ["Alignment of pthread_mutex_t"][::std::mem::align_of::() - 4usize]; ["Offset of field: pthread_mutex_t::__private"] [::std::mem::offset_of!(pthread_mutex_t, __private) - 0usize]; }; pub type pthread_mutexattr_t = ::std::os::raw::c_long; pub type pthread_once_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_rwlock_t { pub __private: [i32; 14usize], } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_rwlock_t"][::std::mem::size_of::() - 56usize]; ["Alignment of pthread_rwlock_t"][::std::mem::align_of::() - 4usize]; ["Offset of field: pthread_rwlock_t::__private"] [::std::mem::offset_of!(pthread_rwlock_t, __private) - 0usize]; }; pub type pthread_rwlockattr_t = ::std::os::raw::c_long; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct pthread_spinlock_t { pub __private: i64, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of pthread_spinlock_t"][::std::mem::size_of::() - 8usize]; ["Alignment of pthread_spinlock_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: pthread_spinlock_t::__private"] [::std::mem::offset_of!(pthread_spinlock_t, __private) - 0usize]; }; pub type pthread_t = ::std::os::raw::c_long; pub type __gid_t = __kernel_gid32_t; pub type gid_t = __gid_t; pub type __uid_t = __kernel_uid32_t; pub type uid_t = __uid_t; pub type __pid_t = __kernel_pid_t; pub type pid_t = __pid_t; pub type __id_t = u32; pub type id_t = __id_t; pub type blkcnt_t = ::std::os::raw::c_ulong; pub type blksize_t = ::std::os::raw::c_ulong; pub type caddr_t = __kernel_caddr_t; pub type clock_t = __kernel_clock_t; pub type __clockid_t = __kernel_clockid_t; pub type clockid_t = __clockid_t; pub type daddr_t = __kernel_daddr_t; pub type fsblkcnt_t = ::std::os::raw::c_ulong; pub type fsfilcnt_t = ::std::os::raw::c_ulong; pub type __mode_t = __kernel_mode_t; pub type mode_t = __mode_t; pub type __key_t = __kernel_key_t; pub type key_t = __key_t; pub type __ino_t = __kernel_ino_t; pub type ino_t = __ino_t; pub type ino64_t = u64; pub type __nlink_t = u32; pub type nlink_t = __nlink_t; pub type __timer_t = *mut ::std::os::raw::c_void; pub type timer_t = __timer_t; pub type __suseconds_t = __kernel_suseconds_t; pub type suseconds_t = __suseconds_t; pub type __useconds_t = u32; pub type useconds_t = __useconds_t; pub type dev_t = u64; pub type __time_t = __kernel_time_t; pub type time_t = __time_t; pub type off_t = i64; pub type loff_t = off_t; pub type off64_t = loff_t; pub type __socklen_t = u32; pub type socklen_t = __socklen_t; pub type __va_list = __BindgenOpaqueArray; pub type uint_t = ::std::os::raw::c_uint; pub type uint = ::std::os::raw::c_uint; pub type u_char = ::std::os::raw::c_uchar; pub type u_short = ::std::os::raw::c_ushort; pub type u_int = ::std::os::raw::c_uint; pub type u_long = ::std::os::raw::c_ulong; pub type u_int32_t = u32; pub type u_int16_t = u16; pub type u_int8_t = u8; pub type u_int64_t = u64; pub type __gnuc_va_list = __BindgenOpaqueArray; pub type va_list = __BindgenOpaqueArray; pub type fpos_t = off_t; pub type fpos64_t = off64_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __sFILE { _unused: [u8; 0], } pub type FILE = __sFILE; unsafe extern "C" { pub static mut stdin: *mut FILE; } unsafe extern "C" { pub static mut stdout: *mut FILE; } unsafe extern "C" { pub static mut stderr: *mut FILE; } unsafe extern "C" { pub fn clearerr(__fp: *mut FILE); } unsafe extern "C" { pub fn fclose(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn feof(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ferror(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fflush(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fgetc(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fgets( __buf: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_int, __fp: *mut FILE, ) -> *mut ::std::os::raw::c_char; } unsafe extern "C" { pub fn fprintf( __fp: *mut FILE, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fputc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fputs(__s: *const ::std::os::raw::c_char, __fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fread( __buf: *mut ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, __count: ::std::os::raw::c_ulong, __fp: *mut FILE, ) -> ::std::os::raw::c_ulong; } unsafe extern "C" { pub fn fscanf( __fp: *mut FILE, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fwrite( __buf: *const ::std::os::raw::c_void, __size: ::std::os::raw::c_ulong, __count: ::std::os::raw::c_ulong, __fp: *mut FILE, ) -> ::std::os::raw::c_ulong; } unsafe extern "C" { pub fn getc(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn getchar() -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn getdelim( __line_ptr: *mut *mut ::std::os::raw::c_char, __line_length_ptr: *mut usize, __delimiter: ::std::os::raw::c_int, __fp: *mut FILE, ) -> isize; } unsafe extern "C" { pub fn getline( __line_ptr: *mut *mut ::std::os::raw::c_char, __line_length_ptr: *mut usize, __fp: *mut FILE, ) -> isize; } unsafe extern "C" { pub fn perror(__msg: *const ::std::os::raw::c_char); } unsafe extern "C" { pub fn printf(__fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn putc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn putchar(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn remove(__path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn rewind(__fp: *mut FILE); } unsafe extern "C" { pub fn scanf(__fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn setbuf(__fp: *mut FILE, __buf: *mut ::std::os::raw::c_char); } unsafe extern "C" { pub fn setvbuf( __fp: *mut FILE, __buf: *mut ::std::os::raw::c_char, __mode: ::std::os::raw::c_int, __size: usize, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn sscanf( __s: *const ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ungetc(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vfprintf( __fp: *mut FILE, __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vprintf( __fp: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn dprintf( __fd: ::std::os::raw::c_int, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vdprintf( __fd: ::std::os::raw::c_int, __fmt: *const ::std::os::raw::c_char, __args: va_list, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn sprintf( __s: *mut ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vsprintf( __s: *mut ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn tmpnam(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } unsafe extern "C" { pub fn tempnam( __dir: *const ::std::os::raw::c_char, __prefix: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } unsafe extern "C" { pub fn rename( __old_path: *const ::std::os::raw::c_char, __new_path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn renameat( __old_dir_fd: ::std::os::raw::c_int, __old_path: *const ::std::os::raw::c_char, __new_dir_fd: ::std::os::raw::c_int, __new_path: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fseek( __fp: *mut FILE, __offset: ::std::os::raw::c_long, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ftell(__fp: *mut FILE) -> ::std::os::raw::c_long; } unsafe extern "C" { pub fn fgetpos(__fp: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fsetpos(__fp: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fseeko( __fp: *mut FILE, __offset: off_t, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ftello(__fp: *mut FILE) -> off_t; } unsafe extern "C" { pub fn fgetpos64(__fp: *mut FILE, __pos: *mut fpos64_t) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fsetpos64(__fp: *mut FILE, __pos: *const fpos64_t) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fseeko64( __fp: *mut FILE, __offset: off64_t, __whence: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ftello64(__fp: *mut FILE) -> off64_t; } unsafe extern "C" { pub fn fopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } unsafe extern "C" { pub fn fopen64( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } unsafe extern "C" { pub fn freopen( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, __fp: *mut FILE, ) -> *mut FILE; } unsafe extern "C" { pub fn freopen64( __path: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, __fp: *mut FILE, ) -> *mut FILE; } unsafe extern "C" { pub fn tmpfile() -> *mut FILE; } unsafe extern "C" { pub fn tmpfile64() -> *mut FILE; } unsafe extern "C" { pub fn snprintf( __buf: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vfscanf( __fp: *mut FILE, __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vscanf( __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vsnprintf( __buf: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_ulong, __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vsscanf( __s: *const ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, __args: __BindgenOpaqueArray, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ctermid(__buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } unsafe extern "C" { pub fn fdopen(__fd: ::std::os::raw::c_int, __mode: *const ::std::os::raw::c_char) -> *mut FILE; } unsafe extern "C" { pub fn fileno(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn pclose(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn popen( __command: *const ::std::os::raw::c_char, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } unsafe extern "C" { pub fn flockfile(__fp: *mut FILE); } unsafe extern "C" { pub fn ftrylockfile(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn funlockfile(__fp: *mut FILE); } unsafe extern "C" { pub fn getc_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn getchar_unlocked() -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn putc_unlocked(__ch: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn putchar_unlocked(__ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fmemopen( __buf: *mut ::std::os::raw::c_void, __size: usize, __mode: *const ::std::os::raw::c_char, ) -> *mut FILE; } unsafe extern "C" { pub fn open_memstream( __ptr: *mut *mut ::std::os::raw::c_char, __size_ptr: *mut usize, ) -> *mut FILE; } unsafe extern "C" { pub fn asprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, ... ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fgetln(__fp: *mut FILE, __length_ptr: *mut usize) -> *mut ::std::os::raw::c_char; } unsafe extern "C" { pub fn fpurge(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn setbuffer( __fp: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: ::std::os::raw::c_int, ); } unsafe extern "C" { pub fn setlinebuf(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn vasprintf( __s_ptr: *mut *mut ::std::os::raw::c_char, __fmt: *const ::std::os::raw::c_char, __args: va_list, ) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn clearerr_unlocked(__fp: *mut FILE); } unsafe extern "C" { pub fn feof_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn ferror_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn fileno_unlocked(__fp: *mut FILE) -> ::std::os::raw::c_int; } unsafe extern "C" { pub fn delta2d_decode8(length0: usize, length1: usize, chunkBuffer: *mut i8); } unsafe extern "C" { pub fn delta2d_encode8(length0: usize, length1: usize, chunkBuffer: *mut i8); } unsafe extern "C" { pub fn delta2d_decode16(length0: usize, length1: usize, chunkBuffer: *mut i16); } unsafe extern "C" { pub fn delta2d_encode16(length0: usize, length1: usize, chunkBuffer: *mut i16); } unsafe extern "C" { pub fn delta2d_decode32(length0: usize, length1: usize, chunkBuffer: *mut i32); } unsafe extern "C" { pub fn delta2d_encode32(length0: usize, length1: usize, chunkBuffer: *mut i32); } unsafe extern "C" { pub fn delta2d_decode64(length0: usize, length1: usize, chunkBuffer: *mut i64); } unsafe extern "C" { pub fn delta2d_encode64(length0: usize, length1: usize, chunkBuffer: *mut i64); } unsafe extern "C" { pub fn delta2d_encode_xor(length0: usize, length1: usize, chunkBuffer: *mut f32); } unsafe extern "C" { pub fn delta2d_decode_xor(length0: usize, length1: usize, chunkBuffer: *mut f32); } unsafe extern "C" { pub fn delta2d_encode_xor_double(length0: usize, length1: usize, chunkBuffer: *mut f64); } unsafe extern "C" { pub fn delta2d_decode_xor_double(length0: usize, length1: usize, chunkBuffer: *mut f64); } #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum OmError_t { ERROR_OK = 0, ERROR_INVALID_COMPRESSION_TYPE = 1, ERROR_INVALID_DATA_TYPE = 2, ERROR_OUT_OF_BOUND_READ = 3, ERROR_NOT_AN_OM_FILE = 4, ERROR_DEFLATED_SIZE_MISMATCH = 5, ERROR_INVALID_DIMENSIONS = 6, ERROR_INVALID_CHUNK_DIMENSIONS = 7, ERROR_INVALID_READ_OFFSET = 8, ERROR_INVALID_READ_COUNT = 9, ERROR_INVALID_CUBE_OFFSET = 10, } unsafe extern "C" { pub fn om_error_string(error: OmError_t) -> *const ::std::os::raw::c_char; } #[repr(u32)] #[doc = " Data types"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum OmDataType_t { DATA_TYPE_NONE = 0, DATA_TYPE_INT8 = 1, DATA_TYPE_UINT8 = 2, DATA_TYPE_INT16 = 3, DATA_TYPE_UINT16 = 4, DATA_TYPE_INT32 = 5, DATA_TYPE_UINT32 = 6, DATA_TYPE_INT64 = 7, DATA_TYPE_UINT64 = 8, DATA_TYPE_FLOAT = 9, DATA_TYPE_DOUBLE = 10, DATA_TYPE_STRING = 11, DATA_TYPE_INT8_ARRAY = 12, DATA_TYPE_UINT8_ARRAY = 13, DATA_TYPE_INT16_ARRAY = 14, DATA_TYPE_UINT16_ARRAY = 15, DATA_TYPE_INT32_ARRAY = 16, DATA_TYPE_UINT32_ARRAY = 17, DATA_TYPE_INT64_ARRAY = 18, DATA_TYPE_UINT64_ARRAY = 19, DATA_TYPE_FLOAT_ARRAY = 20, DATA_TYPE_DOUBLE_ARRAY = 21, DATA_TYPE_STRING_ARRAY = 22, } #[repr(u32)] #[doc = " Compression types"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum OmCompression_t { COMPRESSION_PFOR_DELTA2D_INT16 = 0, COMPRESSION_FPX_XOR2D = 1, COMPRESSION_PFOR_DELTA2D = 2, COMPRESSION_PFOR_DELTA2D_INT16_LOGARITHMIC = 3, COMPRESSION_NONE = 4, } unsafe extern "C" { #[doc = " Get the number of bytes per element.\n This function will set an error if called for an invalid data type.\n It only supports array types."] pub fn om_get_bytes_per_element(data_type: OmDataType_t, error: *mut OmError_t) -> u8; } unsafe extern "C" { #[doc = " Get the number of bytes per element after compression.\n This function will set an error if called for an invalid data type.\n It only supports array types."] pub fn om_get_bytes_per_element_compressed( data_type: OmDataType_t, compression: OmCompression_t, error: *mut OmError_t, ) -> u8; } unsafe extern "C" { #[doc = " Copy 16 bit integer array and convert to float"] pub fn om_common_copy_float_to_int16( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy_float_to_int32( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy_double_to_int64( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { #[doc = " Copy 16 bit integer array and convert to float and scale log10"] pub fn om_common_copy_float_to_int16_log10( length: u64, scale_factor: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { #[doc = " Convert int16 and scale to float"] pub fn om_common_copy_int16_to_float( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy_int32_to_float( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy_int64_to_double( length: u64, scale_factor: f32, add_offset: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { #[doc = " Convert int16 and scale to float with log10"] pub fn om_common_copy_int16_to_float_log10( length: u64, scale_factor: f32, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy8( length: u64, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy16( length: u64, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy32( length: u64, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_copy64( length: u64, src: *const ::std::os::raw::c_void, dst: *mut ::std::os::raw::c_void, ); } unsafe extern "C" { pub fn om_common_compress_fpxenc32( src: *const ::std::os::raw::c_void, length: u64, dst: *mut ::std::os::raw::c_void, ) -> u64; } unsafe extern "C" { pub fn om_common_compress_fpxenc64( src: *const ::std::os::raw::c_void, length: u64, dst: *mut ::std::os::raw::c_void, ) -> u64; } unsafe extern "C" { pub fn om_common_decompress_fpxdec32( src: *const ::std::os::raw::c_void, length: u64, dst: *mut ::std::os::raw::c_void, ) -> u64; } unsafe extern "C" { pub fn om_common_decompress_fpxdec64( src: *const ::std::os::raw::c_void, length: u64, dst: *mut ::std::os::raw::c_void, ) -> u64; } #[repr(u32)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum OmHeaderType_t { OM_HEADER_INVALID = 0, OM_HEADER_LEGACY = 1, OM_HEADER_READ_TRAILER = 2, } #[doc = " Legacy files only contain one 2D array with attributes in the header\n File content: Header, look-up-table, compressed data"] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmHeaderV1_t { pub magic_number1: u8, pub magic_number2: u8, pub version: u8, pub compression_type: u8, pub scale_factor: f32, pub dim0: u64, pub dim1: u64, pub chunk0: u64, pub chunk1: u64, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmHeaderV1_t"][::std::mem::size_of::() - 40usize]; ["Alignment of OmHeaderV1_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmHeaderV1_t::magic_number1"] [::std::mem::offset_of!(OmHeaderV1_t, magic_number1) - 0usize]; ["Offset of field: OmHeaderV1_t::magic_number2"] [::std::mem::offset_of!(OmHeaderV1_t, magic_number2) - 1usize]; ["Offset of field: OmHeaderV1_t::version"] [::std::mem::offset_of!(OmHeaderV1_t, version) - 2usize]; ["Offset of field: OmHeaderV1_t::compression_type"] [::std::mem::offset_of!(OmHeaderV1_t, compression_type) - 3usize]; ["Offset of field: OmHeaderV1_t::scale_factor"] [::std::mem::offset_of!(OmHeaderV1_t, scale_factor) - 4usize]; ["Offset of field: OmHeaderV1_t::dim0"][::std::mem::offset_of!(OmHeaderV1_t, dim0) - 8usize]; ["Offset of field: OmHeaderV1_t::dim1"][::std::mem::offset_of!(OmHeaderV1_t, dim1) - 16usize]; ["Offset of field: OmHeaderV1_t::chunk0"] [::std::mem::offset_of!(OmHeaderV1_t, chunk0) - 24usize]; ["Offset of field: OmHeaderV1_t::chunk1"] [::std::mem::offset_of!(OmHeaderV1_t, chunk1) - 32usize]; }; #[doc = " Newer version only contain magic number \"OM\" and the version 3"] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmHeaderV3_t { pub magic_number1: u8, pub magic_number2: u8, pub version: u8, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmHeaderV3_t"][::std::mem::size_of::() - 3usize]; ["Alignment of OmHeaderV3_t"][::std::mem::align_of::() - 1usize]; ["Offset of field: OmHeaderV3_t::magic_number1"] [::std::mem::offset_of!(OmHeaderV3_t, magic_number1) - 0usize]; ["Offset of field: OmHeaderV3_t::magic_number2"] [::std::mem::offset_of!(OmHeaderV3_t, magic_number2) - 1usize]; ["Offset of field: OmHeaderV3_t::version"] [::std::mem::offset_of!(OmHeaderV3_t, version) - 2usize]; }; #[doc = " Trailer only present in version 3 files"] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmTrailer_t { pub magic_number1: u8, pub magic_number2: u8, pub version: u8, pub reserved: u8, pub reserved2: u32, pub root_offset: u64, pub root_size: u64, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmTrailer_t"][::std::mem::size_of::() - 24usize]; ["Alignment of OmTrailer_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmTrailer_t::magic_number1"] [::std::mem::offset_of!(OmTrailer_t, magic_number1) - 0usize]; ["Offset of field: OmTrailer_t::magic_number2"] [::std::mem::offset_of!(OmTrailer_t, magic_number2) - 1usize]; ["Offset of field: OmTrailer_t::version"] [::std::mem::offset_of!(OmTrailer_t, version) - 2usize]; ["Offset of field: OmTrailer_t::reserved"] [::std::mem::offset_of!(OmTrailer_t, reserved) - 3usize]; ["Offset of field: OmTrailer_t::reserved2"] [::std::mem::offset_of!(OmTrailer_t, reserved2) - 4usize]; ["Offset of field: OmTrailer_t::root_offset"] [::std::mem::offset_of!(OmTrailer_t, root_offset) - 8usize]; ["Offset of field: OmTrailer_t::root_size"] [::std::mem::offset_of!(OmTrailer_t, root_size) - 16usize]; }; unsafe extern "C" { #[doc = " Return the size in byte of the header that should be read. Always 40 byte to support legacy 2D files."] pub fn om_header_size() -> usize; } unsafe extern "C" { #[doc = " Size in bytes of the trailer that contains the root variable offset in newer files"] pub fn om_trailer_size() -> usize; } unsafe extern "C" { #[doc = " The size of a OM header for newer files. Always 3 bytes."] pub fn om_header_write_size() -> usize; } unsafe extern "C" { #[doc = " Check if the header is a OM file header and return if its a legacy version or a new version file"] pub fn om_header_type(src: *const ::std::os::raw::c_void) -> OmHeaderType_t; } unsafe extern "C" { #[doc = " Read the trailer of an OM file to get the root variable. Size is set to 0 if this is not an OM file."] pub fn om_trailer_read( src: *const ::std::os::raw::c_void, offset: *mut u64, size: *mut u64, ) -> bool; } unsafe extern "C" { #[doc = " Write an header for newer OM files"] pub fn om_header_write(dest: *mut ::std::os::raw::c_void); } unsafe extern "C" { #[doc = " Write an trailer for newer OM files including the root variable"] pub fn om_trailer_write(dest: *mut ::std::os::raw::c_void, offset: u64, size: u64); } #[doc = " =========== Structures describing the data layout ==============="] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmVariableV3_t { pub data_type: u8, pub compression_type: u8, pub name_size: u16, pub children_count: u32, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmVariableV3_t"][::std::mem::size_of::() - 8usize]; ["Alignment of OmVariableV3_t"][::std::mem::align_of::() - 4usize]; ["Offset of field: OmVariableV3_t::data_type"] [::std::mem::offset_of!(OmVariableV3_t, data_type) - 0usize]; ["Offset of field: OmVariableV3_t::compression_type"] [::std::mem::offset_of!(OmVariableV3_t, compression_type) - 1usize]; ["Offset of field: OmVariableV3_t::name_size"] [::std::mem::offset_of!(OmVariableV3_t, name_size) - 2usize]; ["Offset of field: OmVariableV3_t::children_count"] [::std::mem::offset_of!(OmVariableV3_t, children_count) - 4usize]; }; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmVariableArrayV3_t { pub data_type: u8, pub compression_type: u8, pub name_size: u16, pub children_count: u32, pub lut_size: u64, pub lut_offset: u64, pub dimension_count: u64, pub scale_factor: f32, pub add_offset: f32, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmVariableArrayV3_t"][::std::mem::size_of::() - 40usize]; ["Alignment of OmVariableArrayV3_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmVariableArrayV3_t::data_type"] [::std::mem::offset_of!(OmVariableArrayV3_t, data_type) - 0usize]; ["Offset of field: OmVariableArrayV3_t::compression_type"] [::std::mem::offset_of!(OmVariableArrayV3_t, compression_type) - 1usize]; ["Offset of field: OmVariableArrayV3_t::name_size"] [::std::mem::offset_of!(OmVariableArrayV3_t, name_size) - 2usize]; ["Offset of field: OmVariableArrayV3_t::children_count"] [::std::mem::offset_of!(OmVariableArrayV3_t, children_count) - 4usize]; ["Offset of field: OmVariableArrayV3_t::lut_size"] [::std::mem::offset_of!(OmVariableArrayV3_t, lut_size) - 8usize]; ["Offset of field: OmVariableArrayV3_t::lut_offset"] [::std::mem::offset_of!(OmVariableArrayV3_t, lut_offset) - 16usize]; ["Offset of field: OmVariableArrayV3_t::dimension_count"] [::std::mem::offset_of!(OmVariableArrayV3_t, dimension_count) - 24usize]; ["Offset of field: OmVariableArrayV3_t::scale_factor"] [::std::mem::offset_of!(OmVariableArrayV3_t, scale_factor) - 32usize]; ["Offset of field: OmVariableArrayV3_t::add_offset"] [::std::mem::offset_of!(OmVariableArrayV3_t, add_offset) - 36usize]; }; #[doc = " only expose an opaque pointer"] pub type OmVariable_t = *mut ::std::os::raw::c_void; unsafe extern "C" { #[doc = " After reading data for the variable, initialize it. This is literally a simple cast to an opaque pointer. Source memory must remain accessible!"] pub fn om_variable_init(src: *const ::std::os::raw::c_void) -> *const OmVariable_t; } unsafe extern "C" { #[doc = " Get the name of of a given variable. No guarantee for zero termination! The length in bytes of the string is placed into `length`."] pub fn om_variable_get_name( variable: *const OmVariable_t, length: *mut u16, ) -> *const ::std::os::raw::c_char; } unsafe extern "C" { #[doc = " Get the type of the current variable"] pub fn om_variable_get_type(variable: *const OmVariable_t) -> OmDataType_t; } unsafe extern "C" { #[doc = " Get the compression type of the current variable"] pub fn om_variable_get_compression(variable: *const OmVariable_t) -> OmCompression_t; } unsafe extern "C" { pub fn om_variable_get_scale_factor(variable: *const OmVariable_t) -> f32; } unsafe extern "C" { pub fn om_variable_get_add_offset(variable: *const OmVariable_t) -> f32; } unsafe extern "C" { #[doc = " Get number of dimensions"] pub fn om_variable_get_dimensions_count(variable: *const OmVariable_t) -> u64; } unsafe extern "C" { #[doc = " Get a pointer to the dimensions of a OM variable"] pub fn om_variable_get_dimensions(variable: *const OmVariable_t) -> *const u64; } unsafe extern "C" { #[doc = " Get a pointer to the chunk dimensions of an OM Variable"] pub fn om_variable_get_chunks(variable: *const OmVariable_t) -> *const u64; } unsafe extern "C" { #[doc = " Return how many children are available for a given variable"] pub fn om_variable_get_children_count(variable: *const OmVariable_t) -> u32; } unsafe extern "C" { #[doc = " Get the file offset where a specified child or children can be read"] pub fn om_variable_get_children( variable: *const OmVariable_t, children_offset: u32, children_count: u32, children_offsets: *mut u64, children_sizes: *mut u64, ) -> bool; } unsafe extern "C" { #[doc = " Read a variable as a scalar. Returns the size and value into the value and size field. `value` needs to be a pointer that then points to the value"] pub fn om_variable_get_scalar( variable: *const OmVariable_t, value: *mut *mut ::std::os::raw::c_void, size: *mut u64, ) -> OmError_t; } unsafe extern "C" { #[doc = " Validate that the variable metadata is consistent with the buffer size.\n This checks that dimension arrays, chunk arrays, children arrays, and name\n all fit within the given buffer. Returns ERROR_OK if valid."] pub fn om_variable_validate(src: *const ::std::os::raw::c_void, buffer_size: u64) -> OmError_t; } unsafe extern "C" { #[doc = " Get the length of a scalar variable if written to a file.\n If the scalar is a string, we need to know the length of the string."] pub fn om_variable_write_scalar_size( name_size: u16, children_count: u32, data_type: OmDataType_t, string_size: u64, ) -> usize; } unsafe extern "C" { #[doc = " Write a scalar variable with name and children variables to a destination buffer\n\n This function supports the following data types:\n - DATA_TYPE_NONE: No value storage (passing a NULL pointer to value is allowed)\n - DATA_TYPE_INT8/UINT8: 8-bit integer value\n - DATA_TYPE_INT16/UINT16: 16-bit integer value\n - DATA_TYPE_INT32/UINT32: 32-bit integer value\n - DATA_TYPE_INT64/UINT64: 64-bit integer value\n - DATA_TYPE_FLOAT: 32-bit floating point value\n - DATA_TYPE_DOUBLE: 64-bit floating point value\n\n @param dst Destination buffer to write the variable to\n @param name_size Length of the variable name in bytes\n @param children_count Number of child variables\n @param children_offsets Array of offsets to child variables (can be NULL if children_count is 0)\n @param children_sizes Array of sizes of child variables (can be NULL if children_count is 0)\n @param name Pointer to the variable name string\n @param data_type Type of the data to be stored (see OmDataType_t)\n @param value Pointer to the value to be stored. For DATA_TYPE_NONE, this should be NULL.\n For other types, this should point to a value of the corresponding C type.\n\n @note The destination buffer must be large enough to hold the variable.\n Use om_variable_write_scalar_size() to calculate the required size."] pub fn om_variable_write_scalar( dst: *mut ::std::os::raw::c_void, name_size: u16, children_count: u32, children_offsets: *const u64, children_sizes: *const u64, name: *const ::std::os::raw::c_char, data_type: OmDataType_t, value: *const ::std::os::raw::c_void, string_size: usize, ); } unsafe extern "C" { #[doc = " Get the size of meta attributes of a numeric array if written to a file. Does not contain any data. Only offsets for the actual data."] pub fn om_variable_write_numeric_array_size( name_size: u16, children_count: u32, dimension_count: u64, ) -> usize; } unsafe extern "C" { #[doc = " Write meta data for a numeric array to file"] pub fn om_variable_write_numeric_array( dst: *mut ::std::os::raw::c_void, name_size: u16, children_count: u32, children_offsets: *const u64, children_sizes: *const u64, name: *const ::std::os::raw::c_char, data_type: OmDataType_t, compression_type: OmCompression_t, scale_factor: f32, add_offset: f32, dimension_count: u64, dimensions: *const u64, chunks: *const u64, lut_size: u64, lut_offset: u64, ); } #[repr(u32)] #[doc = " Memory layout types"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum OmMemoryLayout_t { OM_MEMORY_LAYOUT_LEGACY = 0, OM_MEMORY_LAYOUT_ARRAY = 1, OM_MEMORY_LAYOUT_SCALAR = 3, } unsafe extern "C" { #[doc = " Check if a variable is legacy or version 3 array of scalar. Legacy files are the entire header containing magic number and version."] pub fn _om_variable_memory_layout(variable: *const OmVariable_t) -> OmMemoryLayout_t; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmRange_t { pub lowerBound: u64, pub upperBound: u64, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmRange_t"][::std::mem::size_of::() - 16usize]; ["Alignment of OmRange_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmRange_t::lowerBound"] [::std::mem::offset_of!(OmRange_t, lowerBound) - 0usize]; ["Offset of field: OmRange_t::upperBound"] [::std::mem::offset_of!(OmRange_t, upperBound) - 8usize]; }; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmDecoder_indexRead_t { pub offset: u64, pub count: u64, pub indexRange: OmRange_t, pub chunkIndex: OmRange_t, pub nextChunk: OmRange_t, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmDecoder_indexRead_t"][::std::mem::size_of::() - 64usize]; ["Alignment of OmDecoder_indexRead_t"] [::std::mem::align_of::() - 8usize]; ["Offset of field: OmDecoder_indexRead_t::offset"] [::std::mem::offset_of!(OmDecoder_indexRead_t, offset) - 0usize]; ["Offset of field: OmDecoder_indexRead_t::count"] [::std::mem::offset_of!(OmDecoder_indexRead_t, count) - 8usize]; ["Offset of field: OmDecoder_indexRead_t::indexRange"] [::std::mem::offset_of!(OmDecoder_indexRead_t, indexRange) - 16usize]; ["Offset of field: OmDecoder_indexRead_t::chunkIndex"] [::std::mem::offset_of!(OmDecoder_indexRead_t, chunkIndex) - 32usize]; ["Offset of field: OmDecoder_indexRead_t::nextChunk"] [::std::mem::offset_of!(OmDecoder_indexRead_t, nextChunk) - 48usize]; }; pub type OmDecoder_dataRead_t = OmDecoder_indexRead_t; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmDecoder_t { #[doc = " Number of dimensions"] pub dimensions_count: u64, #[doc = " Combine smaller IO reads to a single larger read. If consecutive reads are smaller than `io_size_merge` they might be merged. Default should be 512 bytes."] pub io_size_merge: u64, #[doc = " The maximum IO size before IO operations are split up. Default 64k. If data is in memory, this can be set higher."] pub io_size_max: u64, #[doc = " Each 64 LUT entries are compressed into a LUT chunk. The LUT chunk length returns the size in byte how large a maximum compressed size for a LUT chunk is. 0 for version 1/2 files that do not compress LUT."] pub lut_chunk_length: u64, #[doc = " The offset position where the LUT should start"] pub lut_start: u64, #[doc = " uint64_t of data chunks in this file. This value is computed in the initialisation."] pub number_of_chunks: u64, #[doc = " The dimensions of the data array. The last dimension is the \"fast\" dimension meaning the elements are sequential in memory"] pub dimensions: *const u64, #[doc = " The chunk lengths for each dimension"] pub chunks: *const u64, #[doc = " The read offset to start reading data in each dimension"] pub read_offset: *const u64, #[doc = " How many elements in each dimension to read"] pub read_count: *const u64, #[doc = " The dimensions of the target array. This can be the same as `read_count`, but it is also possible to read into a larger array"] pub cube_dimensions: *const u64, #[doc = " The offset for each dimension if data is read into a larger array."] pub cube_offset: *const u64, #[doc = " A scalefactor to convert floats to integers"] pub scale_factor: f32, #[doc = " An offset to convert floats to integers while scaling"] pub add_offset: f32, #[doc = " The data type of the data"] pub data_type: u8, #[doc = " The compression type of the data"] pub compression: u8, #[doc = " The size of the elements in bytes"] pub bytes_per_element: u8, #[doc = " The size of the elements in bytes after compression, e.g. Int16 could be used to scale floats"] pub bytes_per_element_compressed: u8, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmDecoder_t"][::std::mem::size_of::() - 112usize]; ["Alignment of OmDecoder_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmDecoder_t::dimensions_count"] [::std::mem::offset_of!(OmDecoder_t, dimensions_count) - 0usize]; ["Offset of field: OmDecoder_t::io_size_merge"] [::std::mem::offset_of!(OmDecoder_t, io_size_merge) - 8usize]; ["Offset of field: OmDecoder_t::io_size_max"] [::std::mem::offset_of!(OmDecoder_t, io_size_max) - 16usize]; ["Offset of field: OmDecoder_t::lut_chunk_length"] [::std::mem::offset_of!(OmDecoder_t, lut_chunk_length) - 24usize]; ["Offset of field: OmDecoder_t::lut_start"] [::std::mem::offset_of!(OmDecoder_t, lut_start) - 32usize]; ["Offset of field: OmDecoder_t::number_of_chunks"] [::std::mem::offset_of!(OmDecoder_t, number_of_chunks) - 40usize]; ["Offset of field: OmDecoder_t::dimensions"] [::std::mem::offset_of!(OmDecoder_t, dimensions) - 48usize]; ["Offset of field: OmDecoder_t::chunks"][::std::mem::offset_of!(OmDecoder_t, chunks) - 56usize]; ["Offset of field: OmDecoder_t::read_offset"] [::std::mem::offset_of!(OmDecoder_t, read_offset) - 64usize]; ["Offset of field: OmDecoder_t::read_count"] [::std::mem::offset_of!(OmDecoder_t, read_count) - 72usize]; ["Offset of field: OmDecoder_t::cube_dimensions"] [::std::mem::offset_of!(OmDecoder_t, cube_dimensions) - 80usize]; ["Offset of field: OmDecoder_t::cube_offset"] [::std::mem::offset_of!(OmDecoder_t, cube_offset) - 88usize]; ["Offset of field: OmDecoder_t::scale_factor"] [::std::mem::offset_of!(OmDecoder_t, scale_factor) - 96usize]; ["Offset of field: OmDecoder_t::add_offset"] [::std::mem::offset_of!(OmDecoder_t, add_offset) - 100usize]; ["Offset of field: OmDecoder_t::data_type"] [::std::mem::offset_of!(OmDecoder_t, data_type) - 104usize]; ["Offset of field: OmDecoder_t::compression"] [::std::mem::offset_of!(OmDecoder_t, compression) - 105usize]; ["Offset of field: OmDecoder_t::bytes_per_element"] [::std::mem::offset_of!(OmDecoder_t, bytes_per_element) - 106usize]; ["Offset of field: OmDecoder_t::bytes_per_element_compressed"] [::std::mem::offset_of!(OmDecoder_t, bytes_per_element_compressed) - 107usize]; }; unsafe extern "C" { #[doc = " @brief Initializes the `om_decoder_t` structure with the specified parameters.\n\n This function sets up the `om_decoder_t` instance, configuring its dimensions, chunk information,\n reading parameters, LUT (Look-Up Table) properties, and decompression methods. It prepares the\n decoder for reading and processing compressed data.\n\n @param decoder A pointer to an `om_decoder_t` structure that will be initialized.\n @param variable A pointer to the data region of the variable to read\n @param dimension_count The number of dimensions of the data (e.g., 3 for 3D data). All following array must have the some dimension count.\n @param read_offset A pointer to an array specifying the offsets for reading data in each dimension. This array sets the starting points for data reads.\n @param read_count A pointer to an array specifying the number of elements to read along each dimension. It defines how much data to read starting from `read_offset`.\n @param cube_offset A pointer to an array specifying the offset of the target cube in each dimension. This is used when reading data into a larger array.\n @param cube_dimensions A pointer to an array specifying the dimensions of the target cube being written to.It can be the same as `read_count` but allows writing into larger arrays..\n @param io_size_merge The maximum size (in bytes) for merging consecutive IO operations. It helps to optimize read performance by merging small reads.\n @param io_size_max The maximum size (in bytes) for a single IO operation before it is split. It defines the threshold for splitting large reads.\n\n @returns Return an om_error_t if the compression or dimension is invalid"] pub fn om_decoder_init( decoder: *mut OmDecoder_t, variable: *const OmVariable_t, dimension_count: u64, read_offset: *const u64, read_count: *const u64, cube_offset: *const u64, cube_dimensions: *const u64, io_size_merge: u64, io_size_max: u64, ) -> OmError_t; } unsafe extern "C" { #[doc = " @brief Initializes an `om_decoder_index_read_t` structure for reading chunk indices.\n\n This function calculates the starting and ending chunk indices for reading data based on\n the dimensions, chunk sizes, and read parameters provided by the `om_decoder_t` structure.\n It determines the range of chunks that need to be processed to fulfill the read request,\n setting the appropriate values in the `om_decoder_index_read_t` structure.\n\n @param decoder A pointer to a constant `om_decoder_t` structure containing information\n about the data array, chunk sizes, read offsets, and dimensions.\n @param index_read A pointer to an `om_decoder_index_read_t` structure that will be\n initialized with the computed chunk index range and other related values."] pub fn om_decoder_init_index_read( decoder: *const OmDecoder_t, indexRead: *mut OmDecoder_indexRead_t, ); } unsafe extern "C" { #[doc = " @brief Determines the next range of chunks to be read and updates the `om_decoder_index_read_t` structure.\n\n This function calculates the next set of chunk indices that need to be read from the data, based on the\n limits set by the maximum I/O size, alignment, and the logical structure of the data. It updates the\n `om_decoder_index_read_t` structure to reflect the new range of chunks and the corresponding read parameters.\n\n @param decoder A pointer to a constant `om_decoder_t` structure containing information about the data array,\n chunk sizes, I/O constraints, and other relevant parameters.\n @param index_read A pointer to an `om_decoder_index_read_t` structure, which will be updated with the next\n range of chunks to read and the corresponding offset and size of the read operation.\n\n @returns `true` if the next read range was successfully computed and updated in `index_read`.\n `false` if there are no more chunks left to read, indicating that the end of the read range has been reached.\n"] pub fn om_decoder_next_index_read( decoder: *const OmDecoder_t, index_read: *mut OmDecoder_indexRead_t, ) -> bool; } unsafe extern "C" { #[doc = " @brief Initializes an `om_decoder_data_read_t` structure for data reading.\n\n This function sets the initial state of the `om_decoder_data_read_t` structure,\n preparing it for subsequent data read operations. It initializes the offset,\n count, index range, and chunk indices based on the provided index read structure.\n\n @param[out] data_read A pointer to the `om_decoder_data_read_t` structure that\n will be initialized. This structure maintains the state\n for reading data chunks.\n @param[in] index_read A pointer to the `om_decoder_index_read_t` structure that\n contains information about the index range and the initial\n chunk index to be used for reading."] pub fn om_decoder_init_data_read( data_read: *mut OmDecoder_dataRead_t, index_read: *const OmDecoder_indexRead_t, ); } unsafe extern "C" { #[doc = " @brief Prepares the next data read operation for a given chunk of compressed data.\n\n This function advances the data reading process by calculating the start and end positions\n of the next data segment to read based on the provided index data and current state\n of the `om_decoder_data_read_t` structure. It determines how much data to read from\n the compressed data source and where the decompressed data should be written.\n\n The function supports two formats:\n 1. Version 1 format (non-compressed LUTs, where `lut_chunk_element_count` is 1).\n 2. Compressed LUT format (Version 3+).\n\n The function reads from a specified index data and updates the `data_read` structure\n with the offset and size of the next data block to be read.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which contains\n information about the file format, compression settings,\n and LUT (look-up table) characteristics.\n @param[out] data_read A pointer to `om_decoder_data_read_t` structure that holds\n the state of the current data read operation. This structure\n is updated to reflect the next segment of data to read.\n @param[in] index_data A pointer to the index data, which provides the compressed\n offset information for each chunk in the LUT.\n @param[in] index_data_size The size of the `index_data` buffer in bytes.\n\n @returns `true` if the next data segment was successfully prepared and ready for reading,\n `false` if there are no more data segments to read or if the range is exhausted.\n\n @returns May return an out-of-bounds read error on corrupted data."] pub fn om_decoder_next_data_read( decoder: *const OmDecoder_t, dataRead: *mut OmDecoder_dataRead_t, indexData: *const ::std::os::raw::c_void, indexDataCount: u64, error: *mut OmError_t, ) -> bool; } unsafe extern "C" { #[doc = " @brief Calculates the size of the buffer required to read a single data chunk.\n\n This function determines the size, in bytes, of the buffer needed to read a single\n chunk of data from the compressed file, based on the chunk dimensions and the\n number of bytes per element after decompression.\n\n The calculation involves multiplying the chunk lengths across all dimensions by\n the number of bytes required to store a single element in the decompressed form.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which holds the\n decoder configuration, including chunk sizes for each dimension,\n and the number of bytes per element.\n\n @returns The size of the buffer required to read a single chunk, in bytes.\n\n @note This buffer size is used to allocate memory when reading data chunks during\n the decoding process, ensuring that there is sufficient space to store the\n decompressed data of a chunk."] pub fn om_decoder_read_buffer_size(decoder: *const OmDecoder_t) -> u64; } unsafe extern "C" { #[doc = " @brief Decodes multiple data chunks from compressed input into a target buffer.\n\n This function iteratively decodes a range of chunks from the compressed input data\n using the specified decoder configuration. It processes each chunk within the provided\n range, decompressing it into a buffer and copying the decompressed data into the\n output buffer. The decoding uses an internal function `_om_decoder_decode_chunk`\n for each individual chunk.\n\n @param[in] decoder A pointer to the `om_decoder_t` structure, which defines\n the decoder configuration, including dimensions, chunk sizes,\n data type and compression type.\n @param[in] chunk An `om_range_t` structure specifying the range of chunks\n to decode. The range is defined by `chunk.lowerBound`\n (inclusive) and `chunk.upperBound` (exclusive).\n @param[in] data A pointer to the compressed data buffer from which the chunks\n are read and decoded.\n @param[in] data_size The size of the `data` buffer, in bytes. This ensures that\n the function does not read beyond the provided data size.\n @param[out] into A pointer to the output buffer where the decompressed data\n will be written. The buffer should have enough space to store\n the decompressed output.\n @param[out] chunkBuffer A temporary buffer used for storing intermediate decompressed\n chunk data before copying it into the final output buffer.\n Must be sized according to `om_decoder_read_buffer_size`\n @param[out] error May return an out-of-bounds read error on corrupted data.\n\n @returns `false` if an error occurred."] pub fn om_decoder_decode_chunks( decoder: *const OmDecoder_t, chunkIndex: OmRange_t, data: *const ::std::os::raw::c_void, dataCount: u64, into: *mut ::std::os::raw::c_void, chunkBuffer: *mut ::std::os::raw::c_void, error: *mut OmError_t, ) -> bool; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct OmEncoder_t { pub dimensions: *const u64, pub chunks: *const u64, pub dimension_count: u64, pub scale_factor: f32, #[doc = " An offset to convert floats to integers while scaling"] pub add_offset: f32, #[doc = " The data type of the data"] pub data_type: u8, #[doc = " The compression type of the data"] pub compression: u8, #[doc = " The size of the elements in bytes"] pub bytes_per_element: u8, #[doc = " The size of the elements in bytes after compression, e.g. Int16 could be used to scale floats"] pub bytes_per_element_compressed: u8, } #[allow(clippy::unnecessary_operation, clippy::identity_op)] const _: () = { ["Size of OmEncoder_t"][::std::mem::size_of::() - 40usize]; ["Alignment of OmEncoder_t"][::std::mem::align_of::() - 8usize]; ["Offset of field: OmEncoder_t::dimensions"] [::std::mem::offset_of!(OmEncoder_t, dimensions) - 0usize]; ["Offset of field: OmEncoder_t::chunks"][::std::mem::offset_of!(OmEncoder_t, chunks) - 8usize]; ["Offset of field: OmEncoder_t::dimension_count"] [::std::mem::offset_of!(OmEncoder_t, dimension_count) - 16usize]; ["Offset of field: OmEncoder_t::scale_factor"] [::std::mem::offset_of!(OmEncoder_t, scale_factor) - 24usize]; ["Offset of field: OmEncoder_t::add_offset"] [::std::mem::offset_of!(OmEncoder_t, add_offset) - 28usize]; ["Offset of field: OmEncoder_t::data_type"] [::std::mem::offset_of!(OmEncoder_t, data_type) - 32usize]; ["Offset of field: OmEncoder_t::compression"] [::std::mem::offset_of!(OmEncoder_t, compression) - 33usize]; ["Offset of field: OmEncoder_t::bytes_per_element"] [::std::mem::offset_of!(OmEncoder_t, bytes_per_element) - 34usize]; ["Offset of field: OmEncoder_t::bytes_per_element_compressed"] [::std::mem::offset_of!(OmEncoder_t, bytes_per_element_compressed) - 35usize]; }; unsafe extern "C" { #[doc = " Initialise the OmEncoder structure with information about the shape of data\n May return an error on invalid compression or data types"] pub fn om_encoder_init( encoder: *mut OmEncoder_t, scale_factor: f32, add_offset: f32, compression: OmCompression_t, data_type: OmDataType_t, dimensions: *const u64, chunks: *const u64, dimension_count: u64, ) -> OmError_t; } unsafe extern "C" { #[doc = " Get the number of chunks that is calculated from dimensions and chunks"] pub fn om_encoder_count_chunks(encoder: *const OmEncoder_t) -> u64; } unsafe extern "C" { #[doc = " Calculate how many chunks can be filled from a given input"] pub fn om_encoder_count_chunks_in_array( encoder: *const OmEncoder_t, array_count: *const u64, ) -> u64; } unsafe extern "C" { #[doc = " The buffer size required to collect a single chunk of data"] pub fn om_encoder_chunk_buffer_size(encoder: *const OmEncoder_t) -> u64; } unsafe extern "C" { #[doc = " The buffer size required to compress a single chunk."] pub fn om_encoder_compressed_chunk_buffer_size(encoder: *const OmEncoder_t) -> u64; } unsafe extern "C" { #[doc = " Calculate the required buffer size for the entire compressed LUT"] pub fn om_encoder_lut_buffer_size(lookUpTable: *const u64, lookUpTableCount: u64) -> u64; } unsafe extern "C" { #[doc = " Compress the LUT and return the size of compressed LUT in bytes"] pub fn om_encoder_compress_lut( lookUpTable: *const u64, lookUpTableCount: u64, out: *mut u8, size_of_compressed_lut: u64, ) -> u64; } unsafe extern "C" { #[doc = " Compress a single chunk. Chunk buffer must be of size `OmEncoder_chunkBufferSize`"] pub fn om_encoder_compress_chunk( encoder: *const OmEncoder_t, array: *const ::std::os::raw::c_void, arrayDimensions: *const u64, arrayOffset: *const u64, arrayCount: *const u64, chunkIndex: u64, chunkIndexOffsetInThisArray: u64, out: *mut u8, chunkBuffer: *mut u8, ) -> u64; }