Intel® RealSense™ Cross Platform API
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 
56  rs2_frame* rs2_pipeline_wait_for_frames(rs2_pipeline* pipe, unsigned int timeout_ms, rs2_error ** error);
57 
73  int rs2_pipeline_poll_for_frames(rs2_pipeline* pipe, rs2_frame** output_frame, rs2_error ** error);
74 
75 
82 
96 
97 
117 
129 
144 
153 
160 
173 
179  void rs2_delete_config(rs2_config* config);
180 
203  rs2_stream stream,
204  int index,
205  int width,
206  int height,
207  rs2_format format,
208  int framerate,
209  rs2_error** error);
210 
220  void rs2_config_enable_all_stream(rs2_config* config, rs2_error ** error);
221 
232  void rs2_config_enable_device(rs2_config* config, const char* serial, rs2_error ** error);
233 
244  void rs2_config_enable_device_from_file(rs2_config* config, const char* file, rs2_error ** error);
245 
254  void rs2_config_enable_record_to_file(rs2_config* config, const char* file, rs2_error ** error);
255 
256 
266  void rs2_config_disable_stream(rs2_config* config, rs2_stream stream, rs2_error ** error);
267 
278  void rs2_config_disable_indexed_stream(rs2_config* config, rs2_stream stream, int index, rs2_error ** error);
279 
288  void rs2_config_disable_all_streams(rs2_config* config, rs2_error ** error);
289 
309 
319  int rs2_config_can_resolve(rs2_config* config, rs2_pipeline* pipe, rs2_error ** error);
320 
321 #ifdef __cplusplus
322 }
323 #endif
324 #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:152
struct rs2_context rs2_context
Definition: rs_types.h:166
rs2_pipeline * rs2_create_pipeline(rs2_context *ctx, rs2_error **error)
Definition: api.h:18
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:153
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:154
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:156
Definition: api.h:34
rs2_format
Format identifies how binary data is encoded within a frame.
Definition: rs_sensor.h:52
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:36
rs2_pipeline_profile * rs2_pipeline_start_with_config(rs2_pipeline *pipe, rs2_config *config, rs2_error **error)
void rs2_pipeline_stop(rs2_pipeline *pipe, rs2_error **error)
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)
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:150