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

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

- 文件列表
- 文件成员

RecordPlayback.h
浏览该文件的文档.
1
10 #pragma once
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #include "ObTypes.h"
17
31 ob_recorder *ob_create_recorder(ob_error **error);
32
48 ob_recorder *ob_create_recorder_with_device(ob_device *dev, ob_error **error);
49
63 void ob_delete_recorder(ob_recorder *recorder, ob_error **error);
64
82 void ob_recorder_start(ob_recorder *recorder, const char *filename, bool async, ob_error **error);
83
97 void ob_recorder_stop(ob_recorder *recorder, ob_error **error);
98
114 void ob_recorder_write_frame(ob_recorder *recorder, ob_frame *frame, ob_error **error);
115
129 ob_playback *ob_create_playback(const char *filename, ob_error **error);
130
144 void ob_delete_playback(ob_playback *playback, ob_error **error);
145
165 void ob_playback_start(ob_playback *playback, ob_playback_callback callback, void *user_data, ob_media_type type, ob_error **error);
166
180 void ob_playback_stop(ob_playback *playback, ob_error **error);
181
197 void ob_set_playback_state_callback(ob_playback *playback, ob_media_state_callback callback, void *user_data, ob_error **error);
198
214 ob_device_info *ob_playback_get_device_info(ob_playback *playback, ob_error **error);
215
231 ob_camera_param ob_playback_get_camera_param(ob_playback *playback, ob_error **error);
232
233 #ifdef __cplusplus
234 }
235 #endif
ob_playback_callback
#define ob_playback_callback
Definition: ObTypes.h:1408
ob_create_playback
ob_playback * ob_create_playback(const char *filename, ob_error **error)
创建回放对象
ob_playback_stop
void ob_playback_stop(ob_playback *playback, ob_error **error)
停止回放
ob_playback
struct PlaybackImpl ob_playback
Definition: ObTypes.h:61
ob_media_type
enum OBMediaType ob_media_type
ob_set_playback_state_callback
void ob_set_playback_state_callback(ob_playback *playback, ob_media_state_callback callback, void *user_data, ob_error **error)
设置回放状态
ObTypes.h
提供 SDK 常用的结构体、枚举常量定义。
ob_playback_get_camera_param
ob_camera_param ob_playback_get_camera_param(ob_playback *playback, ob_error **error)
获取录制文件内的内外参信息
ob_recorder
struct RecorderImpl ob_recorder
Definition: ObTypes.h:60
ob_device
struct DeviceImpl ob_device
Definition: ObTypes.h:48
ob_recorder_write_frame
void ob_recorder_write_frame(ob_recorder *recorder, ob_frame *frame, ob_error **error)
向录制器内写入帧数据
OBCameraParam
相机参数
Definition: ObTypes.h:434
ob_recorder_start
void ob_recorder_start(ob_recorder *recorder, const char *filename, bool async, ob_error **error)
开始录制
ob_delete_playback
void ob_delete_playback(ob_playback *playback, ob_error **error)
删除回放对象
ob_device_info
struct DeviceInfoImpl ob_device_info
Definition: ObTypes.h:49
ob_frame
struct CFrameImpl ob_frame
Definition: ObTypes.h:56
ob_delete_recorder
void ob_delete_recorder(ob_recorder *recorder, ob_error **error)
删除录制器对象
ob_playback_start
void ob_playback_start(ob_playback *playback, ob_playback_callback callback, void *user_data, ob_media_type type, ob_error **error)
开启回放，回放数据从回调中返回
ob_recorder_stop
void ob_recorder_stop(ob_recorder *recorder, ob_error **error)
停止录制
ob_media_state_callback
void(* ob_media_state_callback)(ob_media_state state, void *user_data)
媒体状态回调（录制和回放）
Definition: ObTypes.h:1378
ob_create_recorder
ob_recorder * ob_create_recorder(ob_error **error)
创建录制器用于数据的录制
ob_create_recorder_with_device
ob_recorder * ob_create_recorder_with_device(ob_device *dev, ob_error **error)
创建录制器用于数据的录制
ob_playback_get_device_info
ob_device_info * ob_playback_get_device_info(ob_playback *playback, ob_error **error)
获取录制文件内的设备信息
ob_error
SDK 的对外暴露的错误类，用户可以根据该错误类，获取详细的错误信息
Definition: ObTypes.h:142