Intel® RealSense™ Cross Platform API  2.13.0
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 {
28 
30 
38 rs2_device* rs2_create_record_device(const rs2_device* device, const char* file, rs2_error** error);
39 
46 void rs2_record_device_pause(const rs2_device* device, rs2_error** error);
47 
53 void rs2_record_device_resume(const rs2_device* device, rs2_error** error);
54 
61 const char* rs2_record_device_filename(const rs2_device* device, rs2_error** error);
62 
69 rs2_device* rs2_create_playback_device(const char* file, rs2_error** error);
70 
77 const char* rs2_playback_device_get_file_path(const rs2_device* device, rs2_error** error);
78 
85 unsigned long long int rs2_playback_get_duration(const rs2_device* device, rs2_error** error);
86 
93 void rs2_playback_seek(const rs2_device* device, long long int time, rs2_error** error);
94 
101 unsigned long long int rs2_playback_get_position(const rs2_device* device, rs2_error** error);
102 
110 void rs2_playback_device_resume(const rs2_device* device, rs2_error** error);
111 
118 void rs2_playback_device_pause(const rs2_device* device, rs2_error** error);
119 
132 void rs2_playback_device_set_real_time(const rs2_device* device, int real_time, rs2_error** error);
133 
140 int rs2_playback_device_is_real_time(const rs2_device* device, rs2_error** error);
141 
152 
160 
168 void rs2_playback_device_set_playback_speed(const rs2_device* device, float speed, rs2_error** error);
169 
176 void rs2_playback_device_stop(const rs2_device* device, rs2_error** error);
177 
178 #ifdef __cplusplus
179 }
180 #endif
181 #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:60
Definition: rs_record_playback.h:22
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:29
struct rs2_device rs2_device
Definition: rs_types.h:148
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:149
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)