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

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

- 文件列表
- 文件成员

Context.h
浏览该文件的文档.
1
12 #pragma once
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include "ObTypes.h"
19
33 ob_context *ob_create_context(ob_error **error);
34
50 ob_context *ob_create_context_with_config(const char *config_path, ob_error **error);
51
65 void ob_delete_context(ob_context *context, ob_error **error);
66
82 ob_device_list *ob_query_device_list(ob_context *context, ob_error **error);
83
93 ob_device *ob_create_net_device(ob_context *context, const char *address, uint16_t port, ob_error **error);
94
114 void ob_set_device_changed_callback(ob_context *context, ob_device_changed_callback callback, void *user_data, ob_error **error);
115
132 void ob_enable_multi_device_sync(ob_context *context, uint64_t repeatInterval, ob_error **error);
133
147 void ob_set_logger_severity(ob_log_severity severity, ob_error **error);
148
165 void ob_set_logger_to_file(ob_log_severity severity, const char *directory, ob_error **error);
166
182
ob_set_logger_to_file
void ob_set_logger_to_file(ob_log_severity severity, const char *directory, ob_error **error)
设置输出日志到文件
ob_create_context_with_config
ob_context * ob_create_context_with_config(const char *config_path, ob_error **error)
创建context的接口函数
ob_query_device_list
ob_device_list * ob_query_device_list(ob_context *context, ob_error **error)
枚举设备列表
ObTypes.h
提供 SDK 常用的结构体、枚举常量定义。
ob_create_context
ob_context * ob_create_context(ob_error **error)
创建context的接口函数
ob_device_list
struct DeviceListImpl ob_device_list
Definition: ObTypes.h:50
ob_device
struct DeviceImpl ob_device
Definition: ObTypes.h:48
ob_device_changed_callback
void(* ob_device_changed_callback)(ob_device_list *removed, ob_device_list *added, void *user_data)
设备变化（上下线）回调
Definition: ObTypes.h:1393
ob_context
struct ContextImpl ob_context
Definition: ObTypes.h:47
ob_delete_context
void ob_delete_context(ob_context *context, ob_error **error)
删除上下文环境
ob_set_logger_severity
void ob_set_logger_severity(ob_log_severity severity, ob_error **error)
设置全局日志的等级，会同时作用于输出到console和输出到文件的日志等级
ob_set_device_changed_callback
void ob_set_device_changed_callback(ob_context *context, ob_device_changed_callback callback, void *user_data, ob_error **error)
设置设备插拔回调函数
ob_enable_multi_device_sync
void ob_enable_multi_device_sync(ob_context *context, uint64_t repeatInterval, ob_error **error)
启动多设备同步功能，同步已创建设备的时钟(需要使用的设备支持该功能)
ob_create_net_device
ob_device * ob_create_net_device(ob_context *context, const char *address, uint16_t port, ob_error **error)
创建网络设备
ob_log_severity
enum OBLogSeverity ob_log_severity
ob_error
SDK 的对外暴露的错误类，用户可以根据该错误类，获取详细的错误信息
Definition: ObTypes.h:142