rs_option.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_OPTION_H
11 #define LIBREALSENSE_RS2_OPTION_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 
22  typedef enum rs2_option
23  {
113  } rs2_option;
114 
115  // This function is being deprecated. For existing options it will return option name, but for future API additions the user should call rs2_get_option_name instead.
116  const char* rs2_option_to_string(rs2_option option);
117 
120  {
134  const char* rs2_sr300_visual_preset_to_string(rs2_sr300_visual_preset preset);
135 
138  {
148  const char* rs2_rs400_visual_preset_to_string(rs2_rs400_visual_preset preset);
149 
152  {
162  const char* rs2_l500_visual_preset_to_string(rs2_l500_visual_preset preset);
163 
165  typedef enum rs2_sensor_mode
166  {
171  } rs2_sensor_mode;
172  const char* rs2_sensor_mode_to_string(rs2_sensor_mode preset);
173 
175  typedef enum rs2_ambient_light
176  {
181 
183  typedef enum rs2_digital_gain
184  {
189  const char* rs2_digital_gain_to_string(rs2_digital_gain preset);
190 
192  typedef enum rs2_cah_trigger
193  {
198  } rs2_cah_trigger;
199  const char* rs2_cah_trigger_to_string( rs2_cah_trigger preset );
200 
202  typedef enum rs2_host_perf_mode
203  {
209  const char* rs2_host_perf_mode_to_string( rs2_host_perf_mode perf );
210 
218  int rs2_is_option_read_only(const rs2_options* options, rs2_option option, rs2_error** error);
219 
227  float rs2_get_option(const rs2_options* options, rs2_option option, rs2_error** error);
228 
236  void rs2_set_option(const rs2_options* options, rs2_option option, float value, rs2_error** error);
237 
244 
251 
259  const char* rs2_get_option_name(const rs2_options* options, rs2_option option, rs2_error** error);
260 
266  rs2_option rs2_get_option_from_list(const rs2_options_list* options, int i, rs2_error** error);
267 
273 
281  int rs2_supports_option(const rs2_options* options, rs2_option option, rs2_error** error);
282 
293  void rs2_get_option_range(const rs2_options* sensor, rs2_option option, float* min, float* max, float* step, float* def, rs2_error** error);
294 
302  const char* rs2_get_option_description(const rs2_options* options, rs2_option option, rs2_error ** error);
303 
312  const char* rs2_get_option_value_description(const rs2_options* options, rs2_option option, float value, rs2_error ** error);
313 
314 #ifdef __cplusplus
315 }
316 #endif
317 #endif
const char * rs2_sensor_mode_to_string(rs2_sensor_mode preset)
Definition: rs.cpp:1279
float rs2_get_option(const rs2_options *options, rs2_option option, rs2_error **error)
Definition: rs.cpp:628
const char * rs2_host_perf_mode_to_string(rs2_host_perf_mode perf)
Definition: rs.cpp:1285
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
Definition: rs_option.h:22
rs2_sr300_visual_preset
For SR300 devices: provides optimized settings (presets) for specific types of usage.
Definition: rs_option.h:119
const char * rs2_option_to_string(rs2_option option)
Definition: rs.cpp:1265
GLfloat value
rs2_host_perf_mode
values for RS2_OPTION_HOST_PERFORMANCE option.
Definition: rs_option.h:202
const char * rs2_sr300_visual_preset_to_string(rs2_sr300_visual_preset preset)
Definition: rs.cpp:1270
rs2_cah_trigger
values for RS2_OPTION_TRIGGER_CAMERA_ACCURACY_HEALTH option.
Definition: rs_option.h:192
const char * rs2_digital_gain_to_string(rs2_digital_gain preset)
Definition: rs.cpp:1281
int rs2_supports_option(const rs2_options *options, rs2_option option, rs2_error **error)
Definition: rs.cpp:679
Definition: getopt.h:41
const char * rs2_get_option_name(const rs2_options *options, rs2_option option, rs2_error **error)
Definition: rs.cpp:651
Exposes RealSense structs.
const char * rs2_get_option_value_description(const rs2_options *options, rs2_option option, float value, rs2_error **error)
Definition: rs.cpp:1022
void rs2_get_option_range(const rs2_options *sensor, rs2_option option, float *min, float *max, float *step, float *def, rs2_error **error)
Definition: rs.cpp:686
rs2_options_list * rs2_get_options_list(const rs2_options *options, rs2_error **error)
Definition: rs.cpp:644
rs2_sensor_mode
For setting the camera_mode option.
Definition: rs_option.h:165
const char * rs2_cah_trigger_to_string(rs2_cah_trigger preset)
Definition: rs.cpp:1282
int min(int a, int b)
Definition: lz4s.c:73
rs2_rs400_visual_preset
For RS400 devices: provides optimized settings (presets) for specific types of usage.
Definition: rs_option.h:137
const char * rs2_get_option_description(const rs2_options *options, rs2_option option, rs2_error **error)
Definition: rs.cpp:1007
rs2_ambient_light
DEPRECATED! - Use RS2_OPTION_DIGITAL_GAIN instead.
Definition: rs_option.h:175
int rs2_is_option_read_only(const rs2_options *options, rs2_option option, rs2_error **error)
Definition: rs.cpp:621
rs2_digital_gain
digital gain for RS2_OPTION_DIGITAL_GAIN option.
Definition: rs_option.h:183
int i
const char * rs2_rs400_visual_preset_to_string(rs2_rs400_visual_preset preset)
void rs2_set_option(const rs2_options *options, rs2_option option, float value, rs2_error **error)
Definition: rs.cpp:636
void rs2_delete_options_list(rs2_options_list *list)
Definition: rs.cpp:672
const char * rs2_l500_visual_preset_to_string(rs2_l500_visual_preset preset)
Definition: rs.cpp:1278
rs2_option rs2_get_option_from_list(const rs2_options_list *options, int i, rs2_error **error)
Definition: rs.cpp:665
const char * rs2_ambient_light_to_string(rs2_ambient_light preset)
Definition: rs.cpp:1280
int rs2_get_options_list_size(const rs2_options_list *options, rs2_error **error)
Definition: rs.cpp:658
rs2_l500_visual_preset
For L500 devices: provides optimized settings (presets) for specific types of usage.
Definition: rs_option.h:151


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:40