/* automatically generated by rust-bindgen */ pub const __WORDSIZE: u32 = 64; pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0; pub const __DARWIN_ONLY_VERS_1050: u32 = 0; pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1; pub const __DARWIN_UNIX03: u32 = 1; pub const __DARWIN_64_BIT_INO_T: u32 = 1; pub const __DARWIN_VERS_1050: u32 = 1; pub const __DARWIN_NON_CANCELABLE: u32 = 0; pub const __DARWIN_SUF_64_BIT_INO_T: &'static [u8; 9usize] = b"$INODE64\0"; pub const __DARWIN_SUF_1050: &'static [u8; 6usize] = b"$1050\0"; pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0"; pub const __DARWIN_C_ANSI: u32 = 4096; pub const __DARWIN_C_FULL: u32 = 900000; pub const __DARWIN_C_LEVEL: u32 = 900000; pub const __STDC_WANT_LIB_EXT1__: u32 = 1; pub const __DARWIN_NO_LONG_LONG: u32 = 0; pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1; pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1; pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3; pub const __PTHREAD_SIZE__: u32 = 8176; pub const __PTHREAD_ATTR_SIZE__: u32 = 56; pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8; pub const __PTHREAD_MUTEX_SIZE__: u32 = 56; pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8; pub const __PTHREAD_COND_SIZE__: u32 = 40; pub const __PTHREAD_ONCE_SIZE__: u32 = 8; pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192; pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16; pub const INT8_MAX: u32 = 127; pub const INT16_MAX: u32 = 32767; pub const INT32_MAX: u32 = 2147483647; pub const INT64_MAX: u64 = 9223372036854775807; pub const INT8_MIN: i32 = -128; pub const INT16_MIN: i32 = -32768; pub const INT32_MIN: i32 = -2147483648; pub const INT64_MIN: i64 = -9223372036854775808; pub const UINT8_MAX: u32 = 255; pub const UINT16_MAX: u32 = 65535; pub const UINT32_MAX: u32 = 4294967295; pub const UINT64_MAX: i32 = -1; pub const INT_LEAST8_MIN: i32 = -128; pub const INT_LEAST16_MIN: i32 = -32768; pub const INT_LEAST32_MIN: i32 = -2147483648; pub const INT_LEAST64_MIN: i64 = -9223372036854775808; pub const INT_LEAST8_MAX: u32 = 127; pub const INT_LEAST16_MAX: u32 = 32767; pub const INT_LEAST32_MAX: u32 = 2147483647; pub const INT_LEAST64_MAX: u64 = 9223372036854775807; pub const UINT_LEAST8_MAX: u32 = 255; pub const UINT_LEAST16_MAX: u32 = 65535; pub const UINT_LEAST32_MAX: u32 = 4294967295; pub const UINT_LEAST64_MAX: i32 = -1; pub const INT_FAST8_MIN: i32 = -128; pub const INT_FAST16_MIN: i32 = -32768; pub const INT_FAST32_MIN: i32 = -2147483648; pub const INT_FAST64_MIN: i64 = -9223372036854775808; pub const INT_FAST8_MAX: u32 = 127; pub const INT_FAST16_MAX: u32 = 32767; pub const INT_FAST32_MAX: u32 = 2147483647; pub const INT_FAST64_MAX: u64 = 9223372036854775807; pub const UINT_FAST8_MAX: u32 = 255; pub const UINT_FAST16_MAX: u32 = 65535; pub const UINT_FAST32_MAX: u32 = 4294967295; pub const UINT_FAST64_MAX: i32 = -1; pub const INTPTR_MAX: u64 = 9223372036854775807; pub const INTPTR_MIN: i64 = -9223372036854775808; pub const UINTPTR_MAX: i32 = -1; pub const INTMAX_MIN: i64 = -9223372036854775808; pub const INTMAX_MAX: u64 = 9223372036854775807; pub const UINTMAX_MAX: i32 = -1; pub const PTRDIFF_MIN: i64 = -9223372036854775808; pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIZE_MAX: i32 = -1; pub const RSIZE_MAX: i32 = -1; pub const WINT_MIN: i32 = -2147483648; pub const WINT_MAX: u32 = 2147483647; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; pub const __GNUC_VA_LIST: u32 = 1; pub const X264_GPL: u32 = 1; pub const X264_INTERLACED: u32 = 1; pub const X264_BIT_DEPTH: u32 = 0; pub const X264_CHROMA_FORMAT: u32 = 0; pub const X264_VERSION: &'static [u8; 1usize] = b"\0"; pub const X264_POINTVER: &'static [u8; 8usize] = b"0.157.x\0"; pub const X264_BUILD: u32 = 157; pub const X264_CPU_MMX: u32 = 1; pub const X264_CPU_MMX2: u32 = 2; pub const X264_CPU_MMXEXT: u32 = 2; pub const X264_CPU_SSE: u32 = 4; pub const X264_CPU_SSE2: u32 = 8; pub const X264_CPU_LZCNT: u32 = 16; pub const X264_CPU_SSE3: u32 = 32; pub const X264_CPU_SSSE3: u32 = 64; pub const X264_CPU_SSE4: u32 = 128; pub const X264_CPU_SSE42: u32 = 256; pub const X264_CPU_AVX: u32 = 512; pub const X264_CPU_XOP: u32 = 1024; pub const X264_CPU_FMA4: u32 = 2048; pub const X264_CPU_FMA3: u32 = 4096; pub const X264_CPU_BMI1: u32 = 8192; pub const X264_CPU_BMI2: u32 = 16384; pub const X264_CPU_AVX2: u32 = 32768; pub const X264_CPU_AVX512: u32 = 65536; pub const X264_CPU_CACHELINE_32: u32 = 131072; pub const X264_CPU_CACHELINE_64: u32 = 262144; pub const X264_CPU_SSE2_IS_SLOW: u32 = 524288; pub const X264_CPU_SSE2_IS_FAST: u32 = 1048576; pub const X264_CPU_SLOW_SHUFFLE: u32 = 2097152; pub const X264_CPU_STACK_MOD4: u32 = 4194304; pub const X264_CPU_SLOW_ATOM: u32 = 8388608; pub const X264_CPU_SLOW_PSHUFB: u32 = 16777216; pub const X264_CPU_SLOW_PALIGNR: u32 = 33554432; pub const X264_CPU_ALTIVEC: u32 = 1; pub const X264_CPU_ARMV6: u32 = 1; pub const X264_CPU_NEON: u32 = 2; pub const X264_CPU_FAST_NEON_MRC: u32 = 4; pub const X264_CPU_ARMV8: u32 = 8; pub const X264_CPU_MSA: u32 = 1; pub const X264_ANALYSE_I4x4: u32 = 1; pub const X264_ANALYSE_I8x8: u32 = 2; pub const X264_ANALYSE_PSUB16x16: u32 = 16; pub const X264_ANALYSE_PSUB8x8: u32 = 32; pub const X264_ANALYSE_BSUB16x16: u32 = 256; pub const X264_DIRECT_PRED_NONE: u32 = 0; pub const X264_DIRECT_PRED_SPATIAL: u32 = 1; pub const X264_DIRECT_PRED_TEMPORAL: u32 = 2; pub const X264_DIRECT_PRED_AUTO: u32 = 3; pub const X264_ME_DIA: u32 = 0; pub const X264_ME_HEX: u32 = 1; pub const X264_ME_UMH: u32 = 2; pub const X264_ME_ESA: u32 = 3; pub const X264_ME_TESA: u32 = 4; pub const X264_CQM_FLAT: u32 = 0; pub const X264_CQM_JVT: u32 = 1; pub const X264_CQM_CUSTOM: u32 = 2; pub const X264_RC_CQP: u32 = 0; pub const X264_RC_CRF: u32 = 1; pub const X264_RC_ABR: u32 = 2; pub const X264_QP_AUTO: u32 = 0; pub const X264_AQ_NONE: u32 = 0; pub const X264_AQ_VARIANCE: u32 = 1; pub const X264_AQ_AUTOVARIANCE: u32 = 2; pub const X264_AQ_AUTOVARIANCE_BIASED: u32 = 3; pub const X264_B_ADAPT_NONE: u32 = 0; pub const X264_B_ADAPT_FAST: u32 = 1; pub const X264_B_ADAPT_TRELLIS: u32 = 2; pub const X264_WEIGHTP_NONE: u32 = 0; pub const X264_WEIGHTP_SIMPLE: u32 = 1; pub const X264_WEIGHTP_SMART: u32 = 2; pub const X264_B_PYRAMID_NONE: u32 = 0; pub const X264_B_PYRAMID_STRICT: u32 = 1; pub const X264_B_PYRAMID_NORMAL: u32 = 2; pub const X264_KEYINT_MIN_AUTO: u32 = 0; pub const X264_KEYINT_MAX_INFINITE: u32 = 1073741824; pub const X264_AVCINTRA_FLAVOR_PANASONIC: u32 = 0; pub const X264_AVCINTRA_FLAVOR_SONY: u32 = 1; pub const X264_CSP_MASK: u32 = 255; pub const X264_CSP_NONE: u32 = 0; pub const X264_CSP_I400: u32 = 1; pub const X264_CSP_I420: u32 = 2; pub const X264_CSP_YV12: u32 = 3; pub const X264_CSP_NV12: u32 = 4; pub const X264_CSP_NV21: u32 = 5; pub const X264_CSP_I422: u32 = 6; pub const X264_CSP_YV16: u32 = 7; pub const X264_CSP_NV16: u32 = 8; pub const X264_CSP_YUYV: u32 = 9; pub const X264_CSP_UYVY: u32 = 10; pub const X264_CSP_V210: u32 = 11; pub const X264_CSP_I444: u32 = 12; pub const X264_CSP_YV24: u32 = 13; pub const X264_CSP_BGR: u32 = 14; pub const X264_CSP_BGRA: u32 = 15; pub const X264_CSP_RGB: u32 = 16; pub const X264_CSP_MAX: u32 = 17; pub const X264_CSP_VFLIP: u32 = 4096; pub const X264_CSP_HIGH_DEPTH: u32 = 8192; pub const X264_TYPE_AUTO: u32 = 0; pub const X264_TYPE_IDR: u32 = 1; pub const X264_TYPE_I: u32 = 2; pub const X264_TYPE_P: u32 = 3; pub const X264_TYPE_BREF: u32 = 4; pub const X264_TYPE_B: u32 = 5; pub const X264_TYPE_KEYFRAME: u32 = 6; pub const X264_LOG_NONE: i32 = -1; pub const X264_LOG_ERROR: u32 = 0; pub const X264_LOG_WARNING: u32 = 1; pub const X264_LOG_INFO: u32 = 2; pub const X264_LOG_DEBUG: u32 = 3; pub const X264_THREADS_AUTO: u32 = 0; pub const X264_SYNC_LOOKAHEAD_AUTO: i32 = -1; pub const X264_NAL_HRD_NONE: u32 = 0; pub const X264_NAL_HRD_VBR: u32 = 1; pub const X264_NAL_HRD_CBR: u32 = 2; pub const X264_PARAM_BAD_NAME: i32 = -1; pub const X264_PARAM_BAD_VALUE: i32 = -2; pub const X264_MBINFO_CONSTANT: u32 = 1; pub type int_least8_t = i8; pub type int_least16_t = i16; pub type int_least32_t = i32; pub type int_least64_t = i64; pub type uint_least8_t = u8; pub type uint_least16_t = u16; pub type uint_least32_t = u32; pub type uint_least64_t = u64; pub type int_fast8_t = i8; pub type int_fast16_t = i16; pub type int_fast32_t = i32; pub type int_fast64_t = i64; pub type uint_fast8_t = u8; pub type uint_fast16_t = u16; pub type uint_fast32_t = u32; pub type uint_fast64_t = u64; 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_longlong; pub type __uint64_t = ::std::os::raw::c_ulonglong; pub type __darwin_intptr_t = ::std::os::raw::c_long; pub type __darwin_natural_t = ::std::os::raw::c_uint; pub type __darwin_ct_rune_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Copy, Clone)] pub union __mbstate_t { pub __mbstate8: [::std::os::raw::c_char; 128usize], pub _mbstateL: ::std::os::raw::c_longlong, _bindgen_union_align: [u64; 16usize], } #[test] fn bindgen_test_layout___mbstate_t() { assert_eq!( ::std::mem::size_of::<__mbstate_t>(), 128usize, concat!("Size of: ", stringify!(__mbstate_t)) ); assert_eq!( ::std::mem::align_of::<__mbstate_t>(), 8usize, concat!("Alignment of ", stringify!(__mbstate_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(__mbstate_t), "::", stringify!(__mbstate8) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(__mbstate_t), "::", stringify!(_mbstateL) ) ); } pub type __darwin_mbstate_t = __mbstate_t; pub type __darwin_ptrdiff_t = ::std::os::raw::c_long; pub type __darwin_size_t = ::std::os::raw::c_ulong; pub type __darwin_va_list = __builtin_va_list; pub type __darwin_wchar_t = ::std::os::raw::c_int; pub type __darwin_rune_t = __darwin_wchar_t; pub type __darwin_wint_t = ::std::os::raw::c_int; pub type __darwin_clock_t = ::std::os::raw::c_ulong; pub type __darwin_socklen_t = __uint32_t; pub type __darwin_ssize_t = ::std::os::raw::c_long; pub type __darwin_time_t = ::std::os::raw::c_long; pub type __darwin_blkcnt_t = __int64_t; pub type __darwin_blksize_t = __int32_t; pub type __darwin_dev_t = __int32_t; pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint; pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint; pub type __darwin_gid_t = __uint32_t; pub type __darwin_id_t = __uint32_t; pub type __darwin_ino64_t = __uint64_t; pub type __darwin_ino_t = __darwin_ino64_t; pub type __darwin_mach_port_name_t = __darwin_natural_t; pub type __darwin_mach_port_t = __darwin_mach_port_name_t; pub type __darwin_mode_t = __uint16_t; pub type __darwin_off_t = __int64_t; pub type __darwin_pid_t = __int32_t; pub type __darwin_sigset_t = __uint32_t; pub type __darwin_suseconds_t = __int32_t; pub type __darwin_uid_t = __uint32_t; pub type __darwin_useconds_t = __uint32_t; pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize]; pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __darwin_pthread_handler_rec { pub __routine: ::std::option::Option, pub __arg: *mut ::std::os::raw::c_void, pub __next: *mut __darwin_pthread_handler_rec, } #[test] fn bindgen_test_layout___darwin_pthread_handler_rec() { assert_eq!( ::std::mem::size_of::<__darwin_pthread_handler_rec>(), 24usize, concat!("Size of: ", stringify!(__darwin_pthread_handler_rec)) ); assert_eq!( ::std::mem::align_of::<__darwin_pthread_handler_rec>(), 8usize, concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(__darwin_pthread_handler_rec), "::", stringify!(__routine) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(__darwin_pthread_handler_rec), "::", stringify!(__arg) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(__darwin_pthread_handler_rec), "::", stringify!(__next) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _opaque_pthread_attr_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 56usize], } #[test] fn bindgen_test_layout__opaque_pthread_attr_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_attr_t>(), 64usize, concat!("Size of: ", stringify!(_opaque_pthread_attr_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_attr_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_attr_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_attr_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_attr_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _opaque_pthread_cond_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 40usize], } #[test] fn bindgen_test_layout__opaque_pthread_cond_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_cond_t>(), 48usize, concat!("Size of: ", stringify!(_opaque_pthread_cond_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_cond_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_cond_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_cond_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_cond_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _opaque_pthread_condattr_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 8usize], } #[test] fn bindgen_test_layout__opaque_pthread_condattr_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_condattr_t>(), 16usize, concat!("Size of: ", stringify!(_opaque_pthread_condattr_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_condattr_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_condattr_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_condattr_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _opaque_pthread_mutex_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 56usize], } #[test] fn bindgen_test_layout__opaque_pthread_mutex_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_mutex_t>(), 64usize, concat!("Size of: ", stringify!(_opaque_pthread_mutex_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_mutex_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_mutex_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_mutex_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _opaque_pthread_mutexattr_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 8usize], } #[test] fn bindgen_test_layout__opaque_pthread_mutexattr_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_mutexattr_t>(), 16usize, concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_mutexattr_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_mutexattr_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_mutexattr_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _opaque_pthread_once_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 8usize], } #[test] fn bindgen_test_layout__opaque_pthread_once_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_once_t>(), 16usize, concat!("Size of: ", stringify!(_opaque_pthread_once_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_once_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_once_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_once_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_once_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _opaque_pthread_rwlock_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 192usize], } #[test] fn bindgen_test_layout__opaque_pthread_rwlock_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_rwlock_t>(), 200usize, concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_rwlock_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_rwlock_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_rwlock_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct _opaque_pthread_rwlockattr_t { pub __sig: ::std::os::raw::c_long, pub __opaque: [::std::os::raw::c_char; 16usize], } #[test] fn bindgen_test_layout__opaque_pthread_rwlockattr_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(), 24usize, concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_rwlockattr_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_rwlockattr_t), "::", stringify!(__opaque) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct _opaque_pthread_t { pub __sig: ::std::os::raw::c_long, pub __cleanup_stack: *mut __darwin_pthread_handler_rec, pub __opaque: [::std::os::raw::c_char; 8176usize], } #[test] fn bindgen_test_layout__opaque_pthread_t() { assert_eq!( ::std::mem::size_of::<_opaque_pthread_t>(), 8192usize, concat!("Size of: ", stringify!(_opaque_pthread_t)) ); assert_eq!( ::std::mem::align_of::<_opaque_pthread_t>(), 8usize, concat!("Alignment of ", stringify!(_opaque_pthread_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_t), "::", stringify!(__sig) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_t), "::", stringify!(__cleanup_stack) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(_opaque_pthread_t), "::", stringify!(__opaque) ) ); } pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t; pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t; pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t; pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong; pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t; pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t; pub type __darwin_pthread_once_t = _opaque_pthread_once_t; pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t; pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t; pub type __darwin_pthread_t = *mut _opaque_pthread_t; pub type u_int8_t = ::std::os::raw::c_uchar; pub type u_int16_t = ::std::os::raw::c_ushort; pub type u_int32_t = ::std::os::raw::c_uint; pub type u_int64_t = ::std::os::raw::c_ulonglong; pub type register_t = i64; pub type user_addr_t = u_int64_t; pub type user_size_t = u_int64_t; pub type user_ssize_t = i64; pub type user_long_t = i64; pub type user_ulong_t = u_int64_t; pub type user_time_t = i64; pub type user_off_t = i64; pub type syscall_arg_t = u_int64_t; pub type intmax_t = ::std::os::raw::c_long; pub type uintmax_t = ::std::os::raw::c_ulong; pub type va_list = __builtin_va_list; pub type __gnuc_va_list = __builtin_va_list; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_t { _unused: [u8; 0], } pub const nal_unit_type_e_NAL_UNKNOWN: nal_unit_type_e = 0; pub const nal_unit_type_e_NAL_SLICE: nal_unit_type_e = 1; pub const nal_unit_type_e_NAL_SLICE_DPA: nal_unit_type_e = 2; pub const nal_unit_type_e_NAL_SLICE_DPB: nal_unit_type_e = 3; pub const nal_unit_type_e_NAL_SLICE_DPC: nal_unit_type_e = 4; pub const nal_unit_type_e_NAL_SLICE_IDR: nal_unit_type_e = 5; pub const nal_unit_type_e_NAL_SEI: nal_unit_type_e = 6; pub const nal_unit_type_e_NAL_SPS: nal_unit_type_e = 7; pub const nal_unit_type_e_NAL_PPS: nal_unit_type_e = 8; pub const nal_unit_type_e_NAL_AUD: nal_unit_type_e = 9; pub const nal_unit_type_e_NAL_FILLER: nal_unit_type_e = 12; #[doc = " NAL structure and functions"] pub type nal_unit_type_e = u32; pub const nal_priority_e_NAL_PRIORITY_DISPOSABLE: nal_priority_e = 0; pub const nal_priority_e_NAL_PRIORITY_LOW: nal_priority_e = 1; pub const nal_priority_e_NAL_PRIORITY_HIGH: nal_priority_e = 2; pub const nal_priority_e_NAL_PRIORITY_HIGHEST: nal_priority_e = 3; pub type nal_priority_e = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_nal_t { pub i_ref_idc: ::std::os::raw::c_int, pub i_type: ::std::os::raw::c_int, pub b_long_startcode: ::std::os::raw::c_int, pub i_first_mb: ::std::os::raw::c_int, pub i_last_mb: ::std::os::raw::c_int, pub i_payload: ::std::os::raw::c_int, pub p_payload: *mut u8, pub i_padding: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_x264_nal_t() { assert_eq!( ::std::mem::size_of::(), 40usize, concat!("Size of: ", stringify!(x264_nal_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_nal_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_ref_idc as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_ref_idc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_type as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_type) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_long_startcode as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(b_long_startcode) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_first_mb as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_first_mb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_last_mb as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_last_mb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_payload as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_payload) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).p_payload as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(p_payload) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_padding as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_nal_t), "::", stringify!(i_padding) ) ); } extern "C" { pub static mut x264_direct_pred_names: [*const ::std::os::raw::c_char; 5usize]; } extern "C" { pub static mut x264_motion_est_names: [*const ::std::os::raw::c_char; 6usize]; } extern "C" { pub static mut x264_b_pyramid_names: [*const ::std::os::raw::c_char; 4usize]; } extern "C" { pub static mut x264_overscan_names: [*const ::std::os::raw::c_char; 4usize]; } extern "C" { pub static mut x264_vidformat_names: [*const ::std::os::raw::c_char; 7usize]; } extern "C" { pub static mut x264_fullrange_names: [*const ::std::os::raw::c_char; 3usize]; } extern "C" { pub static mut x264_colorprim_names: [*const ::std::os::raw::c_char; 14usize]; } extern "C" { pub static mut x264_transfer_names: [*const ::std::os::raw::c_char; 20usize]; } extern "C" { pub static mut x264_colmatrix_names: [*const ::std::os::raw::c_char; 16usize]; } extern "C" { pub static mut x264_nal_hrd_names: [*const ::std::os::raw::c_char; 4usize]; } extern "C" { pub static mut x264_avcintra_flavor_names: [*const ::std::os::raw::c_char; 3usize]; } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_zone_t { pub i_start: ::std::os::raw::c_int, pub i_end: ::std::os::raw::c_int, pub b_force_qp: ::std::os::raw::c_int, pub i_qp: ::std::os::raw::c_int, pub f_bitrate_factor: f32, pub param: *mut x264_param_t, } #[test] fn bindgen_test_layout_x264_zone_t() { assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(x264_zone_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_zone_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_start as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(i_start) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_end as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(i_end) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_force_qp as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(b_force_qp) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qp as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(i_qp) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_bitrate_factor as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(f_bitrate_factor) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).param as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_zone_t), "::", stringify!(param) ) ); } #[repr(C)] #[derive(Copy, Clone)] pub struct x264_param_t { pub cpu: ::std::os::raw::c_uint, pub i_threads: ::std::os::raw::c_int, pub i_lookahead_threads: ::std::os::raw::c_int, pub b_sliced_threads: ::std::os::raw::c_int, pub b_deterministic: ::std::os::raw::c_int, pub b_cpu_independent: ::std::os::raw::c_int, pub i_sync_lookahead: ::std::os::raw::c_int, pub i_width: ::std::os::raw::c_int, pub i_height: ::std::os::raw::c_int, pub i_csp: ::std::os::raw::c_int, pub i_bitdepth: ::std::os::raw::c_int, pub i_level_idc: ::std::os::raw::c_int, pub i_frame_total: ::std::os::raw::c_int, pub i_nal_hrd: ::std::os::raw::c_int, pub vui: x264_param_t__bindgen_ty_1, pub i_frame_reference: ::std::os::raw::c_int, pub i_dpb_size: ::std::os::raw::c_int, pub i_keyint_max: ::std::os::raw::c_int, pub i_keyint_min: ::std::os::raw::c_int, pub i_scenecut_threshold: ::std::os::raw::c_int, pub b_intra_refresh: ::std::os::raw::c_int, pub i_bframe: ::std::os::raw::c_int, pub i_bframe_adaptive: ::std::os::raw::c_int, pub i_bframe_bias: ::std::os::raw::c_int, pub i_bframe_pyramid: ::std::os::raw::c_int, pub b_open_gop: ::std::os::raw::c_int, pub b_bluray_compat: ::std::os::raw::c_int, pub i_avcintra_class: ::std::os::raw::c_int, pub i_avcintra_flavor: ::std::os::raw::c_int, pub b_deblocking_filter: ::std::os::raw::c_int, pub i_deblocking_filter_alphac0: ::std::os::raw::c_int, pub i_deblocking_filter_beta: ::std::os::raw::c_int, pub b_cabac: ::std::os::raw::c_int, pub i_cabac_init_idc: ::std::os::raw::c_int, pub b_interlaced: ::std::os::raw::c_int, pub b_constrained_intra: ::std::os::raw::c_int, pub i_cqm_preset: ::std::os::raw::c_int, pub psz_cqm_file: *mut ::std::os::raw::c_char, pub cqm_4iy: [u8; 16usize], pub cqm_4py: [u8; 16usize], pub cqm_4ic: [u8; 16usize], pub cqm_4pc: [u8; 16usize], pub cqm_8iy: [u8; 64usize], pub cqm_8py: [u8; 64usize], pub cqm_8ic: [u8; 64usize], pub cqm_8pc: [u8; 64usize], pub pf_log: ::std::option::Option< unsafe extern "C" fn( arg1: *mut ::std::os::raw::c_void, i_level: ::std::os::raw::c_int, psz: *const ::std::os::raw::c_char, arg2: *mut __va_list_tag, ), >, pub p_log_private: *mut ::std::os::raw::c_void, pub i_log_level: ::std::os::raw::c_int, pub b_full_recon: ::std::os::raw::c_int, pub psz_dump_yuv: *mut ::std::os::raw::c_char, pub analyse: x264_param_t__bindgen_ty_2, pub rc: x264_param_t__bindgen_ty_3, pub crop_rect: x264_param_t__bindgen_ty_4, pub i_frame_packing: ::std::os::raw::c_int, pub i_alternative_transfer: ::std::os::raw::c_int, pub b_aud: ::std::os::raw::c_int, pub b_repeat_headers: ::std::os::raw::c_int, pub b_annexb: ::std::os::raw::c_int, pub i_sps_id: ::std::os::raw::c_int, pub b_vfr_input: ::std::os::raw::c_int, pub b_pulldown: ::std::os::raw::c_int, pub i_fps_num: u32, pub i_fps_den: u32, pub i_timebase_num: u32, pub i_timebase_den: u32, pub b_tff: ::std::os::raw::c_int, pub b_pic_struct: ::std::os::raw::c_int, pub b_fake_interlaced: ::std::os::raw::c_int, pub b_stitchable: ::std::os::raw::c_int, pub b_opencl: ::std::os::raw::c_int, pub i_opencl_device: ::std::os::raw::c_int, pub opencl_device_id: *mut ::std::os::raw::c_void, pub psz_clbin_file: *mut ::std::os::raw::c_char, pub i_slice_max_size: ::std::os::raw::c_int, pub i_slice_max_mbs: ::std::os::raw::c_int, pub i_slice_min_mbs: ::std::os::raw::c_int, pub i_slice_count: ::std::os::raw::c_int, pub i_slice_count_max: ::std::os::raw::c_int, pub param_free: ::std::option::Option, pub nalu_process: ::std::option::Option< unsafe extern "C" fn( h: *mut x264_t, nal: *mut x264_nal_t, opaque: *mut ::std::os::raw::c_void, ), >, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_param_t__bindgen_ty_1 { pub i_sar_height: ::std::os::raw::c_int, pub i_sar_width: ::std::os::raw::c_int, pub i_overscan: ::std::os::raw::c_int, pub i_vidformat: ::std::os::raw::c_int, pub b_fullrange: ::std::os::raw::c_int, pub i_colorprim: ::std::os::raw::c_int, pub i_transfer: ::std::os::raw::c_int, pub i_colmatrix: ::std::os::raw::c_int, pub i_chroma_loc: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_x264_param_t__bindgen_ty_1() { assert_eq!( ::std::mem::size_of::(), 36usize, concat!("Size of: ", stringify!(x264_param_t__bindgen_ty_1)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(x264_param_t__bindgen_ty_1)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_sar_height as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_sar_height) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_sar_width as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_sar_width) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_overscan as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_overscan) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_vidformat as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_vidformat) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_fullrange as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(b_fullrange) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_colorprim as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_colorprim) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_transfer as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_transfer) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_colmatrix as *const _ as usize }, 28usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_colmatrix) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_chroma_loc as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_1), "::", stringify!(i_chroma_loc) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_param_t__bindgen_ty_2 { pub intra: ::std::os::raw::c_uint, pub inter: ::std::os::raw::c_uint, pub b_transform_8x8: ::std::os::raw::c_int, pub i_weighted_pred: ::std::os::raw::c_int, pub b_weighted_bipred: ::std::os::raw::c_int, pub i_direct_mv_pred: ::std::os::raw::c_int, pub i_chroma_qp_offset: ::std::os::raw::c_int, pub i_me_method: ::std::os::raw::c_int, pub i_me_range: ::std::os::raw::c_int, pub i_mv_range: ::std::os::raw::c_int, pub i_mv_range_thread: ::std::os::raw::c_int, pub i_subpel_refine: ::std::os::raw::c_int, pub b_chroma_me: ::std::os::raw::c_int, pub b_mixed_references: ::std::os::raw::c_int, pub i_trellis: ::std::os::raw::c_int, pub b_fast_pskip: ::std::os::raw::c_int, pub b_dct_decimate: ::std::os::raw::c_int, pub i_noise_reduction: ::std::os::raw::c_int, pub f_psy_rd: f32, pub f_psy_trellis: f32, pub b_psy: ::std::os::raw::c_int, pub b_mb_info: ::std::os::raw::c_int, pub b_mb_info_update: ::std::os::raw::c_int, pub i_luma_deadzone: [::std::os::raw::c_int; 2usize], pub b_psnr: ::std::os::raw::c_int, pub b_ssim: ::std::os::raw::c_int, } #[test] fn bindgen_test_layout_x264_param_t__bindgen_ty_2() { assert_eq!( ::std::mem::size_of::(), 108usize, concat!("Size of: ", stringify!(x264_param_t__bindgen_ty_2)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(x264_param_t__bindgen_ty_2)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).intra as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(intra) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).inter as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(inter) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_transform_8x8 as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_transform_8x8) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_weighted_pred as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_weighted_pred) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_weighted_bipred as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_weighted_bipred) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_direct_mv_pred as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_direct_mv_pred) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_chroma_qp_offset as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_chroma_qp_offset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_me_method as *const _ as usize }, 28usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_me_method) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_me_range as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_me_range) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_mv_range as *const _ as usize }, 36usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_mv_range) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_mv_range_thread as *const _ as usize }, 40usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_mv_range_thread) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_subpel_refine as *const _ as usize }, 44usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_subpel_refine) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_chroma_me as *const _ as usize }, 48usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_chroma_me) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_mixed_references as *const _ as usize }, 52usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_mixed_references) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_trellis as *const _ as usize }, 56usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_trellis) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_fast_pskip as *const _ as usize }, 60usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_fast_pskip) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_dct_decimate as *const _ as usize }, 64usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_dct_decimate) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_noise_reduction as *const _ as usize }, 68usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_noise_reduction) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_psy_rd as *const _ as usize }, 72usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(f_psy_rd) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_psy_trellis as *const _ as usize }, 76usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(f_psy_trellis) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_psy as *const _ as usize }, 80usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_psy) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_mb_info as *const _ as usize }, 84usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_mb_info) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_mb_info_update as *const _ as usize }, 88usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_mb_info_update) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_luma_deadzone as *const _ as usize }, 92usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(i_luma_deadzone) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_psnr as *const _ as usize }, 100usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_psnr) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_ssim as *const _ as usize }, 104usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_2), "::", stringify!(b_ssim) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_param_t__bindgen_ty_3 { pub i_rc_method: ::std::os::raw::c_int, pub i_qp_constant: ::std::os::raw::c_int, pub i_qp_min: ::std::os::raw::c_int, pub i_qp_max: ::std::os::raw::c_int, pub i_qp_step: ::std::os::raw::c_int, pub i_bitrate: ::std::os::raw::c_int, pub f_rf_constant: f32, pub f_rf_constant_max: f32, pub f_rate_tolerance: f32, pub i_vbv_max_bitrate: ::std::os::raw::c_int, pub i_vbv_buffer_size: ::std::os::raw::c_int, pub f_vbv_buffer_init: f32, pub f_ip_factor: f32, pub f_pb_factor: f32, pub b_filler: ::std::os::raw::c_int, pub i_aq_mode: ::std::os::raw::c_int, pub f_aq_strength: f32, pub b_mb_tree: ::std::os::raw::c_int, pub i_lookahead: ::std::os::raw::c_int, pub b_stat_write: ::std::os::raw::c_int, pub psz_stat_out: *mut ::std::os::raw::c_char, pub b_stat_read: ::std::os::raw::c_int, pub psz_stat_in: *mut ::std::os::raw::c_char, pub f_qcompress: f32, pub f_qblur: f32, pub f_complexity_blur: f32, pub zones: *mut x264_zone_t, pub i_zones: ::std::os::raw::c_int, pub psz_zones: *mut ::std::os::raw::c_char, } #[test] fn bindgen_test_layout_x264_param_t__bindgen_ty_3() { assert_eq!( ::std::mem::size_of::(), 144usize, concat!("Size of: ", stringify!(x264_param_t__bindgen_ty_3)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_param_t__bindgen_ty_3)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_rc_method as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_rc_method) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qp_constant as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_qp_constant) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qp_min as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_qp_min) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qp_max as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_qp_max) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qp_step as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_qp_step) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bitrate as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_bitrate) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_rf_constant as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_rf_constant) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_rf_constant_max as *const _ as usize }, 28usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_rf_constant_max) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_rate_tolerance as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_rate_tolerance) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_vbv_max_bitrate as *const _ as usize }, 36usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_vbv_max_bitrate) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_vbv_buffer_size as *const _ as usize }, 40usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_vbv_buffer_size) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_vbv_buffer_init as *const _ as usize }, 44usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_vbv_buffer_init) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_ip_factor as *const _ as usize }, 48usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_ip_factor) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_pb_factor as *const _ as usize }, 52usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_pb_factor) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_filler as *const _ as usize }, 56usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(b_filler) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_aq_mode as *const _ as usize }, 60usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_aq_mode) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_aq_strength as *const _ as usize }, 64usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_aq_strength) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_mb_tree as *const _ as usize }, 68usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(b_mb_tree) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_lookahead as *const _ as usize }, 72usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_lookahead) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_stat_write as *const _ as usize }, 76usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(b_stat_write) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_stat_out as *const _ as usize }, 80usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(psz_stat_out) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_stat_read as *const _ as usize }, 88usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(b_stat_read) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_stat_in as *const _ as usize }, 96usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(psz_stat_in) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_qcompress as *const _ as usize }, 104usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_qcompress) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_qblur as *const _ as usize }, 108usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_qblur) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_complexity_blur as *const _ as usize }, 112usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(f_complexity_blur) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).zones as *const _ as usize }, 120usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(zones) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_zones as *const _ as usize }, 128usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(i_zones) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_zones as *const _ as usize }, 136usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_3), "::", stringify!(psz_zones) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_param_t__bindgen_ty_4 { pub i_left: ::std::os::raw::c_uint, pub i_top: ::std::os::raw::c_uint, pub i_right: ::std::os::raw::c_uint, pub i_bottom: ::std::os::raw::c_uint, } #[test] fn bindgen_test_layout_x264_param_t__bindgen_ty_4() { assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(x264_param_t__bindgen_ty_4)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(x264_param_t__bindgen_ty_4)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_left as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_4), "::", stringify!(i_left) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_top as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_4), "::", stringify!(i_top) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_right as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_4), "::", stringify!(i_right) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bottom as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_param_t__bindgen_ty_4), "::", stringify!(i_bottom) ) ); } #[test] fn bindgen_test_layout_x264_param_t() { assert_eq!( ::std::mem::size_of::(), 944usize, concat!("Size of: ", stringify!(x264_param_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_param_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cpu as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cpu) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_threads as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_threads) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_lookahead_threads as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_lookahead_threads) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_sliced_threads as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_sliced_threads) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_deterministic as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_deterministic) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_cpu_independent as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_cpu_independent) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_sync_lookahead as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_sync_lookahead) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_width as *const _ as usize }, 28usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_width) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_height as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_height) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_csp as *const _ as usize }, 36usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_csp) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bitdepth as *const _ as usize }, 40usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_bitdepth) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_level_idc as *const _ as usize }, 44usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_level_idc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_frame_total as *const _ as usize }, 48usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_frame_total) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_nal_hrd as *const _ as usize }, 52usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_nal_hrd) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).vui as *const _ as usize }, 56usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(vui) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_frame_reference as *const _ as usize }, 92usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_frame_reference) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_dpb_size as *const _ as usize }, 96usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_dpb_size) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_keyint_max as *const _ as usize }, 100usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_keyint_max) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_keyint_min as *const _ as usize }, 104usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_keyint_min) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_scenecut_threshold as *const _ as usize }, 108usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_scenecut_threshold) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_intra_refresh as *const _ as usize }, 112usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_intra_refresh) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bframe as *const _ as usize }, 116usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_bframe) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bframe_adaptive as *const _ as usize }, 120usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_bframe_adaptive) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bframe_bias as *const _ as usize }, 124usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_bframe_bias) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_bframe_pyramid as *const _ as usize }, 128usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_bframe_pyramid) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_open_gop as *const _ as usize }, 132usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_open_gop) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_bluray_compat as *const _ as usize }, 136usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_bluray_compat) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_avcintra_class as *const _ as usize }, 140usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_avcintra_class) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_avcintra_flavor as *const _ as usize }, 144usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_avcintra_flavor) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_deblocking_filter as *const _ as usize }, 148usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_deblocking_filter) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_deblocking_filter_alphac0 as *const _ as usize }, 152usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_deblocking_filter_alphac0) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_deblocking_filter_beta as *const _ as usize }, 156usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_deblocking_filter_beta) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_cabac as *const _ as usize }, 160usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_cabac) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_cabac_init_idc as *const _ as usize }, 164usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_cabac_init_idc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_interlaced as *const _ as usize }, 168usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_interlaced) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_constrained_intra as *const _ as usize }, 172usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_constrained_intra) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_cqm_preset as *const _ as usize }, 176usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_cqm_preset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_cqm_file as *const _ as usize }, 184usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(psz_cqm_file) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_4iy as *const _ as usize }, 192usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_4iy) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_4py as *const _ as usize }, 208usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_4py) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_4ic as *const _ as usize }, 224usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_4ic) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_4pc as *const _ as usize }, 240usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_4pc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_8iy as *const _ as usize }, 256usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_8iy) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_8py as *const _ as usize }, 320usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_8py) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_8ic as *const _ as usize }, 384usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_8ic) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cqm_8pc as *const _ as usize }, 448usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(cqm_8pc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).pf_log as *const _ as usize }, 512usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(pf_log) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).p_log_private as *const _ as usize }, 520usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(p_log_private) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_log_level as *const _ as usize }, 528usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_log_level) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_full_recon as *const _ as usize }, 532usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_full_recon) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_dump_yuv as *const _ as usize }, 536usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(psz_dump_yuv) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).analyse as *const _ as usize }, 544usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(analyse) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).rc as *const _ as usize }, 656usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(rc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).crop_rect as *const _ as usize }, 800usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(crop_rect) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_frame_packing as *const _ as usize }, 816usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_frame_packing) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_alternative_transfer as *const _ as usize }, 820usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_alternative_transfer) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_aud as *const _ as usize }, 824usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_aud) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_repeat_headers as *const _ as usize }, 828usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_repeat_headers) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_annexb as *const _ as usize }, 832usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_annexb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_sps_id as *const _ as usize }, 836usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_sps_id) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_vfr_input as *const _ as usize }, 840usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_vfr_input) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_pulldown as *const _ as usize }, 844usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_pulldown) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_fps_num as *const _ as usize }, 848usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_fps_num) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_fps_den as *const _ as usize }, 852usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_fps_den) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_timebase_num as *const _ as usize }, 856usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_timebase_num) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_timebase_den as *const _ as usize }, 860usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_timebase_den) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_tff as *const _ as usize }, 864usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_tff) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_pic_struct as *const _ as usize }, 868usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_pic_struct) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_fake_interlaced as *const _ as usize }, 872usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_fake_interlaced) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_stitchable as *const _ as usize }, 876usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_stitchable) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_opencl as *const _ as usize }, 880usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(b_opencl) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_opencl_device as *const _ as usize }, 884usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_opencl_device) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).opencl_device_id as *const _ as usize }, 888usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(opencl_device_id) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).psz_clbin_file as *const _ as usize }, 896usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(psz_clbin_file) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_slice_max_size as *const _ as usize }, 904usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_slice_max_size) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_slice_max_mbs as *const _ as usize }, 908usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_slice_max_mbs) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_slice_min_mbs as *const _ as usize }, 912usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_slice_min_mbs) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_slice_count as *const _ as usize }, 916usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_slice_count) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_slice_count_max as *const _ as usize }, 920usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(i_slice_count_max) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).param_free as *const _ as usize }, 928usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(param_free) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).nalu_process as *const _ as usize }, 936usize, concat!( "Offset of field: ", stringify!(x264_param_t), "::", stringify!(nalu_process) ) ); } extern "C" { pub fn x264_nal_encode(h: *mut x264_t, dst: *mut u8, nal: *mut x264_nal_t); } #[doc = " H.264 level restriction information"] #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_level_t { pub level_idc: u8, pub mbps: u32, pub frame_size: u32, pub dpb: u32, pub bitrate: u32, pub cpb: u32, pub mv_range: u16, pub mvs_per_2mb: u8, pub slice_rate: u8, pub mincr: u8, pub bipred8x8: u8, pub direct8x8: u8, pub frame_only: u8, } #[test] fn bindgen_test_layout_x264_level_t() { assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(x264_level_t)) ); assert_eq!( ::std::mem::align_of::(), 4usize, concat!("Alignment of ", stringify!(x264_level_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).level_idc as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(level_idc) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mbps as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(mbps) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).frame_size as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(frame_size) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).dpb as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(dpb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).bitrate as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(bitrate) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cpb as *const _ as usize }, 20usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(cpb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mv_range as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(mv_range) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mvs_per_2mb as *const _ as usize }, 26usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(mvs_per_2mb) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).slice_rate as *const _ as usize }, 27usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(slice_rate) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mincr as *const _ as usize }, 28usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(mincr) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).bipred8x8 as *const _ as usize }, 29usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(bipred8x8) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).direct8x8 as *const _ as usize }, 30usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(direct8x8) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).frame_only as *const _ as usize }, 31usize, concat!( "Offset of field: ", stringify!(x264_level_t), "::", stringify!(frame_only) ) ); } extern "C" { pub static mut x264_levels: [x264_level_t; 0usize]; } extern "C" { #[doc = " Basic parameter handling functions"] pub fn x264_param_default(arg1: *mut x264_param_t); } extern "C" { pub fn x264_param_parse( arg1: *mut x264_param_t, name: *const ::std::os::raw::c_char, value: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub static mut x264_preset_names: [*const ::std::os::raw::c_char; 11usize]; } extern "C" { pub static mut x264_tune_names: [*const ::std::os::raw::c_char; 9usize]; } extern "C" { pub fn x264_param_default_preset( arg1: *mut x264_param_t, preset: *const ::std::os::raw::c_char, tune: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_param_apply_fastfirstpass(arg1: *mut x264_param_t); } extern "C" { pub static mut x264_profile_names: [*const ::std::os::raw::c_char; 7usize]; } extern "C" { pub fn x264_param_apply_profile( arg1: *mut x264_param_t, profile: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { pub static x264_chroma_format: ::std::os::raw::c_int; } pub const pic_struct_e_PIC_STRUCT_AUTO: pic_struct_e = 0; pub const pic_struct_e_PIC_STRUCT_PROGRESSIVE: pic_struct_e = 1; pub const pic_struct_e_PIC_STRUCT_TOP_BOTTOM: pic_struct_e = 4; pub const pic_struct_e_PIC_STRUCT_BOTTOM_TOP: pic_struct_e = 5; pub const pic_struct_e_PIC_STRUCT_TOP_BOTTOM_TOP: pic_struct_e = 6; pub const pic_struct_e_PIC_STRUCT_BOTTOM_TOP_BOTTOM: pic_struct_e = 7; pub const pic_struct_e_PIC_STRUCT_DOUBLE: pic_struct_e = 8; pub const pic_struct_e_PIC_STRUCT_TRIPLE: pic_struct_e = 9; pub type pic_struct_e = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_hrd_t { pub cpb_initial_arrival_time: f64, pub cpb_final_arrival_time: f64, pub cpb_removal_time: f64, pub dpb_output_time: f64, } #[test] fn bindgen_test_layout_x264_hrd_t() { assert_eq!( ::std::mem::size_of::(), 32usize, concat!("Size of: ", stringify!(x264_hrd_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_hrd_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cpb_initial_arrival_time as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_hrd_t), "::", stringify!(cpb_initial_arrival_time) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cpb_final_arrival_time as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_hrd_t), "::", stringify!(cpb_final_arrival_time) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).cpb_removal_time as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_hrd_t), "::", stringify!(cpb_removal_time) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).dpb_output_time as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_hrd_t), "::", stringify!(dpb_output_time) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_sei_payload_t { pub payload_size: ::std::os::raw::c_int, pub payload_type: ::std::os::raw::c_int, pub payload: *mut u8, } #[test] fn bindgen_test_layout_x264_sei_payload_t() { assert_eq!( ::std::mem::size_of::(), 16usize, concat!("Size of: ", stringify!(x264_sei_payload_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_sei_payload_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).payload_size as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_sei_payload_t), "::", stringify!(payload_size) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).payload_type as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_sei_payload_t), "::", stringify!(payload_type) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).payload as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_sei_payload_t), "::", stringify!(payload) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_sei_t { pub num_payloads: ::std::os::raw::c_int, pub payloads: *mut x264_sei_payload_t, pub sei_free: ::std::option::Option, } #[test] fn bindgen_test_layout_x264_sei_t() { assert_eq!( ::std::mem::size_of::(), 24usize, concat!("Size of: ", stringify!(x264_sei_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_sei_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).num_payloads as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_sei_t), "::", stringify!(num_payloads) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).payloads as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_sei_t), "::", stringify!(payloads) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).sei_free as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_sei_t), "::", stringify!(sei_free) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_image_t { pub i_csp: ::std::os::raw::c_int, pub i_plane: ::std::os::raw::c_int, pub i_stride: [::std::os::raw::c_int; 4usize], pub plane: [*mut u8; 4usize], } #[test] fn bindgen_test_layout_x264_image_t() { assert_eq!( ::std::mem::size_of::(), 56usize, concat!("Size of: ", stringify!(x264_image_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_image_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_csp as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_image_t), "::", stringify!(i_csp) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_plane as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_image_t), "::", stringify!(i_plane) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_stride as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_image_t), "::", stringify!(i_stride) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).plane as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_image_t), "::", stringify!(plane) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_image_properties_t { pub quant_offsets: *mut f32, pub quant_offsets_free: ::std::option::Option, pub mb_info: *mut u8, pub mb_info_free: ::std::option::Option, pub f_ssim: f64, pub f_psnr_avg: f64, pub f_psnr: [f64; 3usize], pub f_crf_avg: f64, } #[test] fn bindgen_test_layout_x264_image_properties_t() { assert_eq!( ::std::mem::size_of::(), 80usize, concat!("Size of: ", stringify!(x264_image_properties_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_image_properties_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).quant_offsets as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(quant_offsets) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).quant_offsets_free as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(quant_offsets_free) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mb_info as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(mb_info) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).mb_info_free as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(mb_info_free) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_ssim as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(f_ssim) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_psnr_avg as *const _ as usize }, 40usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(f_psnr_avg) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_psnr as *const _ as usize }, 48usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(f_psnr) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).f_crf_avg as *const _ as usize }, 72usize, concat!( "Offset of field: ", stringify!(x264_image_properties_t), "::", stringify!(f_crf_avg) ) ); } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct x264_picture_t { pub i_type: ::std::os::raw::c_int, pub i_qpplus1: ::std::os::raw::c_int, pub i_pic_struct: ::std::os::raw::c_int, pub b_keyframe: ::std::os::raw::c_int, pub i_pts: i64, pub i_dts: i64, pub param: *mut x264_param_t, pub img: x264_image_t, pub prop: x264_image_properties_t, pub hrd_timing: x264_hrd_t, pub extra_sei: x264_sei_t, pub opaque: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout_x264_picture_t() { assert_eq!( ::std::mem::size_of::(), 240usize, concat!("Size of: ", stringify!(x264_picture_t)) ); assert_eq!( ::std::mem::align_of::(), 8usize, concat!("Alignment of ", stringify!(x264_picture_t)) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_type as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(i_type) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_qpplus1 as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(i_qpplus1) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_pic_struct as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(i_pic_struct) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).b_keyframe as *const _ as usize }, 12usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(b_keyframe) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_pts as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(i_pts) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).i_dts as *const _ as usize }, 24usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(i_dts) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).param as *const _ as usize }, 32usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(param) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).img as *const _ as usize }, 40usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(img) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).prop as *const _ as usize }, 96usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(prop) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).hrd_timing as *const _ as usize }, 176usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(hrd_timing) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).extra_sei as *const _ as usize }, 208usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(extra_sei) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).opaque as *const _ as usize }, 232usize, concat!( "Offset of field: ", stringify!(x264_picture_t), "::", stringify!(opaque) ) ); } extern "C" { pub fn x264_picture_init(pic: *mut x264_picture_t); } extern "C" { pub fn x264_picture_alloc( pic: *mut x264_picture_t, i_csp: ::std::os::raw::c_int, i_width: ::std::os::raw::c_int, i_height: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_picture_clean(pic: *mut x264_picture_t); } extern "C" { pub fn x264_encoder_open_157(arg1: *mut x264_param_t) -> *mut x264_t; } extern "C" { pub fn x264_encoder_reconfig( arg1: *mut x264_t, arg2: *mut x264_param_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_encoder_parameters(arg1: *mut x264_t, arg2: *mut x264_param_t); } extern "C" { pub fn x264_encoder_headers( arg1: *mut x264_t, pp_nal: *mut *mut x264_nal_t, pi_nal: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_encoder_encode( arg1: *mut x264_t, pp_nal: *mut *mut x264_nal_t, pi_nal: *mut ::std::os::raw::c_int, pic_in: *mut x264_picture_t, pic_out: *mut x264_picture_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_encoder_close(arg1: *mut x264_t); } extern "C" { pub fn x264_encoder_delayed_frames(arg1: *mut x264_t) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_encoder_maximum_delayed_frames(arg1: *mut x264_t) -> ::std::os::raw::c_int; } extern "C" { pub fn x264_encoder_intra_refresh(arg1: *mut x264_t); } extern "C" { pub fn x264_encoder_invalidate_reference(arg1: *mut x264_t, pts: i64) -> ::std::os::raw::c_int; } pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __va_list_tag { pub gp_offset: ::std::os::raw::c_uint, pub fp_offset: ::std::os::raw::c_uint, pub overflow_arg_area: *mut ::std::os::raw::c_void, pub reg_save_area: *mut ::std::os::raw::c_void, } #[test] fn bindgen_test_layout___va_list_tag() { assert_eq!( ::std::mem::size_of::<__va_list_tag>(), 24usize, concat!("Size of: ", stringify!(__va_list_tag)) ); assert_eq!( ::std::mem::align_of::<__va_list_tag>(), 8usize, concat!("Alignment of ", stringify!(__va_list_tag)) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, 0usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(gp_offset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, 4usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(fp_offset) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(overflow_arg_area) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, 16usize, concat!( "Offset of field: ", stringify!(__va_list_tag), "::", stringify!(reg_save_area) ) ); }