16 #if(defined(WIN32) || defined(_WIN32) || defined(WINCE)) 18 #define OB_EXTENSION_API __declspec(dllexport) 19 #define OB_EXTENSION_INTERNAL_API __declspec(dllexport) 21 #define OB_EXTENSION_API __declspec(dllimport) 22 #define OB_EXTENSION_INTERNAL_API 25 #define OB_EXTENSION_API __attribute__((visibility("default"))) 26 #define OB_EXTENSION_INTERNAL_API 29 #if defined(__GNUC__) || defined(__clang__) 30 #define DEPRECATED __attribute__((deprecated)) 31 #elif defined(_MSC_VER) 32 #define DEPRECATED __declspec(deprecated) 34 #pragma message("WARNING: You need to implement DEPRECATED for this compiler") 38 #pragma pack(push, 1) // struct 1-byte align 256 #define OB_FORMAT_RGB888 OB_FORMAT_RGB // \if English Alias of OB_FORMAT_RGB for compatible \else 别名,用于兼容旧版本命名 \endif 257 #define OB_FORMAT_MJPEG OB_FORMAT_MJPG // \if English Alias of OB_FORMAT_MJPG for compatible \else 别名,用于兼容旧版本命名 \endif 538 #define FORMAT_MJPEG_TO_I420 FORMAT_MJPG_TO_I420 539 #define FORMAT_MJPEG_TO_NV21 FORMAT_MJPG_TO_NV21 540 #define FORMAT_MJPEG_TO_RGB888 FORMAT_MJPG_TO_RGB888 541 #define FORMAT_MJPEG_TO_BGR888 FORMAT_MJPG_TO_BGR888 542 #define FORMAT_MJPEG_TO_BGRA FORMAT_MJPG_TO_BGRA 943 #define OB_SYNC_STOP OB_SYNC_MODE_CLOSE 944 #define OB_SYNC_SINGLE_MODE OB_SYNC_MODE_STANDALONE 945 #define OB_SYNC_ONLINE_HOST_MODE OB_SYNC_MODE_PRIMARY 946 #define OB_SYNC_ONLINE_SLAVE_MODE OB_SYNC_MODE_SECONDARY 947 #define OB_SYNC_ONLY_MCU_MODE OB_SYNC_MODE_PRIMARY_MCU_TRIGGER 948 #define OB_SYNC_ONLY_IR_MODE OB_SYNC_MODE_PRIMARY_IR_TRIGGER 1052 #define OBMultiDeviceSyncConfig OBDeviceSyncConfig 1053 #define ob_multi_device_sync_config ob_device_sync_config 1054 #define OB_MULTI_DEVICE_SYNC_CONFIG OB_DEVICE_SYNC_CONFIG 1071 uint8_t checksum[16];
1407 #define ob_filter_callback ob_frame_callback 1408 #define ob_playback_callback ob_frame_callback 1444 #define is_ir_sensor(sensor_type) (sensor_type == OB_SENSOR_IR || sensor_type == OB_SENSOR_IR_LEFT || sensor_type == OB_SENSOR_IR_RIGHT) 1445 #define isIRSensor is_ir_sensor 1455 #define is_ir_stream(stream_type) (stream_type == OB_STREAM_IR || stream_type == OB_STREAM_IR_LEFT || stream_type == OB_STREAM_IR_RIGHT) 1456 #define isIRStream is_ir_stream 1466 #define is_ir_frame(frame_type) (frame_type == OB_FRAME_IR || frame_type == OB_FRAME_IR_LEFT || frame_type == OB_FRAME_IR_RIGHT) 1467 #define isIRFrame is_ir_frame
uint32_t y
origin coordinate y
OBCameraDistortion rgbDistortion
Color camera distortion parameters 1.
enum OBDepthCroppingMode OB_DEPTH_CROPPING_MODE
enum OBGyroSampleRate ob_accel_sample_rate
float cx
Optical center abscissa.
enum OBGyroSampleRate ob_gyro_sample_rate
struct MaskFilterConfig_S OBMaskFilterConfig
struct StreamProfileListImpl ob_stream_profile_list
OBCameraIntrinsic leftIntrin
ob_power_line_freq_mode
Power line frequency mode,for Color camera anti-flicker configuration.
enum OBDepthCroppingMode ob_depth_cropping_mode
struct OBAccelValue OBGyroValue
enum OBLogSeverity ob_device_log_severity_level
enum OBTofFilterRange ob_tof_filter_range
enum OBMediaType OB_MEDIA_TYPE
struct SensorImpl ob_sensor
struct ConfigImpl ob_config
bool isMirrored
Whether the image frame corresponding to this group of parameters is mirrored.
int32_t lower
Lower threshold, unit: ms.
float imuTemp
IMU temperature.
uint32_t height
rectangle height
enum OBCommunicationType OB_COMMUNICATION_TYPE
OBCmdVersion cmdVersion
propertyId's OBCmdVersion
OBCameraIntrinsic rgbIntrinsic
Color camera internal parameters.
enum OB_FRAME_AGGREGATE_OUTPUT_MODE ob_frame_aggregate_output_mode
OBDepthCroppingMode
Depth crop mode enumeration.
OBCameraDistortion leftDisto
enum OBConvertFormat ob_convert_format
struct OBTofExposureThresholdControl ob_tof_exposure_threshold_control
OBFormat
Enumeration value describing the pixel format.
float rgbTemp
RGB temperature.
enum OBGyroSampleRate OBAccelSampleRate
enum OBUpgradeState ob_upgrade_state
MCU Primary synchronize mode.
struct PlaybackImpl ob_playback
uint8_t major
Major version number.
float irLeftTemp
if English Left IR temperature左IR温度
float chipBottomTemp
if English MX6600 bottom temperatureMX6600 bottom 温度
float b
blue channel component
enum OBAccelFullScaleRange ob_accel_full_scale_range
3D point structure in SDK
enum OBStreamType ob_stream_type
struct OBBoolPropertyRange ob_bool_property_range
enum OBCompressionMode ob_compression_mode
enum OBCommunicationType ob_communication_type
struct OBTofExposureThresholdControl TOF_EXPOSURE_THRESHOLD_CONTROL
enum OBMediaType ob_media_type
float ldmTemp
laser temperature
float y
y-direction component
enum OBSensorType ob_sensor_type
float irTemp
IR temperature.
OBCameraDistortion rgbDistortion
Color camera distortion parameters 1.
Command version of device property.
float cpuTemp
CPU temperature.
OBCameraDistortion depthDistortion
Depth camera distortion parameters.
float p2
Tangential distortion factor 2.
OBDCPowerState
DC power status.
float g
green channel component
OBCameraIntrinsic depthIntrinsic
Depth camera internal parameters.
uint32_t offset
The offset of the current data block relative to the complete data.
uint8_t minor
Minor version number.
OBCameraIntrinsic rightVirtualIntrin
OBCameraDistortion rightDisto
OBCameraDistortion depthDistortion
Depth camera distortion parameters.
float cy
Optical center ordinate.
enum OBAccelFullScaleRange OB_ACCEL_FULL_SCALE_RANGE
Data structures for accelerometers and gyroscopes.
IR Primary synchronize mode.
struct OBDeviceTemperature ob_device_temperature
FrameSet for any case will be output.
enum OBFrameType ob_frame_type
struct OBCompressionParams OB_COMPRESSION_PARAMS
OBAccelFullScaleRange
Accelerometer range enumeration.
float k2
Radial distortion factor 2.
struct DeviceListImpl ob_device_list
float k6
Radial distortion factor 6.
Data block structure for data block transmission.
float mainBoardTemp
motherboard temperature
enum OBExceptionType ob_exception_type
float tecTemp
TEC temperature.
struct OBAccelValue ob_accel_value
OBDataTranState
data transfer status
Software trigger synchronize mode.
struct OBDataBundle ob_data_bundle
uint16_t irTriggerSignalInDelay
IR Trigger signal input delay: Used to configure the delay between the IR/Depth/TOF Sensor receiving ...
struct RecorderImpl ob_recorder
enum ob_rotate_degree_type OBRotateDegreeType
OBLogSeverity
log level, the higher the level, the stronger the log filter
OBUpgradeState
Firmware upgrade status.
struct OBIntPropertyRange ob_int_property_range
OBExceptionType
The exception types in the SDK, through the exception type, you can easily determine the specific typ...
float fx
focal length in x direction
float p1
Tangential distortion factor 1.
struct ob_error ob_error
The error class exposed by the SDK, users can get detailed error information according to the erro...
struct DeviceImpl ob_device
OBMediaState
Record playback status.
struct OBCompressionParams ob_compression_params
Only FrameSet that contains all types of data frames will be output.
float k1
Radial distortion factor 1.
uint32_t size
Current block data length.
void(* ob_device_changed_callback)(ob_device_list *removed, ob_device_list *added, void *user_data)
Device change (up and down) callback.
enum OB_CMD_VERSION OBCmdVersion
struct OBCameraParam ob_camera_param
OBPermissionType
the permission type of api or property
struct OBDeviceIpAddrConfig ob_device_ip_addr_config
struct OBDataBundle OBDataBundle
struct OBD2CTransform ob_d2c_transform
enum OBTofFilterRange TOF_FILTER_RANGE
struct OBFloatPropertyRange ob_float_property_range
OBSensorType
Enumeration value describing the sensor type.
Frame aggregate output mode.
uint32_t fullDataSize
full data size
struct OBDepthWorkMode ob_depth_work_mode
int32_t upper
Upper threshold, unit: ms.
struct ContextImpl ob_context
enum OBMediaState ob_media_state
void(* ob_device_state_callback)(ob_device_state state, const char *message, void *user_data)
device status callback
uint16_t deviceTriggerSignalOutPolarity
The device trigger signal output polarity.
OBUSBPowerState
USB power status.
OBCameraIntrinsic rightIntrin
OBDeviceType
device type enumeration
struct StreamProfileImpl ob_stream_profile
float fy
focal length in y direction
void(* ob_device_upgrade_callback)(ob_upgrade_state state, const char *message, uint8_t percent, void *user_data)
Firmware upgrade callback.
OBGyroFullScaleRange
Enumeration of gyroscope ranges.
struct OBProtocolVersion ob_protocol_version
char message[256]
Describe the detailed error log.
OBMediaType
record playback of the type of interest
enum OBUSBPowerState ob_usb_power_state
struct OBDataChunk ob_data_chunk
OBD2CTransform transform
rotation/transformation matrix
enum OBGyroSampleRate OB_SAMPLE_RATE
OB_FRAME_AGGREGATE_OUTPUT_MODE
Frame aggregate output mode.
float k3
Radial distortion factor 3.
struct DeviceInfoImpl ob_device_info
Get the temperature parameters of the device (unit: Celsius)
uint8_t patch
Patch version number.
uint32_t x
origin coordinate x
enum OBMediaState OB_MEDIA_STATE_EM
struct CFrameImpl ob_frame
Software trigger synchronize mode as secondary device.
float irRightTemp
if English Right IR temperature右IR温度
enum OBDepthPrecisionLevel OB_DEPTH_PRECISION_LEVEL
uint32_t width
rectangle width
enum OBLogSeverity DEVICE_LOG_SEVERITY_LEVEL
3D point structure with color information
int16_t height
image height
struct OBDeviceTemperature DEVICE_TEMPERATURE
struct SensorListImpl ob_sensor_list
void(* ob_frame_callback)(ob_frame *frame, void *user_data)
dataframe callback
struct OBDERectifyMaskParams OBDERectifyMaskParams_V0
enum OBDeviceType OB_DEVICE_TYPE
float z
z-direction component
uint16_t dhcp
dhcp 动态 ip 配置开关; 0: 关; 1: 开
enum OBPermissionType ob_permission_type
struct OBDeviceSyncConfig ob_device_sync_config
OBDepthPrecisionLevel
depth accuracy class
struct OBColorPoint ob_color_point
struct OBDeviceSyncConfig OB_DEVICE_SYNC_CONFIG
OBFrameType
Describe the Frame type enumeration value.
struct OBDeviceIpAddrConfig DEVICE_IP_ADDR_CONFIG
void( ob_frame_destroy_callback)(void *buffer, void *context)
Customize the delete callback, 当引用计数为 0 时主动调用
enum OBDepthPrecisionLevel ob_depth_precision_level
uint16_t deviceTriggerSignalOutDelay
Device trigger signal output delay, used to control the delay configuration of the host device to out...
OBTofFilterRange
tof filter scene range
enum OBDataTranState ob_data_tran_state
OBStreamType
Enumeration value describing the type of data stream.
enum OBLogSeverity OBDeviceLogSeverityLevel
enum OB_CMD_VERSION ob_cmd_version
enum OBGyroFullScaleRange ob_gyro_full_scale_range
Standalone synchronize mode.
uint16_t deviceId
Device number. Users can mark the device with this number.
uint16_t rgbTriggerSignalInDelay
RGB trigger signal input delay is used to configure the delay from the time when an RGB Sensor receiv...
enum OBGyroFullScaleRange OB_GYRO_FULL_SCALE_RANGE
struct FilterImpl ob_filter
void(* ob_get_data_callback)(ob_data_tran_state state, ob_data_chunk *dataChunk, void *user_data)
read data callback
Secondary synchronize mode.
OBConvertFormat
format conversion type enumeration
enum OBCompressionMode OB_COMPRESSION_MODE
struct CameraParamListImpl ob_camera_param_list
void(* ob_set_data_callback)(ob_data_tran_state state, uint8_t percent, void *user_data)
Callback for writing data.
OBCameraIntrinsic leftVirtualIntrin
void * data
current block data pointer
uint16_t mcuTriggerFrequency
MCU trigger frequency, used to configure the output frequency of MCU trigger signal in MCU master mod...
void(* ob_frameset_callback)(ob_frame *frameset, void *user_data)
dataframe collection callback
float r
red channel component
struct OBAccelValue ob_gyro_value
Boolean-scoped structure.
enum OBSyncMode ob_sync_mode
void(* ob_file_send_callback)(ob_file_tran_state state, const char *message, uint8_t percent, void *user_data)
file transfer callback
OBCommunicationType
Device communication mode.
Primary synchronize mode.
uint64_t OBDeviceState
Device state.
struct PipelineImpl ob_pipeline
float chipTopTemp
if English MX6600 top temperatureMX6600 top 温度
enum OBSyncMode OB_SYNC_MODE
Device synchronization configuration.
ob_rotate_degree_type
Rotate degree.
void(* ob_media_state_callback)(ob_media_state state, void *user_data)
Media status callbacks (recording and playback)
enum OBLogSeverity ob_log_severity
struct OBCameraDistortion ob_camera_distortion
OBFileTranState
file transfer status
enum OBFileTranState ob_file_tran_state
enum OBDeviceType ob_device_type
float k4
Radial distortion factor 4.
OBCameraIntrinsic rgbIntrinsic
Color camera internal parameters.
ob_exception_type exception_type
The description is the specific error type of the SDK.
OBCameraIntrinsic depthIntrinsic
Depth camera internal parameters.
struct OBDepthWorkModeListImpl ob_depth_work_mode_list
enum OB_FRAME_AGGREGATE_OUTPUT_MODE OBFrameAggregateOutputMode
struct OBCameraIntrinsic ob_camera_intrinsic
OBD2CTransform transform
rotation/transformation matrix
enum OBDCPowerState ob_dc_power_state
OBAlignMode
alignment mode
enum OBAlignMode ob_align_mode
enum ob_power_line_freq_mode OBPowerLineFreqMode
OBGyroSampleRate
Enumeration of IMU sample rate values (gyroscope or accelerometer)
The error class exposed by the SDK, users can get detailed error information according to the erro...
struct MaskFilterConfig_S ob_mask_filter_config
struct OBCameraParam_V0 ob_camera_param_v0
float k5
Radial distortion factor 5.
float x
x-direction component
Camera internal parameters.