Program Listing for File rs_processing.h

Return to documentation for file (/tmp/ws/src/librealsense2/include/librealsense2/h/rs_processing.h)

/* License: Apache 2.0. See LICENSE file in root directory.
   Copyright(c) 2017 Intel Corporation. All Rights Reserved. */

#ifndef LIBREALSENSE_RS2_PROCESSING_H
#define LIBREALSENSE_RS2_PROCESSING_H

#ifdef __cplusplus
extern "C" {
#endif

#include "rs_types.h"
#include "rs_sensor.h"
#include "rs_option.h"

rs2_processing_block* rs2_create_colorizer(rs2_error** error);

rs2_processing_block* rs2_create_sync_processing_block(rs2_error** error);

rs2_processing_block* rs2_create_pointcloud(rs2_error** error);

rs2_processing_block* rs2_create_yuy_decoder(rs2_error** error);

rs2_processing_block* rs2_create_y411_decoder(rs2_error** error);

rs2_processing_block* rs2_create_threshold(rs2_error** error);

rs2_processing_block* rs2_create_units_transform(rs2_error** error);

rs2_processing_block* rs2_create_processing_block(rs2_frame_processor_callback* proc, rs2_error** error);

rs2_processing_block* rs2_create_processing_block_fptr(rs2_frame_processor_callback_ptr proc, void * context, rs2_error** error);

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);

void rs2_start_processing(rs2_processing_block* block, rs2_frame_callback* on_frame, rs2_error** error);

void rs2_start_processing_fptr(rs2_processing_block* block, rs2_frame_callback_ptr on_frame, void* user, rs2_error** error);

void rs2_start_processing_queue(rs2_processing_block* block, rs2_frame_queue* queue, rs2_error** error);

void rs2_process_frame(rs2_processing_block* block, rs2_frame* frame, rs2_error** error);

void rs2_delete_processing_block(rs2_processing_block* block);

rs2_frame_queue* rs2_create_frame_queue(int capacity, rs2_error** error);

void rs2_delete_frame_queue(rs2_frame_queue* queue);

int rs2_frame_queue_size(rs2_frame_queue* queue, rs2_error** error);

rs2_frame* rs2_wait_for_frame(rs2_frame_queue* queue, unsigned int timeout_ms, rs2_error** error);

int rs2_poll_for_frame(rs2_frame_queue* queue, rs2_frame** output_frame, rs2_error** error);

int rs2_try_wait_for_frame(rs2_frame_queue* queue, unsigned int timeout_ms, rs2_frame** output_frame, rs2_error** error);

void rs2_enqueue_frame(rs2_frame* frame, void* queue);

rs2_processing_block* rs2_create_align(rs2_stream align_to, rs2_error** error);

rs2_processing_block* rs2_create_decimation_filter_block(rs2_error** error);

rs2_processing_block* rs2_create_temporal_filter_block(rs2_error** error);

rs2_processing_block* rs2_create_spatial_filter_block(rs2_error** error);

rs2_processing_block* rs2_create_disparity_transform_block(unsigned char transform_to_disparity, rs2_error** error);

rs2_processing_block* rs2_create_hole_filling_filter_block(rs2_error** error);

rs2_processing_block* rs2_create_rates_printer_block(rs2_error** error);

rs2_processing_block* rs2_create_zero_order_invalidation_block(rs2_error** error);

rs2_processing_block* rs2_create_huffman_depth_decompress_block(rs2_error** error);

rs2_processing_block* rs2_create_hdr_merge_processing_block(rs2_error** error);

rs2_processing_block* rs2_create_sequence_id_filter(rs2_error** error);

const char* rs2_get_processing_block_info(const rs2_processing_block* block, rs2_camera_info info, rs2_error** error);

int rs2_supports_processing_block_info(const rs2_processing_block* block, rs2_camera_info info, rs2_error** error);

int rs2_is_processing_block_extendable_to(const rs2_processing_block* block, rs2_extension extension_type, rs2_error** error);

#ifdef __cplusplus
}
#endif
#endif