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

#include <align.h>

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

Public Member Functions

 align (rs2_stream to_stream)
 
- 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

 align (rs2_stream to_stream, const char *name)
 
virtual void align_other_to_z (rs2::video_frame &aligned, const rs2::video_frame &depth, const rs2::video_frame &other, float z_scale)
 
virtual void align_z_to_other (rs2::video_frame &aligned, const rs2::video_frame &depth, const rs2::video_stream_profile &other_profile, float z_scale)
 
std::shared_ptr< rs2::video_stream_profilecreate_aligned_profile (rs2::video_stream_profile &original_profile, rs2::video_stream_profile &to_profile)
 
rs2::frame process_frame (const rs2::frame_source &source, const rs2::frame &f) override
 
virtual void reset_cache (rs2_stream from, rs2_stream to)
 
virtual rs2_extension select_extension (const rs2::frame &input)
 
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)
 

Protected Attributes

std::map< std::pair< stream_profile_interface *, stream_profile_interface * >, std::shared_ptr< rs2::video_stream_profile > > _align_stream_unique_ids
 
float _depth_scale
 
rs2::stream_profile _source_stream_profile
 
rs2_stream _to_stream_type
 
- 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&) {}
 

Private Member Functions

void align_frames (rs2::video_frame &aligned, const rs2::video_frame &from, const rs2::video_frame &to)
 
rs2::video_frame allocate_aligned_frame (const rs2::frame_source &source, const rs2::video_frame &from, const rs2::video_frame &to)
 

Detailed Description

Definition at line 15 of file align.h.

Constructor & Destructor Documentation

librealsense::align::align ( rs2_stream  to_stream)

Definition at line 64 of file align.cpp.

librealsense::align::align ( rs2_stream  to_stream,
const char *  name 
)
inlineprotected

Definition at line 21 of file align.h.

Member Function Documentation

void librealsense::align::align_frames ( rs2::video_frame aligned,
const rs2::video_frame from,
const rs2::video_frame to 
)
private

Definition at line 233 of file align.cpp.

void librealsense::align::align_other_to_z ( rs2::video_frame aligned,
const rs2::video_frame depth,
const rs2::video_frame other,
float  z_scale 
)
protectedvirtual

Reimplemented in librealsense::gl::align_gl.

Definition at line 127 of file align.cpp.

void librealsense::align::align_z_to_other ( rs2::video_frame aligned,
const rs2::video_frame depth,
const rs2::video_stream_profile other_profile,
float  z_scale 
)
protectedvirtual

Reimplemented in librealsense::gl::align_gl.

Definition at line 67 of file align.cpp.

rs2::video_frame librealsense::align::allocate_aligned_frame ( const rs2::frame_source source,
const rs2::video_frame from,
const rs2::video_frame to 
)
private

Definition at line 210 of file align.cpp.

std::shared_ptr< rs2::video_stream_profile > librealsense::align::create_aligned_profile ( rs2::video_stream_profile original_profile,
rs2::video_stream_profile to_profile 
)
protected

Definition at line 147 of file align.cpp.

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

Implements librealsense::generic_processing_block.

Definition at line 250 of file align.cpp.

virtual void librealsense::align::reset_cache ( rs2_stream  from,
rs2_stream  to 
)
inlineprotectedvirtual

Definition at line 29 of file align.h.

rs2_extension librealsense::align::select_extension ( const rs2::frame input)
protectedvirtual

Reimplemented in librealsense::gl::align_gl.

Definition at line 204 of file align.cpp.

bool librealsense::align::should_process ( const rs2::frame frame)
overrideprotectedvirtual

Implements librealsense::generic_processing_block.

Definition at line 179 of file align.cpp.

Member Data Documentation

std::map<std::pair<stream_profile_interface*, stream_profile_interface*>, std::shared_ptr<rs2::video_stream_profile> > librealsense::align::_align_stream_unique_ids
protected

Definition at line 48 of file align.h.

float librealsense::align::_depth_scale
protected

Definition at line 50 of file align.h.

rs2::stream_profile librealsense::align::_source_stream_profile
protected

Definition at line 49 of file align.h.

rs2_stream librealsense::align::_to_stream_type
protected

Definition at line 47 of file align.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