|
OrbbecSDK 2.5.5
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include "Device.h"Go to the source code of this file.
Functions | |
| OB_EXPORT ob_record_device * | ob_create_record_device (ob_device *device, const char *file_path, bool compression_enabled, ob_error **error) |
| Create a recording device for the specified device with a specified file path and compression enabled. | |
| OB_EXPORT void | ob_delete_record_device (ob_record_device *recorder, ob_error **error) |
| Delete a recording device. | |
| OB_EXPORT void | ob_record_device_pause (ob_record_device *recorder, ob_error **error) |
| Pause recording on the specified recording device. | |
| OB_EXPORT void | ob_record_device_resume (ob_record_device *recorder, ob_error **error) |
| Resume recording on the specified recording device. | |
| OB_EXPORT ob_device * | ob_create_playback_device (const char *file_path, ob_error **error) |
| Create a playback device for the specified file path. | |
| OB_EXPORT void | ob_playback_device_pause (ob_device *player, ob_error **error) |
| Pause playback on the specified playback device. | |
| OB_EXPORT void | ob_playback_device_resume (ob_device *player, ob_error **error) |
| Resume playback on the specified playback device. | |
| OB_EXPORT void | ob_playback_device_seek (ob_device *player, const uint64_t timestamp, ob_error **error) |
| Set the playback to a specified time point of the played data. | |
| OB_EXPORT void | ob_playback_device_set_playback_rate (ob_device *player, const float rate, ob_error **error) |
| Set the playback to a specified time point of the played data. | |
| OB_EXPORT ob_playback_status | ob_playback_device_get_current_playback_status (ob_device *player, ob_error **error) |
| Get the current playback status of the played data. | |
| OB_EXPORT void | ob_playback_device_set_playback_status_changed_callback (ob_device *player, ob_playback_status_changed_callback callback, void *user_data, ob_error **error) |
| Set a callback function to receive playback status updates. | |
| OB_EXPORT uint64_t | ob_playback_device_get_position (ob_device *player, ob_error **error) |
| Get the current playback position of the played data. | |
| OB_EXPORT uint64_t | ob_playback_device_get_duration (ob_device *player, ob_error **error) |
| Get the duration of the played data. | |
| OB_EXPORT ob_record_device * ob_create_record_device | ( | ob_device * | device, |
| const char * | file_path, | ||
| bool | compression_enabled, | ||
| ob_error ** | error ) |
Create a recording device for the specified device with a specified file path and compression enabled.
| [in] | device | The device to record. |
| [in] | file_path | The file path to record to. |
| [in] | compression_enabled | Whether to enable compression for the recording. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::RecordDevice::RecordDevice().
| OB_EXPORT void ob_delete_record_device | ( | ob_record_device * | recorder, |
| ob_error ** | error ) |
Delete a recording device.
| [in] | recorder | The recording device to delete. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::RecordDevice::~RecordDevice().
| OB_EXPORT void ob_record_device_pause | ( | ob_record_device * | recorder, |
| ob_error ** | error ) |
Pause recording on the specified recording device.
| [in] | recorder | The recording device to pause. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::RecordDevice::pause().
| OB_EXPORT void ob_record_device_resume | ( | ob_record_device * | recorder, |
| ob_error ** | error ) |
Resume recording on the specified recording device.
| [in] | recorder | The recording device to resume. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::RecordDevice::resume().
Create a playback device for the specified file path.
| [in] | file_path | The file path to playback from. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::PlaybackDevice().
Pause playback on the specified playback device.
| [in] | player | The playback device to pause. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::pause().
Resume playback on the specified playback device.
| [in] | player | The playback device to resume. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::resume().
| OB_EXPORT void ob_playback_device_seek | ( | ob_device * | player, |
| const uint64_t | timestamp, | ||
| ob_error ** | error ) |
Set the playback to a specified time point of the played data.
| [in] | player | The playback device to set the position for. |
| [in] | timestamp | The position to set the playback to, in milliseconds. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::seek().
| OB_EXPORT void ob_playback_device_set_playback_rate | ( | ob_device * | player, |
| const float | rate, | ||
| ob_error ** | error ) |
Set the playback to a specified time point of the played data.
| [in] | player | The playback device to set the position for. |
| [in] | rate | The playback rate to set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::setPlaybackRate().
| OB_EXPORT ob_playback_status ob_playback_device_get_current_playback_status | ( | ob_device * | player, |
| ob_error ** | error ) |
Get the current playback status of the played data.
| [in] | player | The playback device to get the status for. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::getPlaybackStatus().
| OB_EXPORT void ob_playback_device_set_playback_status_changed_callback | ( | ob_device * | player, |
| ob_playback_status_changed_callback | callback, | ||
| void * | user_data, | ||
| ob_error ** | error ) |
Set a callback function to receive playback status updates.
| [in] | player | The playback device to set the callback for. |
| [in] | callback | The callback function to receive playback status updates. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::setPlaybackStatusChangeCallback().
Get the current playback position of the played data.
| [in] | player | The playback device to get the position for. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::getPosition().
Get the duration of the played data.
| [in] | player | The playback device to get the duration for. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::PlaybackDevice::getDuration().