Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::decimation_filter Class Reference

#include <decimation-filter.h>

Inheritance diagram for librealsense::decimation_filter:
Inheritance graph
[legend]

Public Member Functions

 decimation_filter ()
 
- Public Member Functions inherited from librealsense::stream_filter_processing_block
 stream_filter_processing_block (const char *name)
 
virtual ~stream_filter_processing_block ()
 
- Public Member Functions inherited from librealsense::generic_processing_block
 generic_processing_block (const char *name)
 
virtual ~generic_processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block
synthetic_source_interfaceget_source () override
 
void invoke (frame_holder frames) override
 
 processing_block (const char *name)
 
void set_output_callback (frame_callback_ptr callback) override
 
void set_processing_callback (frame_processor_callback_ptr callback) override
 
virtual ~processing_block ()
 
- Public Member Functions inherited from librealsense::processing_block_interface
virtual ~processing_block_interface ()=default
 
- Public Member Functions inherited from librealsense::options_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::options_container
void create_snapshot (std::shared_ptr< options_interface > &snapshot) const override
 
void enable_recording (std::function< void(const options_interface &)> record_action) override
 
optionget_option (rs2_option id) override
 
const optionget_option (rs2_option id) const override
 
std::shared_ptr< optionget_option_handler (rs2_option id)
 
std::shared_ptr< optionget_option_handler (rs2_option id) const
 
virtual const char * get_option_name (rs2_option option) const override
 
std::vector< rs2_optionget_supported_options () const override
 
void register_option (rs2_option id, std::shared_ptr< option > option)
 
bool supports_option (rs2_option id) const override
 
void unregister_option (rs2_option id)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
const std::stringget_info (rs2_camera_info info) const override
 
void register_info (rs2_camera_info info, const std::string &val)
 
bool supports_info (rs2_camera_info info) const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 

Protected Member Functions

void decimate_depth (const uint16_t *frame_data_in, uint16_t *frame_data_out, size_t width_in, size_t height_in, size_t scale)
 
void decimate_others (rs2_format format, const void *frame_data_in, void *frame_data_out, size_t width_in, size_t height_in, size_t scale)
 
rs2::frame prepare_target_frame (const rs2::frame &f, const rs2::frame_source &source, rs2_extension tgt_type)
 
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
 
- Protected Member Functions inherited from librealsense::stream_filter_processing_block
bool should_process (const rs2::frame &frame) override
 
- Protected Member Functions inherited from librealsense::generic_processing_block
virtual rs2::frame prepare_output (const rs2::frame_source &source, rs2::frame input, std::vector< rs2::frame > results)
 

Private Member Functions

void update_output_profile (const rs2::frame &f)
 

Private Attributes

uint8_t _control_val
 
uint8_t _decimation_factor
 
uint8_t _kernel_size
 
bool _options_changed
 
uint16_t _padded_height
 
uint16_t _padded_width
 
uint8_t _patch_size
 
uint16_t _real_height
 
uint16_t _real_width
 
bool _recalc_profile
 
std::map< std::tuple< const rs2_stream_profile *, uint8_t >, rs2::stream_profile_registered_profiles
 
rs2::stream_profile _source_stream_profile
 
rs2::stream_profile _target_stream_profile
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::stream_filter_processing_block
stream_filter _stream_filter
 
- Protected Attributes inherited from librealsense::processing_block
frame_processor_callback_ptr _callback
 
std::mutex _mutex
 
frame_source _source
 
synthetic_source _source_wrapper
 
- Protected Attributes inherited from librealsense::options_container
std::map< rs2_option, std::shared_ptr< option > > _options
 
std::function< void(const options_interface &)> _recording_function = [](const options_interface&) {}
 

Detailed Description

Definition at line 13 of file decimation-filter.h.

Constructor & Destructor Documentation

librealsense::decimation_filter::decimation_filter ( )

Definition at line 202 of file decimation-filter.cpp.

Member Function Documentation

void librealsense::decimation_filter::decimate_depth ( const uint16_t frame_data_in,
uint16_t frame_data_out,
size_t  width_in,
size_t  height_in,
size_t  scale 
)
protected

Definition at line 357 of file decimation-filter.cpp.

void librealsense::decimation_filter::decimate_others ( rs2_format  format,
const void frame_data_in,
void frame_data_out,
size_t  width_in,
size_t  height_in,
size_t  scale 
)
protected

Definition at line 488 of file decimation-filter.cpp.

rs2::frame librealsense::decimation_filter::prepare_target_frame ( const rs2::frame f,
const rs2::frame_source source,
rs2_extension  tgt_type 
)
protected

Definition at line 344 of file decimation-filter.cpp.

rs2::frame librealsense::decimation_filter::process_frame ( const rs2::frame_source source,
const rs2::frame f 
)
overrideprotectedvirtual

Implements librealsense::generic_processing_block.

Definition at line 244 of file decimation-filter.cpp.

void librealsense::decimation_filter::update_output_profile ( const rs2::frame f)
private

Definition at line 278 of file decimation-filter.cpp.

Member Data Documentation

uint8_t librealsense::decimation_filter::_control_val
private

Definition at line 32 of file decimation-filter.h.

uint8_t librealsense::decimation_filter::_decimation_factor
private

Definition at line 31 of file decimation-filter.h.

uint8_t librealsense::decimation_filter::_kernel_size
private

Definition at line 34 of file decimation-filter.h.

bool librealsense::decimation_filter::_options_changed
private

Definition at line 43 of file decimation-filter.h.

uint16_t librealsense::decimation_filter::_padded_height
private

Definition at line 41 of file decimation-filter.h.

uint16_t librealsense::decimation_filter::_padded_width
private

Definition at line 40 of file decimation-filter.h.

uint8_t librealsense::decimation_filter::_patch_size
private

Definition at line 33 of file decimation-filter.h.

uint16_t librealsense::decimation_filter::_real_height
private

Definition at line 39 of file decimation-filter.h.

uint16_t librealsense::decimation_filter::_real_width
private

Definition at line 38 of file decimation-filter.h.

bool librealsense::decimation_filter::_recalc_profile
private

Definition at line 42 of file decimation-filter.h.

std::map<std::tuple<const rs2_stream_profile*, uint8_t>, rs2::stream_profile> librealsense::decimation_filter::_registered_profiles
private

Definition at line 37 of file decimation-filter.h.

rs2::stream_profile librealsense::decimation_filter::_source_stream_profile
private

Definition at line 35 of file decimation-filter.h.

rs2::stream_profile librealsense::decimation_filter::_target_stream_profile
private

Definition at line 36 of file decimation-filter.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37