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