| OrbbecSDK 1.5.7 OrbbecSDK: Software-Development-Kit for Orbbec 3D-Sensor devices

- 首页
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Sensor.h
浏览该文件的文档.
1
10 #pragma once
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #include "ObTypes.h"
17
33 ob_sensor_type ob_sensor_get_type(ob_sensor *sensor, ob_error **error);
34
50 ob_stream_profile_list *ob_sensor_get_stream_profile_list(ob_sensor *sensor, ob_error **error);
51
71 void ob_sensor_start(ob_sensor *sensor, ob_stream_profile *profile, ob_frame_callback callback, void *user_data, ob_error **error);
72
86 void ob_sensor_stop(ob_sensor *sensor, ob_error **error);
87
103 void ob_sensor_switch_profile(ob_sensor *sensor, ob_stream_profile *profile, ob_error **error);
104
118 void ob_delete_sensor_list(ob_sensor_list *sensor_list, ob_error **error);
119
135 uint32_t ob_sensor_list_get_sensor_count(ob_sensor_list *sensor_list, ob_error **error);
136
150 ob_sensor_type ob_sensor_list_get_sensor_type(ob_sensor_list *sensor_list, uint32_t index, ob_error **error);
151
168
185
200
ob_stream_profile_list
struct StreamProfileListImpl ob_stream_profile_list
Definition: ObTypes.h:55
ob_sensor
struct SensorImpl ob_sensor
Definition: ObTypes.h:52
ob_sensor_switch_profile
void ob_sensor_switch_profile(ob_sensor *sensor, ob_stream_profile *profile, ob_error **error)
动态切换分辨率
ob_sensor_type
enum OBSensorType ob_sensor_type
ob_sensor_get_stream_profile_list
ob_stream_profile_list * ob_sensor_get_stream_profile_list(ob_sensor *sensor, ob_error **error)
获取传感器支持的所有流的配置列表
ObTypes.h
提供 SDK 常用的结构体、枚举常量定义。
ob_sensor_start
void ob_sensor_start(ob_sensor *sensor, ob_stream_profile *profile, ob_frame_callback callback, void *user_data, ob_error **error)
打开传感器的流，并设置帧数据回调
ob_stream_profile
struct StreamProfileImpl ob_stream_profile
Definition: ObTypes.h:54
ob_sensor_stop
void ob_sensor_stop(ob_sensor *sensor, ob_error **error)
停止传感器的流
ob_delete_sensor_list
void ob_delete_sensor_list(ob_sensor_list *sensor_list, ob_error **error)
删除传感器对象列表
ob_sensor_list
struct SensorListImpl ob_sensor_list
Definition: ObTypes.h:53
ob_frame_callback
void(* ob_frame_callback)(ob_frame *frame, void *user_data)
数据帧回调
Definition: ObTypes.h:1406
ob_sensor_list_get_sensor_type
ob_sensor_type ob_sensor_list_get_sensor_type(ob_sensor_list *sensor_list, uint32_t index, ob_error **error)
获取指定Sensor的类型
ob_sensor_list_get_sensor_count
uint32_t ob_sensor_list_get_sensor_count(ob_sensor_list *sensor_list, ob_error **error)
获取传感器列表内传感器个数
ob_sensor_get_type
ob_sensor_type ob_sensor_get_type(ob_sensor *sensor, ob_error **error)
获取传感器类型
ob_error
SDK 的对外暴露的错误类，用户可以根据该错误类，获取详细的错误信息
Definition: ObTypes.h:142