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

#include <rs_processing.hpp>

Inheritance diagram for rs2::filter:
Inheritance graph

Public Member Functions

template<class T >
as () const
 filter (std::shared_ptr< rs2_processing_block > block, int queue_size=1)
template<class S >
 filter (S processing_function, int queue_size=1)
rs2_processing_blockget () const
frame_queue get_queue ()
template<class T >
bool is () const
 operator bool () const
rs2::frame process (rs2::frame frame) const override
- Public Member Functions inherited from rs2::processing_block
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
- Public Member Functions inherited from rs2::filter_interface
virtual ~filter_interface ()=default

Protected Attributes

frame_queue _queue
- Protected Attributes inherited from rs2::processing_block
std::shared_ptr< rs2_processing_block_block

Additional Inherited Members

- Protected Member Functions inherited from rs2::processing_block
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)

Detailed Description

Define the filter workflow, inherit this class to generate your own filter. Refer to the viewer class in examples.hpp for a more detailed example.

Definition at line 343 of file rs_processing.hpp.

Constructor & Destructor Documentation

rs2::filter::filter ( std::shared_ptr< rs2_processing_block block,
int  queue_size = 1 

constructor with already created low level processing block assigned.

[in]block- low level rs2_processing_block created before.

Definition at line 366 of file rs_processing.hpp.

template<class S >
rs2::filter::filter ( processing_function,
int  queue_size = 1 

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 379 of file rs_processing.hpp.

Member Function Documentation

template<class T >
T rs2::filter::as ( ) const

Definition at line 398 of file rs_processing.hpp.

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

Definition at line 388 of file rs_processing.hpp.

frame_queue rs2::filter::get_queue ( )

Definition at line 387 of file rs_processing.hpp.

template<class T >
bool rs2::filter::is ( ) const

Definition at line 391 of file rs_processing.hpp.

rs2::filter::operator bool ( ) const

Definition at line 404 of file rs_processing.hpp.

rs2::frame rs2::filter::process ( rs2::frame  frame) const

Ask processing block to process the frame and poll the processed frame from internal queue

[in]on_frameframe to be processed. return processed frame

Implements rs2::filter_interface.

Definition at line 352 of file rs_processing.hpp.

Member Data Documentation

frame_queue rs2::filter::_queue

Definition at line 406 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 Mon May 3 2021 02:50:40