Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
rs_config.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_CONFIG_H
11 #define LIBREALSENSE_RS2_CONFIG_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 #include "rs_sensor.h"
19 
32 
38  void rs2_delete_config(rs2_config* config);
39 
62  rs2_stream stream,
63  int index,
64  int width,
65  int height,
66  rs2_format format,
67  int framerate,
68  rs2_error** error);
69 
79  void rs2_config_enable_all_stream(rs2_config* config, rs2_error ** error);
80 
91  void rs2_config_enable_device(rs2_config* config, const char* serial, rs2_error ** error);
92 
104  void rs2_config_enable_device_from_file(rs2_config* config, const char* file, rs2_error ** error);
105 
118  void rs2_config_enable_device_from_file_repeat_option(rs2_config* config, const char* file, int repeat_playback, rs2_error ** error);
119 
128  void rs2_config_enable_record_to_file(rs2_config* config, const char* file, rs2_error ** error);
129 
130 
140  void rs2_config_disable_stream(rs2_config* config, rs2_stream stream, rs2_error ** error);
141 
152  void rs2_config_disable_indexed_stream(rs2_config* config, rs2_stream stream, int index, rs2_error ** error);
153 
162  void rs2_config_disable_all_streams(rs2_config* config, rs2_error ** error);
163 
183 
193  int rs2_config_can_resolve(rs2_config* config, rs2_pipeline* pipe, rs2_error ** error);
194 
195 #ifdef __cplusplus
196 }
197 #endif
198 #endif
void rs2_config_enable_stream(rs2_config *config, rs2_stream stream, int index, int width, int height, rs2_format format, int framerate, rs2_error **error)
rs2_pipeline_profile * rs2_config_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
void rs2_config_disable_indexed_stream(rs2_config *config, rs2_stream stream, int index, rs2_error **error)
struct rs2_pipeline rs2_pipeline
Definition: rs_types.h:201
rs2_config * rs2_create_config(rs2_error **error)
void rs2_config_enable_record_to_file(rs2_config *config, const char *file, rs2_error **error)
void rs2_config_enable_all_stream(rs2_config *config, rs2_error **error)
struct rs2_pipeline_profile rs2_pipeline_profile
Definition: rs_types.h:202
struct rs2_config rs2_config
Definition: rs_types.h:203
void rs2_config_disable_all_streams(rs2_config *config, rs2_error **error)
void rs2_config_enable_device_from_file(rs2_config *config, const char *file, rs2_error **error)
Exposes RealSense structs.
int rs2_config_can_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
Exposes RealSense sensor functionality for C compilers.
rs2_format
Format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:55
void rs2_config_enable_device_from_file_repeat_option(rs2_config *config, const char *file, int repeat_playback, rs2_error **error)
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:38
void rs2_delete_config(rs2_config *config)
void rs2_config_enable_device(rs2_config *config, const char *serial, rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:197
void rs2_config_disable_stream(rs2_config *config, rs2_stream stream, rs2_error **error)