1use super::orb;
3
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
6pub enum OBSensorType {
7 Unknown = orb::OBSensorType_OB_SENSOR_UNKNOWN as isize,
9 Infrared = orb::OBSensorType_OB_SENSOR_IR as isize,
11 Depth = orb::OBSensorType_OB_SENSOR_DEPTH as isize,
13 Color = orb::OBSensorType_OB_SENSOR_COLOR as isize,
15 Accelerometer = orb::OBSensorType_OB_SENSOR_ACCEL as isize,
17 Gyroscope = orb::OBSensorType_OB_SENSOR_GYRO as isize,
19 LeftInfrared = orb::OBSensorType_OB_SENSOR_IR_LEFT as isize,
21 RightInfrared = orb::OBSensorType_OB_SENSOR_IR_RIGHT as isize,
23 Confidence = orb::OBSensorType_OB_SENSOR_CONFIDENCE as isize,
25}
26
27#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
29pub enum OBFormat {
30 Unknown = orb::OBFormat_OB_FORMAT_UNKNOWN as isize,
32 YUYV = orb::OBFormat_OB_FORMAT_YUYV as isize,
34 YUY2 = orb::OBFormat_OB_FORMAT_YUY2 as isize,
36 UYVY = orb::OBFormat_OB_FORMAT_UYVY as isize,
38 NV12 = orb::OBFormat_OB_FORMAT_NV12 as isize,
40 NV21 = orb::OBFormat_OB_FORMAT_NV21 as isize,
42 MJPG = orb::OBFormat_OB_FORMAT_MJPG as isize,
44 H264 = orb::OBFormat_OB_FORMAT_H264 as isize,
46 H265 = orb::OBFormat_OB_FORMAT_H265 as isize,
48 Y16 = orb::OBFormat_OB_FORMAT_Y16 as isize,
50 Y8 = orb::OBFormat_OB_FORMAT_Y8 as isize,
52 Y10 = orb::OBFormat_OB_FORMAT_Y10 as isize,
54 Y11 = orb::OBFormat_OB_FORMAT_Y11 as isize,
56 Y12 = orb::OBFormat_OB_FORMAT_Y12 as isize,
58 Gray = orb::OBFormat_OB_FORMAT_GRAY as isize,
60 HEVC = orb::OBFormat_OB_FORMAT_HEVC as isize,
62 I420 = orb::OBFormat_OB_FORMAT_I420 as isize,
64 Accel = orb::OBFormat_OB_FORMAT_ACCEL as isize,
66 Gyro = orb::OBFormat_OB_FORMAT_GYRO as isize,
68 Point = orb::OBFormat_OB_FORMAT_POINT as isize,
70 RGBPoint = orb::OBFormat_OB_FORMAT_RGB_POINT as isize,
72 RLE = orb::OBFormat_OB_FORMAT_RLE as isize,
74 RGB = orb::OBFormat_OB_FORMAT_RGB as isize,
76 BGR = orb::OBFormat_OB_FORMAT_BGR as isize,
78 Y14 = orb::OBFormat_OB_FORMAT_Y14 as isize,
80 BGRA = orb::OBFormat_OB_FORMAT_BGRA as isize,
82 Compressed = orb::OBFormat_OB_FORMAT_COMPRESSED as isize,
84 RVL = orb::OBFormat_OB_FORMAT_RVL as isize,
86 Z16 = orb::OBFormat_OB_FORMAT_Z16 as isize,
88 YV12 = orb::OBFormat_OB_FORMAT_YV12 as isize,
90 BA81 = orb::OBFormat_OB_FORMAT_BA81 as isize,
92 RGBA = orb::OBFormat_OB_FORMAT_RGBA as isize,
94 BYR2 = orb::OBFormat_OB_FORMAT_BYR2 as isize,
96 RW16 = orb::OBFormat_OB_FORMAT_RW16 as isize,
98 Y12C4 = orb::OBFormat_OB_FORMAT_Y12C4 as isize,
100}
101
102impl From<orb::OBFormat> for OBFormat {
103 fn from(format: orb::OBFormat) -> Self {
104 match format {
105 orb::OBFormat_OB_FORMAT_UNKNOWN => OBFormat::Unknown,
106 orb::OBFormat_OB_FORMAT_YUYV => OBFormat::YUYV,
107 orb::OBFormat_OB_FORMAT_YUY2 => OBFormat::YUY2,
108 orb::OBFormat_OB_FORMAT_UYVY => OBFormat::UYVY,
109 orb::OBFormat_OB_FORMAT_NV12 => OBFormat::NV12,
110 orb::OBFormat_OB_FORMAT_NV21 => OBFormat::NV21,
111 orb::OBFormat_OB_FORMAT_MJPG => OBFormat::MJPG,
112 orb::OBFormat_OB_FORMAT_H264 => OBFormat::H264,
113 orb::OBFormat_OB_FORMAT_H265 => OBFormat::H265,
114 orb::OBFormat_OB_FORMAT_Y16 => OBFormat::Y16,
115 orb::OBFormat_OB_FORMAT_Y8 => OBFormat::Y8,
116 orb::OBFormat_OB_FORMAT_Y10 => OBFormat::Y10,
117 orb::OBFormat_OB_FORMAT_Y11 => OBFormat::Y11,
118 orb::OBFormat_OB_FORMAT_Y12 => OBFormat::Y12,
119 orb::OBFormat_OB_FORMAT_GRAY => OBFormat::Gray,
120 orb::OBFormat_OB_FORMAT_HEVC => OBFormat::HEVC,
121 orb::OBFormat_OB_FORMAT_I420 => OBFormat::I420,
122 orb::OBFormat_OB_FORMAT_ACCEL => OBFormat::Accel,
123 orb::OBFormat_OB_FORMAT_GYRO => OBFormat::Gyro,
124 orb::OBFormat_OB_FORMAT_POINT => OBFormat::Point,
125 orb::OBFormat_OB_FORMAT_RGB_POINT => OBFormat::RGBPoint,
126 orb::OBFormat_OB_FORMAT_RLE => OBFormat::RLE,
127 orb::OBFormat_OB_FORMAT_RGB => OBFormat::RGB,
128 orb::OBFormat_OB_FORMAT_BGR => OBFormat::BGR,
129 orb::OBFormat_OB_FORMAT_Y14 => OBFormat::Y14,
130 orb::OBFormat_OB_FORMAT_BGRA => OBFormat::BGRA,
131 orb::OBFormat_OB_FORMAT_COMPRESSED => OBFormat::Compressed,
132 orb::OBFormat_OB_FORMAT_RVL => OBFormat::RVL,
133 orb::OBFormat_OB_FORMAT_Z16 => OBFormat::Z16,
134 orb::OBFormat_OB_FORMAT_YV12 => OBFormat::YV12,
135 orb::OBFormat_OB_FORMAT_BA81 => OBFormat::BA81,
136 orb::OBFormat_OB_FORMAT_RGBA => OBFormat::RGBA,
137 orb::OBFormat_OB_FORMAT_BYR2 => OBFormat::BYR2,
138 orb::OBFormat_OB_FORMAT_RW16 => OBFormat::RW16,
139 orb::OBFormat_OB_FORMAT_Y12C4 => OBFormat::Y12C4,
140 _ => OBFormat::Unknown,
141 }
142 }
143}
144
145#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
147pub enum OBPropertyID {
148 LDPBool = orb::OBPropertyID_OB_PROP_LDP_BOOL as isize,
150 LaserBool = orb::OBPropertyID_OB_PROP_LASER_BOOL as isize,
152 LaserPulseWidthInt = orb::OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_INT as isize,
154 LaserCurrentFloat = orb::OBPropertyID_OB_PROP_LASER_CURRENT_FLOAT as isize,
156 FloodBool = orb::OBPropertyID_OB_PROP_FLOOD_BOOL as isize,
158 FloodLevelInt = orb::OBPropertyID_OB_PROP_FLOOD_LEVEL_INT as isize,
160 TemperatureCompensationBool = orb::OBPropertyID_OB_PROP_TEMPERATURE_COMPENSATION_BOOL as isize,
162 DepthMirrorBool = orb::OBPropertyID_OB_PROP_DEPTH_MIRROR_BOOL as isize,
164 DepthFlipBool = orb::OBPropertyID_OB_PROP_DEPTH_FLIP_BOOL as isize,
166 DepthPostfilterBool = orb::OBPropertyID_OB_PROP_DEPTH_POSTFILTER_BOOL as isize,
168 DepthHolefilterBool = orb::OBPropertyID_OB_PROP_DEPTH_HOLEFILTER_BOOL as isize,
170 IRMirrorBool = orb::OBPropertyID_OB_PROP_IR_MIRROR_BOOL as isize,
172 IRFlipBool = orb::OBPropertyID_OB_PROP_IR_FLIP_BOOL as isize,
174 MinDepthInt = orb::OBPropertyID_OB_PROP_MIN_DEPTH_INT as isize,
176 MaxDepthInt = orb::OBPropertyID_OB_PROP_MAX_DEPTH_INT as isize,
178 DepthNoiseRemovalFilterBool =
180 orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_BOOL as isize,
181 LDPStatusBool = orb::OBPropertyID_OB_PROP_LDP_STATUS_BOOL as isize,
183 DepthNoiseRemovalFilterMaxDiffInt =
185 orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_DIFF_INT as isize,
186 DepthNoiseRemovalFilterMaxSpeckleSizeInt =
188 orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_SPECKLE_SIZE_INT as isize,
189 DepthAlignHardwareBool = orb::OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_BOOL as isize,
191 TimestampOffsetInt = orb::OBPropertyID_OB_PROP_TIMESTAMP_OFFSET_INT as isize,
193 HardwareDistortionSwitchBool =
195 orb::OBPropertyID_OB_PROP_HARDWARE_DISTORTION_SWITCH_BOOL as isize,
196 FanWorkModeInt = orb::OBPropertyID_OB_PROP_FAN_WORK_MODE_INT as isize,
198 DepthAlignHardwareModeInt = orb::OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_MODE_INT as isize,
200 AntiCollusionActivationStatusBool =
202 orb::OBPropertyID_OB_PROP_ANTI_COLLUSION_ACTIVATION_STATUS_BOOL as isize,
203 DepthPrecisionLevelInt = orb::OBPropertyID_OB_PROP_DEPTH_PRECISION_LEVEL_INT as isize,
205 TofFilterRangeInt = orb::OBPropertyID_OB_PROP_TOF_FILTER_RANGE_INT as isize,
207 LaserModeInt = orb::OBPropertyID_OB_PROP_LASER_MODE_INT as isize,
209 Rectify2Bool = orb::OBPropertyID_OB_PROP_RECTIFY2_BOOL as isize,
211 ColorMirrorBool = orb::OBPropertyID_OB_PROP_COLOR_MIRROR_BOOL as isize,
213 ColorFlipBool = orb::OBPropertyID_OB_PROP_COLOR_FLIP_BOOL as isize,
215 IndicatorLightBool = orb::OBPropertyID_OB_PROP_INDICATOR_LIGHT_BOOL as isize,
217 DisparityToDepthBool = orb::OBPropertyID_OB_PROP_DISPARITY_TO_DEPTH_BOOL as isize,
219 BRTBool = orb::OBPropertyID_OB_PROP_BRT_BOOL as isize,
221 WatchdogBool = orb::OBPropertyID_OB_PROP_WATCHDOG_BOOL as isize,
223 ExternalSignalResetBool = orb::OBPropertyID_OB_PROP_EXTERNAL_SIGNAL_RESET_BOOL as isize,
225 HeartbeatBool = orb::OBPropertyID_OB_PROP_HEARTBEAT_BOOL as isize,
227 DepthCroppingModeInt = orb::OBPropertyID_OB_PROP_DEPTH_CROPPING_MODE_INT as isize,
229 D2CPreprocessBool = orb::OBPropertyID_OB_PROP_D2C_PREPROCESS_BOOL as isize,
231 GPMBool = orb::OBPropertyID_OB_PROP_GPM_BOOL as isize,
233 RGBCustomCropBool = orb::OBPropertyID_OB_PROP_RGB_CUSTOM_CROP_BOOL as isize,
235 DeviceWorkModeInt = orb::OBPropertyID_OB_PROP_DEVICE_WORK_MODE_INT as isize,
237 DeviceCommunicationTypeInt = orb::OBPropertyID_OB_PROP_DEVICE_COMMUNICATION_TYPE_INT as isize,
239 SwitchIRModeInt = orb::OBPropertyID_OB_PROP_SWITCH_IR_MODE_INT as isize,
241 LaserPowerLevelControlInt = orb::OBPropertyID_OB_PROP_LASER_POWER_LEVEL_CONTROL_INT as isize,
243 LDPMeasureDistanceInt = orb::OBPropertyID_OB_PROP_LDP_MEASURE_DISTANCE_INT as isize,
245 TimerResetSignalBool = orb::OBPropertyID_OB_PROP_TIMER_RESET_SIGNAL_BOOL as isize,
247 TimerResetTriggerOutEnableBool =
249 orb::OBPropertyID_OB_PROP_TIMER_RESET_TRIGGER_OUT_ENABLE_BOOL as isize,
250 TimerResetDelayUsInt = orb::OBPropertyID_OB_PROP_TIMER_RESET_DELAY_US_INT as isize,
252 CaptureImageSignalBool = orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_SIGNAL_BOOL as isize,
254 IRRightMirrorBool = orb::OBPropertyID_OB_PROP_IR_RIGHT_MIRROR_BOOL as isize,
256 CaptureImageFrameNumberInt = orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_FRAME_NUMBER_INT as isize,
258 IRRightFlipBool = orb::OBPropertyID_OB_PROP_IR_RIGHT_FLIP_BOOL as isize,
260 ColorRotateInt = orb::OBPropertyID_OB_PROP_COLOR_ROTATE_INT as isize,
262 IRRotateInt = orb::OBPropertyID_OB_PROP_IR_ROTATE_INT as isize,
264 IRRightRotateInt = orb::OBPropertyID_OB_PROP_IR_RIGHT_ROTATE_INT as isize,
266 DepthRotateInt = orb::OBPropertyID_OB_PROP_DEPTH_ROTATE_INT as isize,
268 LaserPowerActualLevelInt = orb::OBPropertyID_OB_PROP_LASER_POWER_ACTUAL_LEVEL_INT as isize,
270 USBPowerStateInt = orb::OBPropertyID_OB_PROP_USB_POWER_STATE_INT as isize,
272 DCPowerStateInt = orb::OBPropertyID_OB_PROP_DC_POWER_STATE_INT as isize,
274 DeviceDevelopmentModeInt = orb::OBPropertyID_OB_PROP_DEVICE_DEVELOPMENT_MODE_INT as isize,
276 SyncSignalTriggerOutBool = orb::OBPropertyID_OB_PROP_SYNC_SIGNAL_TRIGGER_OUT_BOOL as isize,
278 RestoreFactorySettingsBool = orb::OBPropertyID_OB_PROP_RESTORE_FACTORY_SETTINGS_BOOL as isize,
280 BootIntoRecoveryModeBool = orb::OBPropertyID_OB_PROP_BOOT_INTO_RECOVERY_MODE_BOOL as isize,
282 DeviceInRecoveryModeBool = orb::OBPropertyID_OB_PROP_DEVICE_IN_RECOVERY_MODE_BOOL as isize,
284 CaptureIntervalModeInt = orb::OBPropertyID_OB_PROP_CAPTURE_INTERVAL_MODE_INT as isize,
286 CaptureImageTimeIntervalInt =
288 orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_TIME_INTERVAL_INT as isize,
289 CaptureImageNumberIntervalInt =
291 orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_NUMBER_INTERVAL_INT as isize,
292 TimerResetEnableBool = orb::OBPropertyID_OB_PROP_TIMER_RESET_ENABLE_BOOL as isize,
294 DeviceUSB2RepeatIdentifyBool =
296 orb::OBPropertyID_OB_PROP_DEVICE_USB2_REPEAT_IDENTIFY_BOOL as isize,
297 DeviceRebootDelayInt = orb::OBPropertyID_OB_PROP_DEVICE_REBOOT_DELAY_INT as isize,
299 LaserOvercurrentProtectionStatusBool =
301 orb::OBPropertyID_OB_PROP_LASER_OVERCURRENT_PROTECTION_STATUS_BOOL as isize,
302 LaserPulseWidthProtectionStatusBool =
304 orb::OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_PROTECTION_STATUS_BOOL as isize,
305 LaserAlwaysOnBool = orb::OBPropertyID_OB_PROP_LASER_ALWAYS_ON_BOOL as isize,
307 LaserOnOffPatternInt = orb::OBPropertyID_OB_PROP_LASER_ON_OFF_PATTERN_INT as isize,
309 DepthUnitFlexibleAdjustmentFloat =
311 orb::OBPropertyID_OB_PROP_DEPTH_UNIT_FLEXIBLE_ADJUSTMENT_FLOAT as isize,
312 LaserControlInt = orb::OBPropertyID_OB_PROP_LASER_CONTROL_INT as isize,
314 IRBrightnessInt = orb::OBPropertyID_OB_PROP_IR_BRIGHTNESS_INT as isize,
316 SlaveDeviceSyncStatusBool = orb::OBPropertyID_OB_PROP_SLAVE_DEVICE_SYNC_STATUS_BOOL as isize,
318 ColorAEMaxExposureInt = orb::OBPropertyID_OB_PROP_COLOR_AE_MAX_EXPOSURE_INT as isize,
320 IRAEMaxExposureInt = orb::OBPropertyID_OB_PROP_IR_AE_MAX_EXPOSURE_INT as isize,
322 DispSearchRangeModeInt = orb::OBPropertyID_OB_PROP_DISP_SEARCH_RANGE_MODE_INT as isize,
324 LaserHighTemperatureProtectBool =
326 orb::OBPropertyID_OB_PROP_LASER_HIGH_TEMPERATURE_PROTECT_BOOL as isize,
327 LowExposureLaserControlBool =
329 orb::OBPropertyID_OB_PROP_LOW_EXPOSURE_LASER_CONTROL_BOOL as isize,
330 CheckPPSSyncInSignalBool = orb::OBPropertyID_OB_PROP_CHECK_PPS_SYNC_IN_SIGNAL_BOOL as isize,
332 DispSearchOffsetInt = orb::OBPropertyID_OB_PROP_DISP_SEARCH_OFFSET_INT as isize,
334 DeviceRepowerBool = orb::OBPropertyID_OB_PROP_DEVICE_REPOWER_BOOL as isize,
336 FrameInterleaveConfigIndexInt =
338 orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_CONFIG_INDEX_INT as isize,
339 FrameInterleaveEnableBool = orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_ENABLE_BOOL as isize,
341 FrameInterleaveLaserPatternSyncDelayInt =
343 orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_LASER_PATTERN_SYNC_DELAY_INT as isize,
344 OnChipCalibrationHealthCheckFloat =
346 orb::OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_HEALTH_CHECK_FLOAT as isize,
347 OnChipCalibrationEnableBool =
349 orb::OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_ENABLE_BOOL as isize,
350 HWNoiseRemoveFilterEnableBool =
352 orb::OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_ENABLE_BOOL as isize,
353 HWNoiseRemoveFilterThresholdFloat =
355 orb::OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_THRESHOLD_FLOAT as isize,
356 DeviceAutoCaptureEnableBool = orb::OBPropertyID_OB_DEVICE_AUTO_CAPTURE_ENABLE_BOOL as isize,
358 DeviceAutoCaptureIntervalTimeInt =
360 orb::OBPropertyID_OB_DEVICE_AUTO_CAPTURE_INTERVAL_TIME_INT as isize,
361 DevicePTPClockSyncEnableBool = orb::OBPropertyID_OB_DEVICE_PTP_CLOCK_SYNC_ENABLE_BOOL as isize,
363 DepthWithConfidenceStreamEnableBool =
365 orb::OBPropertyID_OB_PROP_DEPTH_WITH_CONFIDENCE_STREAM_ENABLE_BOOL as isize,
366 ConfidenceStreamFilterBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_BOOL as isize,
368 ConfidenceStreamFilterThresholdInt =
370 orb::OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_THRESHOLD_INT as isize,
371 ConfidenceMirrorBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_MIRROR_BOOL as isize,
373 ConfidenceFlipBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_FLIP_BOOL as isize,
375 ConfidenceRotateInt = orb::OBPropertyID_OB_PROP_CONFIDENCE_ROTATE_INT as isize,
377 ColorAutoExposureBool = orb::OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_BOOL as isize,
379 ColorExposureInt = orb::OBPropertyID_OB_PROP_COLOR_EXPOSURE_INT as isize,
381 ColorGainInt = orb::OBPropertyID_OB_PROP_COLOR_GAIN_INT as isize,
383 ColorAutoWhiteBalanceBool = orb::OBPropertyID_OB_PROP_COLOR_AUTO_WHITE_BALANCE_BOOL as isize,
385 ColorWhiteBalanceInt = orb::OBPropertyID_OB_PROP_COLOR_WHITE_BALANCE_INT as isize,
387 ColorBrightnessInt = orb::OBPropertyID_OB_PROP_COLOR_BRIGHTNESS_INT as isize,
389 ColorSharpnessInt = orb::OBPropertyID_OB_PROP_COLOR_SHARPNESS_INT as isize,
391 ColorShutterInt = orb::OBPropertyID_OB_PROP_COLOR_SHUTTER_INT as isize,
393 ColorSaturationInt = orb::OBPropertyID_OB_PROP_COLOR_SATURATION_INT as isize,
395 ColorContrastInt = orb::OBPropertyID_OB_PROP_COLOR_CONTRAST_INT as isize,
397 ColorGammaInt = orb::OBPropertyID_OB_PROP_COLOR_GAMMA_INT as isize,
399 ColorRollInt = orb::OBPropertyID_OB_PROP_COLOR_ROLL_INT as isize,
401 ColorAutoExposurePriorityInt =
403 orb::OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_PRIORITY_INT as isize,
404 ColorBacklightCompensationInt =
406 orb::OBPropertyID_OB_PROP_COLOR_BACKLIGHT_COMPENSATION_INT as isize,
407 ColorHueInt = orb::OBPropertyID_OB_PROP_COLOR_HUE_INT as isize,
409 ColorPowerLineFrequencyInt = orb::OBPropertyID_OB_PROP_COLOR_POWER_LINE_FREQUENCY_INT as isize,
411 DepthAutoExposureBool = orb::OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_BOOL as isize,
413 DepthExposureInt = orb::OBPropertyID_OB_PROP_DEPTH_EXPOSURE_INT as isize,
415 DepthGainInt = orb::OBPropertyID_OB_PROP_DEPTH_GAIN_INT as isize,
417 IRAutoExposureBool = orb::OBPropertyID_OB_PROP_IR_AUTO_EXPOSURE_BOOL as isize,
419 IRExposureInt = orb::OBPropertyID_OB_PROP_IR_EXPOSURE_INT as isize,
421 IRGainInt = orb::OBPropertyID_OB_PROP_IR_GAIN_INT as isize,
423 IRChannelDataSourceInt = orb::OBPropertyID_OB_PROP_IR_CHANNEL_DATA_SOURCE_INT as isize,
425 DepthRMFilterBool = orb::OBPropertyID_OB_PROP_DEPTH_RM_FILTER_BOOL as isize,
427 ColorMaximalGainInt = orb::OBPropertyID_OB_PROP_COLOR_MAXIMAL_GAIN_INT as isize,
429 ColorMaximalShutterInt = orb::OBPropertyID_OB_PROP_COLOR_MAXIMAL_SHUTTER_INT as isize,
431 IRShortExposureBool = orb::OBPropertyID_OB_PROP_IR_SHORT_EXPOSURE_BOOL as isize,
433 ColorHDRBool = orb::OBPropertyID_OB_PROP_COLOR_HDR_BOOL as isize,
435 IRLongExposureBool = orb::OBPropertyID_OB_PROP_IR_LONG_EXPOSURE_BOOL as isize,
437 SkipFrameBool = orb::OBPropertyID_OB_PROP_SKIP_FRAME_BOOL as isize,
439 HDRMergeBool = orb::OBPropertyID_OB_PROP_HDR_MERGE_BOOL as isize,
441 ColorFocusInt = orb::OBPropertyID_OB_PROP_COLOR_FOCUS_INT as isize,
443 IRRectifyBool = orb::OBPropertyID_OB_PROP_IR_RECTIFY_BOOL as isize,
445 DepthAutoExposurePriorityInt =
447 orb::OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_PRIORITY_INT as isize,
448 SDKDisparityToDepthBool = orb::OBPropertyID_OB_PROP_SDK_DISPARITY_TO_DEPTH_BOOL as isize,
450 SDKDepthFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_DEPTH_FRAME_UNPACK_BOOL as isize,
452 SDKIRFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_FRAME_UNPACK_BOOL as isize,
454 SDKAccelFrameTransformedBool =
456 orb::OBPropertyID_OB_PROP_SDK_ACCEL_FRAME_TRANSFORMED_BOOL as isize,
457 SDKGyroFrameTransformedBool =
459 orb::OBPropertyID_OB_PROP_SDK_GYRO_FRAME_TRANSFORMED_BOOL as isize,
460 SDKIRLeftFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_LEFT_FRAME_UNPACK_BOOL as isize,
462 SDKIRRightFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_RIGHT_FRAME_UNPACK_BOOL as isize,
464 NetworkBandwidthTypeInt = orb::OBPropertyID_OB_PROP_NETWORK_BANDWIDTH_TYPE_INT as isize,
466 DevicePerformanceModeInt = orb::OBPropertyID_OB_PROP_DEVICE_PERFORMANCE_MODE_INT as isize,
468 RawDataCameraCalibJsonFile = orb::OBPropertyID_OB_RAW_DATA_CAMERA_CALIB_JSON_FILE as isize,
470 DebugESGMConfidenceFloat = orb::OBPropertyID_OB_PROP_DEBUG_ESGM_CONFIDENCE_FLOAT as isize,
472}
473
474#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
476pub enum OBFilterConfigValueType {
477 Invalid = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INVALID as isize,
479 Int = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INT as isize,
481 Float = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_FLOAT as isize,
483 Bool = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_BOOLEAN as isize,
485}
486
487impl From<orb::OBFilterConfigValueType> for OBFilterConfigValueType {
488 fn from(value: orb::OBFilterConfigValueType) -> Self {
489 match value {
490 orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INVALID => {
491 OBFilterConfigValueType::Invalid
492 }
493 orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INT => {
494 OBFilterConfigValueType::Int
495 }
496 orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_FLOAT => {
497 OBFilterConfigValueType::Float
498 }
499 orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_BOOLEAN => {
500 OBFilterConfigValueType::Bool
501 }
502 _ => OBFilterConfigValueType::Invalid,
503 }
504 }
505}
506
507#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
509pub enum OBConvertFormat {
510 YUYVToRGB = orb::OBConvertFormat_FORMAT_YUYV_TO_RGB as isize,
512 I420ToRGB = orb::OBConvertFormat_FORMAT_I420_TO_RGB as isize,
514 NV21ToRGB = orb::OBConvertFormat_FORMAT_NV21_TO_RGB as isize,
516 NV12ToRGB = orb::OBConvertFormat_FORMAT_NV12_TO_RGB as isize,
518 MJPGToI420 = orb::OBConvertFormat_FORMAT_MJPG_TO_I420 as isize,
520 RGBToBGR = orb::OBConvertFormat_FORMAT_RGB_TO_BGR as isize,
522 MJPGToNV21 = orb::OBConvertFormat_FORMAT_MJPG_TO_NV21 as isize,
524 MJPGToRGB = orb::OBConvertFormat_FORMAT_MJPG_TO_RGB as isize,
526 MJPGToBGR = orb::OBConvertFormat_FORMAT_MJPG_TO_BGR as isize,
528 MJPGToBGRA = orb::OBConvertFormat_FORMAT_MJPG_TO_BGRA as isize,
530 UYVYToRGB = orb::OBConvertFormat_FORMAT_UYVY_TO_RGB as isize,
532 BGRToRGB = orb::OBConvertFormat_FORMAT_BGR_TO_RGB as isize,
534 MJPGToNV12 = orb::OBConvertFormat_FORMAT_MJPG_TO_NV12 as isize,
536 YUYVToBGR = orb::OBConvertFormat_FORMAT_YUYV_TO_BGR as isize,
538 YUYVToRGBA = orb::OBConvertFormat_FORMAT_YUYV_TO_RGBA as isize,
540 YUYVToBGRA = orb::OBConvertFormat_FORMAT_YUYV_TO_BGRA as isize,
542 YUYVToY16 = orb::OBConvertFormat_FORMAT_YUYV_TO_Y16 as isize,
544 YUYVToY8 = orb::OBConvertFormat_FORMAT_YUYV_TO_Y8 as isize,
546 RGBAToRGB = orb::OBConvertFormat_FORMAT_RGBA_TO_RGB as isize,
548 BGRAToBGR = orb::OBConvertFormat_FORMAT_BGRA_TO_BGR as isize,
550 Y16ToRGB = orb::OBConvertFormat_FORMAT_Y16_TO_RGB as isize,
552 Y8ToRGB = orb::OBConvertFormat_FORMAT_Y8_TO_RGB as isize,
554}
555
556#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
558pub enum OBExceptionType {
559 Unknown = orb::OBExceptionType_OB_EXCEPTION_TYPE_UNKNOWN as isize,
561 StdException = orb::OBExceptionType_OB_EXCEPTION_STD_EXCEPTION as isize,
563 CameraDisconnected = orb::OBExceptionType_OB_EXCEPTION_TYPE_CAMERA_DISCONNECTED as isize,
565 PlatformException = orb::OBExceptionType_OB_EXCEPTION_TYPE_PLATFORM as isize,
567 InvalidValue = orb::OBExceptionType_OB_EXCEPTION_TYPE_INVALID_VALUE as isize,
569 WrongAPICallSequence = orb::OBExceptionType_OB_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE as isize,
571 NotImplemented = orb::OBExceptionType_OB_EXCEPTION_TYPE_NOT_IMPLEMENTED as isize,
573 IOException = orb::OBExceptionType_OB_EXCEPTION_TYPE_IO as isize,
575 MemoryException = orb::OBExceptionType_OB_EXCEPTION_TYPE_MEMORY as isize,
577 UnsupportedOperation = orb::OBExceptionType_OB_EXCEPTION_TYPE_UNSUPPORTED_OPERATION as isize,
579}
580
581impl From<orb::OBExceptionType> for OBExceptionType {
582 fn from(value: orb::OBExceptionType) -> Self {
583 match value {
584 orb::OBExceptionType_OB_EXCEPTION_TYPE_UNKNOWN => OBExceptionType::Unknown,
585 orb::OBExceptionType_OB_EXCEPTION_STD_EXCEPTION => OBExceptionType::StdException,
586 orb::OBExceptionType_OB_EXCEPTION_TYPE_CAMERA_DISCONNECTED => {
587 OBExceptionType::CameraDisconnected
588 }
589 orb::OBExceptionType_OB_EXCEPTION_TYPE_PLATFORM => OBExceptionType::PlatformException,
590 orb::OBExceptionType_OB_EXCEPTION_TYPE_INVALID_VALUE => OBExceptionType::InvalidValue,
591 orb::OBExceptionType_OB_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE => {
592 OBExceptionType::WrongAPICallSequence
593 }
594 orb::OBExceptionType_OB_EXCEPTION_TYPE_NOT_IMPLEMENTED => {
595 OBExceptionType::NotImplemented
596 }
597 orb::OBExceptionType_OB_EXCEPTION_TYPE_IO => OBExceptionType::IOException,
598 orb::OBExceptionType_OB_EXCEPTION_TYPE_MEMORY => OBExceptionType::MemoryException,
599 orb::OBExceptionType_OB_EXCEPTION_TYPE_UNSUPPORTED_OPERATION => {
600 OBExceptionType::UnsupportedOperation
601 }
602 _ => OBExceptionType::Unknown,
603 }
604 }
605}
606
607#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
609pub enum OBDeviceType {
610 Unknown = orb::OBDeviceType_OB_DEVICE_TYPE_UNKNOWN as isize,
612 SLMonocularCamera = orb::OBDeviceType_OB_STRUCTURED_LIGHT_MONOCULAR_CAMERA as isize,
614 SLBinocularCamera = orb::OBDeviceType_OB_STRUCTURED_LIGHT_BINOCULAR_CAMERA as isize,
616 TOFCamera = orb::OBDeviceType_OB_TOF_CAMERA as isize,
618}
619
620impl From<orb::OBDeviceType> for OBDeviceType {
621 fn from(value: orb::OBDeviceType) -> Self {
622 match value {
623 orb::OBDeviceType_OB_DEVICE_TYPE_UNKNOWN => OBDeviceType::Unknown,
624 orb::OBDeviceType_OB_STRUCTURED_LIGHT_MONOCULAR_CAMERA => {
625 OBDeviceType::SLMonocularCamera
626 }
627 orb::OBDeviceType_OB_STRUCTURED_LIGHT_BINOCULAR_CAMERA => {
628 OBDeviceType::SLBinocularCamera
629 }
630 orb::OBDeviceType_OB_TOF_CAMERA => OBDeviceType::TOFCamera,
631 _ => OBDeviceType::Unknown,
632 }
633 }
634}
635
636#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
638pub enum OBStreamType {
639 Unknown = orb::OBStreamType_OB_STREAM_UNKNOWN as isize,
641 Video = orb::OBStreamType_OB_STREAM_VIDEO as isize,
643 Infrared = orb::OBStreamType_OB_STREAM_IR as isize,
645 Color = orb::OBStreamType_OB_STREAM_COLOR as isize,
647 Depth = orb::OBStreamType_OB_STREAM_DEPTH as isize,
649 Accelerometer = orb::OBStreamType_OB_STREAM_ACCEL as isize,
651 Gyroscope = orb::OBStreamType_OB_STREAM_GYRO as isize,
653 LeftInfrared = orb::OBStreamType_OB_STREAM_IR_LEFT as isize,
655 RightInfrared = orb::OBStreamType_OB_STREAM_IR_RIGHT as isize,
657 RawPhase = orb::OBStreamType_OB_STREAM_RAW_PHASE as isize,
659 Confidence = orb::OBStreamType_OB_STREAM_CONFIDENCE as isize,
661}
662
663#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
665pub enum OBPermissionType {
666 Read = orb::OBPermissionType_OB_PERMISSION_READ as isize,
667 Write = orb::OBPermissionType_OB_PERMISSION_WRITE as isize,
668 ReadWrite = orb::OBPermissionType_OB_PERMISSION_READ_WRITE as isize,
669}
670
671#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
673pub enum OBHoleFillMode {
674 Top = orb::OBHoleFillingMode_OB_HOLE_FILL_TOP as isize,
676 Nearest = orb::OBHoleFillingMode_OB_HOLE_FILL_NEAREST as isize,
678 Farthest = orb::OBHoleFillingMode_OB_HOLE_FILL_FAREST as isize,
680}