Provide structs commonly used in the SDK, enumerating constant definitions.
enum OBMediaType ob_media_type
#define ob_playback_callback
struct PlaybackImpl ob_playback
struct CFrameImpl ob_frame
struct DeviceImpl ob_device
struct DeviceInfoImpl ob_device_info
struct RecorderImpl ob_recorder
void(* ob_media_state_callback)(ob_media_state state, void *user_data)
Callback for media status (recording and playback)
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.
The error class exposed by the SDK, users can get detailed error information according to the error.