|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
10 #ifndef LIBREALSENSE_RS2_RECORD_PLAYBACK_H
11 #define LIBREALSENSE_RS2_RECORD_PLAYBACK_H
void rs2_playback_device_set_playback_speed(const rs2_device *device, float speed, rs2_error **error)
Set the playing speed.
void rs2_playback_device_resume(const rs2_device *device, rs2_error **error)
Pauses the playback Calling pause() in "Paused" status does nothing If pause() is called while playba...
const char * rs2_playback_device_get_file_path(const rs2_device *device, rs2_error **error)
Gets the path of the file used by the playback device.
@ RS2_PLAYBACK_STATUS_STOPPED
All sensors were stopped, or playback has ended (all data was read).
void rs2_playback_device_set_real_time(const rs2_device *device, int real_time, rs2_error **error)
Set the playback to work in real time or non real time.
void rs2_playback_device_set_status_changed_callback(const rs2_device *device, rs2_playback_status_changed_callback *callback, rs2_error **error)
Register to receive callback from playback device upon its status changes.
unsigned long long int rs2_playback_get_position(const rs2_device *device, rs2_error **error)
Gets the current position of the playback in the file in terms of time.
rs2_device * rs2_create_playback_device(const char *file, rs2_error **error)
Creates a playback device to play the content of the given file.
const char * rs2_playback_status_to_string(rs2_playback_status status)
@ RS2_PLAYBACK_STATUS_UNKNOWN
Unknown state.
void rs2_playback_seek(const rs2_device *device, long long int time, rs2_error **error)
Set the playback to a specified time point of the played data.
rs2_device * rs2_create_record_device_ex(const rs2_device *device, const char *file, int compression_enabled, rs2_error **error)
Creates a recording device to record the given device and save it to the given file.
unsigned long long int rs2_playback_get_duration(const rs2_device *device, rs2_error **error)
Gets the total duration of the file in units of nanoseconds.
const char * rs2_record_device_filename(const rs2_device *device, rs2_error **error)
Gets the name of the file to which the recorder is writing.
void(* rs2_playback_status_changed_callback_ptr)(rs2_playback_status)
void rs2_record_device_resume(const rs2_device *device, rs2_error **error)
Unpause the recording device.
@ RS2_PLAYBACK_STATUS_PAUSED
One or more sensors were started, but playback paused reading and paused raising data.
rs2_playback_status rs2_playback_device_get_current_status(const rs2_device *device, rs2_error **error)
Returns the current state of the playback device.
struct rs2_device rs2_device
Exposes RealSense structs.
int rs2_playback_device_is_real_time(const rs2_device *device, rs2_error **error)
Indicates if playback is in real time mode or non real time.
void rs2_playback_device_pause(const rs2_device *device, rs2_error **error)
Un-pauses the playback Calling resume() while playback status is "Playing" or "Stopped" does nothing.
@ RS2_PLAYBACK_STATUS_COUNT
@ RS2_PLAYBACK_STATUS_PLAYING
One or more sensors were started, playback is reading and raising data.
rs2_device * rs2_create_record_device(const rs2_device *device, const char *file, rs2_error **error)
Creates a recording device to record the given device and save it to the given file.
void rs2_record_device_pause(const rs2_device *device, rs2_error **error)
Pause the recording device without stopping the actual device from streaming.
void rs2_playback_device_stop(const rs2_device *device, rs2_error **error)
Stops the playback Calling stop() will stop all streaming playbakc sensors and will reset the playbac...
struct rs2_error rs2_error