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
OBCameraDistortion rgbDistortion
彩色相机畸变参数
enum OBDepthCroppingMode OB_DEPTH_CROPPING_MODE
enum OBGyroSampleRate ob_accel_sample_rate
enum OBGyroSampleRate ob_gyro_sample_rate
struct MaskFilterConfig_S OBMaskFilterConfig
struct StreamProfileListImpl ob_stream_profile_list
OBCameraIntrinsic leftIntrin
ob_power_line_freq_mode
电力线频率模式,用于Color相机防闪烁功能配置
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
本组参数对应的图像帧是否被镜像
enum OBCommunicationType OB_COMMUNICATION_TYPE
OBCmdVersion cmdVersion
与控制命令关联的数据结构的版本号
OBCameraIntrinsic rgbIntrinsic
彩色相机内参
enum OB_FRAME_AGGREGATE_OUTPUT_MODE ob_frame_aggregate_output_mode
OBDepthCroppingMode
深度裁切模式枚举
OBCameraDistortion leftDisto
enum OBConvertFormat ob_convert_format
struct OBTofExposureThresholdControl ob_tof_exposure_threshold_control
enum OBGyroSampleRate OBAccelSampleRate
enum OBUpgradeState ob_upgrade_state
struct PlaybackImpl ob_playback
float irLeftTemp
if English Left IR temperature左IR温度
float chipBottomTemp
if English MX6600 bottom temperatureMX6600 bottom 温度
enum OBAccelFullScaleRange ob_accel_full_scale_range
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
enum OBSensorType ob_sensor_type
OBCameraDistortion rgbDistortion
彩色相机畸变参数
OBCameraDistortion depthDistortion
深度相机畸变参数
OBCameraIntrinsic depthIntrinsic
深度相机内参
uint32_t offset
当前数据块相对完整数据的偏移
OBCameraIntrinsic rightVirtualIntrin
OBCameraDistortion rightDisto
OBCameraDistortion depthDistortion
深度相机畸变参数
enum OBAccelFullScaleRange OB_ACCEL_FULL_SCALE_RANGE
struct OBDeviceTemperature ob_device_temperature
enum OBFrameType ob_frame_type
struct OBCompressionParams OB_COMPRESSION_PARAMS
OBAccelFullScaleRange
加速度计量程枚举
struct DeviceListImpl ob_device_list
enum OBExceptionType ob_exception_type
struct OBAccelValue ob_accel_value
struct OBDataBundle ob_data_bundle
uint16_t irTriggerSignalInDelay
IR 触发信号输入延时,用于 IR/Depth/TOF Sensor 接收到触发信号后到开始曝光的延时配置,单位为微秒 ...
struct RecorderImpl ob_recorder
enum ob_rotate_degree_type OBRotateDegreeType
OBLogSeverity
log 等级, 等级越高 Log 过滤力度越大
struct OBIntPropertyRange ob_int_property_range
OBExceptionType
SDK 内部的异常类型,通过异常类型,可以简单判断具体哪个类型的错误 详细的错误 API 接口函数、错误日志请...
struct ob_error ob_error
SDK 的对外暴露的错误类,用户可以根据该错误类,获取详细的错误信息
struct DeviceImpl ob_device
struct OBCompressionParams ob_compression_params
只有包含所有类型数据帧的FrameSet才会被输出
void(* ob_device_changed_callback)(ob_device_list *removed, ob_device_list *added, void *user_data)
设备变化(上下线)回调
enum OB_CMD_VERSION OBCmdVersion
struct OBCameraParam ob_camera_param
OBPermissionType
接口 / 属性的访问权限类型
struct OBDeviceIpAddrConfig ob_device_ip_addr_config
struct OBDataBundle OBDataBundle
OrbbecSDK私有接口, 未来对外开放 功能:保存多版本数据结构的数据内容;
struct OBD2CTransform ob_d2c_transform
enum OBTofFilterRange TOF_FILTER_RANGE
struct OBFloatPropertyRange ob_float_property_range
必须包含Color类似数据帧的FrameSet才会被输出
uint32_t fullDataSize
完整数据大小
struct OBDepthWorkMode ob_depth_work_mode
struct ContextImpl ob_context
enum OBMediaState ob_media_state
void(* ob_device_state_callback)(ob_device_state state, const char *message, void *user_data)
设备状态回调
uint16_t deviceTriggerSignalOutPolarity
设备触发信号输出极性
OBCameraIntrinsic rightIntrin
struct StreamProfileImpl ob_stream_profile
void(* ob_device_upgrade_callback)(ob_upgrade_state state, const char *message, uint8_t percent, void *user_data)
OBGyroFullScaleRange
陀螺仪量程的枚举
struct OBProtocolVersion ob_protocol_version
char message[256]
描述详细的错误日志
OrbbecSDK私有接口, 未来对外开放 功能:保存多版本数据结构的数据内容;
enum OBUSBPowerState ob_usb_power_state
struct OBDataChunk ob_data_chunk
OBD2CTransform transform
旋转 / 变换矩阵
相机参数 Gemini2 OBCmdVersion –> V0, 2022 年 10 月 13 日 09:09:30
enum OBGyroSampleRate OB_SAMPLE_RATE
OB_FRAME_AGGREGATE_OUTPUT_MODE
帧汇聚输出模式
struct DeviceInfoImpl ob_device_info
enum OBMediaState OB_MEDIA_STATE_EM
struct CFrameImpl ob_frame
float irRightTemp
if English Right IR temperature右IR温度
enum OBDepthPrecisionLevel OB_DEPTH_PRECISION_LEVEL
enum OBLogSeverity DEVICE_LOG_SEVERITY_LEVEL
struct OBDeviceTemperature DEVICE_TEMPERATURE
struct SensorListImpl ob_sensor_list
void(* ob_frame_callback)(ob_frame *frame, void *user_data)
数据帧回调
struct OBDERectifyMaskParams OBDERectifyMaskParams_V0
enum OBDeviceType OB_DEVICE_TYPE
uint16_t dhcp
dhcp 动态 ip 配置开关; 0: 关; 1: 开
enum OBPermissionType ob_permission_type
struct OBDeviceSyncConfig ob_device_sync_config
OBDepthPrecisionLevel
深度精度等级
struct OBColorPoint ob_color_point
struct OBDeviceSyncConfig OB_DEVICE_SYNC_CONFIG
OBFrameType
描述 Frame 类型枚举值
struct OBDeviceIpAddrConfig DEVICE_IP_ADDR_CONFIG
void( ob_frame_destroy_callback)(void *buffer, void *context)
自定义删除回调,当引用计数为 0 时主动调用
enum OBDepthPrecisionLevel ob_depth_precision_level
uint16_t deviceTriggerSignalOutDelay
设备触发信号输出延时,用于控制主机设备向外输 或 从机设备向外中继输出 触发信号的延时配置,单位:微秒 ...
OBTofFilterRange
tof 滤波场景范围
enum OBDataTranState ob_data_tran_state
enum OBLogSeverity OBDeviceLogSeverityLevel
enum OB_CMD_VERSION ob_cmd_version
enum OBGyroFullScaleRange ob_gyro_full_scale_range
uint16_t deviceId
设备编号,用户可用该编号对设备进行标记
uint16_t rgbTriggerSignalInDelay
RGB 触发信号输入延时,用于 RGB Sensor 接收到触发信号后到开始曝光的延时配置,单位为微秒 ...
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)
读数据回调
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)
写数据的回调
OBCameraIntrinsic leftVirtualIntrin
uint16_t mcuTriggerFrequency
MCU 触发频率,用于 MCU 主模式下,MCU触发信号输出频率配置,单位:Hz.
void(* ob_frameset_callback)(ob_frame *frameset, void *user_data)
数据帧集合回调
struct OBAccelValue ob_gyro_value
enum OBSyncMode ob_sync_mode
void(* ob_file_send_callback)(ob_file_tran_state state, const char *message, uint8_t percent, void *user_data)
文件传输回调
OBCommunicationType
设备通信模式
uint64_t OBDeviceState
设备状态码
struct PipelineImpl ob_pipeline
float chipTopTemp
if English MX6600 top temperatureMX6600 top 温度
enum OBSyncMode OB_SYNC_MODE
ob_rotate_degree_type
旋转角度
void(* ob_media_state_callback)(ob_media_state state, void *user_data)
媒体状态回调(录制和回放)
enum OBLogSeverity ob_log_severity
struct OBCameraDistortion ob_camera_distortion
enum OBFileTranState ob_file_tran_state
enum OBDeviceType ob_device_type
OBCameraIntrinsic rgbIntrinsic
彩色相机内参
ob_exception_type exception_type
描述是 SDK 的具体错误类型
OBCameraIntrinsic depthIntrinsic
深度相机内参
struct OBDepthWorkModeListImpl ob_depth_work_mode_list
enum OB_FRAME_AGGREGATE_OUTPUT_MODE OBFrameAggregateOutputMode
struct OBCameraIntrinsic ob_camera_intrinsic
OBD2CTransform transform
旋转 / 变换矩阵
enum OBDCPowerState ob_dc_power_state
enum OBAlignMode ob_align_mode
enum ob_power_line_freq_mode OBPowerLineFreqMode
OBGyroSampleRate
IMU 采样率值的枚举 (陀螺仪或加速度计)
SDK 的对外暴露的错误类,用户可以根据该错误类,获取详细的错误信息
struct MaskFilterConfig_S ob_mask_filter_config
struct OBCameraParam_V0 ob_camera_param_v0