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

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

- 文件列表
- 文件成员

Pipeline.h
浏览该文件的文档.
1
12 #pragma once
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include "ObTypes.h"
19
33 ob_pipeline *ob_create_pipeline(ob_error **error);
34
50 ob_pipeline *ob_create_pipeline_with_device(ob_device *dev, ob_error **error);
51
67 ob_pipeline *ob_create_pipeline_with_playback_file(const char *file_name, ob_error **error);
68
82 void ob_delete_pipeline(ob_pipeline *pipeline, ob_error **error);
83
97 void ob_pipeline_start(ob_pipeline *pipeline, ob_error **error);
98
114 void ob_pipeline_start_with_config(ob_pipeline *pipeline, ob_config *config, ob_error **error);
115
135 void ob_pipeline_start_with_callback(ob_pipeline *pipeline, ob_config *config, ob_frameset_callback callback, void *user_data, ob_error **error);
136
150 void ob_pipeline_stop(ob_pipeline *pipeline, ob_error **error);
151
167 ob_config *ob_pipeline_get_config(ob_pipeline *pipeline, ob_error **error);
168
186 ob_frame *ob_pipeline_wait_for_frameset(ob_pipeline *pipeline, uint32_t timeout_ms, ob_error **error);
187
203 ob_device *ob_pipeline_get_device(ob_pipeline *pipeline, ob_error **error);
204
220 ob_playback *ob_pipeline_get_playback(ob_pipeline *pipeline, ob_error **error);
221
241 ob_stream_profile_list *ob_pipeline_get_stream_profile_list(ob_pipeline *pipeline, ob_sensor_type sensorType, ob_error **error);
242
256 void ob_pipeline_enable_frame_sync(ob_pipeline *pipeline, ob_error **error);
257
271 void ob_pipeline_disable_frame_sync(ob_pipeline *pipeline, ob_error **error);
272
288 void ob_pipeline_switch_config(ob_pipeline *pipeline, ob_config *config, ob_error **error);
289
307 ob_camera_param ob_pipeline_get_camera_param(ob_pipeline *pipeline, ob_error **error);
308
328 ob_stream_profile_list *ob_get_d2c_depth_profile_list(ob_pipeline *pipeline, ob_stream_profile *color_profile, ob_align_mode align_mode, ob_error **error);
329
347 ob_rect ob_get_d2c_valid_area(ob_pipeline *pipeline, uint32_t distance, ob_error **error);
348
369 ob_rect ob_get_d2c_range_valid_area(ob_pipeline *pipeline, uint32_t minimum_distance, uint32_t maximum_distance, ob_error **error);
370
386 void ob_pipeline_start_record(ob_pipeline *pipeline, const char *file_name, ob_error **error);
387
402 void ob_pipeline_stop_record(ob_pipeline *pipeline, ob_error **error);
403
417 ob_config *ob_create_config(ob_error **error);
418
432 void ob_delete_config(ob_config *config, ob_error **error);
433
449 void ob_config_enable_stream(ob_config *config, ob_stream_profile *profile, ob_error **error);
450
464 void ob_config_enable_all_stream(ob_config *config, ob_error **error);
465
481 void ob_config_disable_stream(ob_config *config, ob_stream_type type, ob_error **error);
482
496 void ob_config_disable_all_stream(ob_config *config, ob_error **error);
497
513 void ob_config_set_align_mode(ob_config *config, ob_align_mode mode, ob_error **error);
514
530 void ob_config_set_depth_scale_require(ob_config *config, bool enable, ob_error **error);
531
552 void ob_config_set_d2c_target_resolution(ob_config *config, uint32_t d2c_target_width, uint32_t d2c_target_height, ob_error **error);
553
572 void ob_config_set_frame_aggregate_output_mode(ob_config *config, ob_frame_aggregate_output_mode mode, ob_error **error);
573
574 #ifdef __cplusplus
575 }
576 #endif
ob_pipeline_get_camera_param
ob_camera_param ob_pipeline_get_camera_param(ob_pipeline *pipeline, ob_error **error)
获取当前相机参数
ob_get_d2c_valid_area
ob_rect ob_get_d2c_valid_area(ob_pipeline *pipeline, uint32_t distance, ob_error **error)
获取D2C后有效的区域 (废弃接口)
ob_stream_profile_list
struct StreamProfileListImpl ob_stream_profile_list
Definition: ObTypes.h:55
ob_config
struct ConfigImpl ob_config
Definition: ObTypes.h:59
ob_frame_aggregate_output_mode
enum OB_FRAME_AGGREGATE_OUTPUT_MODE ob_frame_aggregate_output_mode
ob_config_set_depth_scale_require
void ob_config_set_depth_scale_require(ob_config *config, bool enable, ob_error **error)
设置D2C后是否需要缩放深度
ob_config_set_frame_aggregate_output_mode
void ob_config_set_frame_aggregate_output_mode(ob_config *config, ob_frame_aggregate_output_mode mode, ob_error **error)
数据帧汇聚输出模式
ob_playback
struct PlaybackImpl ob_playback
Definition: ObTypes.h:61
ob_stream_type
enum OBStreamType ob_stream_type
ob_pipeline_enable_frame_sync
void ob_pipeline_enable_frame_sync(ob_pipeline *pipeline, ob_error **error)
打开帧同步功能
ob_sensor_type
enum OBSensorType ob_sensor_type
ob_get_d2c_range_valid_area
ob_rect ob_get_d2c_range_valid_area(ob_pipeline *pipeline, uint32_t minimum_distance, uint32_t maximum_distance, ob_error **error)
获取D2C后有效的区域。 如果需要获取指定距离D2C后的ROI区域，将minimum_distance与maximum_distance设置成�...
ob_config_disable_all_stream
void ob_config_disable_all_stream(ob_config *config, ob_error **error)
配置关闭所有的流
ob_pipeline_start_record
void ob_pipeline_start_record(ob_pipeline *pipeline, const char *file_name, ob_error **error)
开启录制
ob_pipeline_start
void ob_pipeline_start(ob_pipeline *pipeline, ob_error **error)
以默认参数启动pipeline
ObTypes.h
提供 SDK 常用的结构体、枚举常量定义。
ob_pipeline_disable_frame_sync
void ob_pipeline_disable_frame_sync(ob_pipeline *pipeline, ob_error **error)
关闭帧同步功能
ob_pipeline_get_stream_profile_list
ob_stream_profile_list * ob_pipeline_get_stream_profile_list(ob_pipeline *pipeline, ob_sensor_type sensorType, ob_error **error)
获取传感器相应的流配置
ob_device
struct DeviceImpl ob_device
Definition: ObTypes.h:48
ob_config_enable_all_stream
void ob_config_enable_all_stream(ob_config *config, ob_error **error)
配置打开所有的流
ob_config_enable_stream
void ob_config_enable_stream(ob_config *config, ob_stream_profile *profile, ob_error **error)
配置要打开的流
OBCameraParam
相机参数
Definition: ObTypes.h:434
OBRect
矩形
Definition: ObTypes.h:507
ob_config_set_align_mode
void ob_config_set_align_mode(ob_config *config, ob_align_mode mode, ob_error **error)
设置对齐模式
ob_pipeline_switch_config
void ob_pipeline_switch_config(ob_pipeline *pipeline, ob_config *config, ob_error **error)
动态切换对应的config配置
ob_pipeline_get_device
ob_device * ob_pipeline_get_device(ob_pipeline *pipeline, ob_error **error)
从pipeline中获取设备
ob_stream_profile
struct StreamProfileImpl ob_stream_profile
Definition: ObTypes.h:54
ob_delete_config
void ob_delete_config(ob_config *config, ob_error **error)
删除pipeline的配置
ob_frame
struct CFrameImpl ob_frame
Definition: ObTypes.h:56
ob_pipeline_get_config
ob_config * ob_pipeline_get_config(ob_pipeline *pipeline, ob_error **error)
获取pipeline当前参数
ob_config_disable_stream
void ob_config_disable_stream(ob_config *config, ob_stream_type type, ob_error **error)
配置要关闭的流
ob_delete_pipeline
void ob_delete_pipeline(ob_pipeline *pipeline, ob_error **error)
删除pipeline对象
ob_create_pipeline_with_device
ob_pipeline * ob_create_pipeline_with_device(ob_device *dev, ob_error **error)
使用设备对象来创建pipeline对象
ob_pipeline_stop_record
void ob_pipeline_stop_record(ob_pipeline *pipeline, ob_error **error)
关闭录制
ob_pipeline_wait_for_frameset
ob_frame * ob_pipeline_wait_for_frameset(ob_pipeline *pipeline, uint32_t timeout_ms, ob_error **error)
以同步阻塞的形式等待返回一组帧集合
ob_frameset_callback
void(* ob_frameset_callback)(ob_frame *frameset, void *user_data)
数据帧集合回调
Definition: ObTypes.h:1421
ob_create_pipeline
ob_pipeline * ob_create_pipeline(ob_error **error)
创建pipeline对象
ob_pipeline
struct PipelineImpl ob_pipeline
Definition: ObTypes.h:58
ob_pipeline_start_with_callback
void ob_pipeline_start_with_callback(ob_pipeline *pipeline, ob_config *config, ob_frameset_callback callback, void *user_data, ob_error **error)
启动pipeline并设置帧集合数据回调
ob_get_d2c_depth_profile_list
ob_stream_profile_list * ob_get_d2c_depth_profile_list(ob_pipeline *pipeline, ob_stream_profile *color_profile, ob_align_mode align_mode, ob_error **error)
返回与输入的彩色传感器分辨率对应的支持D2C的深度传感器分辨率列表
ob_pipeline_start_with_config
void ob_pipeline_start_with_config(ob_pipeline *pipeline, ob_config *config, ob_error **error)
启动pipeline并配置参数
ob_pipeline_stop
void ob_pipeline_stop(ob_pipeline *pipeline, ob_error **error)
停止pipeline
ob_create_pipeline_with_playback_file
ob_pipeline * ob_create_pipeline_with_playback_file(const char *file_name, ob_error **error)
使用回放文件来创建pipeline对象
ob_pipeline_get_playback
ob_playback * ob_pipeline_get_playback(ob_pipeline *pipeline, ob_error **error)
从pipeline中获取回放对象
ob_config_set_d2c_target_resolution
void ob_config_set_d2c_target_resolution(ob_config *config, uint32_t d2c_target_width, uint32_t d2c_target_height, ob_error **error)
设置D2C目标分辨率，适用于未使用OrbbecSDK开启Color流，且需要对深度进行D2C的情况 注意:当使用OrbbecSDK开...
ob_create_config
ob_config * ob_create_config(ob_error **error)
创建pipeline的配置
ob_align_mode
enum OBAlignMode ob_align_mode
ob_error
SDK 的对外暴露的错误类，用户可以根据该错误类，获取详细的错误信息
Definition: ObTypes.h:142