NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_processing.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_PROCESSING_H
11 #define LIBREALSENSE_RS2_PROCESSING_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "rs_types.h"
18 #include "rs_sensor.h"
19 #include "rs_option.h"
20 
29 
37 
44 
55 
63 
70 
79 
89 
102 int rs2_processing_block_register_simple_option(rs2_processing_block* block, rs2_option option_id, float min, float max, float step, float def, rs2_error** error);
103 
111 
119 void rs2_start_processing_fptr(rs2_processing_block* block, rs2_frame_callback_ptr on_frame, void* user, rs2_error** error);
120 
128 
135 void rs2_process_frame(rs2_processing_block* block, rs2_frame* frame, rs2_error** error);
136 
142 
150 rs2_frame_queue* rs2_create_frame_queue(int capacity, rs2_error** error);
151 
157 
165 rs2_frame* rs2_wait_for_frame(rs2_frame_queue* queue, unsigned int timeout_ms, rs2_error** error);
166 
174 int rs2_poll_for_frame(rs2_frame_queue* queue, rs2_frame** output_frame, rs2_error** error);
175 
184 int rs2_try_wait_for_frame(rs2_frame_queue* queue, unsigned int timeout_ms, rs2_frame** output_frame, rs2_error** error);
185 
191 void rs2_enqueue_frame(rs2_frame* frame, void* queue);
192 
199 
206 
212 
218 
224 rs2_processing_block* rs2_create_disparity_transform_block(unsigned char transform_to_disparity, rs2_error** error);
225 
231 
238 
245 
253 
260 
267 
275 const char* rs2_get_processing_block_info(const rs2_processing_block* block, rs2_camera_info info, rs2_error** error);
276 
285 
293 int rs2_is_processing_block_extendable_to(const rs2_processing_block* block, rs2_extension extension_type, rs2_error** error);
294 
295 #ifdef __cplusplus
296 }
297 #endif
298 #endif
rs2_delete_frame_queue
void rs2_delete_frame_queue(rs2_frame_queue *queue)
deletes frame queue and releases all frames inside it
rs2_extension
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:166
rs2_create_colorizer
rs2_processing_block * rs2_create_colorizer(rs2_error **error)
Creates Depth-Colorizer processing block that can be used to quickly visualize the depth data This bl...
rs2_get_processing_block_info
const char * rs2_get_processing_block_info(const rs2_processing_block *block, rs2_camera_info info, rs2_error **error)
Retrieve processing block specific information, like name.
rs2_create_pointcloud
rs2_processing_block * rs2_create_pointcloud(rs2_error **error)
Creates Point-Cloud processing block.
rs2_create_huffman_depth_decompress_block
rs2_processing_block * rs2_create_huffman_depth_decompress_block(rs2_error **error)
Creates Depth frame decompression module.
rs2_poll_for_frame
int rs2_poll_for_frame(rs2_frame_queue *queue, rs2_frame **output_frame, rs2_error **error)
poll if a new frame is available and dequeue if it is
rs2_processing_block_register_simple_option
int rs2_processing_block_register_simple_option(rs2_processing_block *block, rs2_option option_id, float min, float max, float step, float def, rs2_error **error)
This method adds a custom option to a custom processing block.
rs2_processing_block
struct rs2_processing_block rs2_processing_block
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:275
rs2_create_threshold
rs2_processing_block * rs2_create_threshold(rs2_error **error)
Creates depth thresholding processing block By controlling min and max options on the block,...
rs2_camera_info
rs2_camera_info
Read-only strings that can be queried from the device.
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_sensor.h:22
rs2_process_frame
void rs2_process_frame(rs2_processing_block *block, rs2_frame *frame, rs2_error **error)
This method is used to pass frame into a processing block.
context
Definition: includes/opentelemetry/context/context.h:16
rs2_create_frame_queue
rs2_frame_queue * rs2_create_frame_queue(int capacity, rs2_error **error)
create frame queue.
rs2_wait_for_frame
rs2_frame * rs2_wait_for_frame(rs2_frame_queue *queue, unsigned int timeout_ms, rs2_error **error)
wait until new frame becomes available in the queue and dequeue it
rs2_create_spatial_filter_block
rs2_processing_block * rs2_create_spatial_filter_block(rs2_error **error)
Creates Depth post-processing spatial filter block.
rs2_delete_processing_block
void rs2_delete_processing_block(rs2_processing_block *block)
Deletes the processing block.
rs2_create_sequence_id_filter
rs2_processing_block * rs2_create_sequence_id_filter(rs2_error **error)
Creates a sequence_id_filter processing block.
rs2_create_units_transform
rs2_processing_block * rs2_create_units_transform(rs2_error **error)
Creates depth units transformation processing block All of the pixels are transformed from depth unit...
rs2_frame_processor_callback_ptr
void(* rs2_frame_processor_callback_ptr)(rs2_frame *, rs2_source *, void *)
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:297
rs2_frame_processor_callback
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_types.hpp:32
rs2_create_disparity_transform_block
rs2_processing_block * rs2_create_disparity_transform_block(unsigned char transform_to_disparity, rs2_error **error)
Creates a post processing block that provides for depth<->disparity domain transformation for stereo-...
rs2_frame_queue
struct rs2_frame_queue rs2_frame_queue
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:262
max
int max(int a, int b)
Compute the component-wise maximum.
Definition: sources/libs/nvmultiobjecttracker/include/modules/cuDCFv2/helper_math.h:60
rs2_try_wait_for_frame
int rs2_try_wait_for_frame(rs2_frame_queue *queue, unsigned int timeout_ms, rs2_frame **output_frame, rs2_error **error)
wait until new frame becomes available in the queue and dequeue it
rs2_create_processing_block_fptr
rs2_processing_block * rs2_create_processing_block_fptr(rs2_frame_processor_callback_ptr proc, void *context, rs2_error **error)
This method creates new custom processing block from function pointer.
rs2_frame
struct rs2_frame rs2_frame
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:261
rs2_create_decimation_filter_block
rs2_processing_block * rs2_create_decimation_filter_block(rs2_error **error)
Creates Depth post-processing filter block.
rs2_create_yuy_decoder
rs2_processing_block * rs2_create_yuy_decoder(rs2_error **error)
Creates YUY decoder processing block.
rs2_create_processing_block
rs2_processing_block * rs2_create_processing_block(rs2_frame_processor_callback *proc, rs2_error **error)
This method creates new custom processing block.
rs2_is_processing_block_extendable_to
int rs2_is_processing_block_extendable_to(const rs2_processing_block *block, rs2_extension extension_type, rs2_error **error)
Test if the given processing block can be extended to the requested extension.
rs2_create_hdr_merge_processing_block
rs2_processing_block * rs2_create_hdr_merge_processing_block(rs2_error **error)
Creates a hdr_merge processing block.
rs2_option
rs2_option
Defines general configuration controls.
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_option.h:22
rs2_create_temporal_filter_block
rs2_processing_block * rs2_create_temporal_filter_block(rs2_error **error)
Creates Depth post-processing filter block.
min
int min(int a, int b)
Compute the component-wise minimum.
Definition: sources/libs/nvmultiobjecttracker/include/modules/cuDCFv2/helper_math.h:70
rs2_supports_processing_block_info
int rs2_supports_processing_block_info(const rs2_processing_block *block, rs2_camera_info info, rs2_error **error)
Check if a processing block supports a specific info type.
rs2_enqueue_frame
void rs2_enqueue_frame(rs2_frame *frame, void *queue)
enqueue new frame into a queue
rs_types.h
Exposes RealSense structs.
rs2_start_processing
void rs2_start_processing(rs2_processing_block *block, rs2_frame_callback *on_frame, rs2_error **error)
This method is used to direct the output from the processing block to some callback or sink object.
rs2_frame_callback_ptr
void(* rs2_frame_callback_ptr)(rs2_frame *, void *)
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:296
rs2_start_processing_queue
void rs2_start_processing_queue(rs2_processing_block *block, rs2_frame_queue *queue, rs2_error **error)
This method is used to direct the output from the processing block to a dedicated queue object.
rs_sensor.h
Exposes RealSense sensor functionality for C compilers.
rs2_start_processing_fptr
void rs2_start_processing_fptr(rs2_processing_block *block, rs2_frame_callback_ptr on_frame, void *user, rs2_error **error)
This method is used to direct the output from the processing block to some callback or sink object.
rs2_create_align
rs2_processing_block * rs2_create_align(rs2_stream align_to, rs2_error **error)
Creates Align processing block.
rs2_create_zero_order_invalidation_block
rs2_processing_block * rs2_create_zero_order_invalidation_block(rs2_error **error)
Creates Depth post-processing zero order fix block.
rs2_create_rates_printer_block
rs2_processing_block * rs2_create_rates_printer_block(rs2_error **error)
Creates a rates printer block.
rs2_create_sync_processing_block
rs2_processing_block * rs2_create_sync_processing_block(rs2_error **error)
Creates Sync processing block.
rs_option.h
Exposes sensor options functionality for C compilers.
rs2_stream
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_sensor.h:42
rs2_create_hole_filling_filter_block
rs2_processing_block * rs2_create_hole_filling_filter_block(rs2_error **error)
Creates Depth post-processing hole filling block.
rs2_frame_callback
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_types.hpp:25
rs2_error
struct rs2_error rs2_error
Definition: sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/h/rs_types.h:258