4 #ifndef LIBREALSENSE_RS2_RECORD_PLAYBACK_HPP 5 #define LIBREALSENSE_RS2_RECORD_PLAYBACK_HPP 152 template <
typename T>
216 _dev = std::shared_ptr<rs2_device>(
231 _dev = std::shared_ptr<rs2_device>(
281 #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
bool is_real_time() const
void seek(std::chrono::nanoseconds time)
const std::shared_ptr< rs2_device > & get() const
void rs2_playback_seek(const rs2_device *device, long long int time, rs2_error **error)
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)
GLsizei const GLchar *const * string
rs2_device * rs2_create_record_device_ex(const rs2_device *device, const char *file, int compression_enabled, rs2_error **error)
status
Defines return codes that SDK interfaces use. Negative values indicate errors, a zero value indicates...
std::string filename() const
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)
void set_playback_speed(float speed) const
int rs2_is_device_extendable_to(const rs2_device *device, rs2_extension extension, rs2_error **error)
playback(std::shared_ptr< rs2_device > dev)
unsigned __int64 uint64_t
BOOST_DEDUCED_TYPENAME optional< T >::reference_const_type get(optional< T > const &opt)
recorder(std::shared_ptr< rs2_device > dev)
unsigned long long int rs2_playback_get_duration(const rs2_device *device, rs2_error **error)
static void handle(rs2_error *e)
uint64_t get_position() const
recorder(const std::string &file, rs2::device dev, bool compression_enabled)
std::chrono::duration< uint64_t, std::nano > nanoseconds
status_changed_callback(T on_status_changed)
rs2_playback_status current_status() const
std::chrono::nanoseconds get_duration() const
void set_real_time(bool real_time) const
std::string file_name() const
rs2_device * rs2_create_record_device(const rs2_device *device, const char *file, rs2_error **error)
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
rs2_playback_status rs2_playback_device_get_current_status(const rs2_device *device, rs2_error **error)
T on_status_changed_function
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)
recorder(const std::string &file, rs2::device dev)
void set_status_changed_callback(T callback)