use super::orb;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBSensorType {
Unknown = orb::OBSensorType_OB_SENSOR_UNKNOWN as isize,
Infrared = orb::OBSensorType_OB_SENSOR_IR as isize,
Depth = orb::OBSensorType_OB_SENSOR_DEPTH as isize,
Color = orb::OBSensorType_OB_SENSOR_COLOR as isize,
Accelerometer = orb::OBSensorType_OB_SENSOR_ACCEL as isize,
Gyroscope = orb::OBSensorType_OB_SENSOR_GYRO as isize,
LeftInfrared = orb::OBSensorType_OB_SENSOR_IR_LEFT as isize,
RightInfrared = orb::OBSensorType_OB_SENSOR_IR_RIGHT as isize,
Confidence = orb::OBSensorType_OB_SENSOR_CONFIDENCE as isize,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBFormat {
Unknown = orb::OBFormat_OB_FORMAT_UNKNOWN as isize,
YUYV = orb::OBFormat_OB_FORMAT_YUYV as isize,
YUY2 = orb::OBFormat_OB_FORMAT_YUY2 as isize,
UYVY = orb::OBFormat_OB_FORMAT_UYVY as isize,
NV12 = orb::OBFormat_OB_FORMAT_NV12 as isize,
NV21 = orb::OBFormat_OB_FORMAT_NV21 as isize,
MJPG = orb::OBFormat_OB_FORMAT_MJPG as isize,
H264 = orb::OBFormat_OB_FORMAT_H264 as isize,
H265 = orb::OBFormat_OB_FORMAT_H265 as isize,
Y16 = orb::OBFormat_OB_FORMAT_Y16 as isize,
Y8 = orb::OBFormat_OB_FORMAT_Y8 as isize,
Y10 = orb::OBFormat_OB_FORMAT_Y10 as isize,
Y11 = orb::OBFormat_OB_FORMAT_Y11 as isize,
Y12 = orb::OBFormat_OB_FORMAT_Y12 as isize,
Gray = orb::OBFormat_OB_FORMAT_GRAY as isize,
HEVC = orb::OBFormat_OB_FORMAT_HEVC as isize,
I420 = orb::OBFormat_OB_FORMAT_I420 as isize,
Accel = orb::OBFormat_OB_FORMAT_ACCEL as isize,
Gyro = orb::OBFormat_OB_FORMAT_GYRO as isize,
Point = orb::OBFormat_OB_FORMAT_POINT as isize,
RGBPoint = orb::OBFormat_OB_FORMAT_RGB_POINT as isize,
RLE = orb::OBFormat_OB_FORMAT_RLE as isize,
RGB = orb::OBFormat_OB_FORMAT_RGB as isize,
BGR = orb::OBFormat_OB_FORMAT_BGR as isize,
Y14 = orb::OBFormat_OB_FORMAT_Y14 as isize,
BGRA = orb::OBFormat_OB_FORMAT_BGRA as isize,
Compressed = orb::OBFormat_OB_FORMAT_COMPRESSED as isize,
RVL = orb::OBFormat_OB_FORMAT_RVL as isize,
Z16 = orb::OBFormat_OB_FORMAT_Z16 as isize,
YV12 = orb::OBFormat_OB_FORMAT_YV12 as isize,
BA81 = orb::OBFormat_OB_FORMAT_BA81 as isize,
RGBA = orb::OBFormat_OB_FORMAT_RGBA as isize,
BYR2 = orb::OBFormat_OB_FORMAT_BYR2 as isize,
RW16 = orb::OBFormat_OB_FORMAT_RW16 as isize,
Y12C4 = orb::OBFormat_OB_FORMAT_Y12C4 as isize,
}
impl From<orb::OBFormat> for OBFormat {
fn from(format: orb::OBFormat) -> Self {
match format {
orb::OBFormat_OB_FORMAT_UNKNOWN => OBFormat::Unknown,
orb::OBFormat_OB_FORMAT_YUYV => OBFormat::YUYV,
orb::OBFormat_OB_FORMAT_YUY2 => OBFormat::YUY2,
orb::OBFormat_OB_FORMAT_UYVY => OBFormat::UYVY,
orb::OBFormat_OB_FORMAT_NV12 => OBFormat::NV12,
orb::OBFormat_OB_FORMAT_NV21 => OBFormat::NV21,
orb::OBFormat_OB_FORMAT_MJPG => OBFormat::MJPG,
orb::OBFormat_OB_FORMAT_H264 => OBFormat::H264,
orb::OBFormat_OB_FORMAT_H265 => OBFormat::H265,
orb::OBFormat_OB_FORMAT_Y16 => OBFormat::Y16,
orb::OBFormat_OB_FORMAT_Y8 => OBFormat::Y8,
orb::OBFormat_OB_FORMAT_Y10 => OBFormat::Y10,
orb::OBFormat_OB_FORMAT_Y11 => OBFormat::Y11,
orb::OBFormat_OB_FORMAT_Y12 => OBFormat::Y12,
orb::OBFormat_OB_FORMAT_GRAY => OBFormat::Gray,
orb::OBFormat_OB_FORMAT_HEVC => OBFormat::HEVC,
orb::OBFormat_OB_FORMAT_I420 => OBFormat::I420,
orb::OBFormat_OB_FORMAT_ACCEL => OBFormat::Accel,
orb::OBFormat_OB_FORMAT_GYRO => OBFormat::Gyro,
orb::OBFormat_OB_FORMAT_POINT => OBFormat::Point,
orb::OBFormat_OB_FORMAT_RGB_POINT => OBFormat::RGBPoint,
orb::OBFormat_OB_FORMAT_RLE => OBFormat::RLE,
orb::OBFormat_OB_FORMAT_RGB => OBFormat::RGB,
orb::OBFormat_OB_FORMAT_BGR => OBFormat::BGR,
orb::OBFormat_OB_FORMAT_Y14 => OBFormat::Y14,
orb::OBFormat_OB_FORMAT_BGRA => OBFormat::BGRA,
orb::OBFormat_OB_FORMAT_COMPRESSED => OBFormat::Compressed,
orb::OBFormat_OB_FORMAT_RVL => OBFormat::RVL,
orb::OBFormat_OB_FORMAT_Z16 => OBFormat::Z16,
orb::OBFormat_OB_FORMAT_YV12 => OBFormat::YV12,
orb::OBFormat_OB_FORMAT_BA81 => OBFormat::BA81,
orb::OBFormat_OB_FORMAT_RGBA => OBFormat::RGBA,
orb::OBFormat_OB_FORMAT_BYR2 => OBFormat::BYR2,
orb::OBFormat_OB_FORMAT_RW16 => OBFormat::RW16,
orb::OBFormat_OB_FORMAT_Y12C4 => OBFormat::Y12C4,
_ => OBFormat::Unknown,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBPropertyID {
LDPBool = orb::OBPropertyID_OB_PROP_LDP_BOOL as isize,
LaserBool = orb::OBPropertyID_OB_PROP_LASER_BOOL as isize,
LaserPulseWidthInt = orb::OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_INT as isize,
LaserCurrentFloat = orb::OBPropertyID_OB_PROP_LASER_CURRENT_FLOAT as isize,
FloodBool = orb::OBPropertyID_OB_PROP_FLOOD_BOOL as isize,
FloodLevelInt = orb::OBPropertyID_OB_PROP_FLOOD_LEVEL_INT as isize,
TemperatureCompensationBool = orb::OBPropertyID_OB_PROP_TEMPERATURE_COMPENSATION_BOOL as isize,
DepthMirrorBool = orb::OBPropertyID_OB_PROP_DEPTH_MIRROR_BOOL as isize,
DepthFlipBool = orb::OBPropertyID_OB_PROP_DEPTH_FLIP_BOOL as isize,
DepthPostfilterBool = orb::OBPropertyID_OB_PROP_DEPTH_POSTFILTER_BOOL as isize,
DepthHolefilterBool = orb::OBPropertyID_OB_PROP_DEPTH_HOLEFILTER_BOOL as isize,
IRMirrorBool = orb::OBPropertyID_OB_PROP_IR_MIRROR_BOOL as isize,
IRFlipBool = orb::OBPropertyID_OB_PROP_IR_FLIP_BOOL as isize,
MinDepthInt = orb::OBPropertyID_OB_PROP_MIN_DEPTH_INT as isize,
MaxDepthInt = orb::OBPropertyID_OB_PROP_MAX_DEPTH_INT as isize,
DepthNoiseRemovalFilterBool =
orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_BOOL as isize,
LDPStatusBool = orb::OBPropertyID_OB_PROP_LDP_STATUS_BOOL as isize,
DepthNoiseRemovalFilterMaxDiffInt =
orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_DIFF_INT as isize,
DepthNoiseRemovalFilterMaxSpeckleSizeInt =
orb::OBPropertyID_OB_PROP_DEPTH_NOISE_REMOVAL_FILTER_MAX_SPECKLE_SIZE_INT as isize,
DepthAlignHardwareBool = orb::OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_BOOL as isize,
TimestampOffsetInt = orb::OBPropertyID_OB_PROP_TIMESTAMP_OFFSET_INT as isize,
HardwareDistortionSwitchBool =
orb::OBPropertyID_OB_PROP_HARDWARE_DISTORTION_SWITCH_BOOL as isize,
FanWorkModeInt = orb::OBPropertyID_OB_PROP_FAN_WORK_MODE_INT as isize,
DepthAlignHardwareModeInt = orb::OBPropertyID_OB_PROP_DEPTH_ALIGN_HARDWARE_MODE_INT as isize,
AntiCollusionActivationStatusBool =
orb::OBPropertyID_OB_PROP_ANTI_COLLUSION_ACTIVATION_STATUS_BOOL as isize,
DepthPrecisionLevelInt = orb::OBPropertyID_OB_PROP_DEPTH_PRECISION_LEVEL_INT as isize,
TofFilterRangeInt = orb::OBPropertyID_OB_PROP_TOF_FILTER_RANGE_INT as isize,
LaserModeInt = orb::OBPropertyID_OB_PROP_LASER_MODE_INT as isize,
Rectify2Bool = orb::OBPropertyID_OB_PROP_RECTIFY2_BOOL as isize,
ColorMirrorBool = orb::OBPropertyID_OB_PROP_COLOR_MIRROR_BOOL as isize,
ColorFlipBool = orb::OBPropertyID_OB_PROP_COLOR_FLIP_BOOL as isize,
IndicatorLightBool = orb::OBPropertyID_OB_PROP_INDICATOR_LIGHT_BOOL as isize,
DisparityToDepthBool = orb::OBPropertyID_OB_PROP_DISPARITY_TO_DEPTH_BOOL as isize,
BRTBool = orb::OBPropertyID_OB_PROP_BRT_BOOL as isize,
WatchdogBool = orb::OBPropertyID_OB_PROP_WATCHDOG_BOOL as isize,
ExternalSignalResetBool = orb::OBPropertyID_OB_PROP_EXTERNAL_SIGNAL_RESET_BOOL as isize,
HeartbeatBool = orb::OBPropertyID_OB_PROP_HEARTBEAT_BOOL as isize,
DepthCroppingModeInt = orb::OBPropertyID_OB_PROP_DEPTH_CROPPING_MODE_INT as isize,
D2CPreprocessBool = orb::OBPropertyID_OB_PROP_D2C_PREPROCESS_BOOL as isize,
GPMBool = orb::OBPropertyID_OB_PROP_GPM_BOOL as isize,
RGBCustomCropBool = orb::OBPropertyID_OB_PROP_RGB_CUSTOM_CROP_BOOL as isize,
DeviceWorkModeInt = orb::OBPropertyID_OB_PROP_DEVICE_WORK_MODE_INT as isize,
DeviceCommunicationTypeInt = orb::OBPropertyID_OB_PROP_DEVICE_COMMUNICATION_TYPE_INT as isize,
SwitchIRModeInt = orb::OBPropertyID_OB_PROP_SWITCH_IR_MODE_INT as isize,
LaserPowerLevelControlInt = orb::OBPropertyID_OB_PROP_LASER_POWER_LEVEL_CONTROL_INT as isize,
LDPMeasureDistanceInt = orb::OBPropertyID_OB_PROP_LDP_MEASURE_DISTANCE_INT as isize,
TimerResetSignalBool = orb::OBPropertyID_OB_PROP_TIMER_RESET_SIGNAL_BOOL as isize,
TimerResetTriggerOutEnableBool =
orb::OBPropertyID_OB_PROP_TIMER_RESET_TRIGGER_OUT_ENABLE_BOOL as isize,
TimerResetDelayUsInt = orb::OBPropertyID_OB_PROP_TIMER_RESET_DELAY_US_INT as isize,
CaptureImageSignalBool = orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_SIGNAL_BOOL as isize,
IRRightMirrorBool = orb::OBPropertyID_OB_PROP_IR_RIGHT_MIRROR_BOOL as isize,
CaptureImageFrameNumberInt = orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_FRAME_NUMBER_INT as isize,
IRRightFlipBool = orb::OBPropertyID_OB_PROP_IR_RIGHT_FLIP_BOOL as isize,
ColorRotateInt = orb::OBPropertyID_OB_PROP_COLOR_ROTATE_INT as isize,
IRRotateInt = orb::OBPropertyID_OB_PROP_IR_ROTATE_INT as isize,
IRRightRotateInt = orb::OBPropertyID_OB_PROP_IR_RIGHT_ROTATE_INT as isize,
DepthRotateInt = orb::OBPropertyID_OB_PROP_DEPTH_ROTATE_INT as isize,
LaserPowerActualLevelInt = orb::OBPropertyID_OB_PROP_LASER_POWER_ACTUAL_LEVEL_INT as isize,
USBPowerStateInt = orb::OBPropertyID_OB_PROP_USB_POWER_STATE_INT as isize,
DCPowerStateInt = orb::OBPropertyID_OB_PROP_DC_POWER_STATE_INT as isize,
DeviceDevelopmentModeInt = orb::OBPropertyID_OB_PROP_DEVICE_DEVELOPMENT_MODE_INT as isize,
SyncSignalTriggerOutBool = orb::OBPropertyID_OB_PROP_SYNC_SIGNAL_TRIGGER_OUT_BOOL as isize,
RestoreFactorySettingsBool = orb::OBPropertyID_OB_PROP_RESTORE_FACTORY_SETTINGS_BOOL as isize,
BootIntoRecoveryModeBool = orb::OBPropertyID_OB_PROP_BOOT_INTO_RECOVERY_MODE_BOOL as isize,
DeviceInRecoveryModeBool = orb::OBPropertyID_OB_PROP_DEVICE_IN_RECOVERY_MODE_BOOL as isize,
CaptureIntervalModeInt = orb::OBPropertyID_OB_PROP_CAPTURE_INTERVAL_MODE_INT as isize,
CaptureImageTimeIntervalInt =
orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_TIME_INTERVAL_INT as isize,
CaptureImageNumberIntervalInt =
orb::OBPropertyID_OB_PROP_CAPTURE_IMAGE_NUMBER_INTERVAL_INT as isize,
TimerResetEnableBool = orb::OBPropertyID_OB_PROP_TIMER_RESET_ENABLE_BOOL as isize,
DeviceUSB2RepeatIdentifyBool =
orb::OBPropertyID_OB_PROP_DEVICE_USB2_REPEAT_IDENTIFY_BOOL as isize,
DeviceRebootDelayInt = orb::OBPropertyID_OB_PROP_DEVICE_REBOOT_DELAY_INT as isize,
LaserOvercurrentProtectionStatusBool =
orb::OBPropertyID_OB_PROP_LASER_OVERCURRENT_PROTECTION_STATUS_BOOL as isize,
LaserPulseWidthProtectionStatusBool =
orb::OBPropertyID_OB_PROP_LASER_PULSE_WIDTH_PROTECTION_STATUS_BOOL as isize,
LaserAlwaysOnBool = orb::OBPropertyID_OB_PROP_LASER_ALWAYS_ON_BOOL as isize,
LaserOnOffPatternInt = orb::OBPropertyID_OB_PROP_LASER_ON_OFF_PATTERN_INT as isize,
DepthUnitFlexibleAdjustmentFloat =
orb::OBPropertyID_OB_PROP_DEPTH_UNIT_FLEXIBLE_ADJUSTMENT_FLOAT as isize,
LaserControlInt = orb::OBPropertyID_OB_PROP_LASER_CONTROL_INT as isize,
IRBrightnessInt = orb::OBPropertyID_OB_PROP_IR_BRIGHTNESS_INT as isize,
SlaveDeviceSyncStatusBool = orb::OBPropertyID_OB_PROP_SLAVE_DEVICE_SYNC_STATUS_BOOL as isize,
ColorAEMaxExposureInt = orb::OBPropertyID_OB_PROP_COLOR_AE_MAX_EXPOSURE_INT as isize,
IRAEMaxExposureInt = orb::OBPropertyID_OB_PROP_IR_AE_MAX_EXPOSURE_INT as isize,
DispSearchRangeModeInt = orb::OBPropertyID_OB_PROP_DISP_SEARCH_RANGE_MODE_INT as isize,
LaserHighTemperatureProtectBool =
orb::OBPropertyID_OB_PROP_LASER_HIGH_TEMPERATURE_PROTECT_BOOL as isize,
LowExposureLaserControlBool =
orb::OBPropertyID_OB_PROP_LOW_EXPOSURE_LASER_CONTROL_BOOL as isize,
CheckPPSSyncInSignalBool = orb::OBPropertyID_OB_PROP_CHECK_PPS_SYNC_IN_SIGNAL_BOOL as isize,
DispSearchOffsetInt = orb::OBPropertyID_OB_PROP_DISP_SEARCH_OFFSET_INT as isize,
DeviceRepowerBool = orb::OBPropertyID_OB_PROP_DEVICE_REPOWER_BOOL as isize,
FrameInterleaveConfigIndexInt =
orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_CONFIG_INDEX_INT as isize,
FrameInterleaveEnableBool = orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_ENABLE_BOOL as isize,
FrameInterleaveLaserPatternSyncDelayInt =
orb::OBPropertyID_OB_PROP_FRAME_INTERLEAVE_LASER_PATTERN_SYNC_DELAY_INT as isize,
OnChipCalibrationHealthCheckFloat =
orb::OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_HEALTH_CHECK_FLOAT as isize,
OnChipCalibrationEnableBool =
orb::OBPropertyID_OB_PROP_ON_CHIP_CALIBRATION_ENABLE_BOOL as isize,
HWNoiseRemoveFilterEnableBool =
orb::OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_ENABLE_BOOL as isize,
HWNoiseRemoveFilterThresholdFloat =
orb::OBPropertyID_OB_PROP_HW_NOISE_REMOVE_FILTER_THRESHOLD_FLOAT as isize,
DeviceAutoCaptureEnableBool = orb::OBPropertyID_OB_DEVICE_AUTO_CAPTURE_ENABLE_BOOL as isize,
DeviceAutoCaptureIntervalTimeInt =
orb::OBPropertyID_OB_DEVICE_AUTO_CAPTURE_INTERVAL_TIME_INT as isize,
DevicePTPClockSyncEnableBool = orb::OBPropertyID_OB_DEVICE_PTP_CLOCK_SYNC_ENABLE_BOOL as isize,
DepthWithConfidenceStreamEnableBool =
orb::OBPropertyID_OB_PROP_DEPTH_WITH_CONFIDENCE_STREAM_ENABLE_BOOL as isize,
ConfidenceStreamFilterBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_BOOL as isize,
ConfidenceStreamFilterThresholdInt =
orb::OBPropertyID_OB_PROP_CONFIDENCE_STREAM_FILTER_THRESHOLD_INT as isize,
ConfidenceMirrorBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_MIRROR_BOOL as isize,
ConfidenceFlipBool = orb::OBPropertyID_OB_PROP_CONFIDENCE_FLIP_BOOL as isize,
ConfidenceRotateInt = orb::OBPropertyID_OB_PROP_CONFIDENCE_ROTATE_INT as isize,
ColorAutoExposureBool = orb::OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_BOOL as isize,
ColorExposureInt = orb::OBPropertyID_OB_PROP_COLOR_EXPOSURE_INT as isize,
ColorGainInt = orb::OBPropertyID_OB_PROP_COLOR_GAIN_INT as isize,
ColorAutoWhiteBalanceBool = orb::OBPropertyID_OB_PROP_COLOR_AUTO_WHITE_BALANCE_BOOL as isize,
ColorWhiteBalanceInt = orb::OBPropertyID_OB_PROP_COLOR_WHITE_BALANCE_INT as isize,
ColorBrightnessInt = orb::OBPropertyID_OB_PROP_COLOR_BRIGHTNESS_INT as isize,
ColorSharpnessInt = orb::OBPropertyID_OB_PROP_COLOR_SHARPNESS_INT as isize,
ColorShutterInt = orb::OBPropertyID_OB_PROP_COLOR_SHUTTER_INT as isize,
ColorSaturationInt = orb::OBPropertyID_OB_PROP_COLOR_SATURATION_INT as isize,
ColorContrastInt = orb::OBPropertyID_OB_PROP_COLOR_CONTRAST_INT as isize,
ColorGammaInt = orb::OBPropertyID_OB_PROP_COLOR_GAMMA_INT as isize,
ColorRollInt = orb::OBPropertyID_OB_PROP_COLOR_ROLL_INT as isize,
ColorAutoExposurePriorityInt =
orb::OBPropertyID_OB_PROP_COLOR_AUTO_EXPOSURE_PRIORITY_INT as isize,
ColorBacklightCompensationInt =
orb::OBPropertyID_OB_PROP_COLOR_BACKLIGHT_COMPENSATION_INT as isize,
ColorHueInt = orb::OBPropertyID_OB_PROP_COLOR_HUE_INT as isize,
ColorPowerLineFrequencyInt = orb::OBPropertyID_OB_PROP_COLOR_POWER_LINE_FREQUENCY_INT as isize,
DepthAutoExposureBool = orb::OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_BOOL as isize,
DepthExposureInt = orb::OBPropertyID_OB_PROP_DEPTH_EXPOSURE_INT as isize,
DepthGainInt = orb::OBPropertyID_OB_PROP_DEPTH_GAIN_INT as isize,
IRAutoExposureBool = orb::OBPropertyID_OB_PROP_IR_AUTO_EXPOSURE_BOOL as isize,
IRExposureInt = orb::OBPropertyID_OB_PROP_IR_EXPOSURE_INT as isize,
IRGainInt = orb::OBPropertyID_OB_PROP_IR_GAIN_INT as isize,
IRChannelDataSourceInt = orb::OBPropertyID_OB_PROP_IR_CHANNEL_DATA_SOURCE_INT as isize,
DepthRMFilterBool = orb::OBPropertyID_OB_PROP_DEPTH_RM_FILTER_BOOL as isize,
ColorMaximalGainInt = orb::OBPropertyID_OB_PROP_COLOR_MAXIMAL_GAIN_INT as isize,
ColorMaximalShutterInt = orb::OBPropertyID_OB_PROP_COLOR_MAXIMAL_SHUTTER_INT as isize,
IRShortExposureBool = orb::OBPropertyID_OB_PROP_IR_SHORT_EXPOSURE_BOOL as isize,
ColorHDRBool = orb::OBPropertyID_OB_PROP_COLOR_HDR_BOOL as isize,
IRLongExposureBool = orb::OBPropertyID_OB_PROP_IR_LONG_EXPOSURE_BOOL as isize,
SkipFrameBool = orb::OBPropertyID_OB_PROP_SKIP_FRAME_BOOL as isize,
HDRMergeBool = orb::OBPropertyID_OB_PROP_HDR_MERGE_BOOL as isize,
ColorFocusInt = orb::OBPropertyID_OB_PROP_COLOR_FOCUS_INT as isize,
IRRectifyBool = orb::OBPropertyID_OB_PROP_IR_RECTIFY_BOOL as isize,
DepthAutoExposurePriorityInt =
orb::OBPropertyID_OB_PROP_DEPTH_AUTO_EXPOSURE_PRIORITY_INT as isize,
SDKDisparityToDepthBool = orb::OBPropertyID_OB_PROP_SDK_DISPARITY_TO_DEPTH_BOOL as isize,
SDKDepthFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_DEPTH_FRAME_UNPACK_BOOL as isize,
SDKIRFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_FRAME_UNPACK_BOOL as isize,
SDKAccelFrameTransformedBool =
orb::OBPropertyID_OB_PROP_SDK_ACCEL_FRAME_TRANSFORMED_BOOL as isize,
SDKGyroFrameTransformedBool =
orb::OBPropertyID_OB_PROP_SDK_GYRO_FRAME_TRANSFORMED_BOOL as isize,
SDKIRLeftFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_LEFT_FRAME_UNPACK_BOOL as isize,
SDKIRRightFrameUnpackBool = orb::OBPropertyID_OB_PROP_SDK_IR_RIGHT_FRAME_UNPACK_BOOL as isize,
NetworkBandwidthTypeInt = orb::OBPropertyID_OB_PROP_NETWORK_BANDWIDTH_TYPE_INT as isize,
DevicePerformanceModeInt = orb::OBPropertyID_OB_PROP_DEVICE_PERFORMANCE_MODE_INT as isize,
RawDataCameraCalibJsonFile = orb::OBPropertyID_OB_RAW_DATA_CAMERA_CALIB_JSON_FILE as isize,
DebugESGMConfidenceFloat = orb::OBPropertyID_OB_PROP_DEBUG_ESGM_CONFIDENCE_FLOAT as isize,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBFilterConfigValueType {
Invalid = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INVALID as isize,
Int = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INT as isize,
Float = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_FLOAT as isize,
Bool = orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_BOOLEAN as isize,
}
impl From<orb::OBFilterConfigValueType> for OBFilterConfigValueType {
fn from(value: orb::OBFilterConfigValueType) -> Self {
match value {
orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INVALID => {
OBFilterConfigValueType::Invalid
}
orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_INT => {
OBFilterConfigValueType::Int
}
orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_FLOAT => {
OBFilterConfigValueType::Float
}
orb::OBFilterConfigValueType_OB_FILTER_CONFIG_VALUE_TYPE_BOOLEAN => {
OBFilterConfigValueType::Bool
}
_ => OBFilterConfigValueType::Invalid,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBConvertFormat {
YUYVToRGB = orb::OBConvertFormat_FORMAT_YUYV_TO_RGB as isize,
I420ToRGB = orb::OBConvertFormat_FORMAT_I420_TO_RGB as isize,
NV21ToRGB = orb::OBConvertFormat_FORMAT_NV21_TO_RGB as isize,
NV12ToRGB = orb::OBConvertFormat_FORMAT_NV12_TO_RGB as isize,
MJPGToI420 = orb::OBConvertFormat_FORMAT_MJPG_TO_I420 as isize,
RGBToBGR = orb::OBConvertFormat_FORMAT_RGB_TO_BGR as isize,
MJPGToNV21 = orb::OBConvertFormat_FORMAT_MJPG_TO_NV21 as isize,
MJPGToRGB = orb::OBConvertFormat_FORMAT_MJPG_TO_RGB as isize,
MJPGToBGR = orb::OBConvertFormat_FORMAT_MJPG_TO_BGR as isize,
MJPGToBGRA = orb::OBConvertFormat_FORMAT_MJPG_TO_BGRA as isize,
UYVYToRGB = orb::OBConvertFormat_FORMAT_UYVY_TO_RGB as isize,
BGRToRGB = orb::OBConvertFormat_FORMAT_BGR_TO_RGB as isize,
MJPGToNV12 = orb::OBConvertFormat_FORMAT_MJPG_TO_NV12 as isize,
YUYVToBGR = orb::OBConvertFormat_FORMAT_YUYV_TO_BGR as isize,
YUYVToRGBA = orb::OBConvertFormat_FORMAT_YUYV_TO_RGBA as isize,
YUYVToBGRA = orb::OBConvertFormat_FORMAT_YUYV_TO_BGRA as isize,
YUYVToY16 = orb::OBConvertFormat_FORMAT_YUYV_TO_Y16 as isize,
YUYVToY8 = orb::OBConvertFormat_FORMAT_YUYV_TO_Y8 as isize,
RGBAToRGB = orb::OBConvertFormat_FORMAT_RGBA_TO_RGB as isize,
BGRAToBGR = orb::OBConvertFormat_FORMAT_BGRA_TO_BGR as isize,
Y16ToRGB = orb::OBConvertFormat_FORMAT_Y16_TO_RGB as isize,
Y8ToRGB = orb::OBConvertFormat_FORMAT_Y8_TO_RGB as isize,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBExceptionType {
Unknown = orb::OBExceptionType_OB_EXCEPTION_TYPE_UNKNOWN as isize,
StdException = orb::OBExceptionType_OB_EXCEPTION_STD_EXCEPTION as isize,
CameraDisconnected = orb::OBExceptionType_OB_EXCEPTION_TYPE_CAMERA_DISCONNECTED as isize,
PlatformException = orb::OBExceptionType_OB_EXCEPTION_TYPE_PLATFORM as isize,
InvalidValue = orb::OBExceptionType_OB_EXCEPTION_TYPE_INVALID_VALUE as isize,
WrongAPICallSequence = orb::OBExceptionType_OB_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE as isize,
NotImplemented = orb::OBExceptionType_OB_EXCEPTION_TYPE_NOT_IMPLEMENTED as isize,
IOException = orb::OBExceptionType_OB_EXCEPTION_TYPE_IO as isize,
MemoryException = orb::OBExceptionType_OB_EXCEPTION_TYPE_MEMORY as isize,
UnsupportedOperation = orb::OBExceptionType_OB_EXCEPTION_TYPE_UNSUPPORTED_OPERATION as isize,
}
impl From<orb::OBExceptionType> for OBExceptionType {
fn from(value: orb::OBExceptionType) -> Self {
match value {
orb::OBExceptionType_OB_EXCEPTION_TYPE_UNKNOWN => OBExceptionType::Unknown,
orb::OBExceptionType_OB_EXCEPTION_STD_EXCEPTION => OBExceptionType::StdException,
orb::OBExceptionType_OB_EXCEPTION_TYPE_CAMERA_DISCONNECTED => {
OBExceptionType::CameraDisconnected
}
orb::OBExceptionType_OB_EXCEPTION_TYPE_PLATFORM => OBExceptionType::PlatformException,
orb::OBExceptionType_OB_EXCEPTION_TYPE_INVALID_VALUE => OBExceptionType::InvalidValue,
orb::OBExceptionType_OB_EXCEPTION_TYPE_WRONG_API_CALL_SEQUENCE => {
OBExceptionType::WrongAPICallSequence
}
orb::OBExceptionType_OB_EXCEPTION_TYPE_NOT_IMPLEMENTED => {
OBExceptionType::NotImplemented
}
orb::OBExceptionType_OB_EXCEPTION_TYPE_IO => OBExceptionType::IOException,
orb::OBExceptionType_OB_EXCEPTION_TYPE_MEMORY => OBExceptionType::MemoryException,
orb::OBExceptionType_OB_EXCEPTION_TYPE_UNSUPPORTED_OPERATION => {
OBExceptionType::UnsupportedOperation
}
_ => OBExceptionType::Unknown,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBDeviceType {
Unknown = orb::OBDeviceType_OB_DEVICE_TYPE_UNKNOWN as isize,
SLMonocularCamera = orb::OBDeviceType_OB_STRUCTURED_LIGHT_MONOCULAR_CAMERA as isize,
SLBinocularCamera = orb::OBDeviceType_OB_STRUCTURED_LIGHT_BINOCULAR_CAMERA as isize,
TOFCamera = orb::OBDeviceType_OB_TOF_CAMERA as isize,
}
impl From<orb::OBDeviceType> for OBDeviceType {
fn from(value: orb::OBDeviceType) -> Self {
match value {
orb::OBDeviceType_OB_DEVICE_TYPE_UNKNOWN => OBDeviceType::Unknown,
orb::OBDeviceType_OB_STRUCTURED_LIGHT_MONOCULAR_CAMERA => {
OBDeviceType::SLMonocularCamera
}
orb::OBDeviceType_OB_STRUCTURED_LIGHT_BINOCULAR_CAMERA => {
OBDeviceType::SLBinocularCamera
}
orb::OBDeviceType_OB_TOF_CAMERA => OBDeviceType::TOFCamera,
_ => OBDeviceType::Unknown,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBStreamType {
Unknown = orb::OBStreamType_OB_STREAM_UNKNOWN as isize,
Video = orb::OBStreamType_OB_STREAM_VIDEO as isize,
Infrared = orb::OBStreamType_OB_STREAM_IR as isize,
Color = orb::OBStreamType_OB_STREAM_COLOR as isize,
Depth = orb::OBStreamType_OB_STREAM_DEPTH as isize,
Accelerometer = orb::OBStreamType_OB_STREAM_ACCEL as isize,
Gyroscope = orb::OBStreamType_OB_STREAM_GYRO as isize,
LeftInfrared = orb::OBStreamType_OB_STREAM_IR_LEFT as isize,
RightInfrared = orb::OBStreamType_OB_STREAM_IR_RIGHT as isize,
RawPhase = orb::OBStreamType_OB_STREAM_RAW_PHASE as isize,
Confidence = orb::OBStreamType_OB_STREAM_CONFIDENCE as isize,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBPermissionType {
Read = orb::OBPermissionType_OB_PERMISSION_READ as isize,
Write = orb::OBPermissionType_OB_PERMISSION_WRITE as isize,
ReadWrite = orb::OBPermissionType_OB_PERMISSION_READ_WRITE as isize,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum OBHoleFillMode {
Top = orb::OBHoleFillingMode_OB_HOLE_FILL_TOP as isize,
Nearest = orb::OBHoleFillingMode_OB_HOLE_FILL_NEAREST as isize,
Farthest = orb::OBHoleFillingMode_OB_HOLE_FILL_FAREST as isize,
}