1pub const RS2_PRODUCT_LINE_ANY: u32 = 255;
4pub const RS2_PRODUCT_LINE_ANY_INTEL: u32 = 254;
5pub const RS2_PRODUCT_LINE_NON_INTEL: u32 = 1;
6pub const RS2_PRODUCT_LINE_D400: u32 = 2;
7pub const RS2_PRODUCT_LINE_SR300: u32 = 4;
8pub const RS2_PRODUCT_LINE_L500: u32 = 8;
9pub const RS2_PRODUCT_LINE_T200: u32 = 16;
10pub const RS2_PRODUCT_LINE_D500: u32 = 32;
11pub const RS2_PRODUCT_LINE_SW_ONLY: u32 = 256;
12pub const RS2_PRODUCT_LINE_DEPTH: u32 = 46;
13pub const RS2_PRODUCT_LINE_TRACKING: u32 = 16;
14pub const RS2_UNSIGNED_UPDATE_MODE_UPDATE: u32 = 0;
15pub const RS2_UNSIGNED_UPDATE_MODE_READ_ONLY: u32 = 1;
16pub const RS2_UNSIGNED_UPDATE_MODE_FULL: u32 = 2;
17pub const RS2_API_MAJOR_VERSION: u32 = 2;
18pub const RS2_API_MINOR_VERSION: u32 = 56;
19pub const RS2_API_PATCH_VERSION: u32 = 5;
20pub const RS2_API_BUILD_VERSION: u32 = 0;
21pub const RS2_API_VERSION: u32 = 25605;
22pub const RS2_CONFIG_FILENAME: &[u8; 22] = b"realsense-config.json\0";
23pub const RS2_DEFAULT_TIMEOUT: u32 = 15000;
24#[doc = "< Frames didn't arrived within 5 seconds"]
25pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_FRAMES_TIMEOUT:
26 rs2_notification_category = 0;
27#[doc = "< Received partial/incomplete frame"]
28pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_FRAME_CORRUPTED:
29 rs2_notification_category = 1;
30#[doc = "< Error reported from the device"]
31pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_HARDWARE_ERROR:
32 rs2_notification_category = 2;
33#[doc = "< General Hardeware notification that is not an error"]
34pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_HARDWARE_EVENT:
35 rs2_notification_category = 3;
36#[doc = "< Received unknown error from the device"]
37pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_UNKNOWN_ERROR:
38 rs2_notification_category = 4;
39#[doc = "< Current firmware version installed is not the latest available"]
40pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_FIRMWARE_UPDATE_RECOMMENDED:
41 rs2_notification_category = 5;
42#[doc = "< A relocalization event has updated the pose provided by a pose sensor"]
43pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_POSE_RELOCALIZATION:
44 rs2_notification_category = 6;
45#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
46pub const rs2_notification_category_RS2_NOTIFICATION_CATEGORY_COUNT: rs2_notification_category = 7;
47#[doc = " \\brief Category of the librealsense notification."]
48pub type rs2_notification_category = ::std::os::raw::c_uint;
49unsafe extern "C" {
50 pub fn rs2_notification_category_to_string(
51 category: rs2_notification_category,
52 ) -> *const ::std::os::raw::c_char;
53}
54pub const rs2_exception_type_RS2_EXCEPTION_TYPE_UNKNOWN: rs2_exception_type = 0;
55#[doc = "< Device was disconnected, this can be caused by outside intervention, by internal firmware error or due to insufficient power"]
56pub const rs2_exception_type_RS2_EXCEPTION_TYPE_CAMERA_DISCONNECTED: rs2_exception_type = 1;
57#[doc = "< Error was returned from the underlying OS-specific layer"]
58pub const rs2_exception_type_RS2_EXCEPTION_TYPE_BACKEND: rs2_exception_type = 2;
59#[doc = "< Invalid value was passed to the API"]
60pub const rs2_exception_type_RS2_EXCEPTION_TYPE_INVALID_VALUE: rs2_exception_type = 3;
61#[doc = "< Function precondition was violated"]
62pub const rs2_exception_type_RS2_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE: rs2_exception_type = 4;
63#[doc = "< The method is not implemented at this point"]
64pub const rs2_exception_type_RS2_EXCEPTION_TYPE_NOT_IMPLEMENTED: rs2_exception_type = 5;
65#[doc = "< Device is in recovery mode and might require firmware update"]
66pub const rs2_exception_type_RS2_EXCEPTION_TYPE_DEVICE_IN_RECOVERY_MODE: rs2_exception_type = 6;
67#[doc = "< IO Device failure"]
68pub const rs2_exception_type_RS2_EXCEPTION_TYPE_IO: rs2_exception_type = 7;
69#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
70pub const rs2_exception_type_RS2_EXCEPTION_TYPE_COUNT: rs2_exception_type = 8;
71#[doc = " \\brief Exception types are the different categories of errors that RealSense API might return."]
72pub type rs2_exception_type = ::std::os::raw::c_uint;
73unsafe extern "C" {
74 pub fn rs2_exception_type_to_string(type_: rs2_exception_type)
75 -> *const ::std::os::raw::c_char;
76}
77#[doc = "< Rectilinear images. No distortion compensation required."]
78pub const rs2_distortion_RS2_DISTORTION_NONE: rs2_distortion = 0;
79#[doc = "< Equivalent to Brown-Conrady distortion, except that tangential distortion is applied to radially distorted points"]
80pub const rs2_distortion_RS2_DISTORTION_MODIFIED_BROWN_CONRADY: rs2_distortion = 1;
81#[doc = "< Equivalent to Brown-Conrady distortion, except undistorts image instead of distorting it"]
82pub const rs2_distortion_RS2_DISTORTION_INVERSE_BROWN_CONRADY: rs2_distortion = 2;
83#[doc = "< F-Theta fish-eye distortion model"]
84pub const rs2_distortion_RS2_DISTORTION_FTHETA: rs2_distortion = 3;
85#[doc = "< Unmodified Brown-Conrady distortion model"]
86pub const rs2_distortion_RS2_DISTORTION_BROWN_CONRADY: rs2_distortion = 4;
87#[doc = "< Four parameter Kannala Brandt distortion model"]
88pub const rs2_distortion_RS2_DISTORTION_KANNALA_BRANDT4: rs2_distortion = 5;
89#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
90pub const rs2_distortion_RS2_DISTORTION_COUNT: rs2_distortion = 6;
91#[doc = " \\brief Distortion model: defines how pixel coordinates should be mapped to sensor coordinates."]
92pub type rs2_distortion = ::std::os::raw::c_uint;
93unsafe extern "C" {
94 pub fn rs2_distortion_to_string(distortion: rs2_distortion) -> *const ::std::os::raw::c_char;
95}
96#[doc = " \\brief Video stream intrinsics."]
97#[repr(C)]
98#[derive(Debug, Copy, Clone)]
99pub struct rs2_intrinsics {
100 #[doc = "< Width of the image in pixels"]
101 pub width: ::std::os::raw::c_int,
102 #[doc = "< Height of the image in pixels"]
103 pub height: ::std::os::raw::c_int,
104 #[doc = "< Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge"]
105 pub ppx: f32,
106 #[doc = "< Vertical coordinate of the principal point of the image, as a pixel offset from the top edge"]
107 pub ppy: f32,
108 #[doc = "< Focal length of the image plane, as a multiple of pixel width"]
109 pub fx: f32,
110 #[doc = "< Focal length of the image plane, as a multiple of pixel height"]
111 pub fy: f32,
112 #[doc = "< Distortion model of the image"]
113 pub model: rs2_distortion,
114 #[doc = "< Distortion coefficients. Order for Brown-Conrady: [k1, k2, p1, p2, k3]. Order for F-Theta Fish-eye: [k1, k2, k3, k4, 0]. Other models are subject to their own interpretations"]
115 pub coeffs: [f32; 5usize],
116}
117#[allow(clippy::unnecessary_operation, clippy::identity_op)]
118const _: () = {
119 ["Size of rs2_intrinsics"][::std::mem::size_of::<rs2_intrinsics>() - 48usize];
120 ["Alignment of rs2_intrinsics"][::std::mem::align_of::<rs2_intrinsics>() - 4usize];
121 ["Offset of field: rs2_intrinsics::width"]
122 [::std::mem::offset_of!(rs2_intrinsics, width) - 0usize];
123 ["Offset of field: rs2_intrinsics::height"]
124 [::std::mem::offset_of!(rs2_intrinsics, height) - 4usize];
125 ["Offset of field: rs2_intrinsics::ppx"][::std::mem::offset_of!(rs2_intrinsics, ppx) - 8usize];
126 ["Offset of field: rs2_intrinsics::ppy"][::std::mem::offset_of!(rs2_intrinsics, ppy) - 12usize];
127 ["Offset of field: rs2_intrinsics::fx"][::std::mem::offset_of!(rs2_intrinsics, fx) - 16usize];
128 ["Offset of field: rs2_intrinsics::fy"][::std::mem::offset_of!(rs2_intrinsics, fy) - 20usize];
129 ["Offset of field: rs2_intrinsics::model"]
130 [::std::mem::offset_of!(rs2_intrinsics, model) - 24usize];
131 ["Offset of field: rs2_intrinsics::coeffs"]
132 [::std::mem::offset_of!(rs2_intrinsics, coeffs) - 28usize];
133};
134#[doc = " \\brief Motion device intrinsics: scale, bias, and variances."]
135#[repr(C)]
136#[derive(Debug, Copy, Clone)]
137pub struct rs2_motion_device_intrinsic {
138 #[doc = "< Interpret data array values"]
139 pub data: [[f32; 4usize]; 3usize],
140 #[doc = "< Variance of noise for X, Y, and Z axis"]
141 pub noise_variances: [f32; 3usize],
142 #[doc = "< Variance of bias for X, Y, and Z axis"]
143 pub bias_variances: [f32; 3usize],
144}
145#[allow(clippy::unnecessary_operation, clippy::identity_op)]
146const _: () = {
147 ["Size of rs2_motion_device_intrinsic"]
148 [::std::mem::size_of::<rs2_motion_device_intrinsic>() - 72usize];
149 ["Alignment of rs2_motion_device_intrinsic"]
150 [::std::mem::align_of::<rs2_motion_device_intrinsic>() - 4usize];
151 ["Offset of field: rs2_motion_device_intrinsic::data"]
152 [::std::mem::offset_of!(rs2_motion_device_intrinsic, data) - 0usize];
153 ["Offset of field: rs2_motion_device_intrinsic::noise_variances"]
154 [::std::mem::offset_of!(rs2_motion_device_intrinsic, noise_variances) - 48usize];
155 ["Offset of field: rs2_motion_device_intrinsic::bias_variances"]
156 [::std::mem::offset_of!(rs2_motion_device_intrinsic, bias_variances) - 60usize];
157};
158#[doc = " \\brief 3D coordinates with origin at topmost left corner of the lense,\nwith positive Z pointing away from the camera, positive X pointing camera right and positive Y pointing camera down"]
159#[repr(C)]
160#[derive(Debug, Copy, Clone)]
161pub struct rs2_vertex {
162 pub xyz: [f32; 3usize],
163}
164#[allow(clippy::unnecessary_operation, clippy::identity_op)]
165const _: () = {
166 ["Size of rs2_vertex"][::std::mem::size_of::<rs2_vertex>() - 12usize];
167 ["Alignment of rs2_vertex"][::std::mem::align_of::<rs2_vertex>() - 4usize];
168 ["Offset of field: rs2_vertex::xyz"][::std::mem::offset_of!(rs2_vertex, xyz) - 0usize];
169};
170#[doc = " \\brief Pixel location within 2D image. (0,0) is the topmost, left corner. Positive X is right, positive Y is down"]
171#[repr(C)]
172#[derive(Debug, Copy, Clone)]
173pub struct rs2_pixel {
174 pub ij: [::std::os::raw::c_int; 2usize],
175}
176#[allow(clippy::unnecessary_operation, clippy::identity_op)]
177const _: () = {
178 ["Size of rs2_pixel"][::std::mem::size_of::<rs2_pixel>() - 8usize];
179 ["Alignment of rs2_pixel"][::std::mem::align_of::<rs2_pixel>() - 4usize];
180 ["Offset of field: rs2_pixel::ij"][::std::mem::offset_of!(rs2_pixel, ij) - 0usize];
181};
182#[doc = " \\brief 3D vector in Euclidean coordinate space"]
183#[repr(C)]
184#[derive(Debug, Copy, Clone)]
185pub struct rs2_vector {
186 pub x: f32,
187 pub y: f32,
188 pub z: f32,
189}
190#[allow(clippy::unnecessary_operation, clippy::identity_op)]
191const _: () = {
192 ["Size of rs2_vector"][::std::mem::size_of::<rs2_vector>() - 12usize];
193 ["Alignment of rs2_vector"][::std::mem::align_of::<rs2_vector>() - 4usize];
194 ["Offset of field: rs2_vector::x"][::std::mem::offset_of!(rs2_vector, x) - 0usize];
195 ["Offset of field: rs2_vector::y"][::std::mem::offset_of!(rs2_vector, y) - 4usize];
196 ["Offset of field: rs2_vector::z"][::std::mem::offset_of!(rs2_vector, z) - 8usize];
197};
198#[doc = " \\brief Quaternion used to represent rotation"]
199#[repr(C)]
200#[derive(Debug, Copy, Clone)]
201pub struct rs2_quaternion {
202 pub x: f32,
203 pub y: f32,
204 pub z: f32,
205 pub w: f32,
206}
207#[allow(clippy::unnecessary_operation, clippy::identity_op)]
208const _: () = {
209 ["Size of rs2_quaternion"][::std::mem::size_of::<rs2_quaternion>() - 16usize];
210 ["Alignment of rs2_quaternion"][::std::mem::align_of::<rs2_quaternion>() - 4usize];
211 ["Offset of field: rs2_quaternion::x"][::std::mem::offset_of!(rs2_quaternion, x) - 0usize];
212 ["Offset of field: rs2_quaternion::y"][::std::mem::offset_of!(rs2_quaternion, y) - 4usize];
213 ["Offset of field: rs2_quaternion::z"][::std::mem::offset_of!(rs2_quaternion, z) - 8usize];
214 ["Offset of field: rs2_quaternion::w"][::std::mem::offset_of!(rs2_quaternion, w) - 12usize];
215};
216#[repr(C)]
217#[derive(Debug, Copy, Clone)]
218pub struct rs2_pose {
219 #[doc = "< X, Y, Z values of translation, in meters (relative to initial position)"]
220 pub translation: rs2_vector,
221 #[doc = "< X, Y, Z values of velocity, in meters/sec"]
222 pub velocity: rs2_vector,
223 #[doc = "< X, Y, Z values of acceleration, in meters/sec^2"]
224 pub acceleration: rs2_vector,
225 #[doc = "< Qi, Qj, Qk, Qr components of rotation as represented in quaternion rotation (relative to initial position)"]
226 pub rotation: rs2_quaternion,
227 #[doc = "< X, Y, Z values of angular velocity, in radians/sec"]
228 pub angular_velocity: rs2_vector,
229 #[doc = "< X, Y, Z values of angular acceleration, in radians/sec^2"]
230 pub angular_acceleration: rs2_vector,
231 #[doc = "< Pose confidence 0x0 - Failed, 0x1 - Low, 0x2 - Medium, 0x3 - High"]
232 pub tracker_confidence: ::std::os::raw::c_uint,
233 #[doc = "< Pose map confidence 0x0 - Failed, 0x1 - Low, 0x2 - Medium, 0x3 - High"]
234 pub mapper_confidence: ::std::os::raw::c_uint,
235}
236#[allow(clippy::unnecessary_operation, clippy::identity_op)]
237const _: () = {
238 ["Size of rs2_pose"][::std::mem::size_of::<rs2_pose>() - 84usize];
239 ["Alignment of rs2_pose"][::std::mem::align_of::<rs2_pose>() - 4usize];
240 ["Offset of field: rs2_pose::translation"]
241 [::std::mem::offset_of!(rs2_pose, translation) - 0usize];
242 ["Offset of field: rs2_pose::velocity"][::std::mem::offset_of!(rs2_pose, velocity) - 12usize];
243 ["Offset of field: rs2_pose::acceleration"]
244 [::std::mem::offset_of!(rs2_pose, acceleration) - 24usize];
245 ["Offset of field: rs2_pose::rotation"][::std::mem::offset_of!(rs2_pose, rotation) - 36usize];
246 ["Offset of field: rs2_pose::angular_velocity"]
247 [::std::mem::offset_of!(rs2_pose, angular_velocity) - 52usize];
248 ["Offset of field: rs2_pose::angular_acceleration"]
249 [::std::mem::offset_of!(rs2_pose, angular_acceleration) - 64usize];
250 ["Offset of field: rs2_pose::tracker_confidence"]
251 [::std::mem::offset_of!(rs2_pose, tracker_confidence) - 76usize];
252 ["Offset of field: rs2_pose::mapper_confidence"]
253 [::std::mem::offset_of!(rs2_pose, mapper_confidence) - 80usize];
254};
255#[doc = "< Detailed information about ordinary operations"]
256pub const rs2_log_severity_RS2_LOG_SEVERITY_DEBUG: rs2_log_severity = 0;
257#[doc = "< Terse information about ordinary operations"]
258pub const rs2_log_severity_RS2_LOG_SEVERITY_INFO: rs2_log_severity = 1;
259#[doc = "< Indication of possible failure"]
260pub const rs2_log_severity_RS2_LOG_SEVERITY_WARN: rs2_log_severity = 2;
261#[doc = "< Indication of definite failure"]
262pub const rs2_log_severity_RS2_LOG_SEVERITY_ERROR: rs2_log_severity = 3;
263#[doc = "< Indication of unrecoverable failure"]
264pub const rs2_log_severity_RS2_LOG_SEVERITY_FATAL: rs2_log_severity = 4;
265#[doc = "< No logging will occur"]
266pub const rs2_log_severity_RS2_LOG_SEVERITY_NONE: rs2_log_severity = 5;
267#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
268pub const rs2_log_severity_RS2_LOG_SEVERITY_COUNT: rs2_log_severity = 6;
269#[doc = "< Include any/all log messages"]
270pub const rs2_log_severity_RS2_LOG_SEVERITY_ALL: rs2_log_severity = 0;
271#[doc = " \\brief Severity of the librealsense logger."]
272pub type rs2_log_severity = ::std::os::raw::c_uint;
273unsafe extern "C" {
274 pub fn rs2_log_severity_to_string(info: rs2_log_severity) -> *const ::std::os::raw::c_char;
275}
276pub const rs2_extension_RS2_EXTENSION_UNKNOWN: rs2_extension = 0;
277pub const rs2_extension_RS2_EXTENSION_DEBUG: rs2_extension = 1;
278pub const rs2_extension_RS2_EXTENSION_INFO: rs2_extension = 2;
279pub const rs2_extension_RS2_EXTENSION_MOTION: rs2_extension = 3;
280pub const rs2_extension_RS2_EXTENSION_OPTIONS: rs2_extension = 4;
281pub const rs2_extension_RS2_EXTENSION_VIDEO: rs2_extension = 5;
282pub const rs2_extension_RS2_EXTENSION_ROI: rs2_extension = 6;
283pub const rs2_extension_RS2_EXTENSION_DEPTH_SENSOR: rs2_extension = 7;
284pub const rs2_extension_RS2_EXTENSION_VIDEO_FRAME: rs2_extension = 8;
285pub const rs2_extension_RS2_EXTENSION_MOTION_FRAME: rs2_extension = 9;
286pub const rs2_extension_RS2_EXTENSION_COMPOSITE_FRAME: rs2_extension = 10;
287pub const rs2_extension_RS2_EXTENSION_POINTS: rs2_extension = 11;
288pub const rs2_extension_RS2_EXTENSION_DEPTH_FRAME: rs2_extension = 12;
289pub const rs2_extension_RS2_EXTENSION_ADVANCED_MODE: rs2_extension = 13;
290pub const rs2_extension_RS2_EXTENSION_RECORD: rs2_extension = 14;
291pub const rs2_extension_RS2_EXTENSION_VIDEO_PROFILE: rs2_extension = 15;
292pub const rs2_extension_RS2_EXTENSION_PLAYBACK: rs2_extension = 16;
293pub const rs2_extension_RS2_EXTENSION_DEPTH_STEREO_SENSOR: rs2_extension = 17;
294pub const rs2_extension_RS2_EXTENSION_DISPARITY_FRAME: rs2_extension = 18;
295pub const rs2_extension_RS2_EXTENSION_MOTION_PROFILE: rs2_extension = 19;
296pub const rs2_extension_RS2_EXTENSION_POSE_FRAME: rs2_extension = 20;
297pub const rs2_extension_RS2_EXTENSION_POSE_PROFILE: rs2_extension = 21;
298pub const rs2_extension_RS2_EXTENSION_TM2: rs2_extension = 22;
299pub const rs2_extension_RS2_EXTENSION_SOFTWARE_DEVICE: rs2_extension = 23;
300pub const rs2_extension_RS2_EXTENSION_SOFTWARE_SENSOR: rs2_extension = 24;
301pub const rs2_extension_RS2_EXTENSION_DECIMATION_FILTER: rs2_extension = 25;
302pub const rs2_extension_RS2_EXTENSION_THRESHOLD_FILTER: rs2_extension = 26;
303pub const rs2_extension_RS2_EXTENSION_DISPARITY_FILTER: rs2_extension = 27;
304pub const rs2_extension_RS2_EXTENSION_SPATIAL_FILTER: rs2_extension = 28;
305pub const rs2_extension_RS2_EXTENSION_TEMPORAL_FILTER: rs2_extension = 29;
306pub const rs2_extension_RS2_EXTENSION_HOLE_FILLING_FILTER: rs2_extension = 30;
307pub const rs2_extension_RS2_EXTENSION_ZERO_ORDER_FILTER: rs2_extension = 31;
308pub const rs2_extension_RS2_EXTENSION_RECOMMENDED_FILTERS: rs2_extension = 32;
309pub const rs2_extension_RS2_EXTENSION_POSE: rs2_extension = 33;
310pub const rs2_extension_RS2_EXTENSION_POSE_SENSOR: rs2_extension = 34;
311pub const rs2_extension_RS2_EXTENSION_WHEEL_ODOMETER: rs2_extension = 35;
312pub const rs2_extension_RS2_EXTENSION_GLOBAL_TIMER: rs2_extension = 36;
313pub const rs2_extension_RS2_EXTENSION_UPDATABLE: rs2_extension = 37;
314pub const rs2_extension_RS2_EXTENSION_UPDATE_DEVICE: rs2_extension = 38;
315pub const rs2_extension_RS2_EXTENSION_L500_DEPTH_SENSOR: rs2_extension = 39;
316pub const rs2_extension_RS2_EXTENSION_TM2_SENSOR: rs2_extension = 40;
317pub const rs2_extension_RS2_EXTENSION_AUTO_CALIBRATED_DEVICE: rs2_extension = 41;
318pub const rs2_extension_RS2_EXTENSION_COLOR_SENSOR: rs2_extension = 42;
319pub const rs2_extension_RS2_EXTENSION_MOTION_SENSOR: rs2_extension = 43;
320pub const rs2_extension_RS2_EXTENSION_FISHEYE_SENSOR: rs2_extension = 44;
321pub const rs2_extension_RS2_EXTENSION_DEPTH_HUFFMAN_DECODER: rs2_extension = 45;
322pub const rs2_extension_RS2_EXTENSION_SERIALIZABLE: rs2_extension = 46;
323pub const rs2_extension_RS2_EXTENSION_FW_LOGGER: rs2_extension = 47;
324pub const rs2_extension_RS2_EXTENSION_AUTO_CALIBRATION_FILTER: rs2_extension = 48;
325pub const rs2_extension_RS2_EXTENSION_DEVICE_CALIBRATION: rs2_extension = 49;
326pub const rs2_extension_RS2_EXTENSION_CALIBRATED_SENSOR: rs2_extension = 50;
327pub const rs2_extension_RS2_EXTENSION_HDR_MERGE: rs2_extension = 51;
328pub const rs2_extension_RS2_EXTENSION_SEQUENCE_ID_FILTER: rs2_extension = 52;
329pub const rs2_extension_RS2_EXTENSION_MAX_USABLE_RANGE_SENSOR: rs2_extension = 53;
330pub const rs2_extension_RS2_EXTENSION_DEBUG_STREAM_SENSOR: rs2_extension = 54;
331pub const rs2_extension_RS2_EXTENSION_CALIBRATION_CHANGE_DEVICE: rs2_extension = 55;
332pub const rs2_extension_RS2_EXTENSION_ROTATION_FILTER: rs2_extension = 56;
333pub const rs2_extension_RS2_EXTENSION_COUNT: rs2_extension = 57;
334#[doc = " \\brief Specifies advanced interfaces (capabilities) objects may implement."]
335pub type rs2_extension = ::std::os::raw::c_uint;
336unsafe extern "C" {
337 pub fn rs2_extension_type_to_string(type_: rs2_extension) -> *const ::std::os::raw::c_char;
338}
339unsafe extern "C" {
340 pub fn rs2_extension_to_string(type_: rs2_extension) -> *const ::std::os::raw::c_char;
341}
342pub const rs2_matchers_RS2_MATCHER_DI: rs2_matchers = 0;
343pub const rs2_matchers_RS2_MATCHER_DI_C: rs2_matchers = 1;
344pub const rs2_matchers_RS2_MATCHER_DLR_C: rs2_matchers = 2;
345pub const rs2_matchers_RS2_MATCHER_DLR: rs2_matchers = 3;
346pub const rs2_matchers_RS2_MATCHER_DIC: rs2_matchers = 4;
347pub const rs2_matchers_RS2_MATCHER_DIC_C: rs2_matchers = 5;
348pub const rs2_matchers_RS2_MATCHER_DEFAULT: rs2_matchers = 6;
349pub const rs2_matchers_RS2_MATCHER_COUNT: rs2_matchers = 7;
350#[doc = " \\brief Specifies types of different matchers"]
351pub type rs2_matchers = ::std::os::raw::c_uint;
352unsafe extern "C" {
353 pub fn rs2_matchers_to_string(stream: rs2_matchers) -> *const ::std::os::raw::c_char;
354}
355#[repr(C)]
356#[derive(Debug, Copy, Clone)]
357pub struct rs2_device_info {
358 _unused: [u8; 0],
359}
360#[repr(C)]
361#[derive(Debug, Copy, Clone)]
362pub struct rs2_device {
363 _unused: [u8; 0],
364}
365#[repr(C)]
366#[derive(Debug, Copy, Clone)]
367pub struct rs2_error {
368 _unused: [u8; 0],
369}
370#[repr(C)]
371#[derive(Debug, Copy, Clone)]
372pub struct rs2_log_message {
373 _unused: [u8; 0],
374}
375#[repr(C)]
376#[derive(Debug, Copy, Clone)]
377pub struct rs2_raw_data_buffer {
378 _unused: [u8; 0],
379}
380#[repr(C)]
381#[derive(Debug, Copy, Clone)]
382pub struct rs2_frame {
383 _unused: [u8; 0],
384}
385#[repr(C)]
386#[derive(Debug, Copy, Clone)]
387pub struct rs2_frame_queue {
388 _unused: [u8; 0],
389}
390#[repr(C)]
391#[derive(Debug, Copy, Clone)]
392pub struct rs2_pipeline {
393 _unused: [u8; 0],
394}
395#[repr(C)]
396#[derive(Debug, Copy, Clone)]
397pub struct rs2_pipeline_profile {
398 _unused: [u8; 0],
399}
400#[repr(C)]
401#[derive(Debug, Copy, Clone)]
402pub struct rs2_config {
403 _unused: [u8; 0],
404}
405#[repr(C)]
406#[derive(Debug, Copy, Clone)]
407pub struct rs2_device_list {
408 _unused: [u8; 0],
409}
410#[repr(C)]
411#[derive(Debug, Copy, Clone)]
412pub struct rs2_stream_profile_list {
413 _unused: [u8; 0],
414}
415#[repr(C)]
416#[derive(Debug, Copy, Clone)]
417pub struct rs2_processing_block_list {
418 _unused: [u8; 0],
419}
420#[repr(C)]
421#[derive(Debug, Copy, Clone)]
422pub struct rs2_stream_profile {
423 _unused: [u8; 0],
424}
425#[repr(C)]
426#[derive(Debug, Copy, Clone)]
427pub struct rs2_frame_callback {
428 _unused: [u8; 0],
429}
430#[repr(C)]
431#[derive(Debug, Copy, Clone)]
432pub struct rs2_log_callback {
433 _unused: [u8; 0],
434}
435#[repr(C)]
436#[derive(Debug, Copy, Clone)]
437pub struct rs2_syncer {
438 _unused: [u8; 0],
439}
440#[repr(C)]
441#[derive(Debug, Copy, Clone)]
442pub struct rs2_device_serializer {
443 _unused: [u8; 0],
444}
445#[repr(C)]
446#[derive(Debug, Copy, Clone)]
447pub struct rs2_source {
448 _unused: [u8; 0],
449}
450#[repr(C)]
451#[derive(Debug, Copy, Clone)]
452pub struct rs2_processing_block {
453 _unused: [u8; 0],
454}
455#[repr(C)]
456#[derive(Debug, Copy, Clone)]
457pub struct rs2_frame_processor_callback {
458 _unused: [u8; 0],
459}
460#[repr(C)]
461#[derive(Debug, Copy, Clone)]
462pub struct rs2_playback_status_changed_callback {
463 _unused: [u8; 0],
464}
465#[repr(C)]
466#[derive(Debug, Copy, Clone)]
467pub struct rs2_update_progress_callback {
468 _unused: [u8; 0],
469}
470#[repr(C)]
471#[derive(Debug, Copy, Clone)]
472pub struct rs2_context {
473 _unused: [u8; 0],
474}
475#[repr(C)]
476#[derive(Debug, Copy, Clone)]
477pub struct rs2_device_hub {
478 _unused: [u8; 0],
479}
480#[repr(C)]
481#[derive(Debug, Copy, Clone)]
482pub struct rs2_sensor_list {
483 _unused: [u8; 0],
484}
485#[repr(C)]
486#[derive(Debug, Copy, Clone)]
487pub struct rs2_sensor {
488 _unused: [u8; 0],
489}
490#[repr(C)]
491#[derive(Debug, Copy, Clone)]
492pub struct rs2_options {
493 _unused: [u8; 0],
494}
495#[repr(C)]
496#[derive(Debug, Copy, Clone)]
497pub struct rs2_options_list {
498 _unused: [u8; 0],
499}
500#[repr(C)]
501#[derive(Debug, Copy, Clone)]
502pub struct rs2_streams_list {
503 _unused: [u8; 0],
504}
505#[repr(C)]
506#[derive(Debug, Copy, Clone)]
507pub struct rs2_options_changed_callback {
508 _unused: [u8; 0],
509}
510#[repr(C)]
511#[derive(Debug, Copy, Clone)]
512pub struct rs2_devices_changed_callback {
513 _unused: [u8; 0],
514}
515#[repr(C)]
516#[derive(Debug, Copy, Clone)]
517pub struct rs2_notification {
518 _unused: [u8; 0],
519}
520#[repr(C)]
521#[derive(Debug, Copy, Clone)]
522pub struct rs2_notifications_callback {
523 _unused: [u8; 0],
524}
525#[repr(C)]
526#[derive(Debug, Copy, Clone)]
527pub struct rs2_firmware_log_message {
528 _unused: [u8; 0],
529}
530#[repr(C)]
531#[derive(Debug, Copy, Clone)]
532pub struct rs2_firmware_log_parsed_message {
533 _unused: [u8; 0],
534}
535#[repr(C)]
536#[derive(Debug, Copy, Clone)]
537pub struct rs2_firmware_log_parser {
538 _unused: [u8; 0],
539}
540#[repr(C)]
541#[derive(Debug, Copy, Clone)]
542pub struct rs2_terminal_parser {
543 _unused: [u8; 0],
544}
545pub type rs2_log_callback_ptr = ::std::option::Option<
546 unsafe extern "C" fn(
547 arg1: rs2_log_severity,
548 arg2: *const rs2_log_message,
549 arg: *mut ::std::os::raw::c_void,
550 ),
551>;
552pub type rs2_notification_callback_ptr = ::std::option::Option<
553 unsafe extern "C" fn(arg1: *mut rs2_notification, arg2: *mut ::std::os::raw::c_void),
554>;
555pub type rs2_software_device_destruction_callback_ptr =
556 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
557pub type rs2_devices_changed_callback_ptr = ::std::option::Option<
558 unsafe extern "C" fn(
559 arg1: *mut rs2_device_list,
560 arg2: *mut rs2_device_list,
561 arg3: *mut ::std::os::raw::c_void,
562 ),
563>;
564pub type rs2_frame_callback_ptr = ::std::option::Option<
565 unsafe extern "C" fn(arg1: *mut rs2_frame, arg2: *mut ::std::os::raw::c_void),
566>;
567pub type rs2_frame_processor_callback_ptr = ::std::option::Option<
568 unsafe extern "C" fn(
569 arg1: *mut rs2_frame,
570 arg2: *mut rs2_source,
571 arg3: *mut ::std::os::raw::c_void,
572 ),
573>;
574pub type rs2_update_progress_callback_ptr =
575 ::std::option::Option<unsafe extern "C" fn(arg1: f32, arg2: *mut ::std::os::raw::c_void)>;
576pub type rs2_options_changed_callback_ptr =
577 ::std::option::Option<unsafe extern "C" fn(arg1: *const rs2_options_list)>;
578pub type rs2_time_t = f64;
579pub type rs2_metadata_type = ::std::os::raw::c_longlong;
580unsafe extern "C" {
581 pub fn rs2_create_error(
582 what: *const ::std::os::raw::c_char,
583 name: *const ::std::os::raw::c_char,
584 args: *const ::std::os::raw::c_char,
585 type_: rs2_exception_type,
586 ) -> *mut rs2_error;
587}
588unsafe extern "C" {
589 pub fn rs2_get_librealsense_exception_type(error: *const rs2_error) -> rs2_exception_type;
590}
591unsafe extern "C" {
592 pub fn rs2_get_failed_function(error: *const rs2_error) -> *const ::std::os::raw::c_char;
593}
594unsafe extern "C" {
595 pub fn rs2_get_failed_args(error: *const rs2_error) -> *const ::std::os::raw::c_char;
596}
597unsafe extern "C" {
598 pub fn rs2_get_error_message(error: *const rs2_error) -> *const ::std::os::raw::c_char;
599}
600unsafe extern "C" {
601 pub fn rs2_free_error(error: *mut rs2_error);
602}
603#[doc = "< Friendly name"]
604pub const rs2_camera_info_RS2_CAMERA_INFO_NAME: rs2_camera_info = 0;
605#[doc = "< Device serial number"]
606pub const rs2_camera_info_RS2_CAMERA_INFO_SERIAL_NUMBER: rs2_camera_info = 1;
607#[doc = "< Primary firmware version"]
608pub const rs2_camera_info_RS2_CAMERA_INFO_FIRMWARE_VERSION: rs2_camera_info = 2;
609#[doc = "< Recommended firmware version"]
610pub const rs2_camera_info_RS2_CAMERA_INFO_RECOMMENDED_FIRMWARE_VERSION: rs2_camera_info = 3;
611#[doc = "< Unique identifier of the port the device is connected to (platform specific)"]
612pub const rs2_camera_info_RS2_CAMERA_INFO_PHYSICAL_PORT: rs2_camera_info = 4;
613#[doc = "< If device supports firmware logging, this is the command to send to get logs from firmware"]
614pub const rs2_camera_info_RS2_CAMERA_INFO_DEBUG_OP_CODE: rs2_camera_info = 5;
615#[doc = "< True iff the device is in advanced mode"]
616pub const rs2_camera_info_RS2_CAMERA_INFO_ADVANCED_MODE: rs2_camera_info = 6;
617#[doc = "< Product ID as reported in the USB descriptor"]
618pub const rs2_camera_info_RS2_CAMERA_INFO_PRODUCT_ID: rs2_camera_info = 7;
619#[doc = "< True iff EEPROM is locked"]
620pub const rs2_camera_info_RS2_CAMERA_INFO_CAMERA_LOCKED: rs2_camera_info = 8;
621#[doc = "< Designated USB specification: USB2/USB3"]
622pub const rs2_camera_info_RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR: rs2_camera_info = 9;
623#[doc = "< Device product line D400, etc."]
624pub const rs2_camera_info_RS2_CAMERA_INFO_PRODUCT_LINE: rs2_camera_info = 10;
625#[doc = "< ASIC serial number"]
626pub const rs2_camera_info_RS2_CAMERA_INFO_ASIC_SERIAL_NUMBER: rs2_camera_info = 11;
627#[doc = "< Firmware update ID"]
628pub const rs2_camera_info_RS2_CAMERA_INFO_FIRMWARE_UPDATE_ID: rs2_camera_info = 12;
629#[doc = "< IP address for remote camera."]
630pub const rs2_camera_info_RS2_CAMERA_INFO_IP_ADDRESS: rs2_camera_info = 13;
631#[doc = "< DFU Device node path"]
632pub const rs2_camera_info_RS2_CAMERA_INFO_DFU_DEVICE_PATH: rs2_camera_info = 14;
633#[doc = "< Connection type, for example USB, GMSL, DDS"]
634pub const rs2_camera_info_RS2_CAMERA_INFO_CONNECTION_TYPE: rs2_camera_info = 15;
635#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
636pub const rs2_camera_info_RS2_CAMERA_INFO_COUNT: rs2_camera_info = 16;
637#[doc = " \\brief Read-only strings that can be queried from the device.\nNot all information attributes are available on all camera types.\nThis information is mainly available for camera debug and troubleshooting and should not be used in applications."]
638pub type rs2_camera_info = ::std::os::raw::c_uint;
639unsafe extern "C" {
640 pub fn rs2_camera_info_to_string(info: rs2_camera_info) -> *const ::std::os::raw::c_char;
641}
642pub const rs2_stream_RS2_STREAM_ANY: rs2_stream = 0;
643#[doc = "< Native stream of depth data produced by RealSense device"]
644pub const rs2_stream_RS2_STREAM_DEPTH: rs2_stream = 1;
645#[doc = "< Native stream of color data captured by RealSense device"]
646pub const rs2_stream_RS2_STREAM_COLOR: rs2_stream = 2;
647#[doc = "< Native stream of infrared data captured by RealSense device"]
648pub const rs2_stream_RS2_STREAM_INFRARED: rs2_stream = 3;
649#[doc = "< Native stream of fish-eye (wide) data captured from the dedicate motion camera"]
650pub const rs2_stream_RS2_STREAM_FISHEYE: rs2_stream = 4;
651#[doc = "< Native stream of gyroscope motion data produced by RealSense device"]
652pub const rs2_stream_RS2_STREAM_GYRO: rs2_stream = 5;
653#[doc = "< Native stream of accelerometer motion data produced by RealSense device"]
654pub const rs2_stream_RS2_STREAM_ACCEL: rs2_stream = 6;
655#[doc = "< Signals from external device connected through GPIO"]
656pub const rs2_stream_RS2_STREAM_GPIO: rs2_stream = 7;
657#[doc = "< 6 Degrees of Freedom pose data, calculated by RealSense device"]
658pub const rs2_stream_RS2_STREAM_POSE: rs2_stream = 8;
659#[doc = "< 4 bit per-pixel depth confidence level"]
660pub const rs2_stream_RS2_STREAM_CONFIDENCE: rs2_stream = 9;
661#[doc = "< Native stream of combined motion data (incl. accel & gyro)"]
662pub const rs2_stream_RS2_STREAM_MOTION: rs2_stream = 10;
663pub const rs2_stream_RS2_STREAM_COUNT: rs2_stream = 11;
664#[doc = " \\brief Streams are different types of data provided by RealSense devices."]
665pub type rs2_stream = ::std::os::raw::c_uint;
666unsafe extern "C" {
667 pub fn rs2_stream_to_string(stream: rs2_stream) -> *const ::std::os::raw::c_char;
668}
669#[doc = "< When passed to enable stream, librealsense will try to provide best suited format"]
670pub const rs2_format_RS2_FORMAT_ANY: rs2_format = 0;
671#[doc = "< 16-bit linear depth values. The depth is meters is equal to depth scale * pixel value."]
672pub const rs2_format_RS2_FORMAT_Z16: rs2_format = 1;
673#[doc = "< 16-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth."]
674pub const rs2_format_RS2_FORMAT_DISPARITY16: rs2_format = 2;
675#[doc = "< 32-bit floating point 3D coordinates."]
676pub const rs2_format_RS2_FORMAT_XYZ32F: rs2_format = 3;
677#[doc = "< 32-bit y0, u, y1, v data for every two pixels. Similar to YUV422 but packed in a different order - https://en.wikipedia.org/wiki/YUV"]
678pub const rs2_format_RS2_FORMAT_YUYV: rs2_format = 4;
679#[doc = "< 8-bit red, green and blue channels"]
680pub const rs2_format_RS2_FORMAT_RGB8: rs2_format = 5;
681#[doc = "< 8-bit blue, green, and red channels -- suitable for OpenCV"]
682pub const rs2_format_RS2_FORMAT_BGR8: rs2_format = 6;
683#[doc = "< 8-bit red, green and blue channels + constant alpha channel equal to FF"]
684pub const rs2_format_RS2_FORMAT_RGBA8: rs2_format = 7;
685#[doc = "< 8-bit blue, green, and red channels + constant alpha channel equal to FF"]
686pub const rs2_format_RS2_FORMAT_BGRA8: rs2_format = 8;
687#[doc = "< 8-bit per-pixel grayscale image"]
688pub const rs2_format_RS2_FORMAT_Y8: rs2_format = 9;
689#[doc = "< 16-bit per-pixel grayscale image"]
690pub const rs2_format_RS2_FORMAT_Y16: rs2_format = 10;
691#[doc = "< Four 10 bits per pixel luminance values packed into a 5-byte macropixel"]
692pub const rs2_format_RS2_FORMAT_RAW10: rs2_format = 11;
693#[doc = "< 16-bit raw image"]
694pub const rs2_format_RS2_FORMAT_RAW16: rs2_format = 12;
695#[doc = "< 8-bit raw image"]
696pub const rs2_format_RS2_FORMAT_RAW8: rs2_format = 13;
697#[doc = "< Similar to the standard YUYV pixel format, but packed in a different order"]
698pub const rs2_format_RS2_FORMAT_UYVY: rs2_format = 14;
699#[doc = "< Raw data from the motion sensor"]
700pub const rs2_format_RS2_FORMAT_MOTION_RAW: rs2_format = 15;
701#[doc = "< Motion data packed as 3 32-bit float values, for X, Y, and Z axis"]
702pub const rs2_format_RS2_FORMAT_MOTION_XYZ32F: rs2_format = 16;
703#[doc = "< Raw data from the external sensors hooked to one of the GPIO's"]
704pub const rs2_format_RS2_FORMAT_GPIO_RAW: rs2_format = 17;
705#[doc = "< Pose data packed as floats array, containing translation vector, rotation quaternion and prediction velocities and accelerations vectors"]
706pub const rs2_format_RS2_FORMAT_6DOF: rs2_format = 18;
707#[doc = "< 32-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth"]
708pub const rs2_format_RS2_FORMAT_DISPARITY32: rs2_format = 19;
709#[doc = "< 16-bit per-pixel grayscale image unpacked from 10 bits per pixel packed ([8:8:8:8:2222]) grey-scale image. The data is unpacked to LSB and padded with 6 zero bits"]
710pub const rs2_format_RS2_FORMAT_Y10BPACK: rs2_format = 20;
711#[doc = "< 32-bit float-point depth distance value."]
712pub const rs2_format_RS2_FORMAT_DISTANCE: rs2_format = 21;
713#[doc = "< Bitstream encoding for video in which an image of each frame is encoded as JPEG-DIB"]
714pub const rs2_format_RS2_FORMAT_MJPEG: rs2_format = 22;
715#[doc = "< 8-bit per pixel interleaved. 8-bit left, 8-bit right."]
716pub const rs2_format_RS2_FORMAT_Y8I: rs2_format = 23;
717#[doc = "< 12-bit per pixel interleaved. 12-bit left, 12-bit right. Each pixel is stored in a 24-bit word in little-endian order."]
718pub const rs2_format_RS2_FORMAT_Y12I: rs2_format = 24;
719#[doc = "< multi-planar Depth 16bit + IR 10bit."]
720pub const rs2_format_RS2_FORMAT_INZI: rs2_format = 25;
721#[doc = "< 8-bit IR stream."]
722pub const rs2_format_RS2_FORMAT_INVI: rs2_format = 26;
723#[doc = "< Grey-scale image as a bit-packed array. 4 pixel data stream taking 5 bytes"]
724pub const rs2_format_RS2_FORMAT_W10: rs2_format = 27;
725#[doc = "< DEPRECATED! - Variable-length Huffman-compressed 16-bit depth values."]
726pub const rs2_format_RS2_FORMAT_Z16H: rs2_format = 28;
727#[doc = "< 16-bit per-pixel frame grabber format."]
728pub const rs2_format_RS2_FORMAT_FG: rs2_format = 29;
729#[doc = "< 12-bit per-pixel."]
730pub const rs2_format_RS2_FORMAT_Y411: rs2_format = 30;
731#[doc = "< 12-bit per pixel interleaved. 12-bit left, 12-bit right."]
732pub const rs2_format_RS2_FORMAT_Y16I: rs2_format = 31;
733#[doc = "< 24-bit for every pixel: y for each pixel, and u,v data for every four pixels - packed as 2 lines of y, 1 line of u,v"]
734pub const rs2_format_RS2_FORMAT_M420: rs2_format = 32;
735#[doc = "< Combined motion data, as in the combined_motion structure"]
736pub const rs2_format_RS2_FORMAT_COMBINED_MOTION: rs2_format = 33;
737#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
738pub const rs2_format_RS2_FORMAT_COUNT: rs2_format = 34;
739#[doc = " \\brief A stream's format identifies how binary data is encoded within a frame."]
740pub type rs2_format = ::std::os::raw::c_uint;
741unsafe extern "C" {
742 pub fn rs2_format_to_string(format: rs2_format) -> *const ::std::os::raw::c_char;
743}
744#[doc = " \\brief Cross-stream extrinsics: encodes the topology describing how the different devices are oriented."]
745#[repr(C)]
746#[derive(Debug, Copy, Clone)]
747pub struct rs2_extrinsics {
748 #[doc = "< Column-major 3x3 rotation matrix"]
749 pub rotation: [f32; 9usize],
750 #[doc = "< Three-element translation vector, in meters"]
751 pub translation: [f32; 3usize],
752}
753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
754const _: () = {
755 ["Size of rs2_extrinsics"][::std::mem::size_of::<rs2_extrinsics>() - 48usize];
756 ["Alignment of rs2_extrinsics"][::std::mem::align_of::<rs2_extrinsics>() - 4usize];
757 ["Offset of field: rs2_extrinsics::rotation"]
758 [::std::mem::offset_of!(rs2_extrinsics, rotation) - 0usize];
759 ["Offset of field: rs2_extrinsics::translation"]
760 [::std::mem::offset_of!(rs2_extrinsics, translation) - 36usize];
761};
762#[doc = " \\brief RS2_STREAM_MOTION / RS2_FORMAT_COMBINED_MOTION content is similar to ROS2's Imu message"]
763#[repr(C)]
764#[derive(Debug, Copy, Clone)]
765pub struct rs2_combined_motion {
766 pub orientation: rs2_combined_motion__bindgen_ty_1,
767 pub angular_velocity: rs2_combined_motion__bindgen_ty_2,
768 pub linear_acceleration: rs2_combined_motion__bindgen_ty_3,
769}
770#[repr(C)]
771#[derive(Debug, Copy, Clone)]
772pub struct rs2_combined_motion__bindgen_ty_1 {
773 pub x: f64,
774 pub y: f64,
775 pub z: f64,
776 pub w: f64,
777}
778#[allow(clippy::unnecessary_operation, clippy::identity_op)]
779const _: () = {
780 ["Size of rs2_combined_motion__bindgen_ty_1"]
781 [::std::mem::size_of::<rs2_combined_motion__bindgen_ty_1>() - 32usize];
782 ["Alignment of rs2_combined_motion__bindgen_ty_1"]
783 [::std::mem::align_of::<rs2_combined_motion__bindgen_ty_1>() - 8usize];
784 ["Offset of field: rs2_combined_motion__bindgen_ty_1::x"]
785 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_1, x) - 0usize];
786 ["Offset of field: rs2_combined_motion__bindgen_ty_1::y"]
787 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_1, y) - 8usize];
788 ["Offset of field: rs2_combined_motion__bindgen_ty_1::z"]
789 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_1, z) - 16usize];
790 ["Offset of field: rs2_combined_motion__bindgen_ty_1::w"]
791 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_1, w) - 24usize];
792};
793#[repr(C)]
794#[derive(Debug, Copy, Clone)]
795pub struct rs2_combined_motion__bindgen_ty_2 {
796 pub x: f64,
797 pub y: f64,
798 pub z: f64,
799}
800#[allow(clippy::unnecessary_operation, clippy::identity_op)]
801const _: () = {
802 ["Size of rs2_combined_motion__bindgen_ty_2"]
803 [::std::mem::size_of::<rs2_combined_motion__bindgen_ty_2>() - 24usize];
804 ["Alignment of rs2_combined_motion__bindgen_ty_2"]
805 [::std::mem::align_of::<rs2_combined_motion__bindgen_ty_2>() - 8usize];
806 ["Offset of field: rs2_combined_motion__bindgen_ty_2::x"]
807 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_2, x) - 0usize];
808 ["Offset of field: rs2_combined_motion__bindgen_ty_2::y"]
809 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_2, y) - 8usize];
810 ["Offset of field: rs2_combined_motion__bindgen_ty_2::z"]
811 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_2, z) - 16usize];
812};
813#[repr(C)]
814#[derive(Debug, Copy, Clone)]
815pub struct rs2_combined_motion__bindgen_ty_3 {
816 pub x: f64,
817 pub y: f64,
818 pub z: f64,
819}
820#[allow(clippy::unnecessary_operation, clippy::identity_op)]
821const _: () = {
822 ["Size of rs2_combined_motion__bindgen_ty_3"]
823 [::std::mem::size_of::<rs2_combined_motion__bindgen_ty_3>() - 24usize];
824 ["Alignment of rs2_combined_motion__bindgen_ty_3"]
825 [::std::mem::align_of::<rs2_combined_motion__bindgen_ty_3>() - 8usize];
826 ["Offset of field: rs2_combined_motion__bindgen_ty_3::x"]
827 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_3, x) - 0usize];
828 ["Offset of field: rs2_combined_motion__bindgen_ty_3::y"]
829 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_3, y) - 8usize];
830 ["Offset of field: rs2_combined_motion__bindgen_ty_3::z"]
831 [::std::mem::offset_of!(rs2_combined_motion__bindgen_ty_3, z) - 16usize];
832};
833#[allow(clippy::unnecessary_operation, clippy::identity_op)]
834const _: () = {
835 ["Size of rs2_combined_motion"][::std::mem::size_of::<rs2_combined_motion>() - 80usize];
836 ["Alignment of rs2_combined_motion"][::std::mem::align_of::<rs2_combined_motion>() - 8usize];
837 ["Offset of field: rs2_combined_motion::orientation"]
838 [::std::mem::offset_of!(rs2_combined_motion, orientation) - 0usize];
839 ["Offset of field: rs2_combined_motion::angular_velocity"]
840 [::std::mem::offset_of!(rs2_combined_motion, angular_velocity) - 32usize];
841 ["Offset of field: rs2_combined_motion::linear_acceleration"]
842 [::std::mem::offset_of!(rs2_combined_motion, linear_acceleration) - 56usize];
843};
844unsafe extern "C" {
845 #[doc = " Deletes sensors list, any sensors created from this list will remain unaffected\n \\param[in] info_list list to delete"]
846 pub fn rs2_delete_sensor_list(info_list: *mut rs2_sensor_list);
847}
848unsafe extern "C" {
849 #[doc = " Determines number of sensors in a list\n \\param[in] info_list The list of connected sensors captured using rs2_query_sensors\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Sensors count"]
850 pub fn rs2_get_sensors_count(
851 info_list: *const rs2_sensor_list,
852 error: *mut *mut rs2_error,
853 ) -> ::std::os::raw::c_int;
854}
855unsafe extern "C" {
856 #[doc = " delete relasense sensor\n \\param[in] sensor realsense sensor to delete"]
857 pub fn rs2_delete_sensor(sensor: *mut rs2_sensor);
858}
859unsafe extern "C" {
860 #[doc = " create sensor by index\n \\param[in] index the zero based index of sensor to retrieve\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the requested sensor, should be released by rs2_delete_sensor"]
861 pub fn rs2_create_sensor(
862 list: *const rs2_sensor_list,
863 index: ::std::os::raw::c_int,
864 error: *mut *mut rs2_error,
865 ) -> *mut rs2_sensor;
866}
867unsafe extern "C" {
868 #[doc = " This is a helper function allowing the user to discover the device from one of its sensors\n \\param[in] sensor Pointer to a sensor\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new device wrapper for the device of the sensor. Needs to be released by delete_device"]
869 pub fn rs2_create_device_from_sensor(
870 sensor: *const rs2_sensor,
871 error: *mut *mut rs2_error,
872 ) -> *mut rs2_device;
873}
874unsafe extern "C" {
875 #[doc = " retrieve sensor specific information, like versions of various internal components\n \\param[in] sensor the RealSense sensor\n \\param[in] info camera info type to retrieve\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the requested camera info string, in a format specific to the device model"]
876 pub fn rs2_get_sensor_info(
877 sensor: *const rs2_sensor,
878 info: rs2_camera_info,
879 error: *mut *mut rs2_error,
880 ) -> *const ::std::os::raw::c_char;
881}
882unsafe extern "C" {
883 #[doc = " check if specific sensor info is supported\n \\param[in] info the parameter to check for support\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if the parameter both exist and well-defined for the specific device"]
884 pub fn rs2_supports_sensor_info(
885 sensor: *const rs2_sensor,
886 info: rs2_camera_info,
887 error: *mut *mut rs2_error,
888 ) -> ::std::os::raw::c_int;
889}
890unsafe extern "C" {
891 #[doc = " Test if the given sensor can be extended to the requested extension\n \\param[in] sensor Realsense sensor\n \\param[in] extension The extension to which the sensor should be tested if it is extendable\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return non-zero value iff the sensor can be extended to the given extension"]
892 pub fn rs2_is_sensor_extendable_to(
893 sensor: *const rs2_sensor,
894 extension: rs2_extension,
895 error: *mut *mut rs2_error,
896 ) -> ::std::os::raw::c_int;
897}
898unsafe extern "C" {
899 #[doc = " When called on a depth sensor, this method will return the number of meters represented by a single depth unit\n \\param[in] sensor depth sensor\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the number of meters represented by a single depth unit"]
900 pub fn rs2_get_depth_scale(sensor: *mut rs2_sensor, error: *mut *mut rs2_error) -> f32;
901}
902unsafe extern "C" {
903 #[doc = " Retrieve the stereoscopic baseline value from frame. Applicable to stereo-based depth modules\n \\param[out] float Stereoscopic baseline in millimeters\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
904 pub fn rs2_depth_stereo_frame_get_baseline(
905 frame_ref: *const rs2_frame,
906 error: *mut *mut rs2_error,
907 ) -> f32;
908}
909unsafe extern "C" {
910 #[doc = " Retrieve the stereoscopic baseline value from sensor. Applicable to stereo-based depth modules\n \\param[out] float Stereoscopic baseline in millimeters\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
911 pub fn rs2_get_stereo_baseline(sensor: *mut rs2_sensor, error: *mut *mut rs2_error) -> f32;
912}
913unsafe extern "C" {
914 #[doc = " \\brief sets the active region of interest to be used by auto-exposure algorithm\n \\param[in] sensor the RealSense sensor\n \\param[in] min_x lower horizontal bound in pixels\n \\param[in] min_y lower vertical bound in pixels\n \\param[in] max_x upper horizontal bound in pixels\n \\param[in] max_y upper vertical bound in pixels\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
915 pub fn rs2_set_region_of_interest(
916 sensor: *const rs2_sensor,
917 min_x: ::std::os::raw::c_int,
918 min_y: ::std::os::raw::c_int,
919 max_x: ::std::os::raw::c_int,
920 max_y: ::std::os::raw::c_int,
921 error: *mut *mut rs2_error,
922 );
923}
924unsafe extern "C" {
925 #[doc = " \\brief gets the active region of interest to be used by auto-exposure algorithm\n \\param[in] sensor the RealSense sensor\n \\param[out] min_x lower horizontal bound in pixels\n \\param[out] min_y lower vertical bound in pixels\n \\param[out] max_x upper horizontal bound in pixels\n \\param[out] max_y upper vertical bound in pixels\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
926 pub fn rs2_get_region_of_interest(
927 sensor: *const rs2_sensor,
928 min_x: *mut ::std::os::raw::c_int,
929 min_y: *mut ::std::os::raw::c_int,
930 max_x: *mut ::std::os::raw::c_int,
931 max_y: *mut ::std::os::raw::c_int,
932 error: *mut *mut rs2_error,
933 );
934}
935unsafe extern "C" {
936 #[doc = " open subdevice for exclusive access, by committing to a configuration\n \\param[in] device relevant RealSense device\n \\param[in] profile stream profile that defines single stream configuration\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
937 pub fn rs2_open(
938 device: *mut rs2_sensor,
939 profile: *const rs2_stream_profile,
940 error: *mut *mut rs2_error,
941 );
942}
943unsafe extern "C" {
944 #[doc = " open subdevice for exclusive access, by committing to composite configuration, specifying one or more stream profiles\n this method should be used for interdependent streams, such as depth and infrared, that have to be configured together\n \\param[in] device relevant RealSense device\n \\param[in] profiles list of stream profiles discovered by get_stream_profiles\n \\param[in] count number of simultaneous stream profiles to configure\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
945 pub fn rs2_open_multiple(
946 device: *mut rs2_sensor,
947 profiles: *mut *const rs2_stream_profile,
948 count: ::std::os::raw::c_int,
949 error: *mut *mut rs2_error,
950 );
951}
952unsafe extern "C" {
953 #[doc = " stop any streaming from specified subdevice\n \\param[in] sensor RealSense device\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
954 pub fn rs2_close(sensor: *const rs2_sensor, error: *mut *mut rs2_error);
955}
956unsafe extern "C" {
957 #[doc = " start streaming from specified configured sensor\n \\param[in] sensor RealSense device\n \\param[in] on_frame function pointer to register as per-frame callback\n \\param[in] user auxiliary data the user wishes to receive together with every frame callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
958 pub fn rs2_start(
959 sensor: *const rs2_sensor,
960 on_frame: rs2_frame_callback_ptr,
961 user: *mut ::std::os::raw::c_void,
962 error: *mut *mut rs2_error,
963 );
964}
965unsafe extern "C" {
966 #[doc = " start streaming from specified configured sensor\n \\param[in] sensor RealSense device\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved into the relevant streaming lock\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
967 pub fn rs2_start_cpp(
968 sensor: *const rs2_sensor,
969 callback: *mut rs2_frame_callback,
970 error: *mut *mut rs2_error,
971 );
972}
973unsafe extern "C" {
974 #[doc = " start streaming from specified configured sensor of specific stream to frame queue\n \\param[in] sensor RealSense Sensor\n \\param[in] queue frame-queue to store new frames into\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
975 pub fn rs2_start_queue(
976 sensor: *const rs2_sensor,
977 queue: *mut rs2_frame_queue,
978 error: *mut *mut rs2_error,
979 );
980}
981unsafe extern "C" {
982 #[doc = " stops streaming from specified configured device\n \\param[in] sensor RealSense sensor\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
983 pub fn rs2_stop(sensor: *const rs2_sensor, error: *mut *mut rs2_error);
984}
985unsafe extern "C" {
986 #[doc = " set callback to get notifications from specified sensor\n \\param[in] sensor RealSense device\n \\param[in] on_notification function pointer to register as per-notifications callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
987 pub fn rs2_set_notifications_callback(
988 sensor: *const rs2_sensor,
989 on_notification: rs2_notification_callback_ptr,
990 user: *mut ::std::os::raw::c_void,
991 error: *mut *mut rs2_error,
992 );
993}
994unsafe extern "C" {
995 #[doc = " set callback to get notifications from specified device\n \\param[in] sensor RealSense sensor\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved into the relevant subdevice lock\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
996 pub fn rs2_set_notifications_callback_cpp(
997 sensor: *const rs2_sensor,
998 callback: *mut rs2_notifications_callback,
999 error: *mut *mut rs2_error,
1000 );
1001}
1002unsafe extern "C" {
1003 #[doc = " retrieve description from notification handle\n \\param[in] notification handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the notification description"]
1004 pub fn rs2_get_notification_description(
1005 notification: *mut rs2_notification,
1006 error: *mut *mut rs2_error,
1007 ) -> *const ::std::os::raw::c_char;
1008}
1009unsafe extern "C" {
1010 #[doc = " retrieve timestamp from notification handle\n \\param[in] notification handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the notification timestamp"]
1011 pub fn rs2_get_notification_timestamp(
1012 notification: *mut rs2_notification,
1013 error: *mut *mut rs2_error,
1014 ) -> rs2_time_t;
1015}
1016unsafe extern "C" {
1017 #[doc = " retrieve severity from notification handle\n \\param[in] notification handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the notification severity"]
1018 pub fn rs2_get_notification_severity(
1019 notification: *mut rs2_notification,
1020 error: *mut *mut rs2_error,
1021 ) -> rs2_log_severity;
1022}
1023unsafe extern "C" {
1024 #[doc = " retrieve category from notification handle\n \\param[in] notification handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the notification category"]
1025 pub fn rs2_get_notification_category(
1026 notification: *mut rs2_notification,
1027 error: *mut *mut rs2_error,
1028 ) -> rs2_notification_category;
1029}
1030unsafe extern "C" {
1031 #[doc = " retrieve serialized data from notification handle\n \\param[in] notification handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the serialized data (in JSON format)"]
1032 pub fn rs2_get_notification_serialized_data(
1033 notification: *mut rs2_notification,
1034 error: *mut *mut rs2_error,
1035 ) -> *const ::std::os::raw::c_char;
1036}
1037unsafe extern "C" {
1038 #[doc = " check if physical subdevice is supported\n \\param[in] sensor input RealSense subdevice\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return list of stream profiles that given subdevice can provide, should be released by rs2_delete_profiles_list"]
1039 pub fn rs2_get_stream_profiles(
1040 sensor: *mut rs2_sensor,
1041 error: *mut *mut rs2_error,
1042 ) -> *mut rs2_stream_profile_list;
1043}
1044unsafe extern "C" {
1045 #[doc = " retrieve list of debug stream profiles that given subdevice can provide\n \\param[in] sensor input RealSense subdevice\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return list of debug stream profiles that given subdevice can provide, should be released by rs2_delete_profiles_list"]
1046 pub fn rs2_get_debug_stream_profiles(
1047 sensor: *mut rs2_sensor,
1048 error: *mut *mut rs2_error,
1049 ) -> *mut rs2_stream_profile_list;
1050}
1051unsafe extern "C" {
1052 #[doc = " check how subdevice is streaming\n \\param[in] sensor input RealSense subdevice\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return list of stream profiles that given subdevice is currently streaming, should be released by rs2_delete_profiles_list"]
1053 pub fn rs2_get_active_streams(
1054 sensor: *mut rs2_sensor,
1055 error: *mut *mut rs2_error,
1056 ) -> *mut rs2_stream_profile_list;
1057}
1058unsafe extern "C" {
1059 #[doc = " Get pointer to specific stream profile\n \\param[in] list the list of supported profiles returned by rs2_get_supported_profiles\n \\param[in] index the zero based index of the streaming mode\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1060 pub fn rs2_get_stream_profile(
1061 list: *const rs2_stream_profile_list,
1062 index: ::std::os::raw::c_int,
1063 error: *mut *mut rs2_error,
1064 ) -> *const rs2_stream_profile;
1065}
1066unsafe extern "C" {
1067 #[doc = " Extract common parameters of a stream profiles\n \\param[in] mode input stream profile\n \\param[out] stream stream type of the input profile\n \\param[out] format binary data format of the input profile\n \\param[out] index stream index the input profile in case there are multiple streams of the same type\n \\param[out] unique_id identifier for the stream profile, unique within the application\n \\param[out] framerate expected rate for data frames to arrive, meaning expected number of frames per second\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1068 pub fn rs2_get_stream_profile_data(
1069 mode: *const rs2_stream_profile,
1070 stream: *mut rs2_stream,
1071 format: *mut rs2_format,
1072 index: *mut ::std::os::raw::c_int,
1073 unique_id: *mut ::std::os::raw::c_int,
1074 framerate: *mut ::std::os::raw::c_int,
1075 error: *mut *mut rs2_error,
1076 );
1077}
1078unsafe extern "C" {
1079 #[doc = " Override some of the parameters of the stream profile\n \\param[in] mode input stream profile\n \\param[in] stream stream type for the profile\n \\param[in] format binary data format of the profile\n \\param[in] index stream index the profile in case there are multiple streams of the same type\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1080 pub fn rs2_set_stream_profile_data(
1081 mode: *mut rs2_stream_profile,
1082 stream: rs2_stream,
1083 index: ::std::os::raw::c_int,
1084 format: rs2_format,
1085 error: *mut *mut rs2_error,
1086 );
1087}
1088unsafe extern "C" {
1089 #[doc = " Creates a copy of stream profile, assigning new values to some of the fields\n \\param[in] mode input stream profile\n \\param[in] stream stream type for the profile\n \\param[in] format binary data format of the profile\n \\param[in] index stream index the profile in case there are multiple streams of the same type\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new stream profile, must be deleted by rs2_delete_stream_profile"]
1090 pub fn rs2_clone_stream_profile(
1091 mode: *const rs2_stream_profile,
1092 stream: rs2_stream,
1093 index: ::std::os::raw::c_int,
1094 format: rs2_format,
1095 error: *mut *mut rs2_error,
1096 ) -> *mut rs2_stream_profile;
1097}
1098unsafe extern "C" {
1099 #[doc = " Creates a copy of stream profile, assigning new values to some of the fields\n \\param[in] mode input stream profile\n \\param[in] stream stream type for the profile\n \\param[in] format binary data format of the profile\n \\param[in] width new width for the profile\n \\param[in] height new height for the profile\n \\param[in] intr new intrinsics for the profile\n \\param[in] index stream index the profile in case there are multiple streams of the same type\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new stream profile, must be deleted by rs2_delete_stream_profile"]
1100 pub fn rs2_clone_video_stream_profile(
1101 mode: *const rs2_stream_profile,
1102 stream: rs2_stream,
1103 index: ::std::os::raw::c_int,
1104 format: rs2_format,
1105 width: ::std::os::raw::c_int,
1106 height: ::std::os::raw::c_int,
1107 intr: *const rs2_intrinsics,
1108 error: *mut *mut rs2_error,
1109 ) -> *mut rs2_stream_profile;
1110}
1111unsafe extern "C" {
1112 #[doc = " Delete stream profile allocated by rs2_clone_stream_profile\n Should not be called on stream profiles returned by the device\n \\param[in] mode input stream profile"]
1113 pub fn rs2_delete_stream_profile(mode: *mut rs2_stream_profile);
1114}
1115unsafe extern "C" {
1116 #[doc = " Try to extend stream profile to an extension type\n \\param[in] mode input stream profile\n \\param[in] type extension type, for example RS2_EXTENSION_VIDEO_STREAM_PROFILE\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return non-zero if profile is extendable to specified extension, zero otherwise"]
1117 pub fn rs2_stream_profile_is(
1118 mode: *const rs2_stream_profile,
1119 type_: rs2_extension,
1120 error: *mut *mut rs2_error,
1121 ) -> ::std::os::raw::c_int;
1122}
1123unsafe extern "C" {
1124 #[doc = " When called on a video stream profile, will return the width and the height of the stream\n \\param[in] mode input stream profile\n \\param[out] width width in pixels of the video stream\n \\param[out] height height in pixels of the video stream\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1125 pub fn rs2_get_video_stream_resolution(
1126 mode: *const rs2_stream_profile,
1127 width: *mut ::std::os::raw::c_int,
1128 height: *mut ::std::os::raw::c_int,
1129 error: *mut *mut rs2_error,
1130 );
1131}
1132unsafe extern "C" {
1133 #[doc = " Obtain the intrinsics of a specific stream configuration from the device.\n \\param[in] mode input stream profile\n \\param[out] intrinsics Pointer to the struct to store the data in\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1134 pub fn rs2_get_motion_intrinsics(
1135 mode: *const rs2_stream_profile,
1136 intrinsics: *mut rs2_motion_device_intrinsic,
1137 error: *mut *mut rs2_error,
1138 );
1139}
1140unsafe extern "C" {
1141 #[doc = " Returns non-zero if selected profile is recommended for the sensor\n This is an optional hint we offer to suggest profiles with best performance-quality tradeof\n \\param[in] mode input stream profile\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return non-zero if selected profile is recommended for the sensor"]
1142 pub fn rs2_is_stream_profile_default(
1143 mode: *const rs2_stream_profile,
1144 error: *mut *mut rs2_error,
1145 ) -> ::std::os::raw::c_int;
1146}
1147unsafe extern "C" {
1148 #[doc = " get the number of supported stream profiles\n \\param[in] list the list of supported profiles returned by rs2_get_supported_profiles\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return number of supported subdevice profiles"]
1149 pub fn rs2_get_stream_profiles_count(
1150 list: *const rs2_stream_profile_list,
1151 error: *mut *mut rs2_error,
1152 ) -> ::std::os::raw::c_int;
1153}
1154unsafe extern "C" {
1155 #[doc = " delete stream profiles list\n \\param[in] list the list of supported profiles returned by rs2_get_supported_profiles"]
1156 pub fn rs2_delete_stream_profiles_list(list: *mut rs2_stream_profile_list);
1157}
1158unsafe extern "C" {
1159 #[doc = " \\param[in] from origin stream profile\n \\param[in] to target stream profile\n \\param[out] extrin extrinsics from origin to target\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1160 pub fn rs2_get_extrinsics(
1161 from: *const rs2_stream_profile,
1162 to: *const rs2_stream_profile,
1163 extrin: *mut rs2_extrinsics,
1164 error: *mut *mut rs2_error,
1165 );
1166}
1167unsafe extern "C" {
1168 #[doc = " \\param[in] from origin stream profile\n \\param[in] to target stream profile\n \\param[out] extrin extrinsics from origin to target\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1169 pub fn rs2_register_extrinsics(
1170 from: *const rs2_stream_profile,
1171 to: *const rs2_stream_profile,
1172 extrin: rs2_extrinsics,
1173 error: *mut *mut rs2_error,
1174 );
1175}
1176unsafe extern "C" {
1177 #[doc = " \\brief Override extrinsics of a given sensor that supports calibrated_sensor.\n\n This will affect extrinsics at the source device and may affect multiple profiles. Used for DEPTH_TO_RGB calibration.\n\n \\param[in] sensor The sensor\n \\param[in] extrinsics Extrinsics from Depth to the named sensor\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1178 pub fn rs2_override_extrinsics(
1179 sensor: *const rs2_sensor,
1180 extrinsics: *const rs2_extrinsics,
1181 error: *mut *mut rs2_error,
1182 );
1183}
1184unsafe extern "C" {
1185 #[doc = " When called on a video profile, returns the intrinsics of specific stream configuration\n \\param[in] mode input stream profile\n \\param[out] intrinsics resulting intrinsics for the video profile\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1186 pub fn rs2_get_video_stream_intrinsics(
1187 mode: *const rs2_stream_profile,
1188 intrinsics: *mut rs2_intrinsics,
1189 error: *mut *mut rs2_error,
1190 );
1191}
1192unsafe extern "C" {
1193 #[doc = " Returns the list of recommended processing blocks for a specific sensor.\n Order and configuration of the blocks are decided by the sensor\n \\param[in] sensor input sensor\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return list of supported sensor recommended processing blocks"]
1194 pub fn rs2_get_recommended_processing_blocks(
1195 sensor: *mut rs2_sensor,
1196 error: *mut *mut rs2_error,
1197 ) -> *mut rs2_processing_block_list;
1198}
1199unsafe extern "C" {
1200 #[doc = " Returns specific processing blocks from processing blocks list\n \\param[in] list the processing blocks list\n \\param[in] index the requested processing block\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return processing block"]
1201 pub fn rs2_get_processing_block(
1202 list: *const rs2_processing_block_list,
1203 index: ::std::os::raw::c_int,
1204 error: *mut *mut rs2_error,
1205 ) -> *mut rs2_processing_block;
1206}
1207unsafe extern "C" {
1208 #[doc = " Returns the processing blocks list size\n \\param[in] list the processing blocks list\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the processing block list size"]
1209 pub fn rs2_get_recommended_processing_blocks_count(
1210 list: *const rs2_processing_block_list,
1211 error: *mut *mut rs2_error,
1212 ) -> ::std::os::raw::c_int;
1213}
1214unsafe extern "C" {
1215 #[doc = " Deletes processing blocks list\n \\param[in] list list to delete"]
1216 pub fn rs2_delete_recommended_processing_blocks(list: *mut rs2_processing_block_list);
1217}
1218unsafe extern "C" {
1219 #[doc = " Imports a localization map from file to tm2 tracking device\n \\param[in] sensor TM2 position-tracking sensor\n \\param[in] lmap_blob Localization map raw buffer, serialized\n \\param[in] blob_size The buffer's size in bytes\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero if succeeded, otherwise 0"]
1220 pub fn rs2_import_localization_map(
1221 sensor: *const rs2_sensor,
1222 lmap_blob: *const ::std::os::raw::c_uchar,
1223 blob_size: ::std::os::raw::c_uint,
1224 error: *mut *mut rs2_error,
1225 ) -> ::std::os::raw::c_int;
1226}
1227unsafe extern "C" {
1228 pub fn rs2_export_localization_map(
1229 sensor: *const rs2_sensor,
1230 error: *mut *mut rs2_error,
1231 ) -> *const rs2_raw_data_buffer;
1232}
1233unsafe extern "C" {
1234 #[doc = " Create a named location tag\n \\param[in] sensor T2xx position-tracking sensor\n \\param[in] guid Null-terminated string of up to 127 characters\n \\param[in] pos Position in meters, relative to the current tracking session\n \\param[in] orient Quaternion orientation, expressed the the coordinate system of the current tracking session\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero if succeeded, otherwise 0"]
1235 pub fn rs2_set_static_node(
1236 sensor: *const rs2_sensor,
1237 guid: *const ::std::os::raw::c_char,
1238 pos: rs2_vector,
1239 orient: rs2_quaternion,
1240 error: *mut *mut rs2_error,
1241 ) -> ::std::os::raw::c_int;
1242}
1243unsafe extern "C" {
1244 #[doc = " Retrieve a named location tag\n \\param[in] sensor T2xx position-tracking sensor\n \\param[in] guid Null-terminated string of up to 127 characters\n \\param[out] pos Position in meters of the tagged (stored) location\n \\param[out] orient Quaternion orientation of the tagged (stored) location\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero if succeeded, otherwise 0"]
1245 pub fn rs2_get_static_node(
1246 sensor: *const rs2_sensor,
1247 guid: *const ::std::os::raw::c_char,
1248 pos: *mut rs2_vector,
1249 orient: *mut rs2_quaternion,
1250 error: *mut *mut rs2_error,
1251 ) -> ::std::os::raw::c_int;
1252}
1253unsafe extern "C" {
1254 #[doc = " Remove a named location tag\n \\param[in] sensor T2xx position-tracking sensor\n \\param[in] guid Null-terminated string of up to 127 characters\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero if succeeded, otherwise 0"]
1255 pub fn rs2_remove_static_node(
1256 sensor: *const rs2_sensor,
1257 guid: *const ::std::os::raw::c_char,
1258 error: *mut *mut rs2_error,
1259 ) -> ::std::os::raw::c_int;
1260}
1261unsafe extern "C" {
1262 #[doc = " Load Wheel odometer settings from host to device\n \\param[in] odometry_config_buf odometer configuration/calibration blob serialized from jsom file\n \\return true on success"]
1263 pub fn rs2_load_wheel_odometry_config(
1264 sensor: *const rs2_sensor,
1265 odometry_config_buf: *const ::std::os::raw::c_uchar,
1266 blob_size: ::std::os::raw::c_uint,
1267 error: *mut *mut rs2_error,
1268 ) -> ::std::os::raw::c_int;
1269}
1270unsafe extern "C" {
1271 #[doc = " Send wheel odometry data for each individual sensor (wheel)\n \\param[in] wo_sensor_id - Zero-based index of (wheel) sensor with the same type within device\n \\param[in] frame_num - Monotonocally increasing frame number, managed per sensor.\n \\param[in] translational_velocity - Translational velocity of the wheel sensor [meter/sec]\n \\return true on success"]
1272 pub fn rs2_send_wheel_odometry(
1273 sensor: *const rs2_sensor,
1274 wo_sensor_id: ::std::os::raw::c_char,
1275 frame_num: ::std::os::raw::c_uint,
1276 translational_velocity: rs2_vector,
1277 error: *mut *mut rs2_error,
1278 ) -> ::std::os::raw::c_int;
1279}
1280unsafe extern "C" {
1281 #[doc = " Set intrinsics of a given sensor\n \\param[in] sensor The RealSense device\n \\param[in] profile Target stream profile\n \\param[in] intrinsics Intrinsics value to be written to the device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1282 pub fn rs2_set_intrinsics(
1283 sensor: *const rs2_sensor,
1284 profile: *const rs2_stream_profile,
1285 intrinsics: *const rs2_intrinsics,
1286 error: *mut *mut rs2_error,
1287 );
1288}
1289unsafe extern "C" {
1290 #[doc = " \\brief Override intrinsics of a given sensor that supports calibrated_sensor.\n\n This will affect intrinsics at the source and may affect multiple profiles. Used for DEPTH_TO_RGB calibration.\n\n \\param[in] sensor The RealSense device\n \\param[in] intrinsics Intrinsics value to be written to the sensor\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1291 pub fn rs2_override_intrinsics(
1292 sensor: *const rs2_sensor,
1293 intrinsics: *const rs2_intrinsics,
1294 error: *mut *mut rs2_error,
1295 );
1296}
1297unsafe extern "C" {
1298 #[doc = " Set extrinsics between two sensors\n \\param[in] from_sensor Origin sensor\n \\param[in] from_profile Origin profile\n \\param[in] to_sensor Target sensor\n \\param[in] to_profile Target profile\n \\param[out] extrinsics Extrinsics from origin to target\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1299 pub fn rs2_set_extrinsics(
1300 from_sensor: *const rs2_sensor,
1301 from_profile: *const rs2_stream_profile,
1302 to_sensor: *mut rs2_sensor,
1303 to_profile: *const rs2_stream_profile,
1304 extrinsics: *const rs2_extrinsics,
1305 error: *mut *mut rs2_error,
1306 );
1307}
1308unsafe extern "C" {
1309 #[doc = " Reset the sensor DSM parameters\n This should ideally be done when the stream is NOT running. May not take effect immediately.\n \\param[in] sensor Sensor that supports the CALIBRATED_SENSOR extension\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1310 pub fn rs2_reset_sensor_calibration(sensor: *const rs2_sensor, error: *mut *mut rs2_error);
1311}
1312unsafe extern "C" {
1313 #[doc = " Set motion device intrinsics\n \\param[in] sensor Motion sensor\n \\param[in] profile Motion stream profile\n \\param[out] intrinsics Pointer to the struct to store the data in\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1314 pub fn rs2_set_motion_device_intrinsics(
1315 sensor: *const rs2_sensor,
1316 profile: *const rs2_stream_profile,
1317 intrinsics: *const rs2_motion_device_intrinsic,
1318 error: *mut *mut rs2_error,
1319 );
1320}
1321unsafe extern "C" {
1322 #[doc = " When called on a depth sensor, this method will return the maximum range of the camera given the amount of ambient light in the scene\n \\param[in] sensor depth sensor\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the max usable range in meters"]
1323 pub fn rs2_get_max_usable_depth_range(
1324 sensor: *const rs2_sensor,
1325 error: *mut *mut rs2_error,
1326 ) -> f32;
1327}
1328unsafe extern "C" {
1329 pub fn rs2_project_point_to_pixel(
1330 pixel: *mut f32,
1331 intrin: *const rs2_intrinsics,
1332 point: *const f32,
1333 );
1334}
1335unsafe extern "C" {
1336 pub fn rs2_deproject_pixel_to_point(
1337 point: *mut f32,
1338 intrin: *const rs2_intrinsics,
1339 pixel: *const f32,
1340 depth: f32,
1341 );
1342}
1343unsafe extern "C" {
1344 pub fn rs2_transform_point_to_point(
1345 to_point: *mut f32,
1346 extrin: *const rs2_extrinsics,
1347 from_point: *const f32,
1348 );
1349}
1350unsafe extern "C" {
1351 pub fn rs2_fov(intrin: *const rs2_intrinsics, to_fov: *mut f32);
1352}
1353unsafe extern "C" {
1354 pub fn rs2_project_color_pixel_to_depth_pixel(
1355 to_pixel: *mut f32,
1356 data: *const u16,
1357 depth_scale: f32,
1358 depth_min: f32,
1359 depth_max: f32,
1360 depth_intrin: *const rs2_intrinsics,
1361 color_intrin: *const rs2_intrinsics,
1362 color_to_depth: *const rs2_extrinsics,
1363 depth_to_color: *const rs2_extrinsics,
1364 from_pixel: *const f32,
1365 );
1366}
1367unsafe extern "C" {
1368 #[doc = " \\brief Creates RealSense context that is required for the rest of the API.\n Context settings are taken from the library configuration file's 'context' key.\n \\param[in] api_version Users are expected to pass their version of \\c RS2_API_VERSION to make sure they are running the correct librealsense version.\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored.\n \\return Context object"]
1369 pub fn rs2_create_context(
1370 api_version: ::std::os::raw::c_int,
1371 error: *mut *mut rs2_error,
1372 ) -> *mut rs2_context;
1373}
1374unsafe extern "C" {
1375 #[doc = " \\brief Creates RealSense context that is required for the rest of the API, and accepts a settings JSON.\n \\param[in] api_version Users are expected to pass their version of \\c RS2_API_VERSION to make sure they are running the correct librealsense version.\n \\param[in] json_settings Pointer to a string containing a JSON configuration to use, or null if none\n Possible <setting>:<default-value> :\n inherit: true - (bool) whether to inherit and override library configuration file values:\n the 'context' key in the file is taken as-is\n '<executable-name>/context' is merged, if it exists\n then the context-settings are merged\n dds: {} - DDS settings: (requires BUILD_WITH_DDS)\n enabled: false - (bool) whether DDS is enabled\n domain: 0 - (int) the number of the DDS domain [0-232]\n participant: <exe name> - (string) the name of the participant\n (see additional settings in realdds/doc/device.md#Settings)\n format-conversion: full - (string) how to convert formats\n full: provide all conversions (e.g., YUYV -> RGB8 etc.)\n basic: use mostly raw camera formats (no RGB8 etc.); convert interleaved (Y8I -> 2xY8)\n raw: leave all formats from camera as they are\n options-update-interval: 1000 - (uint32_t) time interval in milliseconds for option value change notifications\n (see rs2_set_options_changed_callback)\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored.\n \\return Context object"]
1376 pub fn rs2_create_context_ex(
1377 api_version: ::std::os::raw::c_int,
1378 json_settings: *const ::std::os::raw::c_char,
1379 error: *mut *mut rs2_error,
1380 ) -> *mut rs2_context;
1381}
1382unsafe extern "C" {
1383 #[doc = " \\brief Frees the relevant context object.\n \\param[in] context Object that is no longer needed"]
1384 pub fn rs2_delete_context(context: *mut rs2_context);
1385}
1386unsafe extern "C" {
1387 #[doc = " set callback to get devices changed events\n these events will be raised by the context whenever new RealSense device is connected or existing device gets disconnected\n \\param context Object representing librealsense session\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved into the context\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1388 pub fn rs2_set_devices_changed_callback_cpp(
1389 context: *mut rs2_context,
1390 callback: *mut rs2_devices_changed_callback,
1391 error: *mut *mut rs2_error,
1392 );
1393}
1394unsafe extern "C" {
1395 #[doc = " set callback to get devices changed events\n these events will be raised by the context whenever new RealSense device is connected or existing device gets disconnected\n \\param context Object representing librealsense session\n \\param[in] callback function pointer to register as per-notifications callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1396 pub fn rs2_set_devices_changed_callback(
1397 context: *const rs2_context,
1398 callback: rs2_devices_changed_callback_ptr,
1399 user: *mut ::std::os::raw::c_void,
1400 error: *mut *mut rs2_error,
1401 );
1402}
1403unsafe extern "C" {
1404 #[doc = " Create a new device and add it to the context\n \\param ctx The context to which the new device will be added\n \\param file The file from which the device should be created\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n @return A pointer to a device that plays data from the file, or null in case of failure"]
1405 pub fn rs2_context_add_device(
1406 ctx: *mut rs2_context,
1407 file: *const ::std::os::raw::c_char,
1408 error: *mut *mut rs2_error,
1409 ) -> *mut rs2_device;
1410}
1411unsafe extern "C" {
1412 #[doc = " Add an instance of software device to the context\n \\param ctx The context to which the new device will be added\n \\param dev Instance of software device to register into the context\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1413 pub fn rs2_context_add_software_device(
1414 ctx: *mut rs2_context,
1415 dev: *mut rs2_device,
1416 error: *mut *mut rs2_error,
1417 );
1418}
1419unsafe extern "C" {
1420 #[doc = " Removes a playback device from the context, if exists\n \\param[in] ctx The context from which the device should be removed\n \\param[in] file The file name that was used to add the device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1421 pub fn rs2_context_remove_device(
1422 ctx: *mut rs2_context,
1423 file: *const ::std::os::raw::c_char,
1424 error: *mut *mut rs2_error,
1425 );
1426}
1427unsafe extern "C" {
1428 #[doc = " Removes tracking module.\n function query_devices() locks the tracking module in the tm_context object.\n If the tracking module device is not used it should be removed using this function, so that other applications could find it.\n This function can be used both before the call to query_device() to prevent enabling tracking modules or afterwards to\n release them."]
1429 pub fn rs2_context_unload_tracking_module(ctx: *mut rs2_context, error: *mut *mut rs2_error);
1430}
1431unsafe extern "C" {
1432 #[doc = " create a static snapshot of all connected devices at the time of the call\n \\param context Object representing librealsense session\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the list of devices, should be released by rs2_delete_device_list"]
1433 pub fn rs2_query_devices(
1434 context: *const rs2_context,
1435 error: *mut *mut rs2_error,
1436 ) -> *mut rs2_device_list;
1437}
1438unsafe extern "C" {
1439 #[doc = " create a static snapshot of all connected devices at the time of the call\n \\param context Object representing librealsense session\n \\param product_mask Controls what kind of devices will be returned\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the list of devices, should be released by rs2_delete_device_list"]
1440 pub fn rs2_query_devices_ex(
1441 context: *const rs2_context,
1442 product_mask: ::std::os::raw::c_int,
1443 error: *mut *mut rs2_error,
1444 ) -> *mut rs2_device_list;
1445}
1446unsafe extern "C" {
1447 #[doc = " \\brief Creates RealSense device_hub .\n \\param[in] context The context for the device hub\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored.\n \\return Device hub object"]
1448 pub fn rs2_create_device_hub(
1449 context: *const rs2_context,
1450 error: *mut *mut rs2_error,
1451 ) -> *mut rs2_device_hub;
1452}
1453unsafe extern "C" {
1454 #[doc = " \\brief Frees the relevant device hub object.\n \\param[in] hub Object that is no longer needed"]
1455 pub fn rs2_delete_device_hub(hub: *const rs2_device_hub);
1456}
1457unsafe extern "C" {
1458 #[doc = " If any device is connected return it, otherwise wait until next RealSense device connects.\n Calling this method multiple times will cycle through connected devices\n \\param[in] ctx The context to creat the device\n \\param[in] hub The device hub object\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored.\n \\return device object"]
1459 pub fn rs2_device_hub_wait_for_device(
1460 hub: *const rs2_device_hub,
1461 error: *mut *mut rs2_error,
1462 ) -> *mut rs2_device;
1463}
1464unsafe extern "C" {
1465 #[doc = " Checks if device is still connected\n \\param[in] hub The device hub object\n \\param[in] device The device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored.\n \\return 1 if the device is connected, 0 otherwise"]
1466 pub fn rs2_device_hub_is_device_connected(
1467 hub: *const rs2_device_hub,
1468 device: *const rs2_device,
1469 error: *mut *mut rs2_error,
1470 ) -> ::std::os::raw::c_int;
1471}
1472unsafe extern "C" {
1473 #[doc = " Determines number of devices in a list.\n \\param[in] info_list The list of connected devices captured using rs2_query_devices\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Device count"]
1474 pub fn rs2_get_device_count(
1475 info_list: *const rs2_device_list,
1476 error: *mut *mut rs2_error,
1477 ) -> ::std::os::raw::c_int;
1478}
1479unsafe extern "C" {
1480 #[doc = " Deletes device list, any devices created using this list will remain unaffected.\n \\param[in] info_list List to delete"]
1481 pub fn rs2_delete_device_list(info_list: *mut rs2_device_list);
1482}
1483unsafe extern "C" {
1484 #[doc = " Checks if a specific device is contained inside a device list.\n \\param[in] info_list The list of devices to check in\n \\param[in] device RealSense device to check for\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return True if the device is in the list and false otherwise"]
1485 pub fn rs2_device_list_contains(
1486 info_list: *const rs2_device_list,
1487 device: *const rs2_device,
1488 error: *mut *mut rs2_error,
1489 ) -> ::std::os::raw::c_int;
1490}
1491unsafe extern "C" {
1492 #[doc = " Creates a device by index. The device object represents a physical camera and provides the means to manipulate it.\n \\param[in] info_list the list containing the device to retrieve\n \\param[in] index The zero based index of device to retrieve\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The requested device, should be released by rs2_delete_device"]
1493 pub fn rs2_create_device(
1494 info_list: *const rs2_device_list,
1495 index: ::std::os::raw::c_int,
1496 error: *mut *mut rs2_error,
1497 ) -> *mut rs2_device;
1498}
1499unsafe extern "C" {
1500 #[doc = " Delete RealSense device\n \\param[in] device Realsense device to delete"]
1501 pub fn rs2_delete_device(device: *mut rs2_device);
1502}
1503unsafe extern "C" {
1504 #[doc = " \\param[in] device Realsense device to query\n \\return True if device is still present in the system"]
1505 pub fn rs2_device_is_connected(
1506 device: *const rs2_device,
1507 error: *mut *mut rs2_error,
1508 ) -> ::std::os::raw::c_int;
1509}
1510unsafe extern "C" {
1511 #[doc = " Retrieve camera specific information, like versions of various internal components.\n \\param[in] device The RealSense device\n \\param[in] info Camera info type to retrieve\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The requested camera info string, in a format specific to the device model"]
1512 pub fn rs2_get_device_info(
1513 device: *const rs2_device,
1514 info: rs2_camera_info,
1515 error: *mut *mut rs2_error,
1516 ) -> *const ::std::os::raw::c_char;
1517}
1518unsafe extern "C" {
1519 #[doc = " Check if a camera supports a specific camera info type.\n \\param[in] device The RealSense device to check\n \\param[in] info The parameter to check for support\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return True if the parameter both exist and well-defined for the specific device"]
1520 pub fn rs2_supports_device_info(
1521 device: *const rs2_device,
1522 info: rs2_camera_info,
1523 error: *mut *mut rs2_error,
1524 ) -> ::std::os::raw::c_int;
1525}
1526unsafe extern "C" {
1527 #[doc = " Send hardware reset request to the device. The actual reset is asynchronous.\n Note: Invalidates all handles to this device.\n \\param[in] device The RealSense device to reset\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1528 pub fn rs2_hardware_reset(device: *const rs2_device, error: *mut *mut rs2_error);
1529}
1530unsafe extern "C" {
1531 #[doc = " Build debug_protocol raw data command from opcode, parameters and data.\n The result can be used as raw_data_to_send parameter in send_and_receive_raw_data\n \\param[in] device RealSense device to send data to\n \\param[in] opcode Commad opcode\n \\param[in] param1 First input parameter\n \\param[in] param2 Second parameter\n \\param[in] param3 Third parameter\n \\param[in] param4 Fourth parameter\n \\param[in] data Input Data (up to 1024 bytes)\n \\param[in] size_of_data Size of input data in bytes\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return rs2_raw_data_buffer which includes raw command"]
1532 pub fn rs2_build_debug_protocol_command(
1533 device: *mut rs2_device,
1534 opcode: ::std::os::raw::c_uint,
1535 param1: ::std::os::raw::c_uint,
1536 param2: ::std::os::raw::c_uint,
1537 param3: ::std::os::raw::c_uint,
1538 param4: ::std::os::raw::c_uint,
1539 data: *mut ::std::os::raw::c_void,
1540 size_of_data: ::std::os::raw::c_uint,
1541 error: *mut *mut rs2_error,
1542 ) -> *const rs2_raw_data_buffer;
1543}
1544unsafe extern "C" {
1545 #[doc = " Send raw data to device\n \\param[in] device RealSense device to send data to\n \\param[in] raw_data_to_send Raw data to be sent to device\n \\param[in] size_of_raw_data_to_send Size of raw_data_to_send in bytes\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Device's response in a rs2_raw_data_buffer, which should be released by rs2_delete_raw_data"]
1546 pub fn rs2_send_and_receive_raw_data(
1547 device: *mut rs2_device,
1548 raw_data_to_send: *mut ::std::os::raw::c_void,
1549 size_of_raw_data_to_send: ::std::os::raw::c_uint,
1550 error: *mut *mut rs2_error,
1551 ) -> *const rs2_raw_data_buffer;
1552}
1553unsafe extern "C" {
1554 #[doc = " Test if the given device can be extended to the requested extension.\n \\param[in] device Realsense device\n \\param[in] extension The extension to which the device should be tested if it is extendable\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero value iff the device can be extended to the given extension"]
1555 pub fn rs2_is_device_extendable_to(
1556 device: *const rs2_device,
1557 extension: rs2_extension,
1558 error: *mut *mut rs2_error,
1559 ) -> ::std::os::raw::c_int;
1560}
1561unsafe extern "C" {
1562 #[doc = " Create a static snapshot of all connected sensors within a specific device.\n \\param[in] device Specific RealSense device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The list of sensors, should be released by rs2_delete_sensor_list"]
1563 pub fn rs2_query_sensors(
1564 device: *const rs2_device,
1565 error: *mut *mut rs2_error,
1566 ) -> *mut rs2_sensor_list;
1567}
1568unsafe extern "C" {
1569 #[doc = " Enter the given device into loopback operation mode that uses the given file as input for raw data\n \\param[in] device Device to enter into loopback operation mode\n \\param[in] from_file Path to bag file with raw data for loopback\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1570 pub fn rs2_loopback_enable(
1571 device: *const rs2_device,
1572 from_file: *const ::std::os::raw::c_char,
1573 error: *mut *mut rs2_error,
1574 );
1575}
1576unsafe extern "C" {
1577 #[doc = " Restores the given device into normal operation mode\n \\param[in] device Device to restore to normal operation mode\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1578 pub fn rs2_loopback_disable(device: *const rs2_device, error: *mut *mut rs2_error);
1579}
1580unsafe extern "C" {
1581 #[doc = " Checks if the device is in loopback mode or not\n \\param[in] device Device to check for operation mode\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if the device is in loopback operation mode"]
1582 pub fn rs2_loopback_is_enabled(
1583 device: *const rs2_device,
1584 error: *mut *mut rs2_error,
1585 ) -> ::std::os::raw::c_int;
1586}
1587unsafe extern "C" {
1588 #[doc = " Connects to a given tm2 controller\n \\param[in] device Device to connect to the controller\n \\param[in] mac_addr The MAC address of the desired controller\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1589 pub fn rs2_connect_tm2_controller(
1590 device: *const rs2_device,
1591 mac_addr: *const ::std::os::raw::c_uchar,
1592 error: *mut *mut rs2_error,
1593 );
1594}
1595unsafe extern "C" {
1596 #[doc = " Disconnects a given tm2 controller\n \\param[in] device Device to disconnect the controller from\n \\param[in] id The ID of the desired controller\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1597 pub fn rs2_disconnect_tm2_controller(
1598 device: *const rs2_device,
1599 id: ::std::os::raw::c_int,
1600 error: *mut *mut rs2_error,
1601 );
1602}
1603unsafe extern "C" {
1604 #[doc = " Reset device to factory calibration\n \\param[in] device The RealSense device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1605 pub fn rs2_reset_to_factory_calibration(device: *const rs2_device, e: *mut *mut rs2_error);
1606}
1607unsafe extern "C" {
1608 #[doc = " Write calibration to device's EEPROM\n \\param[in] device The RealSense device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1609 pub fn rs2_write_calibration(device: *const rs2_device, e: *mut *mut rs2_error);
1610}
1611unsafe extern "C" {
1612 #[doc = " Update device to the provided firmware, the device must be extendable to RS2_EXTENSION_UPDATABLE.\n This call is executed on the caller's thread and it supports progress notifications via the optional callback.\n \\param[in] device Device to update\n \\param[in] fw_image Firmware image buffer\n \\param[in] fw_image_size Firmware image buffer size\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1613 pub fn rs2_update_firmware_cpp(
1614 device: *const rs2_device,
1615 fw_image: *const ::std::os::raw::c_void,
1616 fw_image_size: ::std::os::raw::c_int,
1617 callback: *mut rs2_update_progress_callback,
1618 error: *mut *mut rs2_error,
1619 );
1620}
1621unsafe extern "C" {
1622 #[doc = " Update device to the provided firmware, the device must be extendable to RS2_EXTENSION_UPDATABLE.\n This call is executed on the caller's thread and it supports progress notifications via the optional callback.\n \\param[in] device Device to update\n \\param[in] fw_image Firmware image buffer\n \\param[in] fw_image_size Firmware image buffer size\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data Optional client data for the callback\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1623 pub fn rs2_update_firmware(
1624 device: *const rs2_device,
1625 fw_image: *const ::std::os::raw::c_void,
1626 fw_image_size: ::std::os::raw::c_int,
1627 callback: rs2_update_progress_callback_ptr,
1628 client_data: *mut ::std::os::raw::c_void,
1629 error: *mut *mut rs2_error,
1630 );
1631}
1632unsafe extern "C" {
1633 #[doc = " Create backup of camera flash memory. Such backup does not constitute valid firmware image, and cannot be\n loaded back to the device, but it does contain all calibration and device information.\n \\param[in] device Device to update\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1634 pub fn rs2_create_flash_backup_cpp(
1635 device: *const rs2_device,
1636 callback: *mut rs2_update_progress_callback,
1637 error: *mut *mut rs2_error,
1638 ) -> *const rs2_raw_data_buffer;
1639}
1640unsafe extern "C" {
1641 #[doc = " Create backup of camera flash memory. Such backup does not constitute valid firmware image, and cannot be\n loaded back to the device, but it does contain all calibration and device information.\n \\param[in] device Device to update\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data Optional client data for the callback\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1642 pub fn rs2_create_flash_backup(
1643 device: *const rs2_device,
1644 callback: rs2_update_progress_callback_ptr,
1645 client_data: *mut ::std::os::raw::c_void,
1646 error: *mut *mut rs2_error,
1647 ) -> *const rs2_raw_data_buffer;
1648}
1649unsafe extern "C" {
1650 #[doc = " Update device to the provided firmware by writing raw data directly to the flash, this command can be executed only on unlocked camera.\n The device must be extendable to RS2_EXTENSION_UPDATABLE.\n This call is executed on the caller's thread and it supports progress notifications via the optional callback.\n \\param[in] device Device to update\n \\param[in] fw_image Firmware image buffer\n \\param[in] fw_image_size Firmware image buffer size\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] update_mode Select one of RS2_UNSIGNED_UPDATE_MODE, WARNING!!! setting to any option other than RS2_UNSIGNED_UPDATE_MODE_UPDATE will make this call unsafe and might damage the camera\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1651 pub fn rs2_update_firmware_unsigned_cpp(
1652 device: *const rs2_device,
1653 fw_image: *const ::std::os::raw::c_void,
1654 fw_image_size: ::std::os::raw::c_int,
1655 callback: *mut rs2_update_progress_callback,
1656 update_mode: ::std::os::raw::c_int,
1657 error: *mut *mut rs2_error,
1658 );
1659}
1660unsafe extern "C" {
1661 #[doc = " Checks if the device and the provided firmware image are compatible\n \\param[in] device Device to update\n \\param[in] fw_image Firmware image buffer\n \\param[in] fw_image_size Firmware image buffer size in bytes\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Non-zero if the firmware is compatible with the device and 0 otherwise"]
1662 pub fn rs2_check_firmware_compatibility(
1663 device: *const rs2_device,
1664 fw_image: *const ::std::os::raw::c_void,
1665 fw_image_size: ::std::os::raw::c_int,
1666 error: *mut *mut rs2_error,
1667 ) -> ::std::os::raw::c_int;
1668}
1669unsafe extern "C" {
1670 #[doc = " Update device to the provided firmware by writing raw data directly to the flash, this command can be executed only on unlocked camera.\n The device must be extendable to RS2_EXTENSION_UPDATABLE.\n This call is executed on the caller's thread and it supports progress notifications via the optional callback.\n \\param[in] device Device to update\n \\param[in] fw_image Firmware image buffer\n \\param[in] fw_image_size Firmware image buffer size\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data Optional client data for the callback\n \\param[in] update_mode Select one of RS2_UNSIGNED_UPDATE_MODE, WARNING!!! setting to any option other than RS2_UNSIGNED_UPDATE_MODE_UPDATE will make this call unsafe and might damage the camera\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1671 pub fn rs2_update_firmware_unsigned(
1672 device: *const rs2_device,
1673 fw_image: *const ::std::os::raw::c_void,
1674 fw_image_size: ::std::os::raw::c_int,
1675 callback: rs2_update_progress_callback_ptr,
1676 client_data: *mut ::std::os::raw::c_void,
1677 update_mode: ::std::os::raw::c_int,
1678 error: *mut *mut rs2_error,
1679 );
1680}
1681unsafe extern "C" {
1682 #[doc = " Enter the device to update state, this will cause the updatable device to disconnect and reconnect as update device.\n \\param[in] device Device to update\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1683 pub fn rs2_enter_update_state(device: *const rs2_device, error: *mut *mut rs2_error);
1684}
1685unsafe extern "C" {
1686 #[doc = " This will improve the depth noise.\n \\param[in] json_content Json string to configure regular speed on chip calibration parameters:\n{\n\"calib type\" : 0,\n\"speed\": 3,\n\"scan parameter\": 0,\n\"adjust both sides\": 0,\n\"white wall mode\": 0,\n\"host assistance\": 0\n}\ncalib_type - calibraton type: 0 = regular, 1 = focal length, 2 = both regular and focal length in order,\nspeed - for regular calibration. value can be one of: Very fast = 0, Fast = 1, Medium = 2, Slow = 3, White wall = 4, default is Slow for type 0 and Fast for type 2\nscan_parameter - for regular calibration. value can be one of: Py scan (default) = 0, Rx scan = 1\nadjust_both_sides - for focal length calibration. value can be one of: 0 = adjust right only, 1 = adjust both sides\nhost_assistance: 0 for no assistance, 1 for starting with assistance, 2 for first part feeding host data to firmware, 3 for second part of feeding host data to firmware (calib_type 2 only)\nwhite_wall_mode - white wall mode: 0 for normal mode and 1 for white wall mode\nif json is nullptr it will be ignored and calibration will use the default parameters\n \\param[out] health The absolute value of regular calibration Health-Check captures how far camera calibration is from the optimal one\n[0, 0.25) - Good\n[0.25, 0.75) - Can be Improved\n[0.75, ) - Requires Calibration\nThe absolute value of focal length calibration Health-Check captures how far camera calibration is from the optimal one\n[0, 0.15) - Good\n[0.15, 0.75) - Can be Improved\n[0.75, ) - Requires Calibration\nThe two health numbers are encoded in one integer as follows for calib_type 2:\nRegular health number times 1000 are bits 0 to 11\nRegular health number is negative if bit 24 is 1\nFocal length health number times 1000 are bits 12 to 23\nFocal length health number is negative if bit 25 is 1\n \\param[in] callback Optional callback to get progress notifications\n \\param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise)\n \\return New calibration table"]
1687 pub fn rs2_run_on_chip_calibration_cpp(
1688 device: *mut rs2_device,
1689 json_content: *const ::std::os::raw::c_void,
1690 content_size: ::std::os::raw::c_int,
1691 health: *mut f32,
1692 progress_callback: *mut rs2_update_progress_callback,
1693 timeout_ms: ::std::os::raw::c_int,
1694 error: *mut *mut rs2_error,
1695 ) -> *const rs2_raw_data_buffer;
1696}
1697unsafe extern "C" {
1698 #[doc = " This will improve the depth noise.\n \\param[in] json_content Json string to configure regular speed on chip calibration parameters:\n{\n\"calib type\" : 0,\n\"speed\": 3,\n\"scan parameter\": 0,\n\"adjust both sides\": 0,\n\"white wall mode\": 0,\n\"host assistance\": 0\n}\ncalib_type - calibraton type: 0 = regular, 1 = focal length, 2 = both regular and focal length in order\n30 = regular for version 3, 31 = focal length for version 3, 32 = both regular and focal length in order for version 3,\n33 = regular for second part of version 3\nspeed - for regular calibration, value can be one of: Very fast = 0, Fast = 1, Medium = 2, Slow = 3, White wall = 4, default is Slow for type 0 and Fast for type 2\nscan_parameter - for regular calibration. value can be one of: Py scan (default) = 0, Rx scan = 1\nadjust_both_sides - for focal length calibration. value can be one of: 0 = adjust right only, 1 = adjust both sides\nwhite_wall_mode - white wall mode: 0 for normal mode and 1 for white wall mode\nhost_assistance: 0 for no assistance, 1 for starting with assistance, 2 for first part feeding host data to firmware, 3 for second part of feeding host data to firmware (calib_type 2 only)\nif json is nullptr it will be ignored and calibration will use the default parameters\n \\param[out] health The absolute value of regular calibration Health-Check captures how far camera calibration is from the optimal one\n[0, 0.25) - Good\n[0.25, 0.75) - Can be Improved\n[0.75, ) - Requires Calibration\nThe absolute value of focal length calibration Health-Check captures how far camera calibration is from the optimal one\n[0, 0.15) - Good\n[0.15, 0.75) - Can be Improved\n[0.75, ) - Requires Calibration\nThe two health numbers are encoded in one integer as follows for calib_type 2:\nRegular health number times 1000 are bits 0 to 11\nRegular health number is negative if bit 24 is 1\nFocal length health number times 1000 are bits 12 to 23\nFocal length health number is negative if bit 25 is 1\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data Optional client data for the callback\n \\param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise)\n \\return New calibration table"]
1699 pub fn rs2_run_on_chip_calibration(
1700 device: *mut rs2_device,
1701 json_content: *const ::std::os::raw::c_void,
1702 content_size: ::std::os::raw::c_int,
1703 health: *mut f32,
1704 callback: rs2_update_progress_callback_ptr,
1705 client_data: *mut ::std::os::raw::c_void,
1706 timeout_ms: ::std::os::raw::c_int,
1707 error: *mut *mut rs2_error,
1708 ) -> *const rs2_raw_data_buffer;
1709}
1710unsafe extern "C" {
1711 #[doc = " This will adjust camera absolute distance to flat target. User needs to enter the known ground truth.\n \\param[in] ground_truth_mm Ground truth in mm must be between 60 and 10000\n \\param[in] json_content Json string to configure tare calibration parameters:\n{\n\"average step count\": 20,\n\"step count\": 20,\n\"accuracy\": 2,\n\"scan parameter\": 0,\n\"data sampling\": 0,\n\"host assistance\": 0,\n\"depth\" : 0\n}\naverage step count - number of frames to average, must be between 1 - 30, default = 20\nstep count - max iteration steps, must be between 5 - 30, default = 10\naccuracy - Subpixel accuracy level, value can be one of: Very high = 0 (0.025%), High = 1 (0.05%), Medium = 2 (0.1%), Low = 3 (0.2%), Default = Very high (0.025%), default is Medium\nscan_parameter - value can be one of: Py scan (default) = 0, Rx scan = 1\ndata_sampling - value can be one of:polling data sampling = 0, interrupt data sampling = 1\nhost_assistance: 0 for no assistance, 1 for starting with assistance, 2 for feeding host data to firmware\ndepth: 0 for not relating to depth, > 0 for feeding depth from host to firmware, -1 for ending to feed depth from host to firmware\nif json is nullptr it will be ignored and calibration will use the default parameters\n \\param[in] content_size Json string size if its 0 the json will be ignored and calibration will use the default parameters\n \\param[out] health The absolute value of regular calibration Health-Check captures how far camera calibration is from the optimal one\n[0, 0.25) - Good\n[0.25, 0.75) - Can be Improved\n[0.75, ) - Requires Calibration\n \\param[in] callback Optional callback to get progress notifications\n \\param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise)\n \\param[out] health The health check numbers before and after calibration\n \\return New calibration table"]
1712 pub fn rs2_run_tare_calibration_cpp(
1713 dev: *mut rs2_device,
1714 ground_truth_mm: f32,
1715 json_content: *const ::std::os::raw::c_void,
1716 content_size: ::std::os::raw::c_int,
1717 health: *mut f32,
1718 progress_callback: *mut rs2_update_progress_callback,
1719 timeout_ms: ::std::os::raw::c_int,
1720 error: *mut *mut rs2_error,
1721 ) -> *const rs2_raw_data_buffer;
1722}
1723unsafe extern "C" {
1724 #[doc = " During host assisted calibration (Tare or on-chip), this is used to pump new depth frames until calibration is done.\n \\param[in] f The next frame.\n \\param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise)\n \\param[out] health The health check numbers before and after calibration\n \\return New calibration table"]
1725 pub fn rs2_process_calibration_frame(
1726 dev: *mut rs2_device,
1727 f: *const rs2_frame,
1728 health: *mut f32,
1729 progress_callback: *mut rs2_update_progress_callback,
1730 timeout_ms: ::std::os::raw::c_int,
1731 error: *mut *mut rs2_error,
1732 ) -> *const rs2_raw_data_buffer;
1733}
1734pub const rs2_calibration_type_RS2_CALIBRATION_AUTO_DEPTH_TO_RGB: rs2_calibration_type = 0;
1735pub const rs2_calibration_type_RS2_CALIBRATION_MANUAL_DEPTH_TO_RGB: rs2_calibration_type = 1;
1736pub const rs2_calibration_type_RS2_CALIBRATION_THERMAL: rs2_calibration_type = 2;
1737pub const rs2_calibration_type_RS2_CALIBRATION_TYPE_COUNT: rs2_calibration_type = 3;
1738#[doc = " Used in device_calibration; enumerates the different calibration types\n available for that extension."]
1739pub type rs2_calibration_type = ::std::os::raw::c_uint;
1740unsafe extern "C" {
1741 pub fn rs2_calibration_type_to_string(
1742 arg1: rs2_calibration_type,
1743 ) -> *const ::std::os::raw::c_char;
1744}
1745pub const rs2_calibration_status_RS2_CALIBRATION_TRIGGERED: rs2_calibration_status = 0;
1746pub const rs2_calibration_status_RS2_CALIBRATION_SPECIAL_FRAME: rs2_calibration_status = 1;
1747pub const rs2_calibration_status_RS2_CALIBRATION_STARTED: rs2_calibration_status = 2;
1748pub const rs2_calibration_status_RS2_CALIBRATION_NOT_NEEDED: rs2_calibration_status = 3;
1749pub const rs2_calibration_status_RS2_CALIBRATION_SUCCESSFUL: rs2_calibration_status = 4;
1750pub const rs2_calibration_status_RS2_CALIBRATION_RETRY: rs2_calibration_status = -1;
1751pub const rs2_calibration_status_RS2_CALIBRATION_FAILED: rs2_calibration_status = -2;
1752pub const rs2_calibration_status_RS2_CALIBRATION_SCENE_INVALID: rs2_calibration_status = -3;
1753pub const rs2_calibration_status_RS2_CALIBRATION_BAD_RESULT: rs2_calibration_status = -4;
1754pub const rs2_calibration_status_RS2_CALIBRATION_BAD_CONDITIONS: rs2_calibration_status = -5;
1755pub const rs2_calibration_status_RS2_CALIBRATION_STATUS_FIRST: rs2_calibration_status = -5;
1756pub const rs2_calibration_status_RS2_CALIBRATION_STATUS_LAST: rs2_calibration_status = 4;
1757pub const rs2_calibration_status_RS2_CALIBRATION_STATUS_COUNT: rs2_calibration_status = 10;
1758#[doc = " Used in device_calibration with rs2_calibration_change_callback"]
1759pub type rs2_calibration_status = ::std::os::raw::c_int;
1760unsafe extern "C" {
1761 pub fn rs2_calibration_status_to_string(
1762 arg1: rs2_calibration_status,
1763 ) -> *const ::std::os::raw::c_char;
1764}
1765#[repr(C)]
1766#[derive(Debug, Copy, Clone)]
1767pub struct rs2_calibration_change_callback {
1768 _unused: [u8; 0],
1769}
1770pub type rs2_calibration_change_callback_ptr = ::std::option::Option<
1771 unsafe extern "C" fn(arg1: rs2_calibration_status, arg: *mut ::std::os::raw::c_void),
1772>;
1773unsafe extern "C" {
1774 #[doc = " Adds a callback for a sensor that gets called when calibration (intrinsics) changes, e.g. due to auto-calibration\n \\param[in] sensor the sensor\n \\param[in] callback the C callback function that gets called\n \\param[in] user user argument that gets passed to the callback function\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1775 pub fn rs2_register_calibration_change_callback(
1776 dev: *mut rs2_device,
1777 callback: rs2_calibration_change_callback_ptr,
1778 user: *mut ::std::os::raw::c_void,
1779 error: *mut *mut rs2_error,
1780 );
1781}
1782unsafe extern "C" {
1783 #[doc = " Adds a callback for a sensor that gets called when calibration (intrinsics) changes, e.g. due to auto-calibration\n \\param[in] sensor the sensor\n \\param[in] callback the C++ callback interface that gets called\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1784 pub fn rs2_register_calibration_change_callback_cpp(
1785 dev: *mut rs2_device,
1786 callback: *mut rs2_calibration_change_callback,
1787 error: *mut *mut rs2_error,
1788 );
1789}
1790unsafe extern "C" {
1791 #[doc = " Triggers calibration of the given type\n \\param[in] dev the device\n \\param[in] type the type of calibration requested\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1792 pub fn rs2_trigger_device_calibration(
1793 dev: *mut rs2_device,
1794 type_: rs2_calibration_type,
1795 error: *mut *mut rs2_error,
1796 );
1797}
1798unsafe extern "C" {
1799 #[doc = " This will adjust camera absolute distance to flat target. User needs to enter the known ground truth.\n \\param[in] ground_truth_mm Ground truth in mm must be between 60 and 10000\n \\param[in] json_content Json string to configure tare calibration parameters:\n{\n\"average_step_count\": 20,\n\"step count\": 20,\n\"accuracy\": 2,\n\"scan parameter\": 0,\n\"data sampling\": 0,\n\"host assistance\": 0,\n\"depth\": 0\n}\naverage step count - number of frames to average, must be between 1 - 30, default = 20\nstep count - max iteration steps, must be between 5 - 30, default = 10\naccuracy - Subpixel accuracy level, value can be one of: Very high = 0 (0.025%), High = 1 (0.05%), Medium = 2 (0.1%), Low = 3 (0.2%), Default = Very high (0.025%), default is Medium\nscan_parameter - value can be one of: Py scan (default) = 0, Rx scan = 1\ndata_sampling - value can be one of:polling data sampling = 0, interrupt data sampling = 1\nhost_assistance: 0 for no assistance, 1 for starting with assistance, 2 for feeding host data to firmware\ndepth: 0 for not relating to depth, > 0 for feeding depth from host to firmware, -1 for ending to feed depth from host to firmware\nif json is nullptr it will be ignored and calibration will use the default parameters\n \\param[in] content_size Json string size if its 0 the json will be ignored and calibration will use the default parameters\n \\param[in] callback Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data Optional client data for the callback\n \\param[in] timeout_ms Timeout in ms (use 5000 msec unless instructed otherwise)\n \\param[out] health The health check numbers before and after calibration\n \\return New calibration table"]
1800 pub fn rs2_run_tare_calibration(
1801 dev: *mut rs2_device,
1802 ground_truth_mm: f32,
1803 json_content: *const ::std::os::raw::c_void,
1804 content_size: ::std::os::raw::c_int,
1805 health: *mut f32,
1806 callback: rs2_update_progress_callback_ptr,
1807 client_data: *mut ::std::os::raw::c_void,
1808 timeout_ms: ::std::os::raw::c_int,
1809 error: *mut *mut rs2_error,
1810 ) -> *const rs2_raw_data_buffer;
1811}
1812unsafe extern "C" {
1813 #[doc = " Read current calibration table from flash.\n \\return Calibration table"]
1814 pub fn rs2_get_calibration_table(
1815 dev: *const rs2_device,
1816 error: *mut *mut rs2_error,
1817 ) -> *const rs2_raw_data_buffer;
1818}
1819unsafe extern "C" {
1820 #[doc = " Set current table to dynamic area.\n \\param[in] Calibration table"]
1821 pub fn rs2_set_calibration_table(
1822 device: *const rs2_device,
1823 calibration: *const ::std::os::raw::c_void,
1824 calibration_size: ::std::os::raw::c_int,
1825 error: *mut *mut rs2_error,
1826 );
1827}
1828unsafe extern "C" {
1829 pub fn rs2_serialize_json(
1830 dev: *mut rs2_device,
1831 error: *mut *mut rs2_error,
1832 ) -> *mut rs2_raw_data_buffer;
1833}
1834unsafe extern "C" {
1835 pub fn rs2_load_json(
1836 dev: *mut rs2_device,
1837 json_content: *const ::std::os::raw::c_void,
1838 content_size: ::std::os::raw::c_uint,
1839 error: *mut *mut rs2_error,
1840 );
1841}
1842unsafe extern "C" {
1843 #[doc = " Run target-based focal length calibration\n \\param[in] device: device to calibrate\n \\param[in] left_queue: container for left IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI.\n \\param[in] right_queue: container for right IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI\n \\param[in] target_width: the rectangle width in mm on the target\n \\param[in] target_height: the rectangle height in mm on the target\n \\param[in] adjust_both_sides: 1 for adjusting both left and right camera calibration tables, and 0 for adjusting right camera calibraion table only\n \\param[out] ratio: the corrected ratio from the calibration\n \\param[out] angle: the target's tilt angle\n \\param[in] callback: Optional callback for update progress notifications, the progress value is normailzed to 1\n \\return New calibration table"]
1844 pub fn rs2_run_focal_length_calibration_cpp(
1845 device: *mut rs2_device,
1846 left_queue: *mut rs2_frame_queue,
1847 right_queue: *mut rs2_frame_queue,
1848 target_width: f32,
1849 target_height: f32,
1850 adjust_both_sides: ::std::os::raw::c_int,
1851 ratio: *mut f32,
1852 angle: *mut f32,
1853 progress_callback: *mut rs2_update_progress_callback,
1854 error: *mut *mut rs2_error,
1855 ) -> *const rs2_raw_data_buffer;
1856}
1857unsafe extern "C" {
1858 #[doc = " Run target-based focal length calibration\n \\param[in] device: device to calibrate\n \\param[in] left_queue: container for left IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI.\n \\param[in] right_queue: container for right IR frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI\n \\param[in] target_width: the rectangle width in mm on the target\n \\param[in] target_height: the rectangle height in mm on the target\n \\param[in] adjust_both_sides: 1 for adjusting both left and right camera calibration tables, and 0 for adjusting right camera calibraion table only\n \\param[out] ratio: the corrected ratio from the calibration\n \\param[out] angle: the target's tilt angle\n \\param[in] callback: Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data: Optional client data for the callback\n \\return New calibration table"]
1859 pub fn rs2_run_focal_length_calibration(
1860 device: *mut rs2_device,
1861 left_queue: *mut rs2_frame_queue,
1862 right_queue: *mut rs2_frame_queue,
1863 target_width: f32,
1864 target_height: f32,
1865 adjust_both_sides: ::std::os::raw::c_int,
1866 ratio: *mut f32,
1867 angle: *mut f32,
1868 callback: rs2_update_progress_callback_ptr,
1869 client_data: *mut ::std::os::raw::c_void,
1870 error: *mut *mut rs2_error,
1871 ) -> *const rs2_raw_data_buffer;
1872}
1873unsafe extern "C" {
1874 #[doc = " Depth-RGB UV-Map calibration. Applicable for D400 cameras\n \\param[in] device: device to calibrate\n \\param[in] left_queue: the frame queue for left IR frames with resoluton of 1280x720 and the target captured in the center of 320x240 pixels ROI.\n \\param[in] color_queue: the frame queue for RGB frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI\n \\param[in] depth_queue: the frame queue for Depth frames with resoluton of 1280x720\n \\param[in] py_px_only: 1 for calibrating color camera py and px only, 1 for calibrating color camera py, px, fy, and fx.\n \\param[out] health: The four health check numbers in order of px, py, fx, fy for the calibration\n \\param[in] health_size: number of health check numbers, which is 4 by default\n \\param[in] callback: Optional callback for update progress notifications, the progress value is normailzed to 1\n \\return New calibration table"]
1875 pub fn rs2_run_uv_map_calibration_cpp(
1876 device: *mut rs2_device,
1877 left_queue: *mut rs2_frame_queue,
1878 color_queue: *mut rs2_frame_queue,
1879 depth_queue: *mut rs2_frame_queue,
1880 py_px_only: ::std::os::raw::c_int,
1881 health: *mut f32,
1882 health_size: ::std::os::raw::c_int,
1883 progress_callback: *mut rs2_update_progress_callback,
1884 error: *mut *mut rs2_error,
1885 ) -> *const rs2_raw_data_buffer;
1886}
1887unsafe extern "C" {
1888 #[doc = " Depth-RGB UV-Map calibration. Applicable for D400 cameras\n \\param[in] device: device to calibrate\n \\param[in] left_queue: the frame queue for left IR frames with resoluton of 1280x720 and the target captured in the center of 320x240 pixels ROI.\n \\param[in] color_queue: the frame queue for RGB frames with resoluton of 1280x720 and the target in the center of 320x240 pixels ROI\n \\param[in] depth_queue: the frame queue for Depth frames with resoluton of 1280x720\n \\param[in] py_px_only: 1 for calibrating color camera py and px only, 1 for calibrating color camera py, px, fy, and fx.\n \\param[out] health: The four health check numbers in order of px, py, fx, fy for the calibration\n \\param[in] health_size: number of health check numbers, which is 4 by default\n \\param[in] callback: Optional callback for update progress notifications, the progress value is normailzed to 1\n \\param[in] client_data: Optional client data for the callback\n \\return New calibration table"]
1889 pub fn rs2_run_uv_map_calibration(
1890 device: *mut rs2_device,
1891 left_queue: *mut rs2_frame_queue,
1892 color_queue: *mut rs2_frame_queue,
1893 depth_queue: *mut rs2_frame_queue,
1894 py_px_only: ::std::os::raw::c_int,
1895 health: *mut f32,
1896 health_size: ::std::os::raw::c_int,
1897 callback: rs2_update_progress_callback_ptr,
1898 client_data: *mut ::std::os::raw::c_void,
1899 error: *mut *mut rs2_error,
1900 ) -> *const rs2_raw_data_buffer;
1901}
1902unsafe extern "C" {
1903 #[doc = " Calculate Z for calibration target - distance to the target's plane\n \\param[in] queue1-3: A frame queue of raw images used to calculate and extract the distance to a predefined target pattern.\n For D400 the indexes 1-3 correspond to Left IR, Right IR and Depth with only the Left IR being used\n \\param[in] target_width: Expected target's horizontal dimension in mm\n \\param[in] target_height: Expected target's vertical dimension in mm\n \\param[in] callback: Optional callback for reporting progress status\n \\return Calculated distance (Z) to target in millimeter, or negative number if failed"]
1904 pub fn rs2_calculate_target_z_cpp(
1905 device: *mut rs2_device,
1906 queue1: *mut rs2_frame_queue,
1907 queue2: *mut rs2_frame_queue,
1908 queue3: *mut rs2_frame_queue,
1909 target_width: f32,
1910 target_height: f32,
1911 callback: *mut rs2_update_progress_callback,
1912 error: *mut *mut rs2_error,
1913 ) -> f32;
1914}
1915unsafe extern "C" {
1916 #[doc = " Calculate Z for calibration target - distance to the target's plane\n \\param[in] queue1-3: A frame queue of raw images used to calculate and extract the distance to a predefined target pattern.\n For D400 the indexes 1-3 correspond to Left IR, Right IR and Depth with only the Left IR being used\n \\param[in] target_width: Expected target's horizontal dimension in mm\n \\param[in] target_height: Expected target's vertical dimension in mm\n \\param[in] callback: Optional callback for reporting progress status\n \\param[in] client_data: Optional client data for the callback\n \\return Calculated distance (Z) to target in millimeter, or negative number if failed"]
1917 pub fn rs2_calculate_target_z(
1918 device: *mut rs2_device,
1919 queue1: *mut rs2_frame_queue,
1920 queue2: *mut rs2_frame_queue,
1921 queue3: *mut rs2_frame_queue,
1922 target_width: f32,
1923 target_height: f32,
1924 progress_callback: rs2_update_progress_callback_ptr,
1925 client_data: *mut ::std::os::raw::c_void,
1926 error: *mut *mut rs2_error,
1927 ) -> f32;
1928}
1929unsafe extern "C" {
1930 #[doc = " rs2_get_calibration_config\n \\param[in] device Device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return JSON string representing the calibration config as rs2_raw_data_buffer"]
1931 pub fn rs2_get_calibration_config(
1932 device: *mut rs2_device,
1933 error: *mut *mut rs2_error,
1934 ) -> *const rs2_raw_data_buffer;
1935}
1936unsafe extern "C" {
1937 #[doc = " rs2_set_calibration_config\n \\param[in] sensor Safety sensor\n \\param[in] calibration_config_json_str Calibration config as JSON string\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
1938 pub fn rs2_set_calibration_config(
1939 device: *mut rs2_device,
1940 calibration_config_json_str: *const ::std::os::raw::c_char,
1941 error: *mut *mut rs2_error,
1942 );
1943}
1944#[doc = "< Frame timestamp was measured in relation to the camera clock"]
1945pub const rs2_timestamp_domain_RS2_TIMESTAMP_DOMAIN_HARDWARE_CLOCK: rs2_timestamp_domain = 0;
1946#[doc = "< Frame timestamp was measured in relation to the OS system clock"]
1947pub const rs2_timestamp_domain_RS2_TIMESTAMP_DOMAIN_SYSTEM_TIME: rs2_timestamp_domain = 1;
1948#[doc = "< Frame timestamp was measured in relation to the camera clock and converted to OS system clock by constantly measure the difference"]
1949pub const rs2_timestamp_domain_RS2_TIMESTAMP_DOMAIN_GLOBAL_TIME: rs2_timestamp_domain = 2;
1950#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
1951pub const rs2_timestamp_domain_RS2_TIMESTAMP_DOMAIN_COUNT: rs2_timestamp_domain = 3;
1952#[doc = " \\brief Specifies the clock in relation to which the frame timestamp was measured."]
1953pub type rs2_timestamp_domain = ::std::os::raw::c_uint;
1954unsafe extern "C" {
1955 pub fn rs2_timestamp_domain_to_string(
1956 info: rs2_timestamp_domain,
1957 ) -> *const ::std::os::raw::c_char;
1958}
1959#[doc = "< A sequential index managed per-stream. Integer value"]
1960pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_COUNTER: rs2_frame_metadata_value = 0;
1961#[doc = "< Timestamp set by device clock when data readout and transmit commence. usec"]
1962pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_TIMESTAMP: rs2_frame_metadata_value = 1;
1963#[doc = "< Timestamp of the middle of sensor's exposure calculated by device. usec"]
1964pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SENSOR_TIMESTAMP: rs2_frame_metadata_value =
1965 2;
1966#[doc = "< Sensor's exposure width. When Auto Exposure (AE) is on the value is controlled by firmware. usec"]
1967pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_ACTUAL_EXPOSURE: rs2_frame_metadata_value = 3;
1968#[doc = "< A relative value increasing which will increase the Sensor's gain factor. \\\nWhen AE is set On, the value is controlled by firmware. Integer value"]
1969pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_GAIN_LEVEL: rs2_frame_metadata_value = 4;
1970#[doc = "< Auto Exposure Mode indicator. Zero corresponds to AE switched off."]
1971pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_AUTO_EXPOSURE: rs2_frame_metadata_value = 5;
1972#[doc = "< White Balance setting as a color temperature. Kelvin degrees"]
1973pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_WHITE_BALANCE: rs2_frame_metadata_value = 6;
1974#[doc = "< Time of arrival in system clock"]
1975pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_TIME_OF_ARRIVAL: rs2_frame_metadata_value = 7;
1976#[doc = "< Temperature of the device, measured at the time of the frame capture. Celsius degrees"]
1977pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_TEMPERATURE: rs2_frame_metadata_value = 8;
1978#[doc = "< Timestamp get from uvc driver. usec"]
1979pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_BACKEND_TIMESTAMP: rs2_frame_metadata_value =
1980 9;
1981#[doc = "< Actual fps, times 1000 (30.1 fps would be 30100 in the metadata)"]
1982pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_ACTUAL_FPS: rs2_frame_metadata_value = 10;
1983#[doc = "< Laser power value 0-360."]
1984pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_LASER_POWER: rs2_frame_metadata_value =
1985 11;
1986#[doc = "< Laser power mode. Zero corresponds to Laser power switched off and one for switched on. deprecated, replaced by RS2_FRAME_METADATA_FRAME_EMITTER_MODE"]
1987pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_LASER_POWER_MODE:
1988 rs2_frame_metadata_value = 12;
1989#[doc = "< Exposure priority."]
1990pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_EXPOSURE_PRIORITY: rs2_frame_metadata_value =
1991 13;
1992#[doc = "< Left region of interest for the auto exposure Algorithm."]
1993pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_EXPOSURE_ROI_LEFT: rs2_frame_metadata_value =
1994 14;
1995#[doc = "< Right region of interest for the auto exposure Algorithm."]
1996pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_EXPOSURE_ROI_RIGHT: rs2_frame_metadata_value =
1997 15;
1998#[doc = "< Top region of interest for the auto exposure Algorithm."]
1999pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_EXPOSURE_ROI_TOP: rs2_frame_metadata_value =
2000 16;
2001#[doc = "< Bottom region of interest for the auto exposure Algorithm."]
2002pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_EXPOSURE_ROI_BOTTOM:
2003 rs2_frame_metadata_value = 17;
2004#[doc = "< Color image brightness."]
2005pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_BRIGHTNESS: rs2_frame_metadata_value = 18;
2006#[doc = "< Color image contrast."]
2007pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_CONTRAST: rs2_frame_metadata_value = 19;
2008#[doc = "< Color image saturation."]
2009pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SATURATION: rs2_frame_metadata_value = 20;
2010#[doc = "< Color image sharpness."]
2011pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SHARPNESS: rs2_frame_metadata_value = 21;
2012#[doc = "< Auto white balance temperature Mode indicator. Zero corresponds to automatic mode switched off."]
2013pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_AUTO_WHITE_BALANCE_TEMPERATURE:
2014 rs2_frame_metadata_value = 22;
2015#[doc = "< Color backlight compensation. Zero corresponds to switched off."]
2016pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_BACKLIGHT_COMPENSATION:
2017 rs2_frame_metadata_value = 23;
2018#[doc = "< Color image hue."]
2019pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_HUE: rs2_frame_metadata_value = 24;
2020#[doc = "< Color image gamma."]
2021pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_GAMMA: rs2_frame_metadata_value = 25;
2022#[doc = "< Color image white balance."]
2023pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_MANUAL_WHITE_BALANCE:
2024 rs2_frame_metadata_value = 26;
2025#[doc = "< Power Line Frequency for anti-flickering Off/50Hz/60Hz/Auto."]
2026pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_POWER_LINE_FREQUENCY:
2027 rs2_frame_metadata_value = 27;
2028#[doc = "< Color lowlight compensation. Zero corresponds to switched off."]
2029pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_LOW_LIGHT_COMPENSATION:
2030 rs2_frame_metadata_value = 28;
2031#[doc = "< Emitter mode: 0 - all emitters disabled. 1 - laser enabled. 2 - auto laser enabled (opt). 3 - LED enabled (opt)."]
2032pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_EMITTER_MODE: rs2_frame_metadata_value =
2033 29;
2034#[doc = "< Led power value 0-360."]
2035pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_FRAME_LED_POWER: rs2_frame_metadata_value =
2036 30;
2037#[doc = "< The number of transmitted payload bytes, not including metadata"]
2038pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_RAW_FRAME_SIZE: rs2_frame_metadata_value = 31;
2039#[doc = "< GPIO input data"]
2040pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_GPIO_INPUT_DATA: rs2_frame_metadata_value =
2041 32;
2042#[doc = "< sub-preset id"]
2043pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SEQUENCE_NAME: rs2_frame_metadata_value = 33;
2044#[doc = "< sub-preset sequence id"]
2045pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SEQUENCE_ID: rs2_frame_metadata_value = 34;
2046#[doc = "< sub-preset sequence size"]
2047pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SEQUENCE_SIZE: rs2_frame_metadata_value = 35;
2048#[doc = "< Frame trigger type"]
2049pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_TRIGGER: rs2_frame_metadata_value = 36;
2050#[doc = "< Preset id, used in MIPI SKU Metadata"]
2051pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_PRESET: rs2_frame_metadata_value = 37;
2052#[doc = "< Frame input width in pixels, used as safety attribute"]
2053pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_INPUT_WIDTH: rs2_frame_metadata_value = 38;
2054#[doc = "< Frame input height in pixels, used as safety attribute"]
2055pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_INPUT_HEIGHT: rs2_frame_metadata_value = 39;
2056#[doc = "< Sub-preset information"]
2057pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_SUB_PRESET_INFO: rs2_frame_metadata_value =
2058 40;
2059#[doc = "< FW-controlled frame counter to be using in Calibration scenarios"]
2060pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_CALIB_INFO: rs2_frame_metadata_value = 41;
2061#[doc = "< CRC checksum of the Metadata"]
2062pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_CRC: rs2_frame_metadata_value = 42;
2063pub const rs2_frame_metadata_value_RS2_FRAME_METADATA_COUNT: rs2_frame_metadata_value = 43;
2064#[doc = " \\brief Per-Frame-Metadata is the set of read-only properties that might be exposed for each individual frame."]
2065pub type rs2_frame_metadata_value = ::std::os::raw::c_uint;
2066unsafe extern "C" {
2067 pub fn rs2_frame_metadata_to_string(
2068 metadata: rs2_frame_metadata_value,
2069 ) -> *const ::std::os::raw::c_char;
2070}
2071unsafe extern "C" {
2072 pub fn rs2_frame_metadata_value_to_string(
2073 metadata: rs2_frame_metadata_value,
2074 ) -> *const ::std::os::raw::c_char;
2075}
2076#[doc = "< Flat rectangle with vertices as the centers of Gaussian dots"]
2077pub const rs2_calib_target_type_RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES: rs2_calib_target_type =
2078 0;
2079#[doc = "< Flat rectangle with vertices as the centers of Gaussian dots with target inside the ROI"]
2080pub const rs2_calib_target_type_RS2_CALIB_TARGET_ROI_RECT_GAUSSIAN_DOT_VERTICES:
2081 rs2_calib_target_type = 1;
2082#[doc = "< Positions of vertices as the centers of Gaussian dots with target inside the ROI"]
2083pub const rs2_calib_target_type_RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES: rs2_calib_target_type =
2084 2;
2085#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2086pub const rs2_calib_target_type_RS2_CALIB_TARGET_COUNT: rs2_calib_target_type = 3;
2087#[doc = " \\brief Calibration target type."]
2088pub type rs2_calib_target_type = ::std::os::raw::c_uint;
2089unsafe extern "C" {
2090 pub fn rs2_calib_target_type_to_string(
2091 type_: rs2_calib_target_type,
2092 ) -> *const ::std::os::raw::c_char;
2093}
2094unsafe extern "C" {
2095 #[doc = " retrieve metadata from frame handle\n \\param[in] frame handle returned from a callback\n \\param[in] frame_metadata the rs2_frame_metadata whose latest frame we are interested in\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the metadata value"]
2096 pub fn rs2_get_frame_metadata(
2097 frame: *const rs2_frame,
2098 frame_metadata: rs2_frame_metadata_value,
2099 error: *mut *mut rs2_error,
2100 ) -> rs2_metadata_type;
2101}
2102unsafe extern "C" {
2103 #[doc = " determine device metadata\n \\param[in] frame handle returned from a callback\n \\param[in] frame_metadata the metadata to check for support\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if device has this metadata"]
2104 pub fn rs2_supports_frame_metadata(
2105 frame: *const rs2_frame,
2106 frame_metadata: rs2_frame_metadata_value,
2107 error: *mut *mut rs2_error,
2108 ) -> ::std::os::raw::c_int;
2109}
2110unsafe extern "C" {
2111 #[doc = " retrieve timestamp domain from frame handle. timestamps can only be comparable if they are in common domain\n (for example, depth timestamp might come from system time while color timestamp might come from the device)\n this method is used to check if two timestamp values are comparable (generated from the same clock)\n \\param[in] frameset handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the timestamp domain of the frame (camera / microcontroller / system time)"]
2112 pub fn rs2_get_frame_timestamp_domain(
2113 frameset: *const rs2_frame,
2114 error: *mut *mut rs2_error,
2115 ) -> rs2_timestamp_domain;
2116}
2117unsafe extern "C" {
2118 #[doc = " retrieve timestamp from frame handle in milliseconds\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the timestamp of the frame in milliseconds"]
2119 pub fn rs2_get_frame_timestamp(
2120 frame: *const rs2_frame,
2121 error: *mut *mut rs2_error,
2122 ) -> rs2_time_t;
2123}
2124unsafe extern "C" {
2125 #[doc = " retrieve frame parent sensor from frame handle\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the parent sensor of the frame"]
2126 pub fn rs2_get_frame_sensor(
2127 frame: *const rs2_frame,
2128 error: *mut *mut rs2_error,
2129 ) -> *mut rs2_sensor;
2130}
2131unsafe extern "C" {
2132 #[doc = " retrieve frame number from frame handle\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the frame number"]
2133 pub fn rs2_get_frame_number(
2134 frame: *const rs2_frame,
2135 error: *mut *mut rs2_error,
2136 ) -> ::std::os::raw::c_ulonglong;
2137}
2138unsafe extern "C" {
2139 #[doc = " retrieve data size from frame handle\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the size of the frame data"]
2140 pub fn rs2_get_frame_data_size(
2141 frame: *const rs2_frame,
2142 error: *mut *mut rs2_error,
2143 ) -> ::std::os::raw::c_int;
2144}
2145unsafe extern "C" {
2146 #[doc = " retrieve data from frame handle\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the pointer to the start of the frame data"]
2147 pub fn rs2_get_frame_data(
2148 frame: *const rs2_frame,
2149 error: *mut *mut rs2_error,
2150 ) -> *const ::std::os::raw::c_void;
2151}
2152unsafe extern "C" {
2153 #[doc = " retrieve frame width in pixels\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return frame width in pixels"]
2154 pub fn rs2_get_frame_width(
2155 frame: *const rs2_frame,
2156 error: *mut *mut rs2_error,
2157 ) -> ::std::os::raw::c_int;
2158}
2159unsafe extern "C" {
2160 #[doc = " retrieve frame height in pixels\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return frame height in pixels"]
2161 pub fn rs2_get_frame_height(
2162 frame: *const rs2_frame,
2163 error: *mut *mut rs2_error,
2164 ) -> ::std::os::raw::c_int;
2165}
2166unsafe extern "C" {
2167 #[doc = " retrieve the scaling factor to use when converting a depth frame's get_data() units to meters\n \\return float - depth, in meters, per 1 unit stored in the frame data"]
2168 pub fn rs2_depth_frame_get_units(frame: *const rs2_frame, error: *mut *mut rs2_error) -> f32;
2169}
2170unsafe extern "C" {
2171 #[doc = " retrieve frame stride in bytes (number of bytes from start of line N to start of line N+1)\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return stride in bytes"]
2172 pub fn rs2_get_frame_stride_in_bytes(
2173 frame: *const rs2_frame,
2174 error: *mut *mut rs2_error,
2175 ) -> ::std::os::raw::c_int;
2176}
2177unsafe extern "C" {
2178 #[doc = " retrieve bits per pixels in the frame image\n (note that bits per pixel is not necessarily divided by 8, as in 12bpp)\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return bits per pixel"]
2179 pub fn rs2_get_frame_bits_per_pixel(
2180 frame: *const rs2_frame,
2181 error: *mut *mut rs2_error,
2182 ) -> ::std::os::raw::c_int;
2183}
2184unsafe extern "C" {
2185 #[doc = " create additional reference to a frame without duplicating frame data\n \\param[in] frame handle returned from a callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new frame reference, has to be released by rs2_release_frame"]
2186 pub fn rs2_frame_add_ref(frame: *mut rs2_frame, error: *mut *mut rs2_error);
2187}
2188unsafe extern "C" {
2189 #[doc = " relases the frame handle\n \\param[in] frame handle returned from a callback"]
2190 pub fn rs2_release_frame(frame: *mut rs2_frame);
2191}
2192unsafe extern "C" {
2193 #[doc = " communicate to the library you intend to keep the frame alive for a while\n this will remove the frame from the regular count of the frame pool\n once this function is called, the SDK can no longer guarantee 0-allocations during frame cycling\n \\param[in] frame handle returned from a callback"]
2194 pub fn rs2_keep_frame(frame: *mut rs2_frame);
2195}
2196unsafe extern "C" {
2197 #[doc = " When called on Points frame type, this method returns a pointer to an array of 3D vertices of the model\n The coordinate system is: X right, Y up, Z away from the camera. Units: Meters\n \\param[in] frame Points frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Pointer to an array of vertices, lifetime is managed by the frame"]
2198 pub fn rs2_get_frame_vertices(
2199 frame: *const rs2_frame,
2200 error: *mut *mut rs2_error,
2201 ) -> *mut rs2_vertex;
2202}
2203unsafe extern "C" {
2204 #[doc = " When called on Points frame type, this method creates a ply file of the model with the given file name.\n \\param[in] frame Points frame\n \\param[in] fname The name for the ply file\n \\param[in] texture Texture frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2205 pub fn rs2_export_to_ply(
2206 frame: *const rs2_frame,
2207 fname: *const ::std::os::raw::c_char,
2208 texture: *mut rs2_frame,
2209 error: *mut *mut rs2_error,
2210 );
2211}
2212unsafe extern "C" {
2213 #[doc = " When called on Points frame type, this method returns a pointer to an array of texture coordinates per vertex\n Each coordinate represent a (u,v) pair within [0,1] range, to be mapped to texture image\n \\param[in] frame Points frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Pointer to an array of texture coordinates, lifetime is managed by the frame"]
2214 pub fn rs2_get_frame_texture_coordinates(
2215 frame: *const rs2_frame,
2216 error: *mut *mut rs2_error,
2217 ) -> *mut rs2_pixel;
2218}
2219unsafe extern "C" {
2220 #[doc = " When called on Points frame type, this method returns the number of vertices in the frame\n \\param[in] frame Points frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Number of vertices"]
2221 pub fn rs2_get_frame_points_count(
2222 frame: *const rs2_frame,
2223 error: *mut *mut rs2_error,
2224 ) -> ::std::os::raw::c_int;
2225}
2226unsafe extern "C" {
2227 #[doc = " Returns the stream profile that was used to start the stream of this frame\n \\param[in] frame frame reference, owned by the user\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Pointer to the stream profile object, lifetime is managed elsewhere"]
2228 pub fn rs2_get_frame_stream_profile(
2229 frame: *const rs2_frame,
2230 error: *mut *mut rs2_error,
2231 ) -> *const rs2_stream_profile;
2232}
2233unsafe extern "C" {
2234 #[doc = " Returns the stream profile name\n \\param[in] profile stream profile whose name we want to get\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Stream name, as a null terminated string"]
2235 pub fn rs2_get_stream_profile_name(
2236 profile: *const rs2_stream_profile,
2237 error: *mut *mut rs2_error,
2238 ) -> *const ::std::os::raw::c_char;
2239}
2240unsafe extern "C" {
2241 #[doc = " Test if the given frame can be extended to the requested extension\n \\param[in] frame Realsense frame\n \\param[in] extension_type The extension to which the frame should be tested if it is extendable\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return non-zero value iff the frame can be extended to the given extension"]
2242 pub fn rs2_is_frame_extendable_to(
2243 frame: *const rs2_frame,
2244 extension_type: rs2_extension,
2245 error: *mut *mut rs2_error,
2246 ) -> ::std::os::raw::c_int;
2247}
2248unsafe extern "C" {
2249 #[doc = " Allocate new video frame using a frame-source provided form a processing block\n \\param[in] source Frame pool to allocate the frame from\n \\param[in] new_stream New stream profile to assign to newly created frame\n \\param[in] original A reference frame that can be used to fill in auxilary information like format, width, height, bpp, stride (if applicable)\n \\param[in] new_bpp New value for bits per pixel for the allocated frame\n \\param[in] new_width New value for width for the allocated frame\n \\param[in] new_height New value for height for the allocated frame\n \\param[in] new_stride New value for stride in bytes for the allocated frame\n \\param[in] frame_type New value for frame type for the allocated frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return reference to a newly allocated frame, must be released with release_frame\n memory for the frame is likely to be re-used from previous frame, but in lack of available frames in the pool will be allocated from the free store"]
2250 pub fn rs2_allocate_synthetic_video_frame(
2251 source: *mut rs2_source,
2252 new_stream: *const rs2_stream_profile,
2253 original: *mut rs2_frame,
2254 new_bpp: ::std::os::raw::c_int,
2255 new_width: ::std::os::raw::c_int,
2256 new_height: ::std::os::raw::c_int,
2257 new_stride: ::std::os::raw::c_int,
2258 frame_type: rs2_extension,
2259 error: *mut *mut rs2_error,
2260 ) -> *mut rs2_frame;
2261}
2262unsafe extern "C" {
2263 #[doc = " Allocate new motion frame using a frame-source provided form a processing block\n \\param[in] source Frame pool to allocate the frame from\n \\param[in] new_stream New stream profile to assign to newly created frame\n \\param[in] original A reference frame that can be used to fill in auxilary information like format, width, height, bpp, stride (if applicable)\n \\param[in] frame_type New value for frame type for the allocated frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return reference to a newly allocated frame, must be released with release_frame\n memory for the frame is likely to be re-used from previous frame, but in lack of available frames in the pool will be allocated from the free store"]
2264 pub fn rs2_allocate_synthetic_motion_frame(
2265 source: *mut rs2_source,
2266 new_stream: *const rs2_stream_profile,
2267 original: *mut rs2_frame,
2268 frame_type: rs2_extension,
2269 error: *mut *mut rs2_error,
2270 ) -> *mut rs2_frame;
2271}
2272unsafe extern "C" {
2273 #[doc = " Allocate new points frame using a frame-source provided from a processing block\n \\param[in] source Frame pool to allocate the frame from\n \\param[in] new_stream New stream profile to assign to newly created frame\n \\param[in] original A reference frame that can be used to fill in auxilary information like format, width, height, bpp, stride (if applicable)\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return reference to a newly allocated frame, must be released with release_frame\n memory for the frame is likely to be re-used from previous frame, but in lack of available frames in the pool will be allocated from the free store"]
2274 pub fn rs2_allocate_points(
2275 source: *mut rs2_source,
2276 new_stream: *const rs2_stream_profile,
2277 original: *mut rs2_frame,
2278 error: *mut *mut rs2_error,
2279 ) -> *mut rs2_frame;
2280}
2281unsafe extern "C" {
2282 #[doc = " Allocate new composite frame, aggregating a set of existing frames\n \\param[in] source Frame pool to allocate the frame from\n \\param[in] frames Array of existing frames\n \\param[in] count Number of input frames\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return reference to a newly allocated frame, must be released with release_frame\n when composite frame gets released it will automatically release all of the input frames"]
2283 pub fn rs2_allocate_composite_frame(
2284 source: *mut rs2_source,
2285 frames: *mut *mut rs2_frame,
2286 count: ::std::os::raw::c_int,
2287 error: *mut *mut rs2_error,
2288 ) -> *mut rs2_frame;
2289}
2290unsafe extern "C" {
2291 #[doc = " Extract frame from within a composite frame\n \\param[in] composite Composite frame\n \\param[in] index Index of the frame to extract within the composite frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return returns reference to a frame existing within the composite frame\n If you wish to keep this frame after the composite is released, you need to call acquire_ref\n Otherwise the resulting frame lifetime is bound by owning composite frame"]
2292 pub fn rs2_extract_frame(
2293 composite: *mut rs2_frame,
2294 index: ::std::os::raw::c_int,
2295 error: *mut *mut rs2_error,
2296 ) -> *mut rs2_frame;
2297}
2298unsafe extern "C" {
2299 #[doc = " Get number of frames embedded within a composite frame\n \\param[in] composite Composite input frame\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Number of embedded frames"]
2300 pub fn rs2_embedded_frames_count(
2301 composite: *mut rs2_frame,
2302 error: *mut *mut rs2_error,
2303 ) -> ::std::os::raw::c_int;
2304}
2305unsafe extern "C" {
2306 #[doc = " This method will dispatch frame callback on a frame\n \\param[in] source Frame pool provided by the processing block\n \\param[in] frame Frame to dispatch, frame ownership is passed to this function, so you don't have to call release_frame after it\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2307 pub fn rs2_synthetic_frame_ready(
2308 source: *mut rs2_source,
2309 frame: *mut rs2_frame,
2310 error: *mut *mut rs2_error,
2311 );
2312}
2313unsafe extern "C" {
2314 #[doc = " When called on Pose frame type, this method returns the transformation represented by the pose data\n \\param[in] frame Pose frame\n \\param[out] pose Pointer to a user allocated struct, which contains the pose info after a successful return\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2315 pub fn rs2_pose_frame_get_pose_data(
2316 frame: *const rs2_frame,
2317 pose: *mut rs2_pose,
2318 error: *mut *mut rs2_error,
2319 );
2320}
2321unsafe extern "C" {
2322 #[doc = " Extract the target dimensions on the specific target\n \\param[in] frame Left or right camera frame of specified size based on the target type\n \\param[in] calib_type Calibration target type\n \\param[in] target_dims_size Target dimension array size. 4 for RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES and 8 for RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES.\n \\param[out] target_dims The array to hold the result target dimensions calculated.\nFor type RS2_CALIB_TARGET_RECT_GAUSSIAN_DOT_VERTICES, the four rectangle side sizes in pixels with the order of top, bottom, left, and right\nFor type RS2_CALIB_TARGET_POS_GAUSSIAN_DOT_VERTICES, the four vertices coordinates in pixels with the order of top, bottom, left, and right\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2323 pub fn rs2_extract_target_dimensions(
2324 frame: *const rs2_frame,
2325 calib_type: rs2_calib_target_type,
2326 target_dims: *mut f32,
2327 target_dims_size: ::std::os::raw::c_uint,
2328 error: *mut *mut rs2_error,
2329 );
2330}
2331#[doc = "< Enable / disable color backlight compensation"]
2332pub const rs2_option_RS2_OPTION_BACKLIGHT_COMPENSATION: rs2_option = 0;
2333#[doc = "< Color image brightness"]
2334pub const rs2_option_RS2_OPTION_BRIGHTNESS: rs2_option = 1;
2335#[doc = "< Color image contrast"]
2336pub const rs2_option_RS2_OPTION_CONTRAST: rs2_option = 2;
2337#[doc = "< Controls exposure time of color camera. Setting any value will disable auto exposure"]
2338pub const rs2_option_RS2_OPTION_EXPOSURE: rs2_option = 3;
2339#[doc = "< Color image gain"]
2340pub const rs2_option_RS2_OPTION_GAIN: rs2_option = 4;
2341#[doc = "< Color image gamma setting"]
2342pub const rs2_option_RS2_OPTION_GAMMA: rs2_option = 5;
2343#[doc = "< Color image hue"]
2344pub const rs2_option_RS2_OPTION_HUE: rs2_option = 6;
2345#[doc = "< Color image saturation setting"]
2346pub const rs2_option_RS2_OPTION_SATURATION: rs2_option = 7;
2347#[doc = "< Color image sharpness setting"]
2348pub const rs2_option_RS2_OPTION_SHARPNESS: rs2_option = 8;
2349#[doc = "< Controls white balance of color image. Setting any value will disable auto white balance"]
2350pub const rs2_option_RS2_OPTION_WHITE_BALANCE: rs2_option = 9;
2351#[doc = "< Enable / disable auto-exposure"]
2352pub const rs2_option_RS2_OPTION_ENABLE_AUTO_EXPOSURE: rs2_option = 10;
2353#[doc = "< Enable / disable color image auto-white-balance"]
2354pub const rs2_option_RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE: rs2_option = 11;
2355#[doc = "< Provide access to several recommend sets of option presets for the depth camera"]
2356pub const rs2_option_RS2_OPTION_VISUAL_PRESET: rs2_option = 12;
2357#[doc = "< Power of the laser emitter (mW), with 0 meaning projector turned off"]
2358pub const rs2_option_RS2_OPTION_LASER_POWER: rs2_option = 13;
2359#[doc = "< Set the number of patterns projected per frame. The higher the accuracy value the more patterns projected. Increasing the number of patterns help to achieve better accuracy. Note that this control is affecting the Depth FPS"]
2360pub const rs2_option_RS2_OPTION_ACCURACY: rs2_option = 14;
2361#[doc = "< Motion vs. Range trade-off, with lower values allowing for better motion sensitivity and higher values allowing for better depth range"]
2362pub const rs2_option_RS2_OPTION_MOTION_RANGE: rs2_option = 15;
2363#[doc = "< Set the filter to apply to each depth frame. Each one of the filter is optimized per the application requirements"]
2364pub const rs2_option_RS2_OPTION_FILTER_OPTION: rs2_option = 16;
2365#[doc = "< The confidence level threshold used by the Depth algorithm pipe to set whether a pixel will get a valid range or will be marked with invalid range"]
2366pub const rs2_option_RS2_OPTION_CONFIDENCE_THRESHOLD: rs2_option = 17;
2367#[doc = "< Emitter select: 0 - disable all emitters. 1 - enable laser. 2 - enable auto laser. 3 - enable LED."]
2368pub const rs2_option_RS2_OPTION_EMITTER_ENABLED: rs2_option = 18;
2369#[doc = "< Number of frames the user is allowed to keep per stream. Trying to hold-on to more frames will cause frame-drops."]
2370pub const rs2_option_RS2_OPTION_FRAMES_QUEUE_SIZE: rs2_option = 19;
2371#[doc = "< Total number of detected frame drops from all streams"]
2372pub const rs2_option_RS2_OPTION_TOTAL_FRAME_DROPS: rs2_option = 20;
2373#[doc = "< Auto-Exposure modes: Static, Anti-Flicker and Hybrid"]
2374pub const rs2_option_RS2_OPTION_AUTO_EXPOSURE_MODE: rs2_option = 21;
2375#[doc = "< Power Line Frequency control for anti-flickering Off/50Hz/60Hz/Auto"]
2376pub const rs2_option_RS2_OPTION_POWER_LINE_FREQUENCY: rs2_option = 22;
2377#[doc = "< Current Asic Temperature"]
2378pub const rs2_option_RS2_OPTION_ASIC_TEMPERATURE: rs2_option = 23;
2379#[doc = "< disable error handling"]
2380pub const rs2_option_RS2_OPTION_ERROR_POLLING_ENABLED: rs2_option = 24;
2381#[doc = "< Current Projector Temperature"]
2382pub const rs2_option_RS2_OPTION_PROJECTOR_TEMPERATURE: rs2_option = 25;
2383#[doc = "< Enable / disable trigger to be outputted from the camera to any external device on every depth frame"]
2384pub const rs2_option_RS2_OPTION_OUTPUT_TRIGGER_ENABLED: rs2_option = 26;
2385#[doc = "< Current Motion-Module Temperature"]
2386pub const rs2_option_RS2_OPTION_MOTION_MODULE_TEMPERATURE: rs2_option = 27;
2387#[doc = "< Number of meters represented by a single depth unit"]
2388pub const rs2_option_RS2_OPTION_DEPTH_UNITS: rs2_option = 28;
2389#[doc = "< Enable/Disable automatic correction of the motion data"]
2390pub const rs2_option_RS2_OPTION_ENABLE_MOTION_CORRECTION: rs2_option = 29;
2391#[doc = "< Allows sensor to dynamically adjust the frame rate depending on lighting conditions"]
2392pub const rs2_option_RS2_OPTION_AUTO_EXPOSURE_PRIORITY: rs2_option = 30;
2393#[doc = "< Color scheme for data visualization"]
2394pub const rs2_option_RS2_OPTION_COLOR_SCHEME: rs2_option = 31;
2395#[doc = "< Perform histogram equalization post-processing on the depth data"]
2396pub const rs2_option_RS2_OPTION_HISTOGRAM_EQUALIZATION_ENABLED: rs2_option = 32;
2397#[doc = "< Minimal distance to the target"]
2398pub const rs2_option_RS2_OPTION_MIN_DISTANCE: rs2_option = 33;
2399#[doc = "< Maximum distance to the target"]
2400pub const rs2_option_RS2_OPTION_MAX_DISTANCE: rs2_option = 34;
2401#[doc = "< Texture mapping stream unique ID"]
2402pub const rs2_option_RS2_OPTION_TEXTURE_SOURCE: rs2_option = 35;
2403#[doc = "< The 2D-filter effect. The specific interpretation is given within the context of the filter"]
2404pub const rs2_option_RS2_OPTION_FILTER_MAGNITUDE: rs2_option = 36;
2405#[doc = "< 2D-filter parameter controls the weight/radius for smoothing."]
2406pub const rs2_option_RS2_OPTION_FILTER_SMOOTH_ALPHA: rs2_option = 37;
2407#[doc = "< 2D-filter range/validity threshold"]
2408pub const rs2_option_RS2_OPTION_FILTER_SMOOTH_DELTA: rs2_option = 38;
2409#[doc = "< Enhance depth data post-processing with holes filling where appropriate"]
2410pub const rs2_option_RS2_OPTION_HOLES_FILL: rs2_option = 39;
2411#[doc = "< The distance in mm between the first and the second imagers in stereo-based depth cameras"]
2412pub const rs2_option_RS2_OPTION_STEREO_BASELINE: rs2_option = 40;
2413#[doc = "< Allows dynamically adjust the converge step value of the target exposure in Auto-Exposure algorithm"]
2414pub const rs2_option_RS2_OPTION_AUTO_EXPOSURE_CONVERGE_STEP: rs2_option = 41;
2415#[doc = "< Impose Inter-camera HW synchronization mode. Applicable for D400/L500/Rolling Shutter SKUs"]
2416pub const rs2_option_RS2_OPTION_INTER_CAM_SYNC_MODE: rs2_option = 42;
2417#[doc = "< Select a stream to process"]
2418pub const rs2_option_RS2_OPTION_STREAM_FILTER: rs2_option = 43;
2419#[doc = "< Select a stream format to process"]
2420pub const rs2_option_RS2_OPTION_STREAM_FORMAT_FILTER: rs2_option = 44;
2421#[doc = "< Select a stream index to process"]
2422pub const rs2_option_RS2_OPTION_STREAM_INDEX_FILTER: rs2_option = 45;
2423#[doc = "< When supported, this option make the camera to switch the emitter state every frame. 0 for disabled, 1 for enabled"]
2424pub const rs2_option_RS2_OPTION_EMITTER_ON_OFF: rs2_option = 46;
2425#[doc = "< Deprecated!!! - Zero order point x"]
2426pub const rs2_option_RS2_OPTION_ZERO_ORDER_POINT_X: rs2_option = 47;
2427#[doc = "< Deprecated!!! - Zero order point y"]
2428pub const rs2_option_RS2_OPTION_ZERO_ORDER_POINT_Y: rs2_option = 48;
2429#[doc = "< LDD temperature"]
2430pub const rs2_option_RS2_OPTION_LLD_TEMPERATURE: rs2_option = 49;
2431#[doc = "< MC temperature"]
2432pub const rs2_option_RS2_OPTION_MC_TEMPERATURE: rs2_option = 50;
2433#[doc = "< MA temperature"]
2434pub const rs2_option_RS2_OPTION_MA_TEMPERATURE: rs2_option = 51;
2435#[doc = "< Hardware stream configuration"]
2436pub const rs2_option_RS2_OPTION_HARDWARE_PRESET: rs2_option = 52;
2437#[doc = "< disable global time"]
2438pub const rs2_option_RS2_OPTION_GLOBAL_TIME_ENABLED: rs2_option = 53;
2439#[doc = "< APD temperature"]
2440pub const rs2_option_RS2_OPTION_APD_TEMPERATURE: rs2_option = 54;
2441#[doc = "< Enable an internal map"]
2442pub const rs2_option_RS2_OPTION_ENABLE_MAPPING: rs2_option = 55;
2443#[doc = "< Enable appearance based relocalization"]
2444pub const rs2_option_RS2_OPTION_ENABLE_RELOCALIZATION: rs2_option = 56;
2445#[doc = "< Enable position jumping"]
2446pub const rs2_option_RS2_OPTION_ENABLE_POSE_JUMPING: rs2_option = 57;
2447#[doc = "< Enable dynamic calibration"]
2448pub const rs2_option_RS2_OPTION_ENABLE_DYNAMIC_CALIBRATION: rs2_option = 58;
2449#[doc = "< Offset from sensor to depth origin in millimetrers"]
2450pub const rs2_option_RS2_OPTION_DEPTH_OFFSET: rs2_option = 59;
2451#[doc = "< Power of the LED (light emitting diode), with 0 meaning LED off"]
2452pub const rs2_option_RS2_OPTION_LED_POWER: rs2_option = 60;
2453#[doc = "< DEPRECATED! - Toggle Zero-Order mode"]
2454pub const rs2_option_RS2_OPTION_ZERO_ORDER_ENABLED: rs2_option = 61;
2455#[doc = "< Preserve previous map when starting"]
2456pub const rs2_option_RS2_OPTION_ENABLE_MAP_PRESERVATION: rs2_option = 62;
2457#[doc = "< Enable/disable sensor shutdown when a free-fall is detected (on by default)"]
2458pub const rs2_option_RS2_OPTION_FREEFALL_DETECTION_ENABLED: rs2_option = 63;
2459#[doc = "< Changes the exposure time of Avalanche Photo Diode in the receiver"]
2460pub const rs2_option_RS2_OPTION_AVALANCHE_PHOTO_DIODE: rs2_option = 64;
2461#[doc = "< Changes the amount of sharpening in the post-processed image"]
2462pub const rs2_option_RS2_OPTION_POST_PROCESSING_SHARPENING: rs2_option = 65;
2463#[doc = "< Changes the amount of sharpening in the pre-processed image"]
2464pub const rs2_option_RS2_OPTION_PRE_PROCESSING_SHARPENING: rs2_option = 66;
2465#[doc = "< Control edges and background noise"]
2466pub const rs2_option_RS2_OPTION_NOISE_FILTERING: rs2_option = 67;
2467#[doc = "< Enable\\disable pixel invalidation"]
2468pub const rs2_option_RS2_OPTION_INVALIDATION_BYPASS: rs2_option = 68;
2469#[doc = "< DEPRECATED! - Use RS2_OPTION_DIGITAL_GAIN instead."]
2470pub const rs2_option_RS2_OPTION_AMBIENT_LIGHT: rs2_option = 69;
2471#[doc = "< Change the depth digital gain see rs2_digital_gain for values"]
2472pub const rs2_option_RS2_OPTION_DIGITAL_GAIN: rs2_option = 69;
2473#[doc = "< DEPRECATED! - The resolution mode: see rs2_sensor_mode for values"]
2474pub const rs2_option_RS2_OPTION_SENSOR_MODE: rs2_option = 70;
2475#[doc = "< Enable Laser On constantly (GS SKU Only)"]
2476pub const rs2_option_RS2_OPTION_EMITTER_ALWAYS_ON: rs2_option = 71;
2477#[doc = "< Depth Thermal Compensation for selected D400 SKUs"]
2478pub const rs2_option_RS2_OPTION_THERMAL_COMPENSATION: rs2_option = 72;
2479#[doc = "< DEPRECATED as of 2.46!"]
2480pub const rs2_option_RS2_OPTION_TRIGGER_CAMERA_ACCURACY_HEALTH: rs2_option = 73;
2481#[doc = "< DEPRECATED as of 2.46!"]
2482pub const rs2_option_RS2_OPTION_RESET_CAMERA_ACCURACY_HEALTH: rs2_option = 74;
2483#[doc = "< Set host performance mode to optimize device settings so host can keep up with workload, for example, USB transaction granularity, setting option to low performance host leads to larger USB transaction size and reduced number of transactions which improves performance and stability if host is relatively weak as compared to workload"]
2484pub const rs2_option_RS2_OPTION_HOST_PERFORMANCE: rs2_option = 75;
2485#[doc = "< Enable / disable HDR"]
2486pub const rs2_option_RS2_OPTION_HDR_ENABLED: rs2_option = 76;
2487#[doc = "< HDR Sequence name"]
2488pub const rs2_option_RS2_OPTION_SEQUENCE_NAME: rs2_option = 77;
2489#[doc = "< HDR Sequence size"]
2490pub const rs2_option_RS2_OPTION_SEQUENCE_SIZE: rs2_option = 78;
2491#[doc = "< HDR Sequence ID - 0 is not HDR; sequence ID for HDR configuration starts from 1"]
2492pub const rs2_option_RS2_OPTION_SEQUENCE_ID: rs2_option = 79;
2493#[doc = "< Humidity temperature [Deg Celsius]"]
2494pub const rs2_option_RS2_OPTION_HUMIDITY_TEMPERATURE: rs2_option = 80;
2495#[doc = "< Turn on/off the maximum usable depth sensor range given the amount of ambient light in the scene"]
2496pub const rs2_option_RS2_OPTION_ENABLE_MAX_USABLE_RANGE: rs2_option = 81;
2497#[doc = "< Turn on/off the alternate IR, When enabling alternate IR, the IR image is holding the amplitude of the depth correlation."]
2498pub const rs2_option_RS2_OPTION_ALTERNATE_IR: rs2_option = 82;
2499#[doc = "< Noise estimation - indicates the noise on the IR image"]
2500pub const rs2_option_RS2_OPTION_NOISE_ESTIMATION: rs2_option = 83;
2501#[doc = "< Enables data collection for calculating IR pixel reflectivity"]
2502pub const rs2_option_RS2_OPTION_ENABLE_IR_REFLECTIVITY: rs2_option = 84;
2503#[doc = "< Set and get auto exposure limit in microseconds. If the requested exposure limit is greater than frame time, it will be set to frame time at runtime. Setting will not take effect until next streaming session."]
2504pub const rs2_option_RS2_OPTION_AUTO_EXPOSURE_LIMIT: rs2_option = 85;
2505#[doc = "< Set and get auto gain limits ranging from 16 to 248. If the requested gain limit is less than 16, it will be set to 16. If the requested gain limit is greater than 248, it will be set to 248. Setting will not take effect until next streaming session."]
2506pub const rs2_option_RS2_OPTION_AUTO_GAIN_LIMIT: rs2_option = 86;
2507#[doc = "< Enable receiver sensitivity according to ambient light, bounded by the Receiver Gain control."]
2508pub const rs2_option_RS2_OPTION_AUTO_RX_SENSITIVITY: rs2_option = 87;
2509#[doc = "< changes the transmitter frequencies increasing effective range over sharpness."]
2510pub const rs2_option_RS2_OPTION_TRANSMITTER_FREQUENCY: rs2_option = 88;
2511#[doc = "< Enables vertical binning which increases the maximal sensed distance."]
2512pub const rs2_option_RS2_OPTION_VERTICAL_BINNING: rs2_option = 89;
2513#[doc = "< Control receiver sensitivity to incoming light, both projected and ambient (same as APD on L515)."]
2514pub const rs2_option_RS2_OPTION_RECEIVER_SENSITIVITY: rs2_option = 90;
2515#[doc = "< Enable / disable color image auto-exposure"]
2516pub const rs2_option_RS2_OPTION_AUTO_EXPOSURE_LIMIT_TOGGLE: rs2_option = 91;
2517#[doc = "< Enable / disable color image auto-gain"]
2518pub const rs2_option_RS2_OPTION_AUTO_GAIN_LIMIT_TOGGLE: rs2_option = 92;
2519#[doc = "< Select emitter (laser projector) frequency, see rs2_emitter_frequency for values"]
2520pub const rs2_option_RS2_OPTION_EMITTER_FREQUENCY: rs2_option = 93;
2521#[doc = "< Select depth sensor auto exposure mode see rs2_depth_auto_exposure_mode for values"]
2522pub const rs2_option_RS2_OPTION_DEPTH_AUTO_EXPOSURE_MODE: rs2_option = 94;
2523#[doc = "< Temperature of the Optical Head Sensor"]
2524pub const rs2_option_RS2_OPTION_OHM_TEMPERATURE: rs2_option = 95;
2525#[doc = "< Temperature of PVT SOC"]
2526pub const rs2_option_RS2_OPTION_SOC_PVT_TEMPERATURE: rs2_option = 96;
2527#[doc = "< Control of the gyro sensitivity level, see rs2_gyro_sensitivity for values"]
2528pub const rs2_option_RS2_OPTION_GYRO_SENSITIVITY: rs2_option = 97;
2529#[doc = "< The rectangular area used from the streaming profile"]
2530pub const rs2_option_RS2_OPTION_REGION_OF_INTEREST: rs2_option = 98;
2531pub const rs2_option_RS2_OPTION_ROTATION: rs2_option = 99;
2532#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2533pub const rs2_option_RS2_OPTION_COUNT: rs2_option = 100;
2534#[doc = " \\brief Defines general configuration controls.\nThese can generally be mapped to camera UVC controls, and can be set / queried at any time unless stated otherwise."]
2535pub type rs2_option = ::std::os::raw::c_uint;
2536unsafe extern "C" {
2537 #[doc = " Returns the option name if the option exists, or \"UNKNOWN\" otherwise.\n See rs2_option_from_string() for the reverse.\n \\param[in] option the option identifier"]
2538 pub fn rs2_option_to_string(option: rs2_option) -> *const ::std::os::raw::c_char;
2539}
2540unsafe extern "C" {
2541 #[doc = " Get the specific rs2_option identifier given its name if found, or RS2_OPTION_COUNT if not.\n See rs2_option_to_string() for the reverse.\n \\param[in] option_name the case-sensitive option name"]
2542 pub fn rs2_option_from_string(option_name: *const ::std::os::raw::c_char) -> rs2_option;
2543}
2544#[doc = "< 64-bit signed integer value"]
2545pub const rs2_option_type_RS2_OPTION_TYPE_INTEGER: rs2_option_type = 0;
2546pub const rs2_option_type_RS2_OPTION_TYPE_FLOAT: rs2_option_type = 1;
2547pub const rs2_option_type_RS2_OPTION_TYPE_STRING: rs2_option_type = 2;
2548pub const rs2_option_type_RS2_OPTION_TYPE_BOOLEAN: rs2_option_type = 3;
2549pub const rs2_option_type_RS2_OPTION_TYPE_RECT: rs2_option_type = 4;
2550pub const rs2_option_type_RS2_OPTION_TYPE_COUNT: rs2_option_type = 5;
2551#[doc = " \\brief Defines known option value types."]
2552pub type rs2_option_type = ::std::os::raw::c_uint;
2553unsafe extern "C" {
2554 #[doc = " Returns the option type as a string, or \"UNKNOWN\" otherwise.\n \\param[in] type the option type identifier"]
2555 pub fn rs2_option_type_to_string(type_: rs2_option_type) -> *const ::std::os::raw::c_char;
2556}
2557#[doc = " A rectangle expressed in 64 bits, used with rs2_option_value::as_rect.\n Same semantics as rs2_set_region_of_interest."]
2558#[repr(C)]
2559#[derive(Debug, Copy, Clone)]
2560pub struct rs2_option_rect {
2561 pub x1: i16,
2562 pub y1: i16,
2563 pub x2: i16,
2564 pub y2: i16,
2565}
2566#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2567const _: () = {
2568 ["Size of rs2_option_rect"][::std::mem::size_of::<rs2_option_rect>() - 8usize];
2569 ["Alignment of rs2_option_rect"][::std::mem::align_of::<rs2_option_rect>() - 2usize];
2570 ["Offset of field: rs2_option_rect::x1"][::std::mem::offset_of!(rs2_option_rect, x1) - 0usize];
2571 ["Offset of field: rs2_option_rect::y1"][::std::mem::offset_of!(rs2_option_rect, y1) - 2usize];
2572 ["Offset of field: rs2_option_rect::x2"][::std::mem::offset_of!(rs2_option_rect, x2) - 4usize];
2573 ["Offset of field: rs2_option_rect::y2"][::std::mem::offset_of!(rs2_option_rect, y2) - 6usize];
2574};
2575#[doc = " \\brief The value of an option, in a known option type."]
2576#[repr(C)]
2577#[derive(Copy, Clone)]
2578pub struct rs2_option_value {
2579 pub id: rs2_option,
2580 #[doc = "< 0 if no value available; 1 otherwise"]
2581 pub is_valid: ::std::os::raw::c_int,
2582 pub type_: rs2_option_type,
2583 pub __bindgen_anon_1: rs2_option_value__bindgen_ty_1,
2584}
2585#[repr(C, packed)]
2586#[derive(Copy, Clone)]
2587pub union rs2_option_value__bindgen_ty_1 {
2588 #[doc = "< valid only while rs2_option_value is alive!"]
2589 pub as_string: *const ::std::os::raw::c_char,
2590 pub as_float: f32,
2591 #[doc = "< including boolean value"]
2592 pub as_integer: i64,
2593 pub as_rect: rs2_option_rect,
2594}
2595#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2596const _: () = {
2597 ["Size of rs2_option_value__bindgen_ty_1"]
2598 [::std::mem::size_of::<rs2_option_value__bindgen_ty_1>() - 8usize];
2599 ["Alignment of rs2_option_value__bindgen_ty_1"]
2600 [::std::mem::align_of::<rs2_option_value__bindgen_ty_1>() - 1usize];
2601 ["Offset of field: rs2_option_value__bindgen_ty_1::as_string"]
2602 [::std::mem::offset_of!(rs2_option_value__bindgen_ty_1, as_string) - 0usize];
2603 ["Offset of field: rs2_option_value__bindgen_ty_1::as_float"]
2604 [::std::mem::offset_of!(rs2_option_value__bindgen_ty_1, as_float) - 0usize];
2605 ["Offset of field: rs2_option_value__bindgen_ty_1::as_integer"]
2606 [::std::mem::offset_of!(rs2_option_value__bindgen_ty_1, as_integer) - 0usize];
2607 ["Offset of field: rs2_option_value__bindgen_ty_1::as_rect"]
2608 [::std::mem::offset_of!(rs2_option_value__bindgen_ty_1, as_rect) - 0usize];
2609};
2610#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2611const _: () = {
2612 ["Size of rs2_option_value"][::std::mem::size_of::<rs2_option_value>() - 20usize];
2613 ["Alignment of rs2_option_value"][::std::mem::align_of::<rs2_option_value>() - 4usize];
2614 ["Offset of field: rs2_option_value::id"]
2615 [::std::mem::offset_of!(rs2_option_value, id) - 0usize];
2616 ["Offset of field: rs2_option_value::is_valid"]
2617 [::std::mem::offset_of!(rs2_option_value, is_valid) - 4usize];
2618 ["Offset of field: rs2_option_value::type_"]
2619 [::std::mem::offset_of!(rs2_option_value, type_) - 8usize];
2620};
2621#[doc = "< Preset for short range"]
2622pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_SHORT_RANGE: rs2_sr300_visual_preset = 0;
2623#[doc = "< Preset for long range"]
2624pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_LONG_RANGE: rs2_sr300_visual_preset = 1;
2625#[doc = "< Preset for background segmentation"]
2626pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_BACKGROUND_SEGMENTATION:
2627 rs2_sr300_visual_preset = 2;
2628#[doc = "< Preset for gesture recognition"]
2629pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_GESTURE_RECOGNITION:
2630 rs2_sr300_visual_preset = 3;
2631#[doc = "< Preset for object scanning"]
2632pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_OBJECT_SCANNING: rs2_sr300_visual_preset =
2633 4;
2634#[doc = "< Preset for face analytics"]
2635pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_FACE_ANALYTICS: rs2_sr300_visual_preset =
2636 5;
2637#[doc = "< Preset for face login"]
2638pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_FACE_LOGIN: rs2_sr300_visual_preset = 6;
2639#[doc = "< Preset for GR cursor"]
2640pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_GR_CURSOR: rs2_sr300_visual_preset = 7;
2641#[doc = "< Camera default settings"]
2642pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_DEFAULT: rs2_sr300_visual_preset = 8;
2643#[doc = "< Preset for mid-range"]
2644pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_MID_RANGE: rs2_sr300_visual_preset = 9;
2645#[doc = "< Preset for IR only"]
2646pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_IR_ONLY: rs2_sr300_visual_preset = 10;
2647#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2648pub const rs2_sr300_visual_preset_RS2_SR300_VISUAL_PRESET_COUNT: rs2_sr300_visual_preset = 11;
2649#[doc = " \\brief For SR300 devices: provides optimized settings (presets) for specific types of usage."]
2650pub type rs2_sr300_visual_preset = ::std::os::raw::c_uint;
2651unsafe extern "C" {
2652 pub fn rs2_sr300_visual_preset_to_string(
2653 preset: rs2_sr300_visual_preset,
2654 ) -> *const ::std::os::raw::c_char;
2655}
2656pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_CUSTOM: rs2_rs400_visual_preset = 0;
2657pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_DEFAULT: rs2_rs400_visual_preset = 1;
2658pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_HAND: rs2_rs400_visual_preset = 2;
2659pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY: rs2_rs400_visual_preset =
2660 3;
2661pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_HIGH_DENSITY: rs2_rs400_visual_preset = 4;
2662pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY: rs2_rs400_visual_preset =
2663 5;
2664pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN:
2665 rs2_rs400_visual_preset = 6;
2666#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2667pub const rs2_rs400_visual_preset_RS2_RS400_VISUAL_PRESET_COUNT: rs2_rs400_visual_preset = 7;
2668#[doc = " \\brief For RS400 devices: provides optimized settings (presets) for specific types of usage."]
2669pub type rs2_rs400_visual_preset = ::std::os::raw::c_uint;
2670unsafe extern "C" {
2671 pub fn rs2_rs400_visual_preset_to_string(
2672 preset: rs2_rs400_visual_preset,
2673 ) -> *const ::std::os::raw::c_char;
2674}
2675pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_CUSTOM: rs2_l500_visual_preset = 0;
2676pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_DEFAULT: rs2_l500_visual_preset = 1;
2677pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_NO_AMBIENT: rs2_l500_visual_preset = 2;
2678pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_LOW_AMBIENT: rs2_l500_visual_preset = 3;
2679pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_MAX_RANGE: rs2_l500_visual_preset = 4;
2680pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_SHORT_RANGE: rs2_l500_visual_preset = 5;
2681pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_AUTOMATIC: rs2_l500_visual_preset = 6;
2682#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2683pub const rs2_l500_visual_preset_RS2_L500_VISUAL_PRESET_COUNT: rs2_l500_visual_preset = 7;
2684#[doc = " \\brief For L500 devices: provides optimized settings (presets) for specific types of usage."]
2685pub type rs2_l500_visual_preset = ::std::os::raw::c_uint;
2686unsafe extern "C" {
2687 pub fn rs2_l500_visual_preset_to_string(
2688 preset: rs2_l500_visual_preset,
2689 ) -> *const ::std::os::raw::c_char;
2690}
2691pub const rs2_sensor_mode_RS2_SENSOR_MODE_VGA: rs2_sensor_mode = 0;
2692pub const rs2_sensor_mode_RS2_SENSOR_MODE_XGA: rs2_sensor_mode = 1;
2693pub const rs2_sensor_mode_RS2_SENSOR_MODE_QVGA: rs2_sensor_mode = 2;
2694#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2695pub const rs2_sensor_mode_RS2_SENSOR_MODE_COUNT: rs2_sensor_mode = 3;
2696#[doc = " \\brief DEPRECATED! - For setting the camera_mode option"]
2697pub type rs2_sensor_mode = ::std::os::raw::c_uint;
2698unsafe extern "C" {
2699 pub fn rs2_sensor_mode_to_string(preset: rs2_sensor_mode) -> *const ::std::os::raw::c_char;
2700}
2701pub const rs2_ambient_light_RS2_AMBIENT_LIGHT_NO_AMBIENT: rs2_ambient_light = 1;
2702pub const rs2_ambient_light_RS2_AMBIENT_LIGHT_LOW_AMBIENT: rs2_ambient_light = 2;
2703#[doc = " \\brief DEPRECATED! - Use RS2_OPTION_DIGITAL_GAIN instead."]
2704pub type rs2_ambient_light = ::std::os::raw::c_uint;
2705unsafe extern "C" {
2706 pub fn rs2_ambient_light_to_string(preset: rs2_ambient_light) -> *const ::std::os::raw::c_char;
2707}
2708pub const rs2_digital_gain_RS2_DIGITAL_GAIN_AUTO: rs2_digital_gain = 0;
2709pub const rs2_digital_gain_RS2_DIGITAL_GAIN_HIGH: rs2_digital_gain = 1;
2710pub const rs2_digital_gain_RS2_DIGITAL_GAIN_LOW: rs2_digital_gain = 2;
2711#[doc = " \\brief digital gain for RS2_OPTION_DIGITAL_GAIN option."]
2712pub type rs2_digital_gain = ::std::os::raw::c_uint;
2713unsafe extern "C" {
2714 pub fn rs2_digital_gain_to_string(preset: rs2_digital_gain) -> *const ::std::os::raw::c_char;
2715}
2716#[doc = "< no change in settings, use device defaults"]
2717pub const rs2_host_perf_mode_RS2_HOST_PERF_DEFAULT: rs2_host_perf_mode = 0;
2718#[doc = "< low performance host mode, if host cannot keep up with workload, this option may improve stability, for example, it sets larger USB transaction granularity, reduces number of transactions and improve performance and stability on relatively weak hosts as compared to the workload"]
2719pub const rs2_host_perf_mode_RS2_HOST_PERF_LOW: rs2_host_perf_mode = 1;
2720#[doc = "< high performance host mode, if host is strong as compared to the work and can handle workload without delay, this option sets smaller USB transactions granularity and as result larger number of transactions and workload on host, but reduces chance in device frame drops"]
2721pub const rs2_host_perf_mode_RS2_HOST_PERF_HIGH: rs2_host_perf_mode = 2;
2722#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2723pub const rs2_host_perf_mode_RS2_HOST_PERF_COUNT: rs2_host_perf_mode = 3;
2724#[doc = " \\brief values for RS2_OPTION_HOST_PERFORMANCE option."]
2725pub type rs2_host_perf_mode = ::std::os::raw::c_uint;
2726unsafe extern "C" {
2727 pub fn rs2_host_perf_mode_to_string(perf: rs2_host_perf_mode) -> *const ::std::os::raw::c_char;
2728}
2729#[doc = "< Emitter frequency shall be 57 [KHZ]"]
2730pub const rs2_emitter_frequency_mode_RS2_EMITTER_FREQUENCY_57_KHZ: rs2_emitter_frequency_mode = 0;
2731#[doc = "< Emitter frequency shall be 91 [KHZ]"]
2732pub const rs2_emitter_frequency_mode_RS2_EMITTER_FREQUENCY_91_KHZ: rs2_emitter_frequency_mode = 1;
2733#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2734pub const rs2_emitter_frequency_mode_RS2_EMITTER_FREQUENCY_COUNT: rs2_emitter_frequency_mode = 2;
2735#[doc = " \\brief values for RS2_EMITTER_FREQUENCY option."]
2736pub type rs2_emitter_frequency_mode = ::std::os::raw::c_uint;
2737unsafe extern "C" {
2738 pub fn rs2_emitter_frequency_mode_to_string(
2739 mode: rs2_emitter_frequency_mode,
2740 ) -> *const ::std::os::raw::c_char;
2741}
2742#[doc = "< Choose regular algorithm for auto exposure"]
2743pub const rs2_depth_auto_exposure_mode_RS2_DEPTH_AUTO_EXPOSURE_REGULAR:
2744 rs2_depth_auto_exposure_mode = 0;
2745#[doc = "< Choose accelerated algorithm for auto exposure"]
2746pub const rs2_depth_auto_exposure_mode_RS2_DEPTH_AUTO_EXPOSURE_ACCELERATED:
2747 rs2_depth_auto_exposure_mode = 1;
2748#[doc = "< Number of enumeration values. Not a valid input: intended to be used in for-loops."]
2749pub const rs2_depth_auto_exposure_mode_RS2_DEPTH_AUTO_EXPOSURE_COUNT: rs2_depth_auto_exposure_mode =
2750 2;
2751#[doc = " \\brief values for RS2_OPTION_DEPTH_AUTO_EXPOSURE_MODE option."]
2752pub type rs2_depth_auto_exposure_mode = ::std::os::raw::c_uint;
2753unsafe extern "C" {
2754 pub fn rs2_depth_auto_exposure_mode_to_string(
2755 mode: rs2_depth_auto_exposure_mode,
2756 ) -> *const ::std::os::raw::c_char;
2757}
2758pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_61_0_MILLI_DEG_SEC: rs2_gyro_sensitivity = 0;
2759pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_30_5_MILLI_DEG_SEC: rs2_gyro_sensitivity = 1;
2760pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_15_3_MILLI_DEG_SEC: rs2_gyro_sensitivity = 2;
2761pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_7_6_MILLI_DEG_SEC: rs2_gyro_sensitivity = 3;
2762pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_3_8_MILLI_DEG_SEC: rs2_gyro_sensitivity = 4;
2763pub const rs2_gyro_sensitivity_RS2_GYRO_SENSITIVITY_COUNT: rs2_gyro_sensitivity = 5;
2764#[doc = " \\brief values for RS2_OPTION_GYRO_SENSITIVITY option."]
2765pub type rs2_gyro_sensitivity = ::std::os::raw::c_uint;
2766unsafe extern "C" {
2767 pub fn rs2_gyro_sensitivity_to_string(
2768 mode: rs2_gyro_sensitivity,
2769 ) -> *const ::std::os::raw::c_char;
2770}
2771unsafe extern "C" {
2772 #[doc = " check if an option is read-only\n \\param[in] options the options container\n \\param[in] option option id to be checked\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if option is read-only"]
2773 pub fn rs2_is_option_read_only(
2774 options: *const rs2_options,
2775 option: rs2_option,
2776 error: *mut *mut rs2_error,
2777 ) -> ::std::os::raw::c_int;
2778}
2779unsafe extern "C" {
2780 #[doc = " read option value from the sensor\n \\param[in] options the options container\n \\param[in] option option id to be queried\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return value of the option"]
2781 pub fn rs2_get_option(
2782 options: *const rs2_options,
2783 option: rs2_option,
2784 error: *mut *mut rs2_error,
2785 ) -> f32;
2786}
2787unsafe extern "C" {
2788 #[doc = " read option value from the sensor\n \\param[in] options the options container\n \\param[in] option_id option id to be queried\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return pointer to the value structure of the option; use rs2_delete_option_value to clean up"]
2789 pub fn rs2_get_option_value(
2790 options: *const rs2_options,
2791 option_id: rs2_option,
2792 error: *mut *mut rs2_error,
2793 ) -> *const rs2_option_value;
2794}
2795unsafe extern "C" {
2796 #[doc = " write new value to sensor option\n \\param[in] options the options container\n \\param[in] option option id to be queried\n \\param[in] value new value for the option\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2797 pub fn rs2_set_option(
2798 options: *const rs2_options,
2799 option: rs2_option,
2800 value: f32,
2801 error: *mut *mut rs2_error,
2802 );
2803}
2804unsafe extern "C" {
2805 #[doc = " write new value to sensor option\n \\param[in] options the options container\n \\param[in] option_value option id, type, and value to be set\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2806 pub fn rs2_set_option_value(
2807 options: *const rs2_options,
2808 option_value: *const rs2_option_value,
2809 error: *mut *mut rs2_error,
2810 );
2811}
2812unsafe extern "C" {
2813 #[doc = " get the list of supported options of options container\n \\param[in] options the options container\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2814 pub fn rs2_get_options_list(
2815 options: *const rs2_options,
2816 error: *mut *mut rs2_error,
2817 ) -> *mut rs2_options_list;
2818}
2819unsafe extern "C" {
2820 #[doc = " get the size of options list\n \\param[in] options the option list\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2821 pub fn rs2_get_options_list_size(
2822 options: *const rs2_options_list,
2823 error: *mut *mut rs2_error,
2824 ) -> ::std::os::raw::c_int;
2825}
2826unsafe extern "C" {
2827 #[doc = " get option name\n \\param[in] options the options container\n \\param[in] option option id to be checked\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return human-readable option name"]
2828 pub fn rs2_get_option_name(
2829 options: *const rs2_options,
2830 option: rs2_option,
2831 error: *mut *mut rs2_error,
2832 ) -> *const ::std::os::raw::c_char;
2833}
2834unsafe extern "C" {
2835 #[doc = " get the specific option from options list\n \\param[in] i the index of the option\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the option ID"]
2836 pub fn rs2_get_option_from_list(
2837 options: *const rs2_options_list,
2838 i: ::std::os::raw::c_int,
2839 error: *mut *mut rs2_error,
2840 ) -> rs2_option;
2841}
2842unsafe extern "C" {
2843 #[doc = " get the specific option from options list\n \\param[in] i the index of the option\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return temporary (goes away with the options-list) pointer to the option-value struct"]
2844 pub fn rs2_get_option_value_from_list(
2845 options: *const rs2_options_list,
2846 i: ::std::os::raw::c_int,
2847 error: *mut *mut rs2_error,
2848 ) -> *const rs2_option_value;
2849}
2850unsafe extern "C" {
2851 #[doc = " Clean up a value and all it points to\n \\param[in] handle value to delete"]
2852 pub fn rs2_delete_option_value(handle: *const rs2_option_value);
2853}
2854unsafe extern "C" {
2855 #[doc = " Deletes options list\n \\param[in] list list to delete"]
2856 pub fn rs2_delete_options_list(list: *mut rs2_options_list);
2857}
2858unsafe extern "C" {
2859 #[doc = " check if particular option is supported by a subdevice\n \\param[in] options the options container\n \\param[in] option option id to be checked\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if option is supported"]
2860 pub fn rs2_supports_option(
2861 options: *const rs2_options,
2862 option: rs2_option,
2863 error: *mut *mut rs2_error,
2864 ) -> ::std::os::raw::c_int;
2865}
2866unsafe extern "C" {
2867 #[doc = " retrieve the available range of values of a supported option\n \\param[in] sensor the RealSense device\n \\param[in] option the option whose range should be queried\n \\param[out] min the minimum value which will be accepted for this option\n \\param[out] max the maximum value which will be accepted for this option\n \\param[out] step the granularity of options which accept discrete values, or zero if the option accepts continuous values\n \\param[out] def the default value of the option\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2868 pub fn rs2_get_option_range(
2869 sensor: *const rs2_options,
2870 option: rs2_option,
2871 min: *mut f32,
2872 max: *mut f32,
2873 step: *mut f32,
2874 def: *mut f32,
2875 error: *mut *mut rs2_error,
2876 );
2877}
2878unsafe extern "C" {
2879 #[doc = " get option description\n \\param[in] options the options container\n \\param[in] option option id to be checked\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return human-readable option description"]
2880 pub fn rs2_get_option_description(
2881 options: *const rs2_options,
2882 option: rs2_option,
2883 error: *mut *mut rs2_error,
2884 ) -> *const ::std::os::raw::c_char;
2885}
2886unsafe extern "C" {
2887 #[doc = " get option value description (in case specific option value hold special meaning)\n \\param[in] options the options container\n \\param[in] option option id to be checked\n \\param[in] value value of the option\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return human-readable description of a specific value of an option or null if no special meaning"]
2888 pub fn rs2_get_option_value_description(
2889 options: *const rs2_options,
2890 option: rs2_option,
2891 value: f32,
2892 error: *mut *mut rs2_error,
2893 ) -> *const ::std::os::raw::c_char;
2894}
2895unsafe extern "C" {
2896 #[doc = " Sets a callback in case an option in this options container value is updated.\n Will create a thread that will periodically check the options in the container for updates.\n The update period is determined by the context's 'options-update-interval' setting.\n \\param[in] options the options container\n \\param[in] callback callback function pointer to update on value changes\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2897 pub fn rs2_set_options_changed_callback(
2898 options: *mut rs2_options,
2899 callback: rs2_options_changed_callback_ptr,
2900 error: *mut *mut rs2_error,
2901 );
2902}
2903unsafe extern "C" {
2904 #[doc = " Sets a callback in case an option in this options container value is updated\n \\param[in] options the options container\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved to librealsense\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2905 pub fn rs2_set_options_changed_callback_cpp(
2906 options: *mut rs2_options,
2907 callback: *mut rs2_options_changed_callback,
2908 error: *mut *mut rs2_error,
2909 );
2910}
2911unsafe extern "C" {
2912 #[doc = " Creates Depth-Colorizer processing block that can be used to quickly visualize the depth data\n This block will accept depth frames as input and replace them by depth frames with format RGB8\n Non-depth frames are passed through\n Further customization will be added soon (format, color-map, histogram equalization control)\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2913 pub fn rs2_create_colorizer(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2914}
2915unsafe extern "C" {
2916 #[doc = " Creates Sync processing block. This block accepts arbitrary frames and output composite frames of best matches\n Some frames may be released within the syncer if they are waiting for match for too long\n Syncronization is done (mostly) based on timestamps so good hardware timestamps are a pre-condition\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2917 pub fn rs2_create_sync_processing_block(
2918 error: *mut *mut rs2_error,
2919 ) -> *mut rs2_processing_block;
2920}
2921unsafe extern "C" {
2922 #[doc = " Creates Point-Cloud processing block. This block accepts depth frames and outputs Points frames\n In addition, given non-depth frame, the block will align texture coordinate to the non-depth stream\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2923 pub fn rs2_create_pointcloud(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2924}
2925unsafe extern "C" {
2926 #[doc = " Creates YUY decoder processing block. This block accepts raw YUY frames and outputs frames of other formats.\n YUY is a common video format used by a variety of web-cams. It benefits from packing pixels into 2 bytes per pixel\n without signficant quality drop. YUY representation can be converted back to more usable RGB form,\n but this requires somewhat costly conversion.\n The SDK will automatically try to use SSE2 and AVX instructions and CUDA where available to get\n best performance. Other implementations (using GLSL, OpenCL, Neon and NCS) should follow.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2927 pub fn rs2_create_yuy_decoder(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2928}
2929unsafe extern "C" {
2930 #[doc = " Creates y411 decoder processing block. This block accepts raw y411 frames and outputs frames in RGB8.\n https://www.fourcc.org/pixel-format/yuv-y411/\n Y411 is disguised as NV12 to allow Linux compatibility. Both are 12bpp encodings that allow high-resolution\n modes in the camera to still fit within the USB3 limits (YUY wasn't enough).\n\n The SDK will automatically try to use SSE2 and AVX instructions and CUDA where available to get\n best performance. Other implementations (using GLSL, OpenCL, Neon and NCS) should follow.\n\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2931 pub fn rs2_create_y411_decoder(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2932}
2933unsafe extern "C" {
2934 #[doc = " Creates depth thresholding processing block\n By controlling min and max options on the block, one could filter out depth values\n that are either too large or too small, as a software post-processing step\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2935 pub fn rs2_create_threshold(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2936}
2937unsafe extern "C" {
2938 #[doc = " Creates depth units transformation processing block\n All of the pixels are transformed from depth units into meters.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2939 pub fn rs2_create_units_transform(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
2940}
2941unsafe extern "C" {
2942 #[doc = " This method creates new custom processing block. This lets the users pass frames between module boundaries for processing\n This is an infrastructure function aimed at middleware developers, and also used by provided blocks such as sync, colorizer, etc..\n \\param proc Processing function to be applied to every frame entering the block\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new processing block, to be released by rs2_delete_processing_block"]
2943 pub fn rs2_create_processing_block(
2944 proc_: *mut rs2_frame_processor_callback,
2945 error: *mut *mut rs2_error,
2946 ) -> *mut rs2_processing_block;
2947}
2948unsafe extern "C" {
2949 #[doc = " This method creates new custom processing block from function pointer. This lets the users pass frames between module boundaries for processing\n This is an infrastructure function aimed at middleware developers, and also used by provided blocks such as sync, colorizer, etc..\n \\param proc Processing function pointer to be applied to every frame entering the block\n \\param context User context (can be anything or null) to be passed later as ctx param of the callback\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return new processing block, to be released by rs2_delete_processing_block"]
2950 pub fn rs2_create_processing_block_fptr(
2951 proc_: rs2_frame_processor_callback_ptr,
2952 context: *mut ::std::os::raw::c_void,
2953 error: *mut *mut rs2_error,
2954 ) -> *mut rs2_processing_block;
2955}
2956unsafe extern "C" {
2957 #[doc = " This method adds a custom option to a custom processing block. This is a simple float that can be accessed via rs2_set_option and rs2_get_option\n This is an infrastructure function aimed at middleware developers, and also used by provided blocks such as save_to_ply, etc..\n \\param[in] block Processing block\n \\param[in] option_id an int ID for referencing the option\n \\param[in] min the minimum value which will be accepted for this option\n \\param[in] max the maximum value which will be accepted for this option\n \\param[in] step the granularity of options which accept discrete values, or zero if the option accepts continuous values\n \\param[in] def the default value of the option. This will be the initial value.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if adding the option succeeds. false if it fails e.g. an option with this id is already registered"]
2958 pub fn rs2_processing_block_register_simple_option(
2959 block: *mut rs2_processing_block,
2960 option_id: rs2_option,
2961 min: f32,
2962 max: f32,
2963 step: f32,
2964 def: f32,
2965 error: *mut *mut rs2_error,
2966 ) -> ::std::os::raw::c_int;
2967}
2968unsafe extern "C" {
2969 #[doc = " This method is used to direct the output from the processing block to some callback or sink object\n \\param[in] block Processing block\n \\param[in] on_frame Callback to be invoked every time the processing block calls frame_ready\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2970 pub fn rs2_start_processing(
2971 block: *mut rs2_processing_block,
2972 on_frame: *mut rs2_frame_callback,
2973 error: *mut *mut rs2_error,
2974 );
2975}
2976unsafe extern "C" {
2977 #[doc = " This method is used to direct the output from the processing block to some callback or sink object\n \\param[in] block Processing block\n \\param[in] on_frame Callback function to be invoked every time the processing block calls frame_ready\n \\param[in] user User context for the callback (can be anything or null)\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2978 pub fn rs2_start_processing_fptr(
2979 block: *mut rs2_processing_block,
2980 on_frame: rs2_frame_callback_ptr,
2981 user: *mut ::std::os::raw::c_void,
2982 error: *mut *mut rs2_error,
2983 );
2984}
2985unsafe extern "C" {
2986 #[doc = " This method is used to direct the output from the processing block to a dedicated queue object\n \\param[in] block Processing block\n \\param[in] queue Queue to place the processed frames to\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2987 pub fn rs2_start_processing_queue(
2988 block: *mut rs2_processing_block,
2989 queue: *mut rs2_frame_queue,
2990 error: *mut *mut rs2_error,
2991 );
2992}
2993unsafe extern "C" {
2994 #[doc = " This method is used to pass frame into a processing block\n \\param[in] block Processing block\n \\param[in] frame Frame to process, ownership is moved to the block object\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
2995 pub fn rs2_process_frame(
2996 block: *mut rs2_processing_block,
2997 frame: *mut rs2_frame,
2998 error: *mut *mut rs2_error,
2999 );
3000}
3001unsafe extern "C" {
3002 #[doc = " Deletes the processing block\n \\param[in] block Processing block"]
3003 pub fn rs2_delete_processing_block(block: *mut rs2_processing_block);
3004}
3005unsafe extern "C" {
3006 #[doc = " create frame queue. frame queues are the simplest x-platform synchronization primitive provided by librealsense\n to help developers who are not using async APIs\n \\param[in] capacity max number of frames to allow to be stored in the queue before older frames will start to get dropped\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return handle to the frame queue, must be released using rs2_delete_frame_queue"]
3007 pub fn rs2_create_frame_queue(
3008 capacity: ::std::os::raw::c_int,
3009 error: *mut *mut rs2_error,
3010 ) -> *mut rs2_frame_queue;
3011}
3012unsafe extern "C" {
3013 #[doc = " deletes frame queue and releases all frames inside it\n \\param[in] queue queue to delete"]
3014 pub fn rs2_delete_frame_queue(queue: *mut rs2_frame_queue);
3015}
3016unsafe extern "C" {
3017 #[doc = " queries the number of frames\n \\param[in] queue to delete\n \\returns the number of frames currently stored in queue"]
3018 pub fn rs2_frame_queue_size(
3019 queue: *mut rs2_frame_queue,
3020 error: *mut *mut rs2_error,
3021 ) -> ::std::os::raw::c_int;
3022}
3023unsafe extern "C" {
3024 #[doc = " wait until new frame becomes available in the queue and dequeue it\n \\param[in] queue the frame queue data structure\n \\param[in] timeout_ms max time in milliseconds to wait until an exception will be thrown\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return frame handle to be released using rs2_release_frame"]
3025 pub fn rs2_wait_for_frame(
3026 queue: *mut rs2_frame_queue,
3027 timeout_ms: ::std::os::raw::c_uint,
3028 error: *mut *mut rs2_error,
3029 ) -> *mut rs2_frame;
3030}
3031unsafe extern "C" {
3032 #[doc = " poll if a new frame is available and dequeue if it is\n \\param[in] queue the frame queue data structure\n \\param[out] output_frame frame handle to be released using rs2_release_frame\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if new frame was stored to output_frame"]
3033 pub fn rs2_poll_for_frame(
3034 queue: *mut rs2_frame_queue,
3035 output_frame: *mut *mut rs2_frame,
3036 error: *mut *mut rs2_error,
3037 ) -> ::std::os::raw::c_int;
3038}
3039unsafe extern "C" {
3040 #[doc = " wait until new frame becomes available in the queue and dequeue it\n \\param[in] queue the frame queue data structure\n \\param[in] timeout_ms max time in milliseconds to wait until a frame becomes available\n \\param[out] output_frame frame handle to be released using rs2_release_frame\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if new frame was stored to output_frame"]
3041 pub fn rs2_try_wait_for_frame(
3042 queue: *mut rs2_frame_queue,
3043 timeout_ms: ::std::os::raw::c_uint,
3044 output_frame: *mut *mut rs2_frame,
3045 error: *mut *mut rs2_error,
3046 ) -> ::std::os::raw::c_int;
3047}
3048unsafe extern "C" {
3049 #[doc = " enqueue new frame into a queue\n \\param[in] frame frame handle to enqueue (this operation passed ownership to the queue)\n \\param[in] queue the frame queue data structure"]
3050 pub fn rs2_enqueue_frame(frame: *mut rs2_frame, queue: *mut ::std::os::raw::c_void);
3051}
3052unsafe extern "C" {
3053 #[doc = " Creates Align processing block.\n \\param[in] align_to stream type to be used as the target of frameset alignment\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3054 pub fn rs2_create_align(
3055 align_to: rs2_stream,
3056 error: *mut *mut rs2_error,
3057 ) -> *mut rs2_processing_block;
3058}
3059unsafe extern "C" {
3060 #[doc = " Creates Depth post-processing filter block. This block accepts depth frames, applies decimation filter and plots modified prames\n Note that due to the modifiedframe size, the decimated frame repaces the original one\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3061 pub fn rs2_create_decimation_filter_block(
3062 error: *mut *mut rs2_error,
3063 ) -> *mut rs2_processing_block;
3064}
3065unsafe extern "C" {
3066 #[doc = " Creates post-processing filter block. This block accepts frames and applies rotation filter\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3067 pub fn rs2_create_rotation_filter_block(
3068 streams_to_rotate: rs2_streams_list,
3069 error: *mut *mut rs2_error,
3070 ) -> *mut rs2_processing_block;
3071}
3072unsafe extern "C" {
3073 #[doc = " Creates Depth post-processing filter block. This block accepts depth frames, applies temporal filter\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3074 pub fn rs2_create_temporal_filter_block(
3075 error: *mut *mut rs2_error,
3076 ) -> *mut rs2_processing_block;
3077}
3078unsafe extern "C" {
3079 #[doc = " Creates Depth post-processing spatial filter block. This block accepts depth frames, applies spatial filters and plots modified prames\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3080 pub fn rs2_create_spatial_filter_block(error: *mut *mut rs2_error)
3081 -> *mut rs2_processing_block;
3082}
3083unsafe extern "C" {
3084 #[doc = " Creates a post processing block that provides for depth<->disparity domain transformation for stereo-based depth modules\n \\param[in] transform_to_disparity flag select the transform direction: true = depth->disparity, and vice versa\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3085 pub fn rs2_create_disparity_transform_block(
3086 transform_to_disparity: ::std::os::raw::c_uchar,
3087 error: *mut *mut rs2_error,
3088 ) -> *mut rs2_processing_block;
3089}
3090unsafe extern "C" {
3091 #[doc = " Creates Depth post-processing hole filling block. The filter replaces empty pixels with data from adjacent pixels based on the method selected\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3092 pub fn rs2_create_hole_filling_filter_block(
3093 error: *mut *mut rs2_error,
3094 ) -> *mut rs2_processing_block;
3095}
3096unsafe extern "C" {
3097 #[doc = " Creates a rates printer block. The printer prints the actual FPS of the invoked frame stream.\n The block ignores reapiting frames and calculats the FPS only if the frame number of the relevant frame was changed.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3098 pub fn rs2_create_rates_printer_block(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
3099}
3100unsafe extern "C" {
3101 #[doc = " Creates Depth post-processing zero order fix block. The filter invalidates pixels that has a wrong value due to zero order effect\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return zero order fix processing block"]
3102 pub fn rs2_create_zero_order_invalidation_block(
3103 error: *mut *mut rs2_error,
3104 ) -> *mut rs2_processing_block;
3105}
3106unsafe extern "C" {
3107 #[doc = " Creates Depth frame decompression module. Decoded frames compressed and transmitted with Z16H variable-lenght Huffman code to\n standartized Z16 Depth data format. Using the compression allows to reduce the Depth frames bandwidth by more than 50 percent\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Huffman-code decompression processing block"]
3108 pub fn rs2_create_huffman_depth_decompress_block(
3109 error: *mut *mut rs2_error,
3110 ) -> *mut rs2_processing_block;
3111}
3112unsafe extern "C" {
3113 #[doc = " Creates a hdr_merge processing block.\n The block merges between two depth frames with different exposure values\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3114 pub fn rs2_create_hdr_merge_processing_block(
3115 error: *mut *mut rs2_error,
3116 ) -> *mut rs2_processing_block;
3117}
3118unsafe extern "C" {
3119 #[doc = " Creates a sequence_id_filter processing block.\n The block lets frames with the selected sequence id pass and blocks frames with other values\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3120 pub fn rs2_create_sequence_id_filter(error: *mut *mut rs2_error) -> *mut rs2_processing_block;
3121}
3122unsafe extern "C" {
3123 #[doc = " Retrieve processing block specific information, like name.\n \\param[in] block The processing block\n \\param[in] info processing block info type to retrieve\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The requested processing block info string, in a format specific to the device model"]
3124 pub fn rs2_get_processing_block_info(
3125 block: *const rs2_processing_block,
3126 info: rs2_camera_info,
3127 error: *mut *mut rs2_error,
3128 ) -> *const ::std::os::raw::c_char;
3129}
3130unsafe extern "C" {
3131 #[doc = " Check if a processing block supports a specific info type.\n \\param[in] block The processing block to check\n \\param[in] info The parameter to check for support\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return True if the parameter both exist and well-defined for the specific device"]
3132 pub fn rs2_supports_processing_block_info(
3133 block: *const rs2_processing_block,
3134 info: rs2_camera_info,
3135 error: *mut *mut rs2_error,
3136 ) -> ::std::os::raw::c_int;
3137}
3138unsafe extern "C" {
3139 #[doc = " Test if the given processing block can be extended to the requested extension\n \\param[in] block processing block\n \\param[in] extension The extension to which the sensor should be tested if it is extendable\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return non-zero value iff the processing block can be extended to the given extension"]
3140 pub fn rs2_is_processing_block_extendable_to(
3141 block: *const rs2_processing_block,
3142 extension_type: rs2_extension,
3143 error: *mut *mut rs2_error,
3144 ) -> ::std::os::raw::c_int;
3145}
3146#[doc = "< Unknown state"]
3147pub const rs2_playback_status_RS2_PLAYBACK_STATUS_UNKNOWN: rs2_playback_status = 0;
3148#[doc = "< One or more sensors were started, playback is reading and raising data"]
3149pub const rs2_playback_status_RS2_PLAYBACK_STATUS_PLAYING: rs2_playback_status = 1;
3150#[doc = "< One or more sensors were started, but playback paused reading and paused raising data"]
3151pub const rs2_playback_status_RS2_PLAYBACK_STATUS_PAUSED: rs2_playback_status = 2;
3152#[doc = "< All sensors were stopped, or playback has ended (all data was read). This is the initial playback status"]
3153pub const rs2_playback_status_RS2_PLAYBACK_STATUS_STOPPED: rs2_playback_status = 3;
3154pub const rs2_playback_status_RS2_PLAYBACK_STATUS_COUNT: rs2_playback_status = 4;
3155pub type rs2_playback_status = ::std::os::raw::c_uint;
3156unsafe extern "C" {
3157 pub fn rs2_playback_status_to_string(
3158 status: rs2_playback_status,
3159 ) -> *const ::std::os::raw::c_char;
3160}
3161pub type rs2_playback_status_changed_callback_ptr =
3162 ::std::option::Option<unsafe extern "C" fn(arg1: rs2_playback_status)>;
3163unsafe extern "C" {
3164 #[doc = " Creates a recording device to record the given device and save it to the given file\n \\param[in] device The device to record\n \\param[in] file The desired path to which the recorder should save the data\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return A pointer to a device that records its data to file, or null in case of failure"]
3165 pub fn rs2_create_record_device(
3166 device: *const rs2_device,
3167 file: *const ::std::os::raw::c_char,
3168 error: *mut *mut rs2_error,
3169 ) -> *mut rs2_device;
3170}
3171unsafe extern "C" {
3172 #[doc = " Creates a recording device to record the given device and save it to the given file\n \\param[in] device The device to record\n \\param[in] file The desired path to which the recorder should save the data\n \\param[in] compression_enabled Indicates if compression is enabled, 0 means false, otherwise true\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return A pointer to a device that records its data to file, or null in case of failure"]
3173 pub fn rs2_create_record_device_ex(
3174 device: *const rs2_device,
3175 file: *const ::std::os::raw::c_char,
3176 compression_enabled: ::std::os::raw::c_int,
3177 error: *mut *mut rs2_error,
3178 ) -> *mut rs2_device;
3179}
3180unsafe extern "C" {
3181 #[doc = " Pause the recording device without stopping the actual device from streaming.\n Pausing will cause the device to stop writing new data to the file, in particular, frames and changes to extensions\n \\param[in] device A recording device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3182 pub fn rs2_record_device_pause(device: *const rs2_device, error: *mut *mut rs2_error);
3183}
3184unsafe extern "C" {
3185 #[doc = " Unpause the recording device. Resume will cause the device to continue writing new data to the file, in particular, frames and changes to extensions\n \\param[in] device A recording device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3186 pub fn rs2_record_device_resume(device: *const rs2_device, error: *mut *mut rs2_error);
3187}
3188unsafe extern "C" {
3189 #[doc = " Gets the name of the file to which the recorder is writing\n \\param[in] device A recording device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The name of the file to which the recorder is writing"]
3190 pub fn rs2_record_device_filename(
3191 device: *const rs2_device,
3192 error: *mut *mut rs2_error,
3193 ) -> *const ::std::os::raw::c_char;
3194}
3195unsafe extern "C" {
3196 #[doc = " Creates a playback device to play the content of the given file\n \\param[in] file Path to the file to play\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return A pointer to a device that plays data from the file, or null in case of failure"]
3197 pub fn rs2_create_playback_device(
3198 file: *const ::std::os::raw::c_char,
3199 error: *mut *mut rs2_error,
3200 ) -> *mut rs2_device;
3201}
3202unsafe extern "C" {
3203 #[doc = " Gets the path of the file used by the playback device\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Path to the file used by the playback device"]
3204 pub fn rs2_playback_device_get_file_path(
3205 device: *const rs2_device,
3206 error: *mut *mut rs2_error,
3207 ) -> *const ::std::os::raw::c_char;
3208}
3209unsafe extern "C" {
3210 #[doc = " Gets the total duration of the file in units of nanoseconds\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Total duration of the file in units of nanoseconds"]
3211 pub fn rs2_playback_get_duration(
3212 device: *const rs2_device,
3213 error: *mut *mut rs2_error,
3214 ) -> ::std::os::raw::c_ulonglong;
3215}
3216unsafe extern "C" {
3217 #[doc = " Set the playback to a specified time point of the played data\n \\param[in] device A playback device.\n \\param[in] time The time point to which playback should seek, expressed in units of nanoseconds (zero value = start)\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3218 pub fn rs2_playback_seek(
3219 device: *const rs2_device,
3220 time: ::std::os::raw::c_longlong,
3221 error: *mut *mut rs2_error,
3222 );
3223}
3224unsafe extern "C" {
3225 #[doc = " Gets the current position of the playback in the file in terms of time. Units are expressed in nanoseconds\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Current position of the playback in the file in terms of time. Units are expressed in nanoseconds"]
3226 pub fn rs2_playback_get_position(
3227 device: *const rs2_device,
3228 error: *mut *mut rs2_error,
3229 ) -> ::std::os::raw::c_ulonglong;
3230}
3231unsafe extern "C" {
3232 #[doc = " Pauses the playback\n Calling pause() in \"Paused\" status does nothing\n If pause() is called while playback status is \"Playing\" or \"Stopped\", the playback will not play until resume() is called\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3233 pub fn rs2_playback_device_resume(device: *const rs2_device, error: *mut *mut rs2_error);
3234}
3235unsafe extern "C" {
3236 #[doc = " Un-pauses the playback\n Calling resume() while playback status is \"Playing\" or \"Stopped\" does nothing\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3237 pub fn rs2_playback_device_pause(device: *const rs2_device, error: *mut *mut rs2_error);
3238}
3239unsafe extern "C" {
3240 #[doc = " Set the playback to work in real time or non real time\n\n In real time mode, playback will play the same way the file was recorded.\n In real time mode if the application takes too long to handle the callback, frames may be dropped.\n In non real time mode, playback will wait for each callback to finish handling the data before\n reading the next frame. In this mode no frames will be dropped, and the application controls the\n frame rate of the playback (according to the callback handler duration).\n \\param[in] device A playback device\n \\param[in] real_time Indicates if real time is requested, 0 means false, otherwise true\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3241 pub fn rs2_playback_device_set_real_time(
3242 device: *const rs2_device,
3243 real_time: ::std::os::raw::c_int,
3244 error: *mut *mut rs2_error,
3245 );
3246}
3247unsafe extern "C" {
3248 #[doc = " Indicates if playback is in real time mode or non real time\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return True iff playback is in real time mode. 0 means false, otherwise true"]
3249 pub fn rs2_playback_device_is_real_time(
3250 device: *const rs2_device,
3251 error: *mut *mut rs2_error,
3252 ) -> ::std::os::raw::c_int;
3253}
3254unsafe extern "C" {
3255 #[doc = " Register to receive callback from playback device upon its status changes\n\n Callbacks are invoked from the reading thread, any heavy processing in the callback handler will affect\n the reading thread and may cause frame drops\\ high latency\n \\param[in] device A playback device\n \\param[in] callback A callback handler that will be invoked when the playback status changes\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3256 pub fn rs2_playback_device_set_status_changed_callback(
3257 device: *const rs2_device,
3258 callback: *mut rs2_playback_status_changed_callback,
3259 error: *mut *mut rs2_error,
3260 );
3261}
3262unsafe extern "C" {
3263 #[doc = " Returns the current state of the playback device\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Current state of the playback"]
3264 pub fn rs2_playback_device_get_current_status(
3265 device: *const rs2_device,
3266 error: *mut *mut rs2_error,
3267 ) -> rs2_playback_status;
3268}
3269unsafe extern "C" {
3270 #[doc = " Set the playing speed\n\n \\param[in] device A playback device\n \\param[in] speed Indicates a multiplication of the speed to play (e.g: 1 = normal, 0.5 twice as slow)\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3271 pub fn rs2_playback_device_set_playback_speed(
3272 device: *const rs2_device,
3273 speed: f32,
3274 error: *mut *mut rs2_error,
3275 );
3276}
3277unsafe extern "C" {
3278 #[doc = " Stops the playback\n Calling stop() will stop all streaming playbakc sensors and will reset the playback (returning to beginning of file)\n \\param[in] device A playback device\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3279 pub fn rs2_playback_device_stop(device: *const rs2_device, error: *mut *mut rs2_error);
3280}
3281unsafe extern "C" {
3282 #[doc = " get the size of rs2_raw_data_buffer\n \\param[in] buffer pointer to rs2_raw_data_buffer returned by rs2_send_and_receive_raw_data\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return size of rs2_raw_data_buffer"]
3283 pub fn rs2_get_raw_data_size(
3284 buffer: *const rs2_raw_data_buffer,
3285 error: *mut *mut rs2_error,
3286 ) -> ::std::os::raw::c_int;
3287}
3288unsafe extern "C" {
3289 #[doc = " Delete rs2_raw_data_buffer\n \\param[in] buffer rs2_raw_data_buffer returned by rs2_send_and_receive_raw_data"]
3290 pub fn rs2_delete_raw_data(buffer: *const rs2_raw_data_buffer);
3291}
3292unsafe extern "C" {
3293 #[doc = " Retrieve char array from rs2_raw_data_buffer\n \\param[in] buffer rs2_raw_data_buffer returned by rs2_send_and_receive_raw_data\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return raw data"]
3294 pub fn rs2_get_raw_data(
3295 buffer: *const rs2_raw_data_buffer,
3296 error: *mut *mut rs2_error,
3297 ) -> *const ::std::os::raw::c_uchar;
3298}
3299unsafe extern "C" {
3300 #[doc = " Retrieve the API version from the source code. Evaluate that the value is conformant to the established policies\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the version API encoded into integer value \"1.9.3\" -> 10903"]
3301 pub fn rs2_get_api_version(error: *mut *mut rs2_error) -> ::std::os::raw::c_int;
3302}
3303unsafe extern "C" {
3304 pub fn rs2_log_to_console(min_severity: rs2_log_severity, error: *mut *mut rs2_error);
3305}
3306unsafe extern "C" {
3307 pub fn rs2_log_to_file(
3308 min_severity: rs2_log_severity,
3309 file_path: *const ::std::os::raw::c_char,
3310 error: *mut *mut rs2_error,
3311 );
3312}
3313unsafe extern "C" {
3314 pub fn rs2_log_to_callback_cpp(
3315 min_severity: rs2_log_severity,
3316 callback: *mut rs2_log_callback,
3317 error: *mut *mut rs2_error,
3318 );
3319}
3320unsafe extern "C" {
3321 pub fn rs2_log_to_callback(
3322 min_severity: rs2_log_severity,
3323 callback: rs2_log_callback_ptr,
3324 arg: *mut ::std::os::raw::c_void,
3325 error: *mut *mut rs2_error,
3326 );
3327}
3328unsafe extern "C" {
3329 pub fn rs2_reset_logger(error: *mut *mut rs2_error);
3330}
3331unsafe extern "C" {
3332 #[doc = " Enable rolling log file when used with rs2_log_to_file:\n Upon reaching (max_size/2) bytes, the log will be renamed with an \".old\" suffix and a new log created. Any\n previous .old file will be erased.\n Must have permissions to remove/rename files in log file directory.\n \\param[in] max_size max file size in megabytes\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3333 pub fn rs2_enable_rolling_log_file(
3334 max_size: ::std::os::raw::c_uint,
3335 error: *mut *mut rs2_error,
3336 );
3337}
3338unsafe extern "C" {
3339 pub fn rs2_get_log_message_line_number(
3340 msg: *const rs2_log_message,
3341 error: *mut *mut rs2_error,
3342 ) -> ::std::os::raw::c_uint;
3343}
3344unsafe extern "C" {
3345 pub fn rs2_get_log_message_filename(
3346 msg: *const rs2_log_message,
3347 error: *mut *mut rs2_error,
3348 ) -> *const ::std::os::raw::c_char;
3349}
3350unsafe extern "C" {
3351 pub fn rs2_get_raw_log_message(
3352 msg: *const rs2_log_message,
3353 error: *mut *mut rs2_error,
3354 ) -> *const ::std::os::raw::c_char;
3355}
3356unsafe extern "C" {
3357 pub fn rs2_get_full_log_message(
3358 msg: *const rs2_log_message,
3359 error: *mut *mut rs2_error,
3360 ) -> *const ::std::os::raw::c_char;
3361}
3362unsafe extern "C" {
3363 #[doc = " Add custom message into librealsense log\n \\param[in] severity The log level for the message to be written under\n \\param[in] message Message to be logged\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3364 pub fn rs2_log(
3365 severity: rs2_log_severity,
3366 message: *const ::std::os::raw::c_char,
3367 error: *mut *mut rs2_error,
3368 );
3369}
3370unsafe extern "C" {
3371 #[doc = " Given the 2D depth coordinate (x,y) provide the corresponding depth in metric units\n \\param[in] frame_ref 2D depth pixel coordinates (Left-Upper corner origin)\n \\param[in] x,y 2D depth pixel coordinates (Left-Upper corner origin)\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3372 pub fn rs2_depth_frame_get_distance(
3373 frame_ref: *const rs2_frame,
3374 x: ::std::os::raw::c_int,
3375 y: ::std::os::raw::c_int,
3376 error: *mut *mut rs2_error,
3377 ) -> f32;
3378}
3379unsafe extern "C" {
3380 #[doc = " return the time at specific time point\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return the time at specific time point, in live and record mode it will return the system time and in playback mode it will return the recorded time"]
3381 pub fn rs2_get_time(error: *mut *mut rs2_error) -> rs2_time_t;
3382}
3383unsafe extern "C" {
3384 pub fn rs2_hw_monitor_get_opcode_string(
3385 opcode: ::std::os::raw::c_int,
3386 buffer: *mut ::std::os::raw::c_char,
3387 buffer_size: usize,
3388 device: *mut rs2_device,
3389 error: *mut *mut rs2_error,
3390 );
3391}
3392unsafe extern "C" {
3393 #[doc = " Create a config instance\n The config allows pipeline users to request filters for the pipeline streams and device selection and configuration.\n This is an optional step in pipeline creation, as the pipeline resolves its streaming device internally.\n Config provides its users a way to set the filters and test if there is no conflict with the pipeline requirements\n from the device. It also allows the user to find a matching device for the config filters and the pipeline, in order to\n select a device explicitly, and modify its controls before streaming starts.\n\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return rs2_config* A pointer to a new config instance"]
3394 pub fn rs2_create_config(error: *mut *mut rs2_error) -> *mut rs2_config;
3395}
3396unsafe extern "C" {
3397 #[doc = " Deletes an instance of a config\n\n \\param[in] config A pointer to an instance of a config"]
3398 pub fn rs2_delete_config(config: *mut rs2_config);
3399}
3400unsafe extern "C" {
3401 #[doc = " Enable a device stream explicitly, with selected stream parameters.\n The method allows the application to request a stream with specific configuration. If no stream is explicitly enabled, the pipeline\n configures the device and its streams according to the attached computer vision modules and processing blocks requirements, or\n default configuration for the first available device.\n The application can configure any of the input stream parameters according to its requirement, or set to 0 for don't care value.\n The config accumulates the application calls for enable configuration methods, until the configuration is applied. Multiple enable\n stream calls for the same stream with conflicting parameters override each other, and the last call is maintained.\n Upon calling \\c resolve(), the config checks for conflicts between the application configuration requests and the attached computer\n vision modules and processing blocks requirements, and fails if conflicts are found. Before \\c resolve() is called, no conflict\n check is done.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] stream Stream type to be enabled\n \\param[in] index Stream index, used for multiple streams of the same type. -1 indicates any.\n \\param[in] width Stream image width - for images streams. 0 indicates any.\n \\param[in] height Stream image height - for images streams. 0 indicates any.\n \\param[in] format Stream data format - pixel format for images streams, of data type for other streams. RS2_FORMAT_ANY indicates any.\n \\param[in] framerate Stream frames per second. 0 indicates any.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3402 pub fn rs2_config_enable_stream(
3403 config: *mut rs2_config,
3404 stream: rs2_stream,
3405 index: ::std::os::raw::c_int,
3406 width: ::std::os::raw::c_int,
3407 height: ::std::os::raw::c_int,
3408 format: rs2_format,
3409 framerate: ::std::os::raw::c_int,
3410 error: *mut *mut rs2_error,
3411 );
3412}
3413unsafe extern "C" {
3414 #[doc = " Enable all device streams explicitly.\n The conditions and behavior of this method are similar to those of \\c enable_stream().\n This filter enables all raw streams of the selected device. The device is either selected explicitly by the application,\n or by the pipeline requirements or default. The list of streams is device dependent.\n\n \\param[in] config A pointer to an instance of a config\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3415 pub fn rs2_config_enable_all_stream(config: *mut rs2_config, error: *mut *mut rs2_error);
3416}
3417unsafe extern "C" {
3418 #[doc = " Select a specific device explicitly by its serial number, to be used by the pipeline.\n The conditions and behavior of this method are similar to those of \\c enable_stream().\n This method is required if the application needs to set device or sensor settings prior to pipeline streaming, to enforce\n the pipeline to use the configured device.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] serial device serial number, as returned by RS2_CAMERA_INFO_SERIAL_NUMBER\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3419 pub fn rs2_config_enable_device(
3420 config: *mut rs2_config,
3421 serial: *const ::std::os::raw::c_char,
3422 error: *mut *mut rs2_error,
3423 );
3424}
3425unsafe extern "C" {
3426 #[doc = " Select a recorded device from a file, to be used by the pipeline through playback.\n The device available streams are as recorded to the file, and \\c resolve() considers only this device and configuration\n as available.\n This request cannot be used if enable_record_to_file() is called for the current config, and vise versa\n By default, playback is repeated once the file ends. To control this, see 'rs2_config_enable_device_from_file_repeat_option'.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] file The playback file of the device\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3427 pub fn rs2_config_enable_device_from_file(
3428 config: *mut rs2_config,
3429 file: *const ::std::os::raw::c_char,
3430 error: *mut *mut rs2_error,
3431 );
3432}
3433unsafe extern "C" {
3434 #[doc = " Select a recorded device from a file, to be used by the pipeline through playback.\n The device available streams are as recorded to the file, and \\c resolve() considers only this device and configuration\n as available.\n This request cannot be used if enable_record_to_file() is called for the current config, and vise versa\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] file The playback file of the device\n \\param[in] repeat_playback if true, when file ends the playback starts again, in an infinite loop;\nif false, when file ends playback does not start again, and should by stopped manually by the user.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3435 pub fn rs2_config_enable_device_from_file_repeat_option(
3436 config: *mut rs2_config,
3437 file: *const ::std::os::raw::c_char,
3438 repeat_playback: ::std::os::raw::c_int,
3439 error: *mut *mut rs2_error,
3440 );
3441}
3442unsafe extern "C" {
3443 #[doc = " Requires that the resolved device would be recorded to file\n This request cannot be used if enable_device_from_file() is called for the current config, and vise versa\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] file The desired file for the output record\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3444 pub fn rs2_config_enable_record_to_file(
3445 config: *mut rs2_config,
3446 file: *const ::std::os::raw::c_char,
3447 error: *mut *mut rs2_error,
3448 );
3449}
3450unsafe extern "C" {
3451 #[doc = " Disable a device stream explicitly, to remove any requests on this stream type.\n The stream can still be enabled due to pipeline computer vision module request. This call removes any filter on the\n stream configuration.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] stream Stream type, for which the filters are cleared\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3452 pub fn rs2_config_disable_stream(
3453 config: *mut rs2_config,
3454 stream: rs2_stream,
3455 error: *mut *mut rs2_error,
3456 );
3457}
3458unsafe extern "C" {
3459 #[doc = " Disable a device stream explicitly, to remove any requests on this stream profile.\n The stream can still be enabled due to pipeline computer vision module request. This call removes any filter on the\n stream configuration.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] stream Stream type, for which the filters are cleared\n \\param[in] index Stream index, for which the filters are cleared\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3460 pub fn rs2_config_disable_indexed_stream(
3461 config: *mut rs2_config,
3462 stream: rs2_stream,
3463 index: ::std::os::raw::c_int,
3464 error: *mut *mut rs2_error,
3465 );
3466}
3467unsafe extern "C" {
3468 #[doc = " Disable all device stream explicitly, to remove any requests on the streams profiles.\n The streams can still be enabled due to pipeline computer vision module request. This call removes any filter on the\n streams configuration.\n\n \\param[in] config A pointer to an instance of a config\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3469 pub fn rs2_config_disable_all_streams(config: *mut rs2_config, error: *mut *mut rs2_error);
3470}
3471unsafe extern "C" {
3472 #[doc = " Resolve the configuration filters, to find a matching device and streams profiles.\n The method resolves the user configuration filters for the device and streams, and combines them with the requirements of\n the computer vision modules and processing blocks attached to the pipeline. If there are no conflicts of requests, it looks\n for an available device, which can satisfy all requests, and selects the first matching streams configuration. In the absence\n of any request, the rs2::config selects the first available device and the first color and depth streams configuration.\n The pipeline profile selection during \\c start() follows the same method. Thus, the selected profile is the same, if no\n change occurs to the available devices occurs.\n Resolving the pipeline configuration provides the application access to the pipeline selected device for advanced control.\n The returned configuration is not applied to the device, so the application doesn't own the device sensors. However, the\n application can call \\c enable_device(), to enforce the device returned by this method is selected by pipeline \\c start(),\n and configure the device and sensors options or extensions before streaming starts.\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] pipe The pipeline for which the selected filters are applied\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return A matching device and streams profile, which satisfies the filters and pipeline requests."]
3473 pub fn rs2_config_resolve(
3474 config: *mut rs2_config,
3475 pipe: *mut rs2_pipeline,
3476 error: *mut *mut rs2_error,
3477 ) -> *mut rs2_pipeline_profile;
3478}
3479unsafe extern "C" {
3480 #[doc = " Check if the config can resolve the configuration filters, to find a matching device and streams profiles.\n The resolution conditions are as described in \\c resolve().\n\n \\param[in] config A pointer to an instance of a config\n \\param[in] pipe The pipeline for which the selected filters are applied\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return True if a valid profile selection exists, false if no selection can be found under the config filters and the available devices."]
3481 pub fn rs2_config_can_resolve(
3482 config: *mut rs2_config,
3483 pipe: *mut rs2_pipeline,
3484 error: *mut *mut rs2_error,
3485 ) -> ::std::os::raw::c_int;
3486}
3487unsafe extern "C" {
3488 #[doc = " Create a pipeline instance\n The pipeline simplifies the user interaction with the device and computer vision processing modules.\n The class abstracts the camera configuration and streaming, and the vision modules triggering and threading.\n It lets the application focus on the computer vision output of the modules, or the device output data.\n The pipeline can manage computer vision modules, which are implemented as a processing blocks.\n The pipeline is the consumer of the processing block interface, while the application consumes the\n computer vision interface.\n \\param[in] ctx context\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3489 pub fn rs2_create_pipeline(
3490 ctx: *mut rs2_context,
3491 error: *mut *mut rs2_error,
3492 ) -> *mut rs2_pipeline;
3493}
3494unsafe extern "C" {
3495 #[doc = " Stop the pipeline streaming.\n The pipeline stops delivering samples to the attached computer vision modules and processing blocks, stops the device streaming\n and releases the device resources used by the pipeline. It is the application's responsibility to release any frame reference it owns.\n The method takes effect only after \\c start() was called, otherwise an exception is raised.\n \\param[in] pipe pipeline\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored"]
3496 pub fn rs2_pipeline_stop(pipe: *mut rs2_pipeline, error: *mut *mut rs2_error);
3497}
3498unsafe extern "C" {
3499 #[doc = " Set the device to be used in the pipline.\n The function is used to assign the device, useful when the user wish to set controls that cannot be set while streaming.\n \\param[in] pipe the pipeline.\n \\param[in] device the device to be used in the pipline."]
3500 pub fn rs2_pipeline_set_device(
3501 pipe: *mut rs2_pipeline,
3502 device: *mut rs2_device,
3503 error: *mut *mut rs2_error,
3504 );
3505}
3506unsafe extern "C" {
3507 #[doc = " Wait until a new set of frames becomes available.\n The frames set includes time-synchronized frames of each enabled stream in the pipeline.\n The method blocks the calling thread, and fetches the latest unread frames set.\n Device frames, which were produced while the function wasn't called, are dropped. To avoid frame drops, this method should be called\n as fast as the device frame rate.\n The application can maintain the frames handles to defer processing. However, if the application maintains too long history, the device\n may lack memory resources to produce new frames, and the following call to this method shall fail to retrieve new frames, until resources\n are retained.\n \\param[in] pipe the pipeline\n \\param[in] timeout_ms Max time in milliseconds to wait until an exception will be thrown\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return Set of coherent frames"]
3508 pub fn rs2_pipeline_wait_for_frames(
3509 pipe: *mut rs2_pipeline,
3510 timeout_ms: ::std::os::raw::c_uint,
3511 error: *mut *mut rs2_error,
3512 ) -> *mut rs2_frame;
3513}
3514unsafe extern "C" {
3515 #[doc = " Check if a new set of frames is available and retrieve the latest undelivered set.\n The frames set includes time-synchronized frames of each enabled stream in the pipeline.\n The method returns without blocking the calling thread, with status of new frames available or not. If available, it fetches the\n latest frames set.\n Device frames, which were produced while the function wasn't called, are dropped. To avoid frame drops, this method should be called\n as fast as the device frame rate.\n The application can maintain the frames handles to defer processing. However, if the application maintains too long history, the device\n may lack memory resources to produce new frames, and the following calls to this method shall return no new frames, until resources are\n retained.\n \\param[in] pipe the pipeline\n \\param[out] output_frame frame handle to be released using rs2_release_frame\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if new frame was stored to output_frame"]
3516 pub fn rs2_pipeline_poll_for_frames(
3517 pipe: *mut rs2_pipeline,
3518 output_frame: *mut *mut rs2_frame,
3519 error: *mut *mut rs2_error,
3520 ) -> ::std::os::raw::c_int;
3521}
3522unsafe extern "C" {
3523 #[doc = " Wait until a new set of frames becomes available.\n The frames set includes time-synchronized frames of each enabled stream in the pipeline.\n The method blocks the calling thread, and fetches the latest unread frames set.\n Device frames, which were produced while the function wasn't called, are dropped. To avoid frame drops, this method should be called\n as fast as the device frame rate.\n The application can maintain the frames handles to defer processing. However, if the application maintains too long history, the device\n may lack memory resources to produce new frames, and the following call to this method shall fail to retrieve new frames, until resources\n are retained.\n \\param[in] pipe the pipeline\n \\param[in] timeout_ms max time in milliseconds to wait until a frame becomes available\n \\param[out] output_frame frame handle to be released using rs2_release_frame\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return true if new frame was stored to output_frame"]
3524 pub fn rs2_pipeline_try_wait_for_frames(
3525 pipe: *mut rs2_pipeline,
3526 output_frame: *mut *mut rs2_frame,
3527 timeout_ms: ::std::os::raw::c_uint,
3528 error: *mut *mut rs2_error,
3529 ) -> ::std::os::raw::c_int;
3530}
3531unsafe extern "C" {
3532 #[doc = " Delete a pipeline instance.\n Upon destruction, the pipeline will implicitly stop itself\n \\param[in] pipe to delete"]
3533 pub fn rs2_delete_pipeline(pipe: *mut rs2_pipeline);
3534}
3535unsafe extern "C" {
3536 #[doc = " Start the pipeline streaming with its default configuration.\n The pipeline streaming loop captures samples from the device, and delivers them to the attached computer vision modules\n and processing blocks, according to each module requirements and threading model.\n During the loop execution, the application can access the camera streams by calling \\c wait_for_frames() or \\c poll_for_frames().\n The streaming loop runs until the pipeline is stopped.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n\n \\param[in] pipe a pointer to an instance of the pipeline\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3537 pub fn rs2_pipeline_start(
3538 pipe: *mut rs2_pipeline,
3539 error: *mut *mut rs2_error,
3540 ) -> *mut rs2_pipeline_profile;
3541}
3542unsafe extern "C" {
3543 #[doc = " Start the pipeline streaming according to the configuraion.\n The pipeline streaming loop captures samples from the device, and delivers them to the attached computer vision modules\n and processing blocks, according to each module requirements and threading model.\n During the loop execution, the application can access the camera streams by calling \\c wait_for_frames() or \\c poll_for_frames().\n The streaming loop runs until the pipeline is stopped.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n The pipeline selects and activates the device upon start, according to configuration or a default configuration.\n When the rs2::config is provided to the method, the pipeline tries to activate the config \\c resolve() result. If the application\n requests are conflicting with pipeline computer vision modules or no matching device is available on the platform, the method fails.\n Available configurations and devices may change between config \\c resolve() call and pipeline start, in case devices are connected\n or disconnected, or another application acquires ownership of a device.\n\n \\param[in] pipe a pointer to an instance of the pipeline\n \\param[in] config A rs2::config with requested filters on the pipeline configuration. By default no filters are applied.\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3544 pub fn rs2_pipeline_start_with_config(
3545 pipe: *mut rs2_pipeline,
3546 config: *mut rs2_config,
3547 error: *mut *mut rs2_error,
3548 ) -> *mut rs2_pipeline_profile;
3549}
3550unsafe extern "C" {
3551 #[doc = " Start the pipeline streaming with its default configuration.\n The pipeline captures samples from the device, and delivers them to the through the provided frame callback.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n When starting the pipeline with a callback both \\c wait_for_frames() or \\c poll_for_frames() will throw exception.\n\n \\param[in] pipe A pointer to an instance of the pipeline\n \\param[in] on_frame function pointer to register as per-frame callback\n \\param[in] user auxiliary data the user wishes to receive together with every frame callback\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3552 pub fn rs2_pipeline_start_with_callback(
3553 pipe: *mut rs2_pipeline,
3554 on_frame: rs2_frame_callback_ptr,
3555 user: *mut ::std::os::raw::c_void,
3556 error: *mut *mut rs2_error,
3557 ) -> *mut rs2_pipeline_profile;
3558}
3559unsafe extern "C" {
3560 #[doc = " Start the pipeline streaming with its default configuration.\n The pipeline captures samples from the device, and delivers them to the through the provided frame callback.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n When starting the pipeline with a callback both \\c wait_for_frames() or \\c poll_for_frames() will throw exception.\n\n \\param[in] pipe A pointer to an instance of the pipeline\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved into the relevant streaming lock\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3561 pub fn rs2_pipeline_start_with_callback_cpp(
3562 pipe: *mut rs2_pipeline,
3563 callback: *mut rs2_frame_callback,
3564 error: *mut *mut rs2_error,
3565 ) -> *mut rs2_pipeline_profile;
3566}
3567unsafe extern "C" {
3568 #[doc = " Start the pipeline streaming according to the configuraion.\n The pipeline captures samples from the device, and delivers them to the through the provided frame callback.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n When starting the pipeline with a callback both \\c wait_for_frames() or \\c poll_for_frames() will throw exception.\n The pipeline selects and activates the device upon start, according to configuration or a default configuration.\n When the rs2::config is provided to the method, the pipeline tries to activate the config \\c resolve() result. If the application\n requests are conflicting with pipeline computer vision modules or no matching device is available on the platform, the method fails.\n Available configurations and devices may change between config \\c resolve() call and pipeline start, in case devices are connected\n or disconnected, or another application acquires ownership of a device.\n\n \\param[in] pipe A pointer to an instance of the pipeline\n \\param[in] config A rs2::config with requested filters on the pipeline configuration. By default no filters are applied.\n \\param[in] on_frame function pointer to register as per-frame callback\n \\param[in] user auxiliary data the user wishes to receive together with every frame callback\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3569 pub fn rs2_pipeline_start_with_config_and_callback(
3570 pipe: *mut rs2_pipeline,
3571 config: *mut rs2_config,
3572 on_frame: rs2_frame_callback_ptr,
3573 user: *mut ::std::os::raw::c_void,
3574 error: *mut *mut rs2_error,
3575 ) -> *mut rs2_pipeline_profile;
3576}
3577unsafe extern "C" {
3578 #[doc = " Start the pipeline streaming according to the configuraion.\n The pipeline captures samples from the device, and delivers them to the through the provided frame callback.\n Starting the pipeline is possible only when it is not started. If the pipeline was started, an exception is raised.\n When starting the pipeline with a callback both \\c wait_for_frames() or \\c poll_for_frames() will throw exception.\n The pipeline selects and activates the device upon start, according to configuration or a default configuration.\n When the rs2::config is provided to the method, the pipeline tries to activate the config \\c resolve() result. If the application\n requests are conflicting with pipeline computer vision modules or no matching device is available on the platform, the method fails.\n Available configurations and devices may change between config \\c resolve() call and pipeline start, in case devices are connected\n or disconnected, or another application acquires ownership of a device.\n\n \\param[in] pipe A pointer to an instance of the pipeline\n \\param[in] config A rs2::config with requested filters on the pipeline configuration. By default no filters are applied.\n \\param[in] callback callback object created from c++ application. ownership over the callback object is moved into the relevant streaming lock\n \\param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device."]
3579 pub fn rs2_pipeline_start_with_config_and_callback_cpp(
3580 pipe: *mut rs2_pipeline,
3581 config: *mut rs2_config,
3582 callback: *mut rs2_frame_callback,
3583 error: *mut *mut rs2_error,
3584 ) -> *mut rs2_pipeline_profile;
3585}
3586unsafe extern "C" {
3587 #[doc = " Return the active device and streams profiles, used by the pipeline.\n The pipeline streams profiles are selected during \\c start(). The method returns a valid result only when the pipeline is active -\n between calls to \\c start() and \\c stop().\n After \\c stop() is called, the pipeline doesn't own the device, thus, the pipeline selected device may change in subsequent activations.\n\n \\param[in] pipe a pointer to an instance of the pipeline\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return The actual pipeline device and streams profile, which was successfully configured to the streaming device on start."]
3588 pub fn rs2_pipeline_get_active_profile(
3589 pipe: *mut rs2_pipeline,
3590 error: *mut *mut rs2_error,
3591 ) -> *mut rs2_pipeline_profile;
3592}
3593unsafe extern "C" {
3594 #[doc = " Retrieve the device used by the pipeline.\n The device class provides the application access to control camera additional settings -\n get device information, sensor options information, options value query and set, sensor specific extensions.\n Since the pipeline controls the device streams configuration, activation state and frames reading, calling\n the device API functions, which execute those operations, results in unexpected behavior.\n The pipeline streaming device is selected during pipeline \\c start(). Devices of profiles, which are not returned by\n pipeline \\c start() or \\c get_active_profile(), are not guaranteed to be used by the pipeline.\n\n \\param[in] profile A pointer to an instance of a pipeline profile\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return rs2_device* The pipeline selected device"]
3595 pub fn rs2_pipeline_profile_get_device(
3596 profile: *mut rs2_pipeline_profile,
3597 error: *mut *mut rs2_error,
3598 ) -> *mut rs2_device;
3599}
3600unsafe extern "C" {
3601 #[doc = " Return the selected streams profiles, which are enabled in this profile.\n\n \\param[in] profile A pointer to an instance of a pipeline profile\n \\param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored\n \\return list of stream profiles"]
3602 pub fn rs2_pipeline_profile_get_streams(
3603 profile: *mut rs2_pipeline_profile,
3604 error: *mut *mut rs2_error,
3605 ) -> *mut rs2_stream_profile_list;
3606}
3607unsafe extern "C" {
3608 #[doc = " Deletes an instance of a pipeline profile\n\n \\param[in] profile A pointer to an instance of a pipeline profile"]
3609 pub fn rs2_delete_pipeline_profile(profile: *mut rs2_pipeline_profile);
3610}