4 #ifndef LIBREALSENSE_RS2_RECORD_PLAYBACK_HPP 5 #define LIBREALSENSE_RS2_RECORD_PLAYBACK_HPP 15 T on_status_changed_function;
21 on_status_changed_function(status);
92 void seek(std::chrono::nanoseconds time)
152 template <
typename T>
216 _dev = std::shared_ptr<rs2_device>(
265 #endif // LIBREALSENSE_RS2_RECORD_PLAYBACK_HPP const char * rs2_playback_device_get_file_path(const rs2_device *device, rs2_error **error)
void on_playback_status_changed(rs2_playback_status status) override
Definition: rs_record_playback.hpp:19
Definition: rs_record_playback.hpp:27
uint64_t get_position() const
Definition: rs_record_playback.hpp:68
std::string file_name() const
Definition: rs_record_playback.hpp:59
void seek(std::chrono::nanoseconds time)
Definition: rs_record_playback.hpp:92
void rs2_playback_seek(const rs2_device *device, long long int time, rs2_error **error)
recorder(device d)
Definition: rs_record_playback.hpp:206
void rs2_delete_device(rs2_device *device)
void rs2_playback_device_set_status_changed_callback(const rs2_device *device, rs2_playback_status_changed_callback *callback, rs2_error **error)
void rs2_record_device_pause(const rs2_device *device, rs2_error **error)
int rs2_playback_device_is_real_time(const rs2_device *device, rs2_error **error)
void rs2_playback_device_pause(const rs2_device *device, rs2_error **error)
Definition: rs_types.hpp:60
Definition: rs_context.hpp:11
void set_real_time(bool real_time) const
Definition: rs_record_playback.hpp:122
void resume()
Definition: rs_record_playback.hpp:48
void rs2_playback_device_stop(const rs2_device *device, rs2_error **error)
unsigned long long int rs2_playback_get_position(const rs2_device *device, rs2_error **error)
void rs2_record_device_resume(const rs2_device *device, rs2_error **error)
std::chrono::nanoseconds get_duration() const
Definition: rs_record_playback.hpp:80
void pause()
Definition: rs_record_playback.hpp:225
int rs2_is_device_extendable_to(const rs2_device *device, rs2_extension extension, rs2_error **error)
playback(std::shared_ptr< rs2_device > dev)
Definition: rs_record_playback.hpp:184
const std::shared_ptr< rs2_device > & get() const
Definition: rs_device.hpp:116
Definition: rs_record_playback.hpp:203
void set_playback_speed(float speed) const
Definition: rs_record_playback.hpp:133
void resume()
Definition: rs_record_playback.hpp:235
rs2_playback_status
Definition: rs_record_playback.h:19
std::shared_ptr< rs2_device > _dev
Definition: rs_device.hpp:143
std::string filename() const
Definition: rs_record_playback.hpp:246
recorder(const std::string &file, rs2::device device)
Definition: rs_record_playback.hpp:213
void pause()
Definition: rs_record_playback.hpp:37
Definition: rs_types.h:110
rs2_playback_status current_status() const
Definition: rs_record_playback.hpp:164
friend context
Definition: rs_record_playback.hpp:183
recorder(std::shared_ptr< rs2_device > dev)
Definition: rs_record_playback.hpp:254
void stop()
Definition: rs_record_playback.hpp:176
void release() override
Definition: rs_record_playback.hpp:24
unsigned long long int rs2_playback_get_duration(const rs2_device *device, rs2_error **error)
static void handle(rs2_error *e)
Definition: rs_types.hpp:121
Definition: rs_record_playback.hpp:13
status_changed_callback(T on_status_changed)
Definition: rs_record_playback.hpp:17
bool is_real_time() const
Definition: rs_record_playback.hpp:103
rs2_device * rs2_create_record_device(const rs2_device *device, const char *file, rs2_error **error)
playback(device d)
Definition: rs_record_playback.hpp:30
rs2_playback_status rs2_playback_device_get_current_status(const rs2_device *device, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:149
Definition: rs_types.h:112
Definition: rs_device.hpp:18
const char * rs2_record_device_filename(const rs2_device *device, rs2_error **error)
void rs2_playback_device_resume(const rs2_device *device, rs2_error **error)
void rs2_playback_device_set_real_time(const rs2_device *device, int real_time, rs2_error **error)
void rs2_playback_device_set_playback_speed(const rs2_device *device, float speed, rs2_error **error)
void set_status_changed_callback(T callback)
Definition: rs_record_playback.hpp:153