OrbbecSDK 1.10.18
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
Functions
RecordPlayback.h File Reference

Header file for recording and playback functions. More...

#include "ObTypes.h"

Go to the source code of this file.

Functions

ob_recorderob_create_recorder (ob_error **error)
 Create a recorder for data recording.
 
ob_recorderob_create_recorder_with_device (ob_device *dev, ob_error **error)
 Create a recorder for data recording.
 
void ob_delete_recorder (ob_recorder *recorder, ob_error **error)
 Delete the recorder object.
 
void ob_recorder_start (ob_recorder *recorder, const char *filename, bool async, ob_error **error)
 Start recording.
 
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.
 
ob_playbackob_create_playback (const char *filename, ob_error **error)
 Create a playback object.
 
void ob_delete_playback (ob_playback *playback, ob_error **error)
 Delete the playback object.
 
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_playback_stop (ob_playback *playback, ob_error **error)
 Stop playback.
 
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_device_infoob_playback_get_device_info (ob_playback *playback, ob_error **error)
 Get the device information in the recording file.
 
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.
 

Detailed Description

Header file for recording and playback functions.

Definition in file RecordPlayback.h.

Function Documentation

◆ ob_create_recorder()

ob_recorder * ob_create_recorder ( ob_error **  error)

Create a recorder for data recording.

Parameters
[out]errorPointer to log error messages.
Returns
Pointer to the recorder object.

◆ ob_create_recorder_with_device()

ob_recorder * ob_create_recorder_with_device ( ob_device dev,
ob_error **  error 
)

Create a recorder for data recording.

Parameters
devThe device object used to create the recorder.
[out]errorPointer to log error messages.
Returns
Pointer to the recorder object.

◆ ob_delete_recorder()

void ob_delete_recorder ( ob_recorder recorder,
ob_error **  error 
)

Delete the recorder object.

Parameters
recorderPointer to the recorder object.
[out]errorPointer to log error messages.

◆ ob_recorder_start()

void ob_recorder_start ( ob_recorder recorder,
const char *  filename,
bool  async,
ob_error **  error 
)

Start recording.

Parameters
[in]recorderPointer to the recorder object.
[in]filenameRecorded file name.
[in]asyncWhether to record asynchronously.
[out]errorPointer to log error messages.

◆ ob_recorder_stop()

void ob_recorder_stop ( ob_recorder recorder,
ob_error **  error 
)

Stop recording.

Parameters
[in]recorderPointer to the recorder object.
[out]errorPointer to log error messages.

◆ ob_recorder_write_frame()

void ob_recorder_write_frame ( ob_recorder recorder,
ob_frame frame,
ob_error **  error 
)

Write frame data to the recorder.

Parameters
[in]recorderPointer to the recorder object.
[in]framePointer to the frame data to write.
[out]errorPointer to log error messages.

◆ ob_create_playback()

ob_playback * ob_create_playback ( const char *  filename,
ob_error **  error 
)

Create a playback object.

Parameters
[in]filenamePlayback filename.
[out]errorPointer to log error messages.
Returns
Pointer to the playback object.

◆ ob_delete_playback()

void ob_delete_playback ( ob_playback playback,
ob_error **  error 
)

Delete the playback object.

Parameters
[in]playbackPointer to the playback object.
[out]errorPointer to log error messages.

◆ 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.

Parameters
[in]playbackPointer to the playback object.
[in]callbackCallback function for playback data.
[in]user_dataUser data.
[in]typeType of playback data.
[out]errorPointer to log error messages.

◆ ob_playback_stop()

void ob_playback_stop ( ob_playback playback,
ob_error **  error 
)

Stop playback.

Parameters
[in]playbackPointer to the playback object.
[out]errorPointer to log error messages.

◆ 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.

Parameters
[in]playbackPointer to the playback object.
[in]callbackPlayback status callback function.
[in]user_dataUser data.
[out]errorPointer to log error messages.

◆ 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.

Parameters
[in]playbackPointer to the playback object.
[out]errorPointer to log error messages.
Returns
Pointer to the device information.

◆ 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.

Parameters
[in]playbackPointer to the playback object.
[out]errorPointer to log error messages.
Returns
Camera intrinsic and extrinsic parameter.