Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
rs_pipeline.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_PIPELINE_H
11 #define LIBREALSENSE_RS2_PIPELINE_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 #include "rs_sensor.h"
19 
32 
41  void rs2_pipeline_stop(rs2_pipeline* pipe, rs2_error ** error);
42 
57  rs2_frame* rs2_pipeline_wait_for_frames(rs2_pipeline* pipe, unsigned int timeout_ms, rs2_error ** error);
58 
74  int rs2_pipeline_poll_for_frames(rs2_pipeline* pipe, rs2_frame** output_frame, rs2_error ** error);
75 
76 
83 
97 
98 
118 
130 
145 
154 
161 
174 
180  void rs2_delete_config(rs2_config* config);
181 
204  rs2_stream stream,
205  int index,
206  int width,
207  int height,
208  rs2_format format,
209  int framerate,
210  rs2_error** error);
211 
221  void rs2_config_enable_all_stream(rs2_config* config, rs2_error ** error);
222 
233  void rs2_config_enable_device(rs2_config* config, const char* serial, rs2_error ** error);
234 
246  void rs2_config_enable_device_from_file(rs2_config* config, const char* file, rs2_error ** error);
247 
260  void rs2_config_enable_device_from_file_repeat_option(rs2_config* config, const char* file, int repeat_playback, rs2_error ** error);
261 
270  void rs2_config_enable_record_to_file(rs2_config* config, const char* file, rs2_error ** error);
271 
272 
282  void rs2_config_disable_stream(rs2_config* config, rs2_stream stream, rs2_error ** error);
283 
294  void rs2_config_disable_indexed_stream(rs2_config* config, rs2_stream stream, int index, rs2_error ** error);
295 
304  void rs2_config_disable_all_streams(rs2_config* config, rs2_error ** error);
305 
325 
335  int rs2_config_can_resolve(rs2_config* config, rs2_pipeline* pipe, rs2_error ** error);
336 
337 #ifdef __cplusplus
338 }
339 #endif
340 #endif
int rs2_pipeline_poll_for_frames(rs2_pipeline *pipe, rs2_frame **output_frame, rs2_error **error)
void rs2_config_enable_device(rs2_config *config, const char *serial, rs2_error **error)
void rs2_config_disable_stream(rs2_config *config, rs2_stream stream, rs2_error **error)
void rs2_config_enable_device_from_file(rs2_config *config, const char *file, rs2_error **error)
rs2_pipeline_profile * rs2_pipeline_start(rs2_pipeline *pipe, rs2_error **error)
void rs2_config_enable_all_stream(rs2_config *config, rs2_error **error)
struct rs2_pipeline rs2_pipeline
Definition: rs_types.h:153
struct rs2_context rs2_context
Definition: rs_types.h:167
rs2_pipeline * rs2_create_pipeline(rs2_context *ctx, rs2_error **error)
rs2_pipeline_profile * rs2_pipeline_get_active_profile(rs2_pipeline *pipe, rs2_error **error)
void rs2_delete_config(rs2_config *config)
rs2_device * rs2_pipeline_profile_get_device(rs2_pipeline_profile *profile, rs2_error **error)
rs2_pipeline_profile * rs2_config_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
struct rs2_pipeline_profile rs2_pipeline_profile
Definition: rs_types.h:154
rs2_stream_profile_list * rs2_pipeline_profile_get_streams(rs2_pipeline_profile *profile, rs2_error **error)
rs2_frame * rs2_pipeline_wait_for_frames(rs2_pipeline *pipe, unsigned int timeout_ms, rs2_error **error)
struct rs2_config rs2_config
Definition: rs_types.h:155
Exposes RealSense structs.
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)
struct rs2_stream_profile_list rs2_stream_profile_list
Definition: rs_types.h:157
Exposes RealSense sensor functionality for C compilers.
rs2_format
Format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:55
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:38
rs2_pipeline_profile * rs2_pipeline_start_with_config(rs2_pipeline *pipe, rs2_config *config, rs2_error **error)
void rs2_config_enable_device_from_file_repeat_option(rs2_config *config, const char *file, int repeat_playback, rs2_error **error)
void rs2_pipeline_stop(rs2_pipeline *pipe, rs2_error **error)
struct rs2_device rs2_device
Definition: rs_types.h:148
void rs2_config_disable_indexed_stream(rs2_config *config, rs2_stream stream, int index, rs2_error **error)
void rs2_config_enable_record_to_file(rs2_config *config, const char *file, rs2_error **error)
void rs2_config_disable_all_streams(rs2_config *config, rs2_error **error)
rs2_config * rs2_create_config(rs2_error **error)
struct rs2_error rs2_error
Definition: rs_types.h:149
int rs2_config_can_resolve(rs2_config *config, rs2_pipeline *pipe, rs2_error **error)
void rs2_delete_pipeline_profile(rs2_pipeline_profile *profile)
void rs2_delete_pipeline(rs2_pipeline *pipe)
struct rs2_frame rs2_frame
Definition: rs_types.h:151