Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rs2::processing_block Class Reference

#include <rs_processing.hpp>

Inheritance diagram for rs2::processing_block:
Inheritance graph

Public Member Functions

rs2_processing_blockget () const
const char * get_info (rs2_camera_info info) const
void invoke (frame f) const
 operator rs2_options * () const
template<class S >
S & operator>> (S &on_frame)
 processing_block (std::shared_ptr< rs2_processing_block > block)
template<class S >
 processing_block (S processing_function)
template<class S >
void start (S on_frame)
bool supports (rs2_camera_info info) const
- Public Member Functions inherited from rs2::options
float get_option (rs2_option option) const
const char * get_option_description (rs2_option option) const
const char * get_option_name (rs2_option option) const
option_range get_option_range (rs2_option option) const
const char * get_option_value_description (rs2_option option, float val) const
std::vector< rs2_optionget_supported_options ()
bool is_option_read_only (rs2_option option) const
optionsoperator= (const options &other)
 options (const options &other)
void set_option (rs2_option option, float value) const
bool supports (rs2_option option) const
virtual ~options ()=default

Protected Member Functions

void register_simple_option (rs2_option option_id, option_range range)
- Protected Member Functions inherited from rs2::options
template<class T >
optionsoperator= (const T &dev)
 options (rs2_options *o=nullptr)

Protected Attributes

std::shared_ptr< rs2_processing_block_block

Detailed Description

Define the processing block flow, inherit this class to generate your own processing_block. Please refer to the viewer class in examples.hpp for a detailed usage example.

Definition at line 233 of file rs_processing.hpp.

Constructor & Destructor Documentation

rs2::processing_block::processing_block ( std::shared_ptr< rs2_processing_block block)

constructor with already created low level processing block assigned.

[in]block- low level rs2_processing_block created before.

Definition at line 281 of file rs_processing.hpp.

template<class S >
rs2::processing_block::processing_block ( processing_function)

constructor with callback function on_frame in rs2_frame_processor_callback structure assigned.

[in]processing_function- function pointer of on_frame function in rs2_frame_processor_callback structure, which will be called back by invoke function .

Definition at line 292 of file rs_processing.hpp.

Member Function Documentation

rs2_processing_block* rs2::processing_block::get ( ) const

Definition at line 303 of file rs_processing.hpp.

const char* rs2::processing_block::get_info ( rs2_camera_info  info) const

Retrieve camera specific information, like versions of various internal components.

[in]infocamera info type to retrieve
the requested camera info string, in a format specific to the processing_block model

Definition at line 323 of file rs_processing.hpp.

void rs2::processing_block::invoke ( frame  f) const

Ask processing block to process the frame

[in]on_frameframe to be processed.

Definition at line 267 of file rs_processing.hpp.

rs2::processing_block::operator rs2_options * ( ) const

Definition at line 302 of file rs_processing.hpp.

template<class S >
S& rs2::processing_block::operator>> ( S &  on_frame)

Does the same thing as "start" function

[in]on_frameaddress of callback function for noticing the frame to be processed is ready.
address of callback function.

Definition at line 257 of file rs_processing.hpp.

void rs2::processing_block::register_simple_option ( rs2_option  option_id,
option_range  range 

Definition at line 331 of file rs_processing.hpp.

template<class S >
void rs2::processing_block::start ( on_frame)

Start the processing block with callback function on_frame to inform the application the frame is processed.

[in]on_framecallback function for notifying the frame to be processed is ready.

Definition at line 244 of file rs_processing.hpp.

bool rs2::processing_block::supports ( rs2_camera_info  info) const

Check if a specific camera info field is supported.

[in]infothe parameter to check for support
true if the parameter both exists and well-defined for the specific processing_block

Definition at line 310 of file rs_processing.hpp.

Member Data Documentation

std::shared_ptr<rs2_processing_block> rs2::processing_block::_block

Definition at line 337 of file rs_processing.hpp.

The documentation for this class was generated from the following file:

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Sat Apr 3 2021 02:51:29