Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
rs_types.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 
9 #ifndef LIBREALSENSE_RS2_TYPES_H
10 #define LIBREALSENSE_RS2_TYPES_H
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
27 
29 typedef enum rs2_exception_type
30 {
42 
44 typedef enum rs2_distortion
45 {
53 const char* rs2_distortion_to_string(rs2_distortion distortion);
54 
56 typedef struct rs2_intrinsics
57 {
58  int width;
59  int height;
60  float ppx;
61  float ppy;
62  float fx;
63  float fy;
65  float coeffs[5];
67 
70 {
71  /* \internal
72  * Scale X cross axis cross axis Bias X \n
73  * cross axis Scale Y cross axis Bias Y \n
74  * cross axis cross axis Scale Z Bias Z */
75  float data[3][4];
77  float noise_variances[3];
78  float bias_variances[3];
80 
82 typedef enum rs2_log_severity {
92 
94 typedef enum rs2_extension
95 {
122 } rs2_extension;
124 const char* rs2_extension_to_string(rs2_extension type);
125 
127 typedef enum rs2_matchers
128 {
129  RS2_MATCHER_DI, //compare depth and ir based on frame number
130 
131  RS2_MATCHER_DI_C, //compare depth and ir based on frame number,
132  //compare the pair of corresponding depth and ir with color based on closest timestamp,
133  //commonlly used by SR300
134 
135  RS2_MATCHER_DLR_C, //compare depth, left and right ir based on frame number,
136  //compare the set of corresponding depth, left and right with color based on closest timestamp,
137  //commonlly used by RS415, RS435
138 
139  RS2_MATCHER_DLR, //compare depth, left and right ir based on frame number,
140  //commonlly used by RS400, RS405, RS410, RS420, RS430
141 
142  RS2_MATCHER_DEFAULT, //the default matcher compare all the streams based on closest timestamp
143 
145 }rs2_matchers;
146 
148 typedef struct rs2_device rs2_device;
149 typedef struct rs2_error rs2_error;
151 typedef struct rs2_frame rs2_frame;
153 typedef struct rs2_pipeline rs2_pipeline;
155 typedef struct rs2_config rs2_config;
161 typedef struct rs2_syncer rs2_syncer;
163 typedef struct rs2_source rs2_source;
167 typedef struct rs2_context rs2_context;
170 typedef struct rs2_sensor rs2_sensor;
171 typedef struct rs2_options rs2_options;
177 typedef void (*rs2_frame_callback_ptr)(rs2_frame*, void*);
179 
180 typedef double rs2_time_t;
181 typedef long long rs2_metadata_type;
184 const char* rs2_get_failed_function (const rs2_error* error);
185 const char* rs2_get_failed_args (const rs2_error* error);
186 const char* rs2_get_error_message (const rs2_error* error);
187 void rs2_free_error (rs2_error* error);
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 #endif
Definition: rs_types.h:86
struct rs2_device_serializer rs2_device_serializer
Definition: rs_types.h:162
Definition: rs_types.hpp:25
Definition: rs_types.h:142
struct rs2_raw_data_buffer rs2_raw_data_buffer
Definition: rs_types.h:150
rs2_exception_type
Exception types are the different categories of errors that RealSense API might return.
Definition: rs_types.h:29
void rs2_free_error(rs2_error *error)
Definition: rs_types.h:99
Definition: rs_types.hpp:39
Definition: rs_types.h:47
void(* rs2_frame_processor_callback_ptr)(rs2_frame *, rs2_source *, void *)
Definition: rs_types.h:178
Definition: rs_types.h:105
struct rs2_frame_queue rs2_frame_queue
Definition: rs_types.h:152
rs2_distortion
Distortion model: defines how pixel coordinates should be mapped to sensor coordinates.
Definition: rs_types.h:44
Definition: rs_types.h:36
const char * rs2_distortion_to_string(rs2_distortion distortion)
struct rs2_pipeline rs2_pipeline
Definition: rs_types.h:153
struct rs2_context rs2_context
Definition: rs_types.h:167
struct rs2_device_info rs2_device_info
Definition: rs_types.h:147
Definition: rs_types.h:85
struct rs2_sensor_list rs2_sensor_list
Definition: rs_types.h:169
Definition: rs_types.h:107
Definition: rs_types.h:51
float data[3][4]
Definition: rs_types.h:75
Definition: rs_types.hpp:60
Definition: rs_types.h:50
float coeffs[5]
Definition: rs_types.h:65
Definition: rs_types.h:31
Definition: rs_types.h:119
const char * rs2_extension_to_string(rs2_extension type)
Definition: rs_types.h:103
Definition: rs_types.h:109
struct rs2_sensor rs2_sensor
Definition: rs_types.h:170
Definition: rs_types.hpp:46
Definition: rs_types.h:83
Definition: rs_types.h:115
float ppx
Definition: rs_types.h:60
const char * rs2_exception_type_to_string(rs2_exception_type type)
Definition: rs_types.h:96
Definition: rs_types.h:120
struct rs2_pipeline_profile rs2_pipeline_profile
Definition: rs_types.h:154
float noise_variances[3]
Definition: rs_types.h:77
struct rs2_config rs2_config
Definition: rs_types.h:155
struct rs2_notification rs2_notification
Definition: rs_types.h:173
Definition: rs_types.h:46
Definition: rs_types.h:39
Definition: rs_types.h:38
struct rs2_device_hub rs2_device_hub
Definition: rs_types.h:168
Definition: rs_types.h:129
Definition: rs_types.h:108
Definition: rs_types.h:102
Definition: rs_types.h:33
Definition: rs_types.hpp:32
Definition: rs_types.h:113
const char * rs2_get_error_message(const rs2_error *error)
rs2_matchers
Specifies types of different matchers.
Definition: rs_types.h:127
const char * rs2_extension_type_to_string(rs2_extension type)
Definition: rs_types.h:100
Definition: rs_types.h:49
Definition: rs_types.h:106
struct rs2_motion_device_intrinsic rs2_motion_device_intrinsic
Motion device intrinsics: scale, bias, and variances.
struct rs2_stream_profile_list rs2_stream_profile_list
Definition: rs_types.h:157
Definition: rs_types.h:114
void(* rs2_devices_changed_callback_ptr)(rs2_device_list *, rs2_device_list *, void *)
Definition: rs_types.h:176
int width
Definition: rs_types.h:58
struct rs2_stream_profile rs2_stream_profile
Definition: rs_types.h:158
Definition: rs_types.h:88
Definition: rs_types.h:110
rs2_exception_type rs2_get_librealsense_exception_type(const rs2_error *error)
struct rs2_options rs2_options
Definition: rs_types.h:171
struct rs2_syncer rs2_syncer
Definition: rs_types.h:161
Definition: rs_types.h:48
Definition: rs_types.h:101
struct rs2_source rs2_source
Definition: rs_types.h:163
Definition: rs_types.h:144
Definition: rs_types.h:87
Definition: rs_types.h:89
Definition: rs_types.h:121
Definition: rs_types.h:118
Definition: rs_types.h:104
Definition: rs_types.h:84
Definition: rs_types.h:24
struct rs2_intrinsics rs2_intrinsics
Video stream intrinsics.
rs2_distortion model
Definition: rs_types.h:64
struct rs2_processing_block rs2_processing_block
Definition: rs_types.h:164
Definition: rs_types.h:97
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: rs_types.h:94
rs2_notification_category
Category of the librealsense notifications.
Definition: rs_types.h:17
void(* rs2_notification_callback_ptr)(rs2_notification *, void *)
Definition: rs_types.h:175
long long rs2_metadata_type
Definition: rs_types.h:181
Definition: rs_types.h:111
float fy
Definition: rs_types.h:63
float fx
Definition: rs_types.h:62
Definition: rs_types.h:98
struct rs2_device rs2_device
Definition: rs_types.h:148
Video stream intrinsics.
Definition: rs_types.h:56
Motion device intrinsics: scale, bias, and variances.
Definition: rs_types.h:69
void(* rs2_frame_callback_ptr)(rs2_frame *, void *)
Definition: rs_types.h:177
int height
Definition: rs_types.h:59
Definition: rs_types.h:131
struct rs2_device_list rs2_device_list
Definition: rs_types.h:156
const char * rs2_notification_category_to_string(rs2_notification_category category)
const char * rs2_log_severity_to_string(rs2_log_severity info)
Definition: rs_types.hpp:53
Definition: rs_types.h:116
Definition: rs_types.h:117
struct rs2_error rs2_error
Definition: rs_types.h:149
double rs2_time_t
Definition: rs_types.h:180
rs2_log_severity
Severity of the librealsense logger.
Definition: rs_types.h:82
Definition: rs_types.h:139
Definition: rs_types.h:112
const char * rs2_get_failed_function(const rs2_error *error)
const char * rs2_get_failed_args(const rs2_error *error)
Definition: rs_types.h:135
float bias_variances[3]
Definition: rs_types.h:78
Definition: rs_types.h:34
struct rs2_frame rs2_frame
Definition: rs_types.h:151
float ppy
Definition: rs_types.h:61