1#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6 storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9 #[inline]
10 pub const fn new(storage: Storage) -> Self {
11 Self { storage }
12 }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16 Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18 #[inline]
19 fn extract_bit(byte: u8, index: usize) -> bool {
20 let bit_index = if cfg!(target_endian = "big") {
21 7 - (index % 8)
22 } else {
23 index % 8
24 };
25 let mask = 1 << bit_index;
26 byte & mask == mask
27 }
28 #[inline]
29 pub fn get_bit(&self, index: usize) -> bool {
30 debug_assert!(index / 8 < self.storage.as_ref().len());
31 let byte_index = index / 8;
32 let byte = self.storage.as_ref()[byte_index];
33 Self::extract_bit(byte, index)
34 }
35 #[inline]
36 pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38 let byte_index = index / 8;
39 let byte = unsafe {
40 *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
41 };
42 Self::extract_bit(byte, index)
43 }
44 #[inline]
45 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
46 let bit_index = if cfg!(target_endian = "big") {
47 7 - (index % 8)
48 } else {
49 index % 8
50 };
51 let mask = 1 << bit_index;
52 if val { byte | mask } else { byte & !mask }
53 }
54 #[inline]
55 pub fn set_bit(&mut self, index: usize, val: bool) {
56 debug_assert!(index / 8 < self.storage.as_ref().len());
57 let byte_index = index / 8;
58 let byte = &mut self.storage.as_mut()[byte_index];
59 *byte = Self::change_bit(*byte, index, val);
60 }
61 #[inline]
62 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
63 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
64 let byte_index = index / 8;
65 let byte = unsafe {
66 (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
67 };
68 unsafe { *byte = Self::change_bit(*byte, index, val) };
69 }
70 #[inline]
71 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
72 debug_assert!(bit_width <= 64);
73 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
74 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
75 let mut val = 0;
76 for i in 0..(bit_width as usize) {
77 if self.get_bit(i + bit_offset) {
78 let index = if cfg!(target_endian = "big") {
79 bit_width as usize - 1 - i
80 } else {
81 i
82 };
83 val |= 1 << index;
84 }
85 }
86 val
87 }
88 #[inline]
89 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
90 debug_assert!(bit_width <= 64);
91 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
92 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
93 let mut val = 0;
94 for i in 0..(bit_width as usize) {
95 if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
96 let index = if cfg!(target_endian = "big") {
97 bit_width as usize - 1 - i
98 } else {
99 i
100 };
101 val |= 1 << index;
102 }
103 }
104 val
105 }
106 #[inline]
107 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
108 debug_assert!(bit_width <= 64);
109 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
110 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
111 for i in 0..(bit_width as usize) {
112 let mask = 1 << i;
113 let val_bit_is_set = val & mask == mask;
114 let index = if cfg!(target_endian = "big") {
115 bit_width as usize - 1 - i
116 } else {
117 i
118 };
119 self.set_bit(index + bit_offset, val_bit_is_set);
120 }
121 }
122 #[inline]
123 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
124 debug_assert!(bit_width <= 64);
125 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
126 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
127 for i in 0..(bit_width as usize) {
128 let mask = 1 << i;
129 let val_bit_is_set = val & mask == mask;
130 let index = if cfg!(target_endian = "big") {
131 bit_width as usize - 1 - i
132 } else {
133 i
134 };
135 unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
136 }
137 }
138}
139pub const _STDINT_H: u32 = 1;
140pub const _FEATURES_H: u32 = 1;
141pub const _DEFAULT_SOURCE: u32 = 1;
142pub const __GLIBC_USE_ISOC2Y: u32 = 0;
143pub const __GLIBC_USE_ISOC23: u32 = 0;
144pub const __USE_ISOC11: u32 = 1;
145pub const __USE_ISOC99: u32 = 1;
146pub const __USE_ISOC95: u32 = 1;
147pub const __USE_POSIX_IMPLICITLY: u32 = 1;
148pub const _POSIX_SOURCE: u32 = 1;
149pub const _POSIX_C_SOURCE: u32 = 200809;
150pub const __USE_POSIX: u32 = 1;
151pub const __USE_POSIX2: u32 = 1;
152pub const __USE_POSIX199309: u32 = 1;
153pub const __USE_POSIX199506: u32 = 1;
154pub const __USE_XOPEN2K: u32 = 1;
155pub const __USE_XOPEN2K8: u32 = 1;
156pub const _ATFILE_SOURCE: u32 = 1;
157pub const __WORDSIZE: u32 = 64;
158pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
159pub const __SYSCALL_WORDSIZE: u32 = 64;
160pub const __TIMESIZE: u32 = 64;
161pub const __USE_TIME_BITS64: u32 = 1;
162pub const __USE_MISC: u32 = 1;
163pub const __USE_ATFILE: u32 = 1;
164pub const __USE_FORTIFY_LEVEL: u32 = 0;
165pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
166pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
167pub const __GLIBC_USE_C23_STRTOL: u32 = 0;
168pub const _STDC_PREDEF_H: u32 = 1;
169pub const __STDC_IEC_559__: u32 = 1;
170pub const __STDC_IEC_60559_BFP__: u32 = 201404;
171pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
172pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
173pub const __STDC_ISO_10646__: u32 = 201706;
174pub const __GNU_LIBRARY__: u32 = 6;
175pub const __GLIBC__: u32 = 2;
176pub const __GLIBC_MINOR__: u32 = 41;
177pub const _SYS_CDEFS_H: u32 = 1;
178pub const __glibc_c99_flexarr_available: u32 = 1;
179pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
180pub const __HAVE_GENERIC_SELECTION: u32 = 1;
181pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
182pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
183pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23: u32 = 0;
184pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
185pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
186pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23: u32 = 0;
187pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
188pub const _BITS_TYPES_H: u32 = 1;
189pub const _BITS_TYPESIZES_H: u32 = 1;
190pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
191pub const __INO_T_MATCHES_INO64_T: u32 = 1;
192pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
193pub const __STATFS_MATCHES_STATFS64: u32 = 1;
194pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
195pub const __FD_SETSIZE: u32 = 1024;
196pub const _BITS_TIME64_H: u32 = 1;
197pub const _BITS_WCHAR_H: u32 = 1;
198pub const _BITS_STDINT_INTN_H: u32 = 1;
199pub const _BITS_STDINT_UINTN_H: u32 = 1;
200pub const _BITS_STDINT_LEAST_H: u32 = 1;
201pub const INT8_MIN: i32 = -128;
202pub const INT16_MIN: i32 = -32768;
203pub const INT32_MIN: i32 = -2147483648;
204pub const INT8_MAX: u32 = 127;
205pub const INT16_MAX: u32 = 32767;
206pub const INT32_MAX: u32 = 2147483647;
207pub const UINT8_MAX: u32 = 255;
208pub const UINT16_MAX: u32 = 65535;
209pub const UINT32_MAX: u32 = 4294967295;
210pub const INT_LEAST8_MIN: i32 = -128;
211pub const INT_LEAST16_MIN: i32 = -32768;
212pub const INT_LEAST32_MIN: i32 = -2147483648;
213pub const INT_LEAST8_MAX: u32 = 127;
214pub const INT_LEAST16_MAX: u32 = 32767;
215pub const INT_LEAST32_MAX: u32 = 2147483647;
216pub const UINT_LEAST8_MAX: u32 = 255;
217pub const UINT_LEAST16_MAX: u32 = 65535;
218pub const UINT_LEAST32_MAX: u32 = 4294967295;
219pub const INT_FAST8_MIN: i32 = -128;
220pub const INT_FAST16_MIN: i64 = -9223372036854775808;
221pub const INT_FAST32_MIN: i64 = -9223372036854775808;
222pub const INT_FAST8_MAX: u32 = 127;
223pub const INT_FAST16_MAX: u64 = 9223372036854775807;
224pub const INT_FAST32_MAX: u64 = 9223372036854775807;
225pub const UINT_FAST8_MAX: u32 = 255;
226pub const UINT_FAST16_MAX: i32 = -1;
227pub const UINT_FAST32_MAX: i32 = -1;
228pub const INTPTR_MIN: i64 = -9223372036854775808;
229pub const INTPTR_MAX: u64 = 9223372036854775807;
230pub const UINTPTR_MAX: i32 = -1;
231pub const PTRDIFF_MIN: i64 = -9223372036854775808;
232pub const PTRDIFF_MAX: u64 = 9223372036854775807;
233pub const SIG_ATOMIC_MIN: i32 = -2147483648;
234pub const SIG_ATOMIC_MAX: u32 = 2147483647;
235pub const SIZE_MAX: i32 = -1;
236pub const WINT_MIN: u32 = 0;
237pub const WINT_MAX: u32 = 4294967295;
238pub const __bool_true_false_are_defined: u32 = 1;
239pub const true_: u32 = 1;
240pub const false_: u32 = 0;
241#[doc = "!< Depth frame with 16 bits per pixel in millimeters."]
242pub const ScFrameType_SC_DEPTH_FRAME: ScFrameType = 0;
243#[doc = "!< IR frame with 8 bits per pixel."]
244pub const ScFrameType_SC_IR_FRAME: ScFrameType = 1;
245#[doc = "!< Color frame with 24 bits per pixel in RGB/BGR format."]
246pub const ScFrameType_SC_COLOR_FRAME: ScFrameType = 3;
247#[doc = "!< Color frame with 24 bits per pixel in RGB/BGR format, that is transformed to depth\n!< sensor space where the resolution is the same as the depth frame's resolution.\n!< This frame type can be enabled using ::scSetTransformColorImgToDepthSensorEnabled()."]
248pub const ScFrameType_SC_TRANSFORM_COLOR_IMG_TO_DEPTH_SENSOR_FRAME: ScFrameType = 4;
249#[doc = "!< Depth frame with 16 bits per pixel, in millimeters, that is transformed to color sensor\n!< space where the resolution is same as the color frame's resolution.\n!< This frame type can be enabled using ::scSetTransformDepthImgToColorSensorEnabled()."]
250pub const ScFrameType_SC_TRANSFORM_DEPTH_IMG_TO_COLOR_SENSOR_FRAME: ScFrameType = 5;
251#[doc = " @brief Specifies the type of image frame."]
252pub type ScFrameType = ::std::os::raw::c_uint;
253#[doc = "!< Depth image pixel format, 16 bits per pixel in mm."]
254pub const ScPixelFormat_SC_PIXEL_FORMAT_DEPTH_MM16: ScPixelFormat = 0;
255#[doc = "!< Gray image pixel format, 8 bits per pixel."]
256pub const ScPixelFormat_SC_PIXEL_FORMAT_GRAY_8: ScPixelFormat = 2;
257#[doc = "!< By jpeg decompress, color image pixel format, 24 bits per pixel RGB format."]
258pub const ScPixelFormat_SC_PIXEL_FORMAT_RGB_888_JPEG: ScPixelFormat = 3;
259#[doc = "!< By jpeg decompress, color image pixel format, 24 bits per pixel BGR format."]
260pub const ScPixelFormat_SC_PIXEL_FORMAT_BGR_888_JPEG: ScPixelFormat = 4;
261#[doc = "!< Without compress, color image pixel format, 24 bits per pixel RGB format."]
262pub const ScPixelFormat_SC_PIXEL_FORMAT_RGB_888: ScPixelFormat = 5;
263#[doc = "!< Without compress, color image pixel format, 24 bits per pixel BGR format."]
264pub const ScPixelFormat_SC_PIXEL_FORMAT_BGR_888: ScPixelFormat = 6;
265#[doc = "!< Without compress, color image pixel format, 16 bits per pixel RGB format."]
266pub const ScPixelFormat_SC_PIXEL_FORMAT_RGB_565: ScPixelFormat = 7;
267#[doc = "!< Without compress, color image pixel format, 16 bits per pixel BGR format."]
268pub const ScPixelFormat_SC_PIXEL_FORMAT_BGR_565: ScPixelFormat = 8;
269#[doc = " @brief Specifies the image pixel format."]
270pub type ScPixelFormat = ::std::os::raw::c_uint;
271#[doc = "!< ToF camera."]
272pub const ScSensorType_SC_TOF_SENSOR: ScSensorType = 1;
273#[doc = "!< Color camera."]
274pub const ScSensorType_SC_COLOR_SENSOR: ScSensorType = 2;
275#[doc = " @brief Specifies the type of sensor."]
276pub type ScSensorType = ::std::os::raw::c_uint;
277#[doc = "!< The function completed successfully."]
278pub const ScStatus_SC_OK: ScStatus = 0;
279#[doc = "!< The device is limbo"]
280pub const ScStatus_SC_DEVICE_IS_LIMBO: ScStatus = -1;
281#[doc = "!< The input device index is invalid."]
282pub const ScStatus_SC_INVALID_DEVICE_INDEX: ScStatus = -2;
283#[doc = "!< The device structure pointer is null."]
284pub const ScStatus_SC_DEVICE_POINTER_IS_NULL: ScStatus = -3;
285#[doc = "!< The input frame type is invalid."]
286pub const ScStatus_SC_INVALID_FRAME_TYPE: ScStatus = -4;
287#[doc = "!< The output frame buffer is null."]
288pub const ScStatus_SC_FRAME_POINTER_IS_NULL: ScStatus = -5;
289#[doc = "!< Cannot get the value for the specified property."]
290pub const ScStatus_SC_NO_PROPERTY_VALUE_GET: ScStatus = -6;
291#[doc = "!< Cannot set the value for the specified property."]
292pub const ScStatus_SC_NO_PROPERTY_VALUE_SET: ScStatus = -7;
293#[doc = "!< The input property value buffer pointer is null."]
294pub const ScStatus_SC_PROPERTY_POINTER_IS_NULL: ScStatus = -8;
295#[doc = "!< The input property value buffer size is too small to store the specified property value."]
296pub const ScStatus_SC_PROPERTY_SIZE_NOT_ENOUGH: ScStatus = -9;
297#[doc = "!< The input depth range mode is invalid."]
298pub const ScStatus_SC_INVALID_DEPTH_RANGE: ScStatus = -10;
299#[doc = "!< Capture the next image frame time out."]
300pub const ScStatus_SC_GET_FRAME_READY_TIME_OUT: ScStatus = -11;
301#[doc = "!< An input pointer parameter is null."]
302pub const ScStatus_SC_INPUT_POINTER_IS_NULL: ScStatus = -12;
303#[doc = "!< The camera has not been opened."]
304pub const ScStatus_SC_CAMERA_NOT_OPENED: ScStatus = -13;
305#[doc = "!< The specified type of camera is invalid."]
306pub const ScStatus_SC_INVALID_CAMERA_TYPE: ScStatus = -14;
307#[doc = "!< One or more of the parameter values provided are invalid."]
308pub const ScStatus_SC_INVALID_PARAMS: ScStatus = -15;
309#[doc = "!< This feature is not supported in the current version."]
310pub const ScStatus_SC_CURRENT_VERSION_NOT_SUPPORT: ScStatus = -16;
311#[doc = "!< There is an error in the upgrade file."]
312pub const ScStatus_SC_UPGRADE_IMG_ERROR: ScStatus = -17;
313#[doc = "!< Upgrade file path length greater than 260."]
314pub const ScStatus_SC_UPGRADE_IMG_PATH_TOO_LONG: ScStatus = -18;
315#[doc = "!< scSetUpgradeStatusCallback is not called."]
316pub const ScStatus_SC_UPGRADE_CALLBACK_NOT_SET: ScStatus = -19;
317#[doc = "!< The current product does not support this operation."]
318pub const ScStatus_SC_PRODUCT_NOT_SUPPORT: ScStatus = -20;
319#[doc = "!< No product profile found."]
320pub const ScStatus_SC_NO_CONFIG_FOLDER: ScStatus = -21;
321#[doc = "!< WebServer Start/Restart error(IP or PORT 8080)."]
322pub const ScStatus_SC_WEB_SERVER_START_ERROR: ScStatus = -22;
323#[doc = "!< The time from frame ready to get frame is out of 1s."]
324pub const ScStatus_SC_GET_OVER_STAY_FRAME: ScStatus = -23;
325#[doc = "!< Create log directory error."]
326pub const ScStatus_SC_CREATE_LOG_DIR_ERROR: ScStatus = -24;
327#[doc = "!< Create log file error."]
328pub const ScStatus_SC_CREATE_LOG_FILE_ERROR: ScStatus = -25;
329#[doc = "!< There is no adapter connected."]
330pub const ScStatus_SC_NO_ADAPTER_CONNECTED: ScStatus = -100;
331#[doc = "!< The SDK has been Initialized."]
332pub const ScStatus_SC_REINITIALIZED: ScStatus = -101;
333#[doc = "!< The SDK has not been Initialized."]
334pub const ScStatus_SC_NO_INITIALIZED: ScStatus = -102;
335#[doc = "!< The camera has been opened."]
336pub const ScStatus_SC_CAMERA_OPENED: ScStatus = -103;
337#[doc = "!< Set/Get cmd control error."]
338pub const ScStatus_SC_CMD_ERROR: ScStatus = -104;
339#[doc = "!< Set cmd ok.but time out for the sync return."]
340pub const ScStatus_SC_CMD_SYNC_TIME_OUT: ScStatus = -105;
341#[doc = "!< IP is not in the same network segment."]
342pub const ScStatus_SC_IP_NOT_MATCH: ScStatus = -106;
343#[doc = "!< Please invoke scStopStream first to close the data stream."]
344pub const ScStatus_SC_NOT_STOP_STREAM: ScStatus = -107;
345#[doc = "!< Please invoke scStartStream first to get the data stream."]
346pub const ScStatus_SC_NOT_START_STREAM: ScStatus = -108;
347#[doc = "!< Please check whether the Drivers directory exists."]
348pub const ScStatus_SC_NOT_FIND_DRIVERS_FOLDER: ScStatus = -109;
349#[doc = "!< The camera is openin,by another Sc_OpenDeviceByXXX API."]
350pub const ScStatus_SC_CAMERA_OPENING: ScStatus = -110;
351#[doc = "!< The camera has been opened by another APP."]
352pub const ScStatus_SC_CAMERA_OPENED_BY_ANOTHER_APP: ScStatus = -111;
353#[doc = "!< Capture the next AI result time out."]
354pub const ScStatus_SC_GET_AI_RESULT_TIME_OUT: ScStatus = -112;
355#[doc = "!< The morph Al library is not exist or initialized failed."]
356pub const ScStatus_SC_MORPH_AI_LIB_ERROR: ScStatus = -113;
357#[doc = "!< The cpu affinity config file check failed"]
358pub const ScStatus_SC_CPU_AFFINITY_CHECK_FAILED: ScStatus = -114;
359#[doc = "!< An unknown error occurred."]
360pub const ScStatus_SC_OTHERS: ScStatus = -255;
361#[doc = " @brief Return status codes for all APIs.\n <code>SC_OK = 0</code> means the API successfully completed its operation.\n All other codes indicate a device, parameter, or API usage error."]
362pub type ScStatus = ::std::os::raw::c_int;
363#[doc = "!< Unknown device status and cannot try to open."]
364pub const ScConnectStatus_SC_LIMBO: ScConnectStatus = 0;
365#[doc = "!< Device connectable state and support open."]
366pub const ScConnectStatus_SC_CONNECTABLE: ScConnectStatus = 1;
367#[doc = "!< The device is connected and cannot be opened again."]
368pub const ScConnectStatus_SC_OPENED: ScConnectStatus = 2;
369pub type ScConnectStatus = ::std::os::raw::c_uint;
370#[doc = "!< Enter the active mode."]
371pub const ScWorkMode_SC_ACTIVE_MODE: ScWorkMode = 0;
372#[doc = "!< Enter the hardware salve mode, at this time need to connect\n!< the hardware trigger wire, provide hardware signal, to trigger the image."]
373pub const ScWorkMode_SC_HARDWARE_TRIGGER_MODE: ScWorkMode = 1;
374#[doc = "!< Enter the software salve mode, at this time need to invoke scSoftwareTriggerOnce, to trigger the image."]
375pub const ScWorkMode_SC_SOFTWARE_TRIGGER_MODE: ScWorkMode = 2;
376pub type ScWorkMode = ::std::os::raw::c_uint;
377#[doc = "!< Enter the auto exposure mode."]
378pub const ScExposureControlMode_SC_EXPOSURE_CONTROL_MODE_AUTO: ScExposureControlMode = 0;
379#[doc = "!< Enter the manual exposure mode."]
380pub const ScExposureControlMode_SC_EXPOSURE_CONTROL_MODE_MANUAL: ScExposureControlMode = 1;
381pub type ScExposureControlMode = ::std::os::raw::c_uint;
382pub type __u_char = ::std::os::raw::c_uchar;
383pub type __u_short = ::std::os::raw::c_ushort;
384pub type __u_int = ::std::os::raw::c_uint;
385pub type __u_long = ::std::os::raw::c_ulong;
386pub type __int8_t = ::std::os::raw::c_schar;
387pub type __uint8_t = ::std::os::raw::c_uchar;
388pub type __int16_t = ::std::os::raw::c_short;
389pub type __uint16_t = ::std::os::raw::c_ushort;
390pub type __int32_t = ::std::os::raw::c_int;
391pub type __uint32_t = ::std::os::raw::c_uint;
392pub type __int64_t = ::std::os::raw::c_long;
393pub type __uint64_t = ::std::os::raw::c_ulong;
394pub type __int_least8_t = __int8_t;
395pub type __uint_least8_t = __uint8_t;
396pub type __int_least16_t = __int16_t;
397pub type __uint_least16_t = __uint16_t;
398pub type __int_least32_t = __int32_t;
399pub type __uint_least32_t = __uint32_t;
400pub type __int_least64_t = __int64_t;
401pub type __uint_least64_t = __uint64_t;
402pub type __quad_t = ::std::os::raw::c_long;
403pub type __u_quad_t = ::std::os::raw::c_ulong;
404pub type __intmax_t = ::std::os::raw::c_long;
405pub type __uintmax_t = ::std::os::raw::c_ulong;
406pub type __dev_t = ::std::os::raw::c_ulong;
407pub type __uid_t = ::std::os::raw::c_uint;
408pub type __gid_t = ::std::os::raw::c_uint;
409pub type __ino_t = ::std::os::raw::c_ulong;
410pub type __ino64_t = ::std::os::raw::c_ulong;
411pub type __mode_t = ::std::os::raw::c_uint;
412pub type __nlink_t = ::std::os::raw::c_ulong;
413pub type __off_t = ::std::os::raw::c_long;
414pub type __off64_t = ::std::os::raw::c_long;
415pub type __pid_t = ::std::os::raw::c_int;
416#[repr(C)]
417#[derive(Debug, Default, Copy, Clone)]
418pub struct __fsid_t {
419 pub __val: [::std::os::raw::c_int; 2usize],
420}
421#[allow(clippy::unnecessary_operation, clippy::identity_op)]
422const _: () = {
423 ["Size of __fsid_t"][::std::mem::size_of::<__fsid_t>() - 8usize];
424 ["Alignment of __fsid_t"][::std::mem::align_of::<__fsid_t>() - 4usize];
425 ["Offset of field: __fsid_t::__val"][::std::mem::offset_of!(__fsid_t, __val) - 0usize];
426};
427pub type __clock_t = ::std::os::raw::c_long;
428pub type __rlim_t = ::std::os::raw::c_ulong;
429pub type __rlim64_t = ::std::os::raw::c_ulong;
430pub type __id_t = ::std::os::raw::c_uint;
431pub type __time_t = ::std::os::raw::c_long;
432pub type __useconds_t = ::std::os::raw::c_uint;
433pub type __suseconds_t = ::std::os::raw::c_long;
434pub type __suseconds64_t = ::std::os::raw::c_long;
435pub type __daddr_t = ::std::os::raw::c_int;
436pub type __key_t = ::std::os::raw::c_int;
437pub type __clockid_t = ::std::os::raw::c_int;
438pub type __timer_t = *mut ::std::os::raw::c_void;
439pub type __blksize_t = ::std::os::raw::c_long;
440pub type __blkcnt_t = ::std::os::raw::c_long;
441pub type __blkcnt64_t = ::std::os::raw::c_long;
442pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
443pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
444pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
445pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
446pub type __fsword_t = ::std::os::raw::c_long;
447pub type __ssize_t = ::std::os::raw::c_long;
448pub type __syscall_slong_t = ::std::os::raw::c_long;
449pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
450pub type __loff_t = __off64_t;
451pub type __caddr_t = *mut ::std::os::raw::c_char;
452pub type __intptr_t = ::std::os::raw::c_long;
453pub type __socklen_t = ::std::os::raw::c_uint;
454pub type __sig_atomic_t = ::std::os::raw::c_int;
455pub type int_least8_t = __int_least8_t;
456pub type int_least16_t = __int_least16_t;
457pub type int_least32_t = __int_least32_t;
458pub type int_least64_t = __int_least64_t;
459pub type uint_least8_t = __uint_least8_t;
460pub type uint_least16_t = __uint_least16_t;
461pub type uint_least32_t = __uint_least32_t;
462pub type uint_least64_t = __uint_least64_t;
463pub type int_fast8_t = ::std::os::raw::c_schar;
464pub type int_fast16_t = ::std::os::raw::c_long;
465pub type int_fast32_t = ::std::os::raw::c_long;
466pub type int_fast64_t = ::std::os::raw::c_long;
467pub type uint_fast8_t = ::std::os::raw::c_uchar;
468pub type uint_fast16_t = ::std::os::raw::c_ulong;
469pub type uint_fast32_t = ::std::os::raw::c_ulong;
470pub type uint_fast64_t = ::std::os::raw::c_ulong;
471pub type intmax_t = __intmax_t;
472pub type uintmax_t = __uintmax_t;
473pub type ScDepthPixel = u16;
474#[doc = " @brief Stores the x, y, and z components of a 3D vector."]
475#[repr(C, packed)]
476#[derive(Debug, Default, Copy, Clone)]
477pub struct ScVector3f {
478 #[doc = "!< The x components of the vector."]
479 pub x: f32,
480 #[doc = "!< The y components of the vector."]
481 pub y: f32,
482 #[doc = "!< The z components of the vector."]
483 pub z: f32,
484}
485#[allow(clippy::unnecessary_operation, clippy::identity_op)]
486const _: () = {
487 ["Size of ScVector3f"][::std::mem::size_of::<ScVector3f>() - 12usize];
488 ["Alignment of ScVector3f"][::std::mem::align_of::<ScVector3f>() - 1usize];
489 ["Offset of field: ScVector3f::x"][::std::mem::offset_of!(ScVector3f, x) - 0usize];
490 ["Offset of field: ScVector3f::y"][::std::mem::offset_of!(ScVector3f, y) - 4usize];
491 ["Offset of field: ScVector3f::z"][::std::mem::offset_of!(ScVector3f, z) - 8usize];
492};
493#[doc = " @brief Stores the x and y components of a 2D vector."]
494#[repr(C, packed)]
495#[derive(Debug, Default, Copy, Clone)]
496pub struct ScVector2u16 {
497 #[doc = "!< The x components of the vector."]
498 pub x: u16,
499 #[doc = "!< The y components of the vector."]
500 pub y: u16,
501}
502#[allow(clippy::unnecessary_operation, clippy::identity_op)]
503const _: () = {
504 ["Size of ScVector2u16"][::std::mem::size_of::<ScVector2u16>() - 4usize];
505 ["Alignment of ScVector2u16"][::std::mem::align_of::<ScVector2u16>() - 1usize];
506 ["Offset of field: ScVector2u16::x"][::std::mem::offset_of!(ScVector2u16, x) - 0usize];
507 ["Offset of field: ScVector2u16::y"][::std::mem::offset_of!(ScVector2u16, y) - 2usize];
508};
509#[doc = " @brief Contains depth information for a given pixel."]
510#[repr(C, packed)]
511#[derive(Debug, Default, Copy, Clone)]
512pub struct ScDepthVector3 {
513 #[doc = "!< The x coordinate of the pixel."]
514 pub depthX: i32,
515 #[doc = "!< The y coordinate of the pixel."]
516 pub depthY: i32,
517 #[doc = "!< The depth of the pixel, in millimeters."]
518 pub depthZ: ScDepthPixel,
519}
520#[allow(clippy::unnecessary_operation, clippy::identity_op)]
521const _: () = {
522 ["Size of ScDepthVector3"][::std::mem::size_of::<ScDepthVector3>() - 10usize];
523 ["Alignment of ScDepthVector3"][::std::mem::align_of::<ScDepthVector3>() - 1usize];
524 ["Offset of field: ScDepthVector3::depthX"]
525 [::std::mem::offset_of!(ScDepthVector3, depthX) - 0usize];
526 ["Offset of field: ScDepthVector3::depthY"]
527 [::std::mem::offset_of!(ScDepthVector3, depthY) - 4usize];
528 ["Offset of field: ScDepthVector3::depthZ"]
529 [::std::mem::offset_of!(ScDepthVector3, depthZ) - 8usize];
530};
531#[doc = " @brief image resolution."]
532#[repr(C, packed)]
533#[derive(Debug, Default, Copy, Clone)]
534pub struct ScResolution {
535 pub width: i32,
536 pub height: i32,
537}
538#[allow(clippy::unnecessary_operation, clippy::identity_op)]
539const _: () = {
540 ["Size of ScResolution"][::std::mem::size_of::<ScResolution>() - 8usize];
541 ["Alignment of ScResolution"][::std::mem::align_of::<ScResolution>() - 1usize];
542 ["Offset of field: ScResolution::width"][::std::mem::offset_of!(ScResolution, width) - 0usize];
543 ["Offset of field: ScResolution::height"]
544 [::std::mem::offset_of!(ScResolution, height) - 4usize];
545};
546#[doc = " @brief Supported resolutions."]
547#[repr(C, packed)]
548#[derive(Debug, Default, Copy, Clone)]
549pub struct ScResolutionList {
550 pub count: i32,
551 pub resolution: [ScResolution; 6usize],
552}
553#[allow(clippy::unnecessary_operation, clippy::identity_op)]
554const _: () = {
555 ["Size of ScResolutionList"][::std::mem::size_of::<ScResolutionList>() - 52usize];
556 ["Alignment of ScResolutionList"][::std::mem::align_of::<ScResolutionList>() - 1usize];
557 ["Offset of field: ScResolutionList::count"]
558 [::std::mem::offset_of!(ScResolutionList, count) - 0usize];
559 ["Offset of field: ScResolutionList::resolution"]
560 [::std::mem::offset_of!(ScResolutionList, resolution) - 4usize];
561};
562#[doc = " @brief Camera intrinsic parameters and distortion coefficients."]
563#[repr(C, packed)]
564#[derive(Debug, Default, Copy, Clone)]
565pub struct ScSensorIntrinsicParameters {
566 #[doc = "!< Focal length x (pixel)."]
567 pub fx: f64,
568 #[doc = "!< Focal length y (pixel)."]
569 pub fy: f64,
570 #[doc = "!< Principal point x (pixel)."]
571 pub cx: f64,
572 #[doc = "!< Principal point y (pixel)."]
573 pub cy: f64,
574 #[doc = "!< Radial distortion coefficient, 1st-order."]
575 pub k1: f64,
576 #[doc = "!< Radial distortion coefficient, 2nd-order."]
577 pub k2: f64,
578 #[doc = "!< Tangential distortion coefficient."]
579 pub p1: f64,
580 #[doc = "!< Tangential distortion coefficient."]
581 pub p2: f64,
582 #[doc = "!< Radial distortion coefficient, 3rd-order."]
583 pub k3: f64,
584 #[doc = "!< Radial distortion coefficient, 4st-order."]
585 pub k4: f64,
586 #[doc = "!< Radial distortion coefficient, 5nd-order."]
587 pub k5: f64,
588 #[doc = "!< Radial distortion coefficient, 6rd-order."]
589 pub k6: f64,
590}
591#[allow(clippy::unnecessary_operation, clippy::identity_op)]
592const _: () = {
593 ["Size of ScSensorIntrinsicParameters"]
594 [::std::mem::size_of::<ScSensorIntrinsicParameters>() - 96usize];
595 ["Alignment of ScSensorIntrinsicParameters"]
596 [::std::mem::align_of::<ScSensorIntrinsicParameters>() - 1usize];
597 ["Offset of field: ScSensorIntrinsicParameters::fx"]
598 [::std::mem::offset_of!(ScSensorIntrinsicParameters, fx) - 0usize];
599 ["Offset of field: ScSensorIntrinsicParameters::fy"]
600 [::std::mem::offset_of!(ScSensorIntrinsicParameters, fy) - 8usize];
601 ["Offset of field: ScSensorIntrinsicParameters::cx"]
602 [::std::mem::offset_of!(ScSensorIntrinsicParameters, cx) - 16usize];
603 ["Offset of field: ScSensorIntrinsicParameters::cy"]
604 [::std::mem::offset_of!(ScSensorIntrinsicParameters, cy) - 24usize];
605 ["Offset of field: ScSensorIntrinsicParameters::k1"]
606 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k1) - 32usize];
607 ["Offset of field: ScSensorIntrinsicParameters::k2"]
608 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k2) - 40usize];
609 ["Offset of field: ScSensorIntrinsicParameters::p1"]
610 [::std::mem::offset_of!(ScSensorIntrinsicParameters, p1) - 48usize];
611 ["Offset of field: ScSensorIntrinsicParameters::p2"]
612 [::std::mem::offset_of!(ScSensorIntrinsicParameters, p2) - 56usize];
613 ["Offset of field: ScSensorIntrinsicParameters::k3"]
614 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k3) - 64usize];
615 ["Offset of field: ScSensorIntrinsicParameters::k4"]
616 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k4) - 72usize];
617 ["Offset of field: ScSensorIntrinsicParameters::k5"]
618 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k5) - 80usize];
619 ["Offset of field: ScSensorIntrinsicParameters::k6"]
620 [::std::mem::offset_of!(ScSensorIntrinsicParameters, k6) - 88usize];
621};
622#[doc = " @brief Extrinsic parameters defines the physical relationship form tof sensor to color sensor."]
623#[repr(C, packed)]
624#[derive(Debug, Default, Copy, Clone)]
625pub struct ScSensorExtrinsicParameters {
626 #[doc = "!< Orientation stored as an array of 9 double representing a 3x3 rotation matrix."]
627 pub rotation: [f64; 9usize],
628 #[doc = "!< Location stored as an array of 3 double representing a 3-D translation vector."]
629 pub translation: [f64; 3usize],
630}
631#[allow(clippy::unnecessary_operation, clippy::identity_op)]
632const _: () = {
633 ["Size of ScSensorExtrinsicParameters"]
634 [::std::mem::size_of::<ScSensorExtrinsicParameters>() - 96usize];
635 ["Alignment of ScSensorExtrinsicParameters"]
636 [::std::mem::align_of::<ScSensorExtrinsicParameters>() - 1usize];
637 ["Offset of field: ScSensorExtrinsicParameters::rotation"]
638 [::std::mem::offset_of!(ScSensorExtrinsicParameters, rotation) - 0usize];
639 ["Offset of field: ScSensorExtrinsicParameters::translation"]
640 [::std::mem::offset_of!(ScSensorExtrinsicParameters, translation) - 72usize];
641};
642#[doc = " @brief Depth/IR/Color image frame data."]
643#[repr(C, packed)]
644#[derive(Debug, Copy, Clone)]
645pub struct ScFrame {
646 #[doc = "!< The index of the frame."]
647 pub frameIndex: u32,
648 #[doc = "!< The type of frame. See ::ScFrameType for more information."]
649 pub frameType: ScFrameType,
650 #[doc = "!< The pixel format used by a frame. See ::ScPixelFormat for more information."]
651 pub pixelFormat: ScPixelFormat,
652 #[doc = "!< A buffer containing the frame’s image data."]
653 pub pFrameData: *mut u8,
654 #[doc = "!< The length of pFrame, in bytes."]
655 pub dataLen: u32,
656 #[doc = "!< The width of the frame, in pixels."]
657 pub width: u16,
658 #[doc = "!< The height of the frame, in pixels."]
659 pub height: u16,
660 #[doc = "!< The timestamp(in milliseconds) when the frame be generated on the device. Frame processing and transfer time are not included."]
661 pub deviceTimestamp: u64,
662}
663#[allow(clippy::unnecessary_operation, clippy::identity_op)]
664const _: () = {
665 ["Size of ScFrame"][::std::mem::size_of::<ScFrame>() - 36usize];
666 ["Alignment of ScFrame"][::std::mem::align_of::<ScFrame>() - 1usize];
667 ["Offset of field: ScFrame::frameIndex"][::std::mem::offset_of!(ScFrame, frameIndex) - 0usize];
668 ["Offset of field: ScFrame::frameType"][::std::mem::offset_of!(ScFrame, frameType) - 4usize];
669 ["Offset of field: ScFrame::pixelFormat"]
670 [::std::mem::offset_of!(ScFrame, pixelFormat) - 8usize];
671 ["Offset of field: ScFrame::pFrameData"][::std::mem::offset_of!(ScFrame, pFrameData) - 12usize];
672 ["Offset of field: ScFrame::dataLen"][::std::mem::offset_of!(ScFrame, dataLen) - 20usize];
673 ["Offset of field: ScFrame::width"][::std::mem::offset_of!(ScFrame, width) - 24usize];
674 ["Offset of field: ScFrame::height"][::std::mem::offset_of!(ScFrame, height) - 26usize];
675 ["Offset of field: ScFrame::deviceTimestamp"]
676 [::std::mem::offset_of!(ScFrame, deviceTimestamp) - 28usize];
677};
678impl Default for ScFrame {
679 fn default() -> Self {
680 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
681 unsafe {
682 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
683 s.assume_init()
684 }
685 }
686}
687#[repr(C)]
688#[derive(Debug, Default, Copy, Clone)]
689pub struct ScFrameReady {
690 pub _bitfield_align_1: [u8; 0],
691 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
692}
693#[allow(clippy::unnecessary_operation, clippy::identity_op)]
694const _: () = {
695 ["Size of ScFrameReady"][::std::mem::size_of::<ScFrameReady>() - 4usize];
696 ["Alignment of ScFrameReady"][::std::mem::align_of::<ScFrameReady>() - 1usize];
697};
698impl ScFrameReady {
699 #[inline]
700 pub fn depth(&self) -> u32 {
701 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
702 }
703 #[inline]
704 pub fn set_depth(&mut self, val: u32) {
705 unsafe {
706 let val: u32 = ::std::mem::transmute(val);
707 self._bitfield_1.set(0usize, 1u8, val as u64)
708 }
709 }
710 #[inline]
711 pub unsafe fn depth_raw(this: *const Self) -> u32 {
712 unsafe {
713 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
714 ::std::ptr::addr_of!((*this)._bitfield_1),
715 0usize,
716 1u8,
717 ) as u32)
718 }
719 }
720 #[inline]
721 pub unsafe fn set_depth_raw(this: *mut Self, val: u32) {
722 unsafe {
723 let val: u32 = ::std::mem::transmute(val);
724 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
725 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
726 0usize,
727 1u8,
728 val as u64,
729 )
730 }
731 }
732 #[inline]
733 pub fn ir(&self) -> u32 {
734 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
735 }
736 #[inline]
737 pub fn set_ir(&mut self, val: u32) {
738 unsafe {
739 let val: u32 = ::std::mem::transmute(val);
740 self._bitfield_1.set(1usize, 1u8, val as u64)
741 }
742 }
743 #[inline]
744 pub unsafe fn ir_raw(this: *const Self) -> u32 {
745 unsafe {
746 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
747 ::std::ptr::addr_of!((*this)._bitfield_1),
748 1usize,
749 1u8,
750 ) as u32)
751 }
752 }
753 #[inline]
754 pub unsafe fn set_ir_raw(this: *mut Self, val: u32) {
755 unsafe {
756 let val: u32 = ::std::mem::transmute(val);
757 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
758 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
759 1usize,
760 1u8,
761 val as u64,
762 )
763 }
764 }
765 #[inline]
766 pub fn color(&self) -> u32 {
767 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
768 }
769 #[inline]
770 pub fn set_color(&mut self, val: u32) {
771 unsafe {
772 let val: u32 = ::std::mem::transmute(val);
773 self._bitfield_1.set(2usize, 1u8, val as u64)
774 }
775 }
776 #[inline]
777 pub unsafe fn color_raw(this: *const Self) -> u32 {
778 unsafe {
779 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
780 ::std::ptr::addr_of!((*this)._bitfield_1),
781 2usize,
782 1u8,
783 ) as u32)
784 }
785 }
786 #[inline]
787 pub unsafe fn set_color_raw(this: *mut Self, val: u32) {
788 unsafe {
789 let val: u32 = ::std::mem::transmute(val);
790 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
791 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
792 2usize,
793 1u8,
794 val as u64,
795 )
796 }
797 }
798 #[inline]
799 pub fn transformedColor(&self) -> u32 {
800 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
801 }
802 #[inline]
803 pub fn set_transformedColor(&mut self, val: u32) {
804 unsafe {
805 let val: u32 = ::std::mem::transmute(val);
806 self._bitfield_1.set(3usize, 1u8, val as u64)
807 }
808 }
809 #[inline]
810 pub unsafe fn transformedColor_raw(this: *const Self) -> u32 {
811 unsafe {
812 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
813 ::std::ptr::addr_of!((*this)._bitfield_1),
814 3usize,
815 1u8,
816 ) as u32)
817 }
818 }
819 #[inline]
820 pub unsafe fn set_transformedColor_raw(this: *mut Self, val: u32) {
821 unsafe {
822 let val: u32 = ::std::mem::transmute(val);
823 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
824 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
825 3usize,
826 1u8,
827 val as u64,
828 )
829 }
830 }
831 #[inline]
832 pub fn transformedDepth(&self) -> u32 {
833 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
834 }
835 #[inline]
836 pub fn set_transformedDepth(&mut self, val: u32) {
837 unsafe {
838 let val: u32 = ::std::mem::transmute(val);
839 self._bitfield_1.set(4usize, 1u8, val as u64)
840 }
841 }
842 #[inline]
843 pub unsafe fn transformedDepth_raw(this: *const Self) -> u32 {
844 unsafe {
845 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
846 ::std::ptr::addr_of!((*this)._bitfield_1),
847 4usize,
848 1u8,
849 ) as u32)
850 }
851 }
852 #[inline]
853 pub unsafe fn set_transformedDepth_raw(this: *mut Self, val: u32) {
854 unsafe {
855 let val: u32 = ::std::mem::transmute(val);
856 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
857 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
858 4usize,
859 1u8,
860 val as u64,
861 )
862 }
863 }
864 #[inline]
865 pub fn reserved(&self) -> u32 {
866 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) }
867 }
868 #[inline]
869 pub fn set_reserved(&mut self, val: u32) {
870 unsafe {
871 let val: u32 = ::std::mem::transmute(val);
872 self._bitfield_1.set(5usize, 27u8, val as u64)
873 }
874 }
875 #[inline]
876 pub unsafe fn reserved_raw(this: *const Self) -> u32 {
877 unsafe {
878 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
879 ::std::ptr::addr_of!((*this)._bitfield_1),
880 5usize,
881 27u8,
882 ) as u32)
883 }
884 }
885 #[inline]
886 pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
887 unsafe {
888 let val: u32 = ::std::mem::transmute(val);
889 <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
890 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
891 5usize,
892 27u8,
893 val as u64,
894 )
895 }
896 }
897 #[inline]
898 pub fn new_bitfield_1(
899 depth: u32,
900 ir: u32,
901 color: u32,
902 transformedColor: u32,
903 transformedDepth: u32,
904 reserved: u32,
905 ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
906 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
907 __bindgen_bitfield_unit.set(0usize, 1u8, {
908 let depth: u32 = unsafe { ::std::mem::transmute(depth) };
909 depth as u64
910 });
911 __bindgen_bitfield_unit.set(1usize, 1u8, {
912 let ir: u32 = unsafe { ::std::mem::transmute(ir) };
913 ir as u64
914 });
915 __bindgen_bitfield_unit.set(2usize, 1u8, {
916 let color: u32 = unsafe { ::std::mem::transmute(color) };
917 color as u64
918 });
919 __bindgen_bitfield_unit.set(3usize, 1u8, {
920 let transformedColor: u32 = unsafe { ::std::mem::transmute(transformedColor) };
921 transformedColor as u64
922 });
923 __bindgen_bitfield_unit.set(4usize, 1u8, {
924 let transformedDepth: u32 = unsafe { ::std::mem::transmute(transformedDepth) };
925 transformedDepth as u64
926 });
927 __bindgen_bitfield_unit.set(5usize, 27u8, {
928 let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
929 reserved as u64
930 });
931 __bindgen_bitfield_unit
932 }
933}
934pub type ScDeviceHandle = *mut ::std::os::raw::c_void;
935#[repr(C, packed)]
936#[derive(Debug, Copy, Clone)]
937pub struct ScDeviceInfo {
938 #[doc = "!< Product type name."]
939 pub productName: [::std::os::raw::c_char; 64usize],
940 #[doc = "!< Device serial number."]
941 pub serialNumber: [::std::os::raw::c_char; 64usize],
942 #[doc = "!< Device IP."]
943 pub ip: [::std::os::raw::c_char; 17usize],
944 #[doc = "!< Device status."]
945 pub status: ScConnectStatus,
946}
947#[allow(clippy::unnecessary_operation, clippy::identity_op)]
948const _: () = {
949 ["Size of ScDeviceInfo"][::std::mem::size_of::<ScDeviceInfo>() - 149usize];
950 ["Alignment of ScDeviceInfo"][::std::mem::align_of::<ScDeviceInfo>() - 1usize];
951 ["Offset of field: ScDeviceInfo::productName"]
952 [::std::mem::offset_of!(ScDeviceInfo, productName) - 0usize];
953 ["Offset of field: ScDeviceInfo::serialNumber"]
954 [::std::mem::offset_of!(ScDeviceInfo, serialNumber) - 64usize];
955 ["Offset of field: ScDeviceInfo::ip"][::std::mem::offset_of!(ScDeviceInfo, ip) - 128usize];
956 ["Offset of field: ScDeviceInfo::status"]
957 [::std::mem::offset_of!(ScDeviceInfo, status) - 145usize];
958};
959impl Default for ScDeviceInfo {
960 fn default() -> Self {
961 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
962 unsafe {
963 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
964 s.assume_init()
965 }
966 }
967}
968#[repr(C, packed)]
969#[derive(Debug, Default, Copy, Clone)]
970pub struct ScTimeFilterParams {
971 #[doc = "!< Range in [1, 6],The larger the value is, the more obvious the filtering effect is and The smaller the point cloud wobble."]
972 pub threshold: i32,
973 #[doc = "!< Whether to enable time filter."]
974 pub enable: bool,
975}
976#[allow(clippy::unnecessary_operation, clippy::identity_op)]
977const _: () = {
978 ["Size of ScTimeFilterParams"][::std::mem::size_of::<ScTimeFilterParams>() - 5usize];
979 ["Alignment of ScTimeFilterParams"][::std::mem::align_of::<ScTimeFilterParams>() - 1usize];
980 ["Offset of field: ScTimeFilterParams::threshold"]
981 [::std::mem::offset_of!(ScTimeFilterParams, threshold) - 0usize];
982 ["Offset of field: ScTimeFilterParams::enable"]
983 [::std::mem::offset_of!(ScTimeFilterParams, enable) - 4usize];
984};
985#[repr(C, packed)]
986#[derive(Debug, Default, Copy, Clone)]
987pub struct ScConfidenceFilterParams {
988 #[doc = "!< Range in [1, 100]. The larger the value is, the more obvious the filtering effect is and the more points are filtered out."]
989 pub threshold: i32,
990 #[doc = "!< Whether to enable confidence filter."]
991 pub enable: bool,
992}
993#[allow(clippy::unnecessary_operation, clippy::identity_op)]
994const _: () = {
995 ["Size of ScConfidenceFilterParams"]
996 [::std::mem::size_of::<ScConfidenceFilterParams>() - 5usize];
997 ["Alignment of ScConfidenceFilterParams"]
998 [::std::mem::align_of::<ScConfidenceFilterParams>() - 1usize];
999 ["Offset of field: ScConfidenceFilterParams::threshold"]
1000 [::std::mem::offset_of!(ScConfidenceFilterParams, threshold) - 0usize];
1001 ["Offset of field: ScConfidenceFilterParams::enable"]
1002 [::std::mem::offset_of!(ScConfidenceFilterParams, enable) - 4usize];
1003};
1004#[repr(C, packed)]
1005#[derive(Debug, Default, Copy, Clone)]
1006pub struct ScFlyingPixelFilterParams {
1007 #[doc = "!< Range in [1, 16]. The larger the value is, the more obvious the filtering effect is and the more points are filtered out."]
1008 pub threshold: i32,
1009 #[doc = "!< Whether to enable flying pixel filter."]
1010 pub enable: bool,
1011}
1012#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1013const _: () = {
1014 ["Size of ScFlyingPixelFilterParams"]
1015 [::std::mem::size_of::<ScFlyingPixelFilterParams>() - 5usize];
1016 ["Alignment of ScFlyingPixelFilterParams"]
1017 [::std::mem::align_of::<ScFlyingPixelFilterParams>() - 1usize];
1018 ["Offset of field: ScFlyingPixelFilterParams::threshold"]
1019 [::std::mem::offset_of!(ScFlyingPixelFilterParams, threshold) - 0usize];
1020 ["Offset of field: ScFlyingPixelFilterParams::enable"]
1021 [::std::mem::offset_of!(ScFlyingPixelFilterParams, enable) - 4usize];
1022};
1023#[repr(C, packed)]
1024#[derive(Debug, Default, Copy, Clone)]
1025pub struct ScIRGMMCorrectionParams {
1026 #[doc = "!< Range in [1, 100]. The larger the value is, the more obvious the correction effect."]
1027 pub threshold: i32,
1028 #[doc = "!< Whether to enable IRGMM correction."]
1029 pub enable: bool,
1030}
1031#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1032const _: () = {
1033 ["Size of ScIRGMMCorrectionParams"][::std::mem::size_of::<ScIRGMMCorrectionParams>() - 5usize];
1034 ["Alignment of ScIRGMMCorrectionParams"]
1035 [::std::mem::align_of::<ScIRGMMCorrectionParams>() - 1usize];
1036 ["Offset of field: ScIRGMMCorrectionParams::threshold"]
1037 [::std::mem::offset_of!(ScIRGMMCorrectionParams, threshold) - 0usize];
1038 ["Offset of field: ScIRGMMCorrectionParams::enable"]
1039 [::std::mem::offset_of!(ScIRGMMCorrectionParams, enable) - 4usize];
1040};
1041#[repr(C, packed)]
1042#[derive(Debug, Default, Copy, Clone)]
1043pub struct ScInputSignalParamsForHWTrigger {
1044 #[doc = "!< Range in [1,65535]. The width of input signal."]
1045 pub width: u16,
1046 #[doc = "!< Range in [34000,65535]. The interval of input signal."]
1047 pub interval: u16,
1048 #[doc = "!< Range in [0,1]. 0 for active low; 1 for active high."]
1049 pub polarity: u8,
1050}
1051#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1052const _: () = {
1053 ["Size of ScInputSignalParamsForHWTrigger"]
1054 [::std::mem::size_of::<ScInputSignalParamsForHWTrigger>() - 5usize];
1055 ["Alignment of ScInputSignalParamsForHWTrigger"]
1056 [::std::mem::align_of::<ScInputSignalParamsForHWTrigger>() - 1usize];
1057 ["Offset of field: ScInputSignalParamsForHWTrigger::width"]
1058 [::std::mem::offset_of!(ScInputSignalParamsForHWTrigger, width) - 0usize];
1059 ["Offset of field: ScInputSignalParamsForHWTrigger::interval"]
1060 [::std::mem::offset_of!(ScInputSignalParamsForHWTrigger, interval) - 2usize];
1061 ["Offset of field: ScInputSignalParamsForHWTrigger::polarity"]
1062 [::std::mem::offset_of!(ScInputSignalParamsForHWTrigger, polarity) - 4usize];
1063};
1064#[repr(C, packed)]
1065#[derive(Debug, Default, Copy, Clone)]
1066pub struct ScOutputSignalParams {
1067 #[doc = "!< Range in [1,65535]. The width of output signal."]
1068 pub width: u16,
1069 #[doc = "!< Range in [0,65535]. The delay time of output signal."]
1070 pub delay: u16,
1071 #[doc = "!< Range in [0,1]. 0 for active low; 1 for active high."]
1072 pub polarity: u8,
1073}
1074#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1075const _: () = {
1076 ["Size of ScOutputSignalParams"][::std::mem::size_of::<ScOutputSignalParams>() - 5usize];
1077 ["Alignment of ScOutputSignalParams"][::std::mem::align_of::<ScOutputSignalParams>() - 1usize];
1078 ["Offset of field: ScOutputSignalParams::width"]
1079 [::std::mem::offset_of!(ScOutputSignalParams, width) - 0usize];
1080 ["Offset of field: ScOutputSignalParams::delay"]
1081 [::std::mem::offset_of!(ScOutputSignalParams, delay) - 2usize];
1082 ["Offset of field: ScOutputSignalParams::polarity"]
1083 [::std::mem::offset_of!(ScOutputSignalParams, polarity) - 4usize];
1084};
1085#[repr(C)]
1086#[derive(Debug, Default, Copy, Clone)]
1087pub struct ScTimeSyncConfig {
1088 #[doc = "!< 0: disable, 1: NTP, 2: PTP, only NTP needs the ip."]
1089 pub flag: u8,
1090 #[doc = "!< just for NTP."]
1091 pub ip: [u8; 16usize],
1092}
1093#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1094const _: () = {
1095 ["Size of ScTimeSyncConfig"][::std::mem::size_of::<ScTimeSyncConfig>() - 17usize];
1096 ["Alignment of ScTimeSyncConfig"][::std::mem::align_of::<ScTimeSyncConfig>() - 1usize];
1097 ["Offset of field: ScTimeSyncConfig::flag"]
1098 [::std::mem::offset_of!(ScTimeSyncConfig, flag) - 0usize];
1099 ["Offset of field: ScTimeSyncConfig::ip"]
1100 [::std::mem::offset_of!(ScTimeSyncConfig, ip) - 1usize];
1101};
1102#[doc = " @brief Hot plug status callback function.\n @param[out] pInfo Return the info of the Device, See ::ScDeviceInfo.\n @param[out] state Hot plug status. 0:device added , 1:device removed.\n @param[out] pUserData Pointer to user data, which can be null."]
1103pub type PtrHotPlugStatusCallback = ::std::option::Option<
1104 unsafe extern "C" fn(
1105 pInfo: *const ScDeviceInfo,
1106 state: ::std::os::raw::c_int,
1107 pUserData: *mut ::std::os::raw::c_void,
1108 ),
1109>;
1110#[doc = " @brief Upgrade status callback function.\n @param[out] status Returns the upgrade step status.\n @param[out] params Params of upgrade step status , -1:upgrade fail , 0:upgrade Normal, 1-100:upgrade progress.\n @param[out] pUserData Pointer to user data, which can be null."]
1111pub type PtrUpgradeStatusCallback = ::std::option::Option<
1112 unsafe extern "C" fn(
1113 status: ::std::os::raw::c_int,
1114 params: ::std::os::raw::c_int,
1115 pUserData: *mut ::std::os::raw::c_void,
1116 ),
1117>;
1118unsafe extern "C" {
1119 #[doc = " @brief Initializes the API on the device. This function must be invoked before any other Scepter APIs.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1120 pub fn scInitialize() -> ScStatus;
1121}
1122unsafe extern "C" {
1123 #[doc = " @brief Shuts down the API on the device and clears all resources allocated by the API. After\n invoking this function, no other Scepter APIs can be invoked.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1124 pub fn scShutdown() -> ScStatus;
1125}
1126unsafe extern "C" {
1127 #[doc = " @brief Get the version of SDK.\n @return Returns sdk version."]
1128 pub fn scGetSDKVersion(pSDKVersion: *mut ::std::os::raw::c_char, length: i32) -> ScStatus;
1129}
1130unsafe extern "C" {
1131 #[doc = " @brief Returns the number of camera devices currently connected.\n @param[out] pDeviceCount Pointer to a 32-bit integer variable in which to return the device count.\n @param[in] scanTime Scans time, the unit is millisecond.\nThis function scans devices for scanTime(ms) and then returns the count of devices.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1132 pub fn scGetDeviceCount(pDeviceCount: *mut u32, scanTime: u32) -> ScStatus;
1133}
1134unsafe extern "C" {
1135 #[doc = " @brief Returns the info lists of the deviceCount camera devices.\n @param[in] deviceCount The number of camera devices.\n @param[out] pDevicesInfoList Pointer to a buffer in which to store the devices list infos.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1136 pub fn scGetDeviceInfoList(deviceCount: u32, pDevicesInfoList: *mut ScDeviceInfo) -> ScStatus;
1137}
1138unsafe extern "C" {
1139 #[doc = " @brief Opens the device specified by <code>serialNumber</code>. The device must be subsequently closed using scCloseDevice().\n @param[in] pSN The uri of the device. See ::ScDeviceInfo for more information.\n @param[out] pDevice The handle of the device on which to open.\n @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1140 pub fn scOpenDeviceBySN(
1141 pSN: *const ::std::os::raw::c_char,
1142 pDevice: *mut ScDeviceHandle,
1143 ) -> ScStatus;
1144}
1145unsafe extern "C" {
1146 #[doc = " @brief Opens the device specified by <code>ip</code>. The device must be subsequently closed using scCloseDevice().\n @param[in] pIP The ip of the device. See ::ScDeviceInfo for more information.\n @param[out] pDevice The handle of the device on which to open.\n @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1147 pub fn scOpenDeviceByIP(
1148 pIP: *const ::std::os::raw::c_char,
1149 pDevice: *mut ScDeviceHandle,
1150 ) -> ScStatus;
1151}
1152unsafe extern "C" {
1153 #[doc = " @brief Closes the device specified by <code>device</code> that was opened using scOpenDevice.\n @param[in] pDevice The handle of the device to close.\n @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1154 pub fn scCloseDevice(pDevice: *mut ScDeviceHandle) -> ScStatus;
1155}
1156unsafe extern "C" {
1157 #[doc = " @brief Starts capturing the image stream indicated by <code>device</code>. Invoke scStopStream() to stop capturing the image stream.\n @param[in] device The handle of the device on which to start capturing the image stream.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1158 pub fn scStartStream(device: ScDeviceHandle) -> ScStatus;
1159}
1160unsafe extern "C" {
1161 #[doc = " @brief Stops capturing the image stream on the device specified by <code>device</code>. that was started using scStartStream.\n @param[in] device The handle of the device on which to stop capturing the image stream.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1162 pub fn scStopStream(device: ScDeviceHandle) -> ScStatus;
1163}
1164unsafe extern "C" {
1165 #[doc = " @brief Captures the next image frame from the device specified by <code>device</code>. This API must be invoked before capturing frame data using scGetFrame().\n @param[in] device The handle of the device on which to read the next frame.\n @param[in] waitTime The unit is millisecond, the value is in the range (0,65535).\n You can change the value according to the frame rate. For example,the frame rate is 30, so the theoretical waittime interval is 33ms,\n but if set the time value is 20ms, it means the maximum wait time is 20 ms when capturing next frame, so when call the scGetFrameReady,\n it may return SC_GET_FRAME_READY_TIME_OUT(-11).\n So the recommended value is 2 * 1000/ FPS.\n @param[out] pFrameReady Pointer to a buffer in which to store the signal on which image is ready to be get.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1166 pub fn scGetFrameReady(
1167 device: ScDeviceHandle,
1168 waitTime: u16,
1169 pFrameReady: *mut ScFrameReady,
1170 ) -> ScStatus;
1171}
1172unsafe extern "C" {
1173 #[doc = " @brief Returns the image data for the current frame from the device specified by <code>device</code>.\n Before invoking this API, invoke scGetFrameReady() to capture one image frame from the device.\n @param[in] device The handle of the device to capture an image frame from.\n @param[in] frameType The image frame type.\n @param[out] pScFrame Pointer to a buffer in which to store the returned image data.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1174 pub fn scGetFrame(
1175 device: ScDeviceHandle,
1176 frameType: ScFrameType,
1177 pScFrame: *mut ScFrame,
1178 ) -> ScStatus;
1179}
1180unsafe extern "C" {
1181 #[doc = " @brief Get the depth range in the current working mode of the device.\n @param[in] device The handle of the device.\n @param[out] minValue The min value of the depth\n @param[out] maxValue The ax value of the depth\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1182 pub fn scGetDepthRangeValue(
1183 device: ScDeviceHandle,
1184 minValue: *mut i16,
1185 maxValue: *mut i16,
1186 ) -> ScStatus;
1187}
1188unsafe extern "C" {
1189 #[doc = " @brief Returns the internal intrinsic and distortion coefficient parameters from the device specified by <code>device</code>.\n @param[in] device The handle of the device from which to get the internal parameters.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[out] pSensorIntrinsicParameters Pointer to a ScSensorIntrinsicParameters variable in which to store the parameter values.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1190 pub fn scGetSensorIntrinsicParameters(
1191 device: ScDeviceHandle,
1192 sensorType: ScSensorType,
1193 pSensorIntrinsicParameters: *mut ScSensorIntrinsicParameters,
1194 ) -> ScStatus;
1195}
1196unsafe extern "C" {
1197 #[doc = " @brief Returns the camera rotation and translation coefficient parameters from the device specified by <code>device</code>.\n @param[in] device The handle of the device from which to get the extrinsic parameters.\n @param[out] pSensorExtrinsicParameters Pointer to a ::ScSensorExtrinsicParameters variable in which to store the parameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1198 pub fn scGetSensorExtrinsicParameters(
1199 device: ScDeviceHandle,
1200 pSensorExtrinsicParameters: *mut ScSensorExtrinsicParameters,
1201 ) -> ScStatus;
1202}
1203unsafe extern "C" {
1204 #[doc = " @brief Get the firmware version number.\n @param[in] device The handle of the device on which to set the pulse count.\n @param[out] pFirmwareVersion Pointer to a variable in which to store the returned fw value.\n @param[in] length The maximum length is 64 bytes.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1205 pub fn scGetFirmwareVersion(
1206 device: ScDeviceHandle,
1207 pFirmwareVersion: *mut ::std::os::raw::c_char,
1208 length: i32,
1209 ) -> ScStatus;
1210}
1211unsafe extern "C" {
1212 #[doc = " @brief Get the MAC from the device specified by <code>device</code>.\n @param[in] device The handle of the device.\n @param[out] pMACAddress Pointer to a buffer in which to store the device MAC address. the buffer default size is 18, and the last buffer set '\\0'.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1213 pub fn scGetDeviceMACAddress(
1214 device: ScDeviceHandle,
1215 pMACAddress: *mut ::std::os::raw::c_char,
1216 ) -> ScStatus;
1217}
1218unsafe extern "C" {
1219 #[doc = " @brief Enables or disables DHCP. Default disabled\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1220 pub fn scSetDeviceDHCPEnabled(device: ScDeviceHandle, bEnabled: u8) -> ScStatus;
1221}
1222unsafe extern "C" {
1223 #[doc = " @brief Returns the Boolean value of whether the device is in DHCP or not.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1224 pub fn scGetDeviceDHCPEnabled(device: ScDeviceHandle, bEnabled: *mut u8) -> ScStatus;
1225}
1226unsafe extern "C" {
1227 #[doc = " @brief Set the IP address of the device in non-DHCP mode. The call takes effect after the device is restarted.\n @param[in] device The handle of the device.\n @param[in] ipAddr Pointer to a buffer in which to store the device IP address. the buffer default size is 16, and the last buffer set '\\0'.\n @param[in] length The length of the buffer.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1228 pub fn scSetDeviceIPAddr(
1229 device: ScDeviceHandle,
1230 ipAddr: *const ::std::os::raw::c_char,
1231 length: i32,
1232 ) -> ScStatus;
1233}
1234unsafe extern "C" {
1235 #[doc = " @brief Get the IP address of the device in non-DHCP mode.\n @param[in] device The handle of the device.\n @param[out] ipAddr Pointer to a buffer in which to store the device IP address. the buffer default size is 16, and the last buffer set '\\0'.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1236 pub fn scGetDeviceIPAddr(
1237 device: ScDeviceHandle,
1238 ipAddr: *mut ::std::os::raw::c_char,
1239 ) -> ScStatus;
1240}
1241unsafe extern "C" {
1242 #[doc = " @brief Set the subnet mask of the device in non-DHCP mode. The call takes effect after the device is restarted.\n @param[in] device The handle of the device.\n @param[in] pMask Pointer to a buffer in which to store the subnet mask address. the buffer default size is 16, and the last buffer set '\\0'.\n @param[in] length The length of the buffer.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1243 pub fn scSetDeviceSubnetMask(
1244 device: ScDeviceHandle,
1245 pMask: *const ::std::os::raw::c_char,
1246 length: i32,
1247 ) -> ScStatus;
1248}
1249unsafe extern "C" {
1250 #[doc = " @brief Get the subnet mask of the device in non-DHCP mode.\n @param[in] device The handle of the device.\n @param[out] pMask Pointer to a buffer in which to store the device subnet mask address. the buffer default size is 16, and the last buffer set '\\0'.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1251 pub fn scGetDeviceSubnetMask(
1252 device: ScDeviceHandle,
1253 pMask: *mut ::std::os::raw::c_char,
1254 ) -> ScStatus;
1255}
1256unsafe extern "C" {
1257 #[doc = " @brief Set the parameters for time sync, such as enable the NTP/PTP\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[in] params The parameters defined by ::ScTimeSyncConfig.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1258 pub fn scSetRealTimeSyncConfig(device: ScDeviceHandle, params: ScTimeSyncConfig) -> ScStatus;
1259}
1260unsafe extern "C" {
1261 #[doc = " @brief Get the parameters for time sync,such as the status of the NTP/PTP\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] pParams Pointer to a variable in which to store the returned value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1262 pub fn scGetRealTimeSyncConfig(
1263 device: ScDeviceHandle,
1264 pParams: *mut ScTimeSyncConfig,
1265 ) -> ScStatus;
1266}
1267unsafe extern "C" {
1268 #[doc = " @brief Set the ToF frame rate.The interface takes a long time, about 500 ms.\n @param[in] device The handle of the device on which to set the framerate.\n @param[in] value The rate value. Different products have different maximum values. Please refer to the product specification.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1269 pub fn scSetFrameRate(device: ScDeviceHandle, value: i32) -> ScStatus;
1270}
1271unsafe extern "C" {
1272 #[doc = " @brief Get the ToF frame rate.\n @param[in] device The handle of the device on which to get the framerate.\n @param[out] pValue The rate value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1273 pub fn scGetFrameRate(device: ScDeviceHandle, pValue: *mut i32) -> ScStatus;
1274}
1275unsafe extern "C" {
1276 #[doc = " @brief Set the working mode of the camera.\n @param[in] device The handle of the device.\n @param[in] mode The work mode of camera. For ActiveMode, set the Time filter default true, for SlaveMode, set the Time filter default false.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1277 pub fn scSetWorkMode(device: ScDeviceHandle, mode: ScWorkMode) -> ScStatus;
1278}
1279unsafe extern "C" {
1280 #[doc = " @brief Get the working mode of the camera.\n @param[in] device The handle of the device.\n @param[out] pMode The work mode of camera.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1281 pub fn scGetWorkMode(device: ScDeviceHandle, pMode: *mut ScWorkMode) -> ScStatus;
1282}
1283unsafe extern "C" {
1284 #[doc = " @brief Set the count of frame in SC_SOFTWARE_TRIGGER_MODE.\n\t\t\t\t The more frames there are, the better frame's quality after algorithm processing\n @param[in] device The handle of the device on which to set the parameter\n @param[in] frameCount\t The count of frame, in range [1,10].\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1285 pub fn scSetSoftwareTriggerParameter(device: ScDeviceHandle, frameCount: u8) -> ScStatus;
1286}
1287unsafe extern "C" {
1288 #[doc = " @brief Get the count of framer in SC_SOFTWARE_TRIGGER_MODE.\n @param[in] device The handle of the device from which to get the parameter\n @param[out] pframeCount Pointer to a variable in which to store the count of frame, in range [1,10].\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1289 pub fn scGetSoftwareTriggerParameter(device: ScDeviceHandle, pframeCount: *mut u8) -> ScStatus;
1290}
1291unsafe extern "C" {
1292 #[doc = " @brief Get a frame in SC_SOFTWARE_TRIGGER_MODE.\n Call the scSetSoftwareTriggerParameter API to improve the quality of depth frame.\n @param[in] device The handle of the device.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1293 pub fn scSoftwareTriggerOnce(device: ScDeviceHandle) -> ScStatus;
1294}
1295unsafe extern "C" {
1296 #[doc = " @brief Set the input signal parameters for Hardware Trigger.\n @param[in] device The handle of the device\n @param[in] params Pointer to a variable in which to store the parameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1297 pub fn scSetInputSignalParamsForHWTrigger(
1298 device: ScDeviceHandle,
1299 params: ScInputSignalParamsForHWTrigger,
1300 ) -> ScStatus;
1301}
1302unsafe extern "C" {
1303 #[doc = " @brief Get the Input signal parameters for Hardware Trigger.\n @param[in] device The handle of the device\n @param[out] pParams Pointer to a variable in which to store the returned value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1304 pub fn scGetInputSignalParamsForHWTrigger(
1305 device: ScDeviceHandle,
1306 pParams: *mut ScInputSignalParamsForHWTrigger,
1307 ) -> ScStatus;
1308}
1309unsafe extern "C" {
1310 #[doc = " @brief Set the device GMM gain on a device.\n @param[in] device The handle of the device on which to set the GMM gain.\n @param[in] gmmgain The value of IRGMM Gain. Different products have different maximum value. Please refer to the product specification.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1311 pub fn scSetIRGMMGain(device: ScDeviceHandle, gmmgain: u8) -> ScStatus;
1312}
1313unsafe extern "C" {
1314 #[doc = " @brief Returns the the device's GMM gain.\n @param[in] device The handle of the device from which to get the GMM gain.\n @param[out] pGmmgain Pointer to a variable in which to store the returned GMM gain.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1315 pub fn scGetIRGMMGain(device: ScDeviceHandle, pGmmgain: *mut u8) -> ScStatus;
1316}
1317unsafe extern "C" {
1318 #[doc = " @brief Set the device IR GMM Correction on a device.\n @param[in] device The handle of the device.\n @param[in] params The value of IR GMM Correction.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1319 pub fn scSetIRGMMCorrection(
1320 device: ScDeviceHandle,
1321 params: ScIRGMMCorrectionParams,
1322 ) -> ScStatus;
1323}
1324unsafe extern "C" {
1325 #[doc = " @brief Return the device IR GMM Correction on a device.\n @param[in] device The handle of the device.\n @param[out] params The value of IR GMM Correction.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1326 pub fn scGetIRGMMCorrection(
1327 device: ScDeviceHandle,
1328 pParams: *mut ScIRGMMCorrectionParams,
1329 ) -> ScStatus;
1330}
1331unsafe extern "C" {
1332 #[doc = " @brief Set the color image pixel format on the device specified by <code>device</code>. Currently only RGB and BGR formats are supported.\n @param[in] device The handle of the device to set the pixel format.\n @param[in] pixelFormat The color pixel format to use. Pass in one of the values defined by ::ScPixelFormat. Others cameras support only\n <code>SC_PIXEL_FORMAT_RGB_888_JPEG</code> and <code>SC_PIXEL_FORMAT_BGR_888_JPEG</code>.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1333 pub fn scSetColorPixelFormat(device: ScDeviceHandle, pixelFormat: ScPixelFormat) -> ScStatus;
1334}
1335unsafe extern "C" {
1336 #[doc = " @brief Set the color Gain with the exposure mode of Color sensor in SC_EXPOSURE_CONTROL_MODE_MANUAL.\n @param[in] device The handle of the device.\n @param[in] params The value of color Gain.Different products have different maximum value. Please refer to the product specification.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1337 pub fn scSetColorGain(device: ScDeviceHandle, params: f32) -> ScStatus;
1338}
1339unsafe extern "C" {
1340 #[doc = " @brief Get the color Gain.\n @param[in] device The handle of the device.\n @param[out] params The value of color Gain.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1341 pub fn scGetColorGain(device: ScDeviceHandle, pParams: *mut f32) -> ScStatus;
1342}
1343unsafe extern "C" {
1344 #[doc = " @brief Get a list of image resolutions supported by Sensor\n @param[in] device The handle of the device.\n @param[in] type The sensor type\n @param[out] pList List of supported resolutions\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1345 pub fn scGetSupportedResolutionList(
1346 device: ScDeviceHandle,
1347 type_: ScSensorType,
1348 pList: *mut ScResolutionList,
1349 ) -> ScStatus;
1350}
1351unsafe extern "C" {
1352 #[doc = " @brief Set the color frame Resolution.\n @param[in] device The handle of the device.\n @param[in] w The width of color image\n @param[in] h The height of color image\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1353 pub fn scSetColorResolution(device: ScDeviceHandle, w: i32, h: i32) -> ScStatus;
1354}
1355unsafe extern "C" {
1356 #[doc = " @brief Returns the the color frame Resolution.\n @param[in] device The handle of the device.\n @param[out] pW The width of color image\n @param[out] pH The height of color image\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1357 pub fn scGetColorResolution(device: ScDeviceHandle, pW: *mut i32, pH: *mut i32) -> ScStatus;
1358}
1359unsafe extern "C" {
1360 #[doc = " @brief Set the exposure mode of sensor.\n @param[in] device The handle of the device on which to set the exposure control mode.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[in] exposureType The exposure control mode.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1361 pub fn scSetExposureControlMode(
1362 device: ScDeviceHandle,
1363 sensorType: ScSensorType,
1364 controlMode: ScExposureControlMode,
1365 ) -> ScStatus;
1366}
1367unsafe extern "C" {
1368 #[doc = " @brief Get the exposure mode of sensor.\n @param[in] device The handle of the device on which to get the exposure control mode.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[out] pControlMode The exposure control mode.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1369 pub fn scGetExposureControlMode(
1370 device: ScDeviceHandle,
1371 sensorType: ScSensorType,
1372 pControlMode: *mut ScExposureControlMode,
1373 ) -> ScStatus;
1374}
1375unsafe extern "C" {
1376 #[doc = " @brief Set the exposure time of sensor.\n @param[in] device The handle of the device on which to set the exposure time in microseconds.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1377 pub fn scSetExposureTime(
1378 device: ScDeviceHandle,
1379 sensorType: ScSensorType,
1380 exposureTime: i32,
1381 ) -> ScStatus;
1382}
1383unsafe extern "C" {
1384 #[doc = " @brief Get the exposure time of sensor.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[out] pExposureTime The exposure time.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1385 pub fn scGetExposureTime(
1386 device: ScDeviceHandle,
1387 sensorType: ScSensorType,
1388 pExposureTime: *mut i32,
1389 ) -> ScStatus;
1390}
1391unsafe extern "C" {
1392 #[doc = " @brief Set the maximum exposure time of color sensor in automatic mode. The interface is used in automatic mode.\n @param[in] device The handle of the device on which to set the exposure time in microseconds.\n @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1393 pub fn scSetColorAECMaxExposureTime(device: ScDeviceHandle, exposureTime: i32) -> ScStatus;
1394}
1395unsafe extern "C" {
1396 #[doc = " @brief Get the maximum exposure time of color sensor in automatic mode. The interface is used in automatic mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[out] pExposureTime The exposure time.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1397 pub fn scGetColorAECMaxExposureTime(
1398 device: ScDeviceHandle,
1399 pExposureTime: *mut i32,
1400 ) -> ScStatus;
1401}
1402unsafe extern "C" {
1403 #[doc = " @brief Get the maximum exposure time of sensor.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.\n @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1404 pub fn scGetMaxExposureTime(
1405 device: ScDeviceHandle,
1406 sensorType: ScSensorType,
1407 pMaxExposureTime: *mut i32,
1408 ) -> ScStatus;
1409}
1410unsafe extern "C" {
1411 #[doc = " @brief Enables or disables the HDR Mode of the ToF sensor with SC_EXPOSURE_CONTROL_MODE_MANUAL. Default enabled,\n so if you want switch to the SC_EXPOSURE_CONTROL_MODE_AUTO, set HDR Mode disable firstly.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1412 pub fn scSetHDRModeEnabled(device: ScDeviceHandle, bEnabled: u8) -> ScStatus;
1413}
1414unsafe extern "C" {
1415 #[doc = " @brief Returns the Boolean value of whether the HDR Mode of ToF sensor feature is enabled or disabled.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1416 pub fn scGetHDRModeEnabled(device: ScDeviceHandle, bEnabled: *mut u8) -> ScStatus;
1417}
1418unsafe extern "C" {
1419 #[doc = " @brief Get the count of frame in HDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[out] pCount The frame count.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1420 pub fn scGetFrameCountOfHDRMode(device: ScDeviceHandle, pCount: *mut i32) -> ScStatus;
1421}
1422unsafe extern "C" {
1423 #[doc = " @brief Set the exposure time of depth sensor with the frameIndex in HDR mode.\n @param[in] device The handle of the device on which to set the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).\n @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1424 pub fn scSetExposureTimeOfHDR(
1425 device: ScDeviceHandle,
1426 frameIndex: u8,
1427 exposureTime: i32,
1428 ) -> ScStatus;
1429}
1430unsafe extern "C" {
1431 #[doc = " @brief Get the exposure time of depth sensor with the frameIndex in HDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).\n @param[out] pExposureTime The exposure time.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1432 pub fn scGetExposureTimeOfHDR(
1433 device: ScDeviceHandle,
1434 frameIndex: u8,
1435 pExposureTime: *mut i32,
1436 ) -> ScStatus;
1437}
1438unsafe extern "C" {
1439 #[doc = " @brief Get the maximum exposure time of depth sensor with the frameIndex in HDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).\n @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1440 pub fn scGetMaxExposureTimeOfHDR(
1441 device: ScDeviceHandle,
1442 frameIndex: u8,
1443 pMaxExposureTime: *mut i32,
1444 ) -> ScStatus;
1445}
1446unsafe extern "C" {
1447 #[doc = " @brief Enables or disables the WDR Mode of the ToF sensor. Default enabled\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1448 pub fn scSetWDRModeEnabled(device: ScDeviceHandle, bEnabled: u8) -> ScStatus;
1449}
1450unsafe extern "C" {
1451 #[doc = " @brief Returns the Boolean value of whether the WDRMode of ToF sensor feature is enabled or disabled.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1452 pub fn scGetWDRModeEnabled(device: ScDeviceHandle, bEnabled: *mut u8) -> ScStatus;
1453}
1454unsafe extern "C" {
1455 #[doc = " @brief Get the count of frame in WDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[out] pCount The frame count.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1456 pub fn scGetFrameCountOfWDRMode(device: ScDeviceHandle, pCount: *mut i32) -> ScStatus;
1457}
1458unsafe extern "C" {
1459 #[doc = " @brief Set the exposure time of depth sensor with the frameIndex in WDR mode.\n @param[in] device The handle of the device on which to set the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).\n @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1460 pub fn scSetExposureTimeOfWDR(
1461 device: ScDeviceHandle,
1462 frameIndex: u8,
1463 exposureTime: i32,
1464 ) -> ScStatus;
1465}
1466unsafe extern "C" {
1467 #[doc = " @brief Get the exposure time of depth sensor with the frameIndex in WDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).\n @param[out] pExposureTime The exposure time.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1468 pub fn scGetExposureTimeOfWDR(
1469 device: ScDeviceHandle,
1470 frameIndex: u8,
1471 pExposureTime: *mut i32,
1472 ) -> ScStatus;
1473}
1474unsafe extern "C" {
1475 #[doc = " @brief Get the maximum exposure time of depth sensor with the frameIndex in WDR mode.\n @param[in] device The handle of the device on which to get the exposure time in microseconds.\n @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).\n @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1476 pub fn scGetMaxExposureTimeOfWDR(
1477 device: ScDeviceHandle,
1478 frameIndex: u8,
1479 pMaxExposureTime: *mut i32,
1480 ) -> ScStatus;
1481}
1482unsafe extern "C" {
1483 #[doc = " @brief Set the parameters of the Time filter.\n @param[in] device The handle of the device\n @param[in] params Pointer to a variable in which to store the parameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1484 pub fn scSetTimeFilterParams(device: ScDeviceHandle, params: ScTimeFilterParams) -> ScStatus;
1485}
1486unsafe extern "C" {
1487 #[doc = " @brief Get the parameters of the Time Filter feature.\n @param[in] device The handle of the device\n @param[out] pParams Pointer to a variable in which to store the returned value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1488 pub fn scGetTimeFilterParams(
1489 device: ScDeviceHandle,
1490 pParams: *mut ScTimeFilterParams,
1491 ) -> ScStatus;
1492}
1493unsafe extern "C" {
1494 #[doc = " @brief Set the parameters of the Confidence filter.\n @param[in] device The handle of the device\n @param[in] params Pointer to a variable in which to store the parameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1495 pub fn scSetConfidenceFilterParams(
1496 device: ScDeviceHandle,
1497 params: ScConfidenceFilterParams,
1498 ) -> ScStatus;
1499}
1500unsafe extern "C" {
1501 #[doc = " @brief Get the parameters of the ConfidenceFilter feature.\n @param[in] device The handle of the device\n @param[out] pParams Pointer to a variable in which to store the returned value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1502 pub fn scGetConfidenceFilterParams(
1503 device: ScDeviceHandle,
1504 pParams: *mut ScConfidenceFilterParams,
1505 ) -> ScStatus;
1506}
1507unsafe extern "C" {
1508 #[doc = " @brief Set the parameters of the FlyingPixel filter.\n @param[in] device The handle of the device.\n @param[in] params Pointer to a variable in which to store the parameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1509 pub fn scSetFlyingPixelFilterParams(
1510 device: ScDeviceHandle,
1511 params: ScFlyingPixelFilterParams,
1512 ) -> ScStatus;
1513}
1514unsafe extern "C" {
1515 #[doc = " @brief Get the parameters of the FlyingPixel filter.\n @param[in] device The handle of the device\n @param[out] pParams Pointer to a variable in which to store the returned value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1516 pub fn scGetFlyingPixelFilterParams(
1517 device: ScDeviceHandle,
1518 params: *mut ScFlyingPixelFilterParams,
1519 ) -> ScStatus;
1520}
1521unsafe extern "C" {
1522 #[doc = " @brief Enables or disables the FillHole filter\n @param[in] device The handle of the device.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1523 pub fn scSetFillHoleFilterEnabled(device: ScDeviceHandle, bEnabled: u8) -> ScStatus;
1524}
1525unsafe extern "C" {
1526 #[doc = " @brief Returns the Boolean value of whether the FillHole Filter feature is enabled or disabled.\n @param[in] device The handle of the device\n @param[out] pEnabled Pointer to a variable in which to store the returned Boolean value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1527 pub fn scGetFillHoleFilterEnabled(device: ScDeviceHandle, pEnabled: *mut u8) -> ScStatus;
1528}
1529unsafe extern "C" {
1530 #[doc = " @brief Enables or disables the Spatial filter\n @param[in] device The handle of the device.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1531 pub fn scSetSpatialFilterEnabled(device: ScDeviceHandle, bEnabled: u8) -> ScStatus;
1532}
1533unsafe extern "C" {
1534 #[doc = " @brief Returns the Boolean value of whether the Spatial Filter feature is enabled or disabled.\n @param[in] device The handle of the device\n @param[out] pEnabled Pointer to a variable in which to store the returned Boolean value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1535 pub fn scGetSpatialFilterEnabled(device: ScDeviceHandle, pEnabled: *mut u8) -> ScStatus;
1536}
1537unsafe extern "C" {
1538 #[doc = " @brief Enables or disables transforms a color image into the geometry of the depth sensor. When enabled, scGetFrame() can\\n\n be invoked passing ::ScTransformedColorFrame as the frame type for get a color image which each pixel matches the \\n\n corresponding pixel coordinates of the depth sensor. The resolution of the transformed color frame is the same as that\\n\n of the depth image.\n @param[in] device The handle of the device on which to enable or disable mapping.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1539 pub fn scSetTransformColorImgToDepthSensorEnabled(
1540 device: ScDeviceHandle,
1541 bEnabled: u8,
1542 ) -> ScStatus;
1543}
1544unsafe extern "C" {
1545 #[doc = " @brief Returns the Boolean value of whether the transformed of the color image to depth sensor space feature is enabled or disabled.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] bEnabled Pointer to a variable in which to store the returned Boolean value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1546 pub fn scGetTransformColorImgToDepthSensorEnabled(
1547 device: ScDeviceHandle,
1548 bEnabled: *mut u8,
1549 ) -> ScStatus;
1550}
1551unsafe extern "C" {
1552 #[doc = " @brief Enables or disables transforms the depth map into the geometry of the color sensor. When enabled, scGetFrame() can\\n\n be invoked passing ::ScTransformedDepthFrame as the frame type for get a depth image which each pixel matches the \\n\n corresponding pixel coordinates of the color sensor. The resolution of the transformed depth frame is the same as that\\n\n of the color image.\n @param[in] device The handle of the device on which to enable or disable mapping.\n @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1553 pub fn scSetTransformDepthImgToColorSensorEnabled(
1554 device: ScDeviceHandle,
1555 bEnabled: u8,
1556 ) -> ScStatus;
1557}
1558unsafe extern "C" {
1559 #[doc = " @brief Returns the Boolean value of whether the transformed of the depth image to color space feature is enabled or disabled.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[out] bEnabled Pointer to a variable in which to store the returned Boolean value.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1560 pub fn scGetTransformDepthImgToColorSensorEnabled(
1561 device: ScDeviceHandle,
1562 bEnabled: *mut u8,
1563 ) -> ScStatus;
1564}
1565unsafe extern "C" {
1566 #[doc = " @brief Returns the point value of the frame that the mapping of the depth image to Color space.\n @param[in] device The handle of the device on which to enable or disable the feature.\n @param[in] depthPoint The point in depth frame.\n @param[in] colorSize The size(x = w,y = h) of color frame.\n @param[out] pPointInColor The point in the color frame.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1567 pub fn scTransformDepthPointToColorPoint(
1568 device: ScDeviceHandle,
1569 depthPoint: ScDepthVector3,
1570 colorSize: ScVector2u16,
1571 pPointInColor: *mut ScVector2u16,
1572 ) -> ScStatus;
1573}
1574unsafe extern "C" {
1575 #[doc = " @brief Converts the input points from depth coordinate space to world coordinate space.\n @param[in] device The handle of the device on which to perform the operation.\n @param[in] pDepthVector Pointer to a buffer containing the x, y, and z values of the depth coordinates to be converted. \\n\n x and y are measured in pixels, where 0, 0 is located at the top left corner of the image. \\n\n z is measured in millimeters, based on the ::ScPixelFormat depth frame.\n @param[out] pWorldVector Pointer to a buffer in which to output the converted x, y, and z values of the world coordinates, measured in millimeters.\n @param[in] pointCount The number of points to convert.\n @param[in] pSensorParam The intrinsic parameters for the depth sensor. See ::ScSensorIntrinsicParameters.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1576 pub fn scConvertDepthToPointCloud(
1577 device: ScDeviceHandle,
1578 pDepthVector: *mut ScDepthVector3,
1579 pWorldVector: *mut ScVector3f,
1580 pointCount: i32,
1581 pSensorParam: *mut ScSensorIntrinsicParameters,
1582 ) -> ScStatus;
1583}
1584unsafe extern "C" {
1585 #[doc = " @brief Converts the input Depth frame from depth coordinate space to world coordinate space on the device. Currently supported depth\n image types are SC_DEPTH_FRAME and SC_TRANSFORM_DEPTH_IMG_TO_COLOR_SENSOR_FRAME.\n @param[in] device The handle of the device on which to perform the operation.\n @param[in] pDepthFrame The depth frame.\n @param[out] pWorldVector Pointer to a buffer in which to output the converted x, y, and z values of the world coordinates,\n measured in millimeters. The length of pWorldVector must is (ScFrame.width * ScFrame.height).\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1586 pub fn scConvertDepthFrameToPointCloudVector(
1587 device: ScDeviceHandle,
1588 pDepthFrame: *const ScFrame,
1589 pWorldVector: *mut ScVector3f,
1590 ) -> ScStatus;
1591}
1592unsafe extern "C" {
1593 #[doc = " @brief Set the parameters by Json file that can be saved by ScepterGUITool.\n @param[in] device The handle of the device.\n @param[in] pfilePath Pointer to the path of Json file.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1594 pub fn scSetParamsByJson(
1595 device: ScDeviceHandle,
1596 pfilePath: *mut ::std::os::raw::c_char,
1597 ) -> ScStatus;
1598}
1599unsafe extern "C" {
1600 #[doc = " @brief Export the parameter initialization file from the device.\n @param[in] device The handle of the device.\n @param[in] pfilePath Pointer to the path of parameter initialization file.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1601 pub fn scExportParamInitFile(
1602 device: ScDeviceHandle,
1603 pfilePath: *mut ::std::os::raw::c_char,
1604 ) -> ScStatus;
1605}
1606unsafe extern "C" {
1607 #[doc = " @brief Import the parameter initialization file into the device and take effect after reboot the device.\n @param[in] device The handle of the device.\n @param[in] pfilePath Pointer to the path of parameter initialization file.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1608 pub fn scImportParamInitFile(
1609 device: ScDeviceHandle,
1610 pfilePath: *mut ::std::os::raw::c_char,
1611 ) -> ScStatus;
1612}
1613unsafe extern "C" {
1614 #[doc = " @brief Restore the parameter initialization file of the device.\n @param[in] device The handle of the device.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1615 pub fn scRestoreParamInitFile(device: ScDeviceHandle) -> ScStatus;
1616}
1617unsafe extern "C" {
1618 #[doc = " @brief Reboot the camera.\n @param[in] device The handle of the device\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1619 pub fn scRebootDevie(device: ScDeviceHandle) -> ScStatus;
1620}
1621unsafe extern "C" {
1622 #[doc = " @brief Set hotplug status callback function.\n @param[in] pCallback Pointer to the callback function. See ::PtrHotPlugStatusCallback\n @param[in] pUserData Pointer to the user data. See ::PtrHotPlugStatusCallback\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1623 pub fn scSetHotPlugStatusCallback(
1624 pCallback: PtrHotPlugStatusCallback,
1625 pUserData: *const ::std::os::raw::c_void,
1626 ) -> ScStatus;
1627}
1628unsafe extern "C" {
1629 #[doc = " @brief Input the firmware file path and start upgrading device firmware.\n @param[in] device The handle of the device.\n @param[in] pImgPath Pointer to the path of firmware file. The firmware upgrade file is in .img format.\n @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus."]
1630 pub fn scStartUpgradeFirmWare(
1631 device: ScDeviceHandle,
1632 pImgPath: *mut ::std::os::raw::c_char,
1633 ) -> ScStatus;
1634}
1635unsafe extern "C" {
1636 #[doc = " @brief Get firmware upgrade status and progress.\n @param[in] device The handle of the device.\n @param[out] pStatus Pointer to the status of firmware upgrade. 0 indicates normal, other values indicate anomalies.\n @param[out] pProcess Pointer to the process of firmware upgrade, in range [0, 100]. Under normal circumstances, 100 indicates a successful upgrade.\n @return ::SC_OK if the function succeeded, or one of the error values defined by ::ScStatus."]
1637 pub fn scGetUpgradeStatus(
1638 device: ScDeviceHandle,
1639 pStatus: *mut i32,
1640 pProcess: *mut i32,
1641 ) -> ScStatus;
1642}