| OrbbecSDK 1.10.18 OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras

Loading...
Searching...
No Matches
RecordPlayback.h
Go to the documentation of this file.
1
6#pragma once
7
8#ifdef __cplusplus
9 extern "C" {
10#endif
11
12#include "ObTypes.h"
13
20 ob_recorder *ob_create_recorder(ob_error **error);
21
29 ob_recorder *ob_create_recorder_with_device(ob_device *dev, ob_error **error);
30
37 void ob_delete_recorder(ob_recorder *recorder, ob_error **error);
38
47 void ob_recorder_start(ob_recorder *recorder, const char *filename, bool async, ob_error **error);
48
55 void ob_recorder_stop(ob_recorder *recorder, ob_error **error);
56
64 void ob_recorder_write_frame(ob_recorder *recorder, ob_frame *frame, ob_error **error);
65
73 ob_playback *ob_create_playback(const char *filename, ob_error **error);
74
81 void ob_delete_playback(ob_playback *playback, ob_error **error);
82
92 void ob_playback_start(ob_playback *playback, ob_playback_callback callback, void *user_data, ob_media_type type, ob_error **error);
93
100 void ob_playback_stop(ob_playback *playback, ob_error **error);
101
110 void ob_set_playback_state_callback(ob_playback *playback, ob_media_state_callback callback, void *user_data, ob_error **error);
111
119 ob_device_info *ob_playback_get_device_info(ob_playback *playback, ob_error **error);
120
128 ob_camera_param ob_playback_get_camera_param(ob_playback *playback, ob_error **error);
129
130#ifdef __cplusplus
131}
132#endif
ObTypes.h
Provide structs commonly used in the SDK, enumerating constant definitions.
ob_media_type
enum OBMediaType ob_media_type
ob_playback_callback
#define ob_playback_callback
Definition ObTypes.h:1760
ob_playback
struct PlaybackImpl ob_playback
Definition ObTypes.h:68
ob_frame
struct CFrameImpl ob_frame
Definition ObTypes.h:63
ob_device
struct DeviceImpl ob_device
Definition ObTypes.h:55
ob_device_info
struct DeviceInfoImpl ob_device_info
Definition ObTypes.h:56
ob_recorder
struct RecorderImpl ob_recorder
Definition ObTypes.h:67
ob_media_state_callback
void(* ob_media_state_callback)(ob_media_state state, void *user_data)
Callback for media status (recording and playback)
Definition ObTypes.h:1738
ob_playback_get_device_info
ob_device_info * ob_playback_get_device_info(ob_playback *playback, ob_error **error)
Get the device information in the recording file.
ob_playback_start
void ob_playback_start(ob_playback *playback, ob_playback_callback callback, void *user_data, ob_media_type type, ob_error **error)
Start playback, with data returned from the callback.
ob_delete_playback
void ob_delete_playback(ob_playback *playback, ob_error **error)
Delete the playback object.
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)
Set the playback state.
ob_recorder_stop
void ob_recorder_stop(ob_recorder *recorder, ob_error **error)
Stop recording.
ob_recorder_write_frame
void ob_recorder_write_frame(ob_recorder *recorder, ob_frame *frame, ob_error **error)
Write frame data to the recorder.
ob_recorder_start
void ob_recorder_start(ob_recorder *recorder, const char *filename, bool async, ob_error **error)
Start recording.
ob_create_recorder_with_device
ob_recorder * ob_create_recorder_with_device(ob_device *dev, ob_error **error)
Create a recorder for data recording.
ob_playback_stop
void ob_playback_stop(ob_playback *playback, ob_error **error)
Stop playback.
ob_create_recorder
ob_recorder * ob_create_recorder(ob_error **error)
Create a recorder for data recording.
ob_delete_recorder
void ob_delete_recorder(ob_recorder *recorder, ob_error **error)
Delete the recorder object.
ob_create_playback
ob_playback * ob_create_playback(const char *filename, ob_error **error)
Create a playback object.
ob_playback_get_camera_param
ob_camera_param ob_playback_get_camera_param(ob_playback *playback, ob_error **error)
Get the intrinsic and extrinsic parameter information in the recording file.
OBCameraParam
Structure for camera parameters.
Definition ObTypes.h:462
ob_error
The error class exposed by the SDK, users can get detailed error information according to the error.
Definition ObTypes.h:151