Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
rs_record_playback.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory.
2  Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
3 
10 #ifndef LIBREALSENSE_RS2_RECORD_PLAYBACK_H
11 #define LIBREALSENSE_RS2_RECORD_PLAYBACK_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 
19 typedef enum rs2_playback_status
20 {
27 
29 
31 
39 rs2_device* rs2_create_record_device(const rs2_device* device, const char* file, rs2_error** error);
40 
49 rs2_device* rs2_create_record_device_ex(const rs2_device* device, const char* file, int compression_enabled, rs2_error** error);
50 
57 void rs2_record_device_pause(const rs2_device* device, rs2_error** error);
58 
64 void rs2_record_device_resume(const rs2_device* device, rs2_error** error);
65 
72 const char* rs2_record_device_filename(const rs2_device* device, rs2_error** error);
73 
80 rs2_device* rs2_create_playback_device(const char* file, rs2_error** error);
81 
88 const char* rs2_playback_device_get_file_path(const rs2_device* device, rs2_error** error);
89 
96 unsigned long long int rs2_playback_get_duration(const rs2_device* device, rs2_error** error);
97 
104 void rs2_playback_seek(const rs2_device* device, long long int time, rs2_error** error);
105 
112 unsigned long long int rs2_playback_get_position(const rs2_device* device, rs2_error** error);
113 
121 void rs2_playback_device_resume(const rs2_device* device, rs2_error** error);
122 
129 void rs2_playback_device_pause(const rs2_device* device, rs2_error** error);
130 
143 void rs2_playback_device_set_real_time(const rs2_device* device, int real_time, rs2_error** error);
144 
151 int rs2_playback_device_is_real_time(const rs2_device* device, rs2_error** error);
152 
163 
171 
179 void rs2_playback_device_set_playback_speed(const rs2_device* device, float speed, rs2_error** error);
180 
187 void rs2_playback_device_stop(const rs2_device* device, rs2_error** error);
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 #endif
const char * rs2_playback_device_get_file_path(const rs2_device *device, rs2_error **error)
Definition: rs_record_playback.h:21
void rs2_playback_seek(const rs2_device *device, long long int time, rs2_error **error)
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:84
Definition: rs_record_playback.h:22
rs2_device * rs2_create_record_device_ex(const rs2_device *device, const char *file, int compression_enabled, rs2_error **error)
Definition: rs_record_playback.h:24
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)
Exposes RealSense structs.
Definition: rs_record_playback.h:25
rs2_playback_status
Definition: rs_record_playback.h:19
unsigned long long int rs2_playback_get_duration(const rs2_device *device, rs2_error **error)
void(* rs2_playback_status_changed_callback_ptr)(rs2_playback_status)
Definition: rs_record_playback.h:30
struct rs2_device rs2_device
Definition: rs_types.h:228
rs2_device * rs2_create_record_device(const rs2_device *device, const char *file, rs2_error **error)
rs2_playback_status rs2_playback_device_get_current_status(const rs2_device *device, rs2_error **error)
const char * rs2_playback_status_to_string(rs2_playback_status status)
rs2_device * rs2_create_playback_device(const char *file, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:229
Definition: rs_record_playback.h:23
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)