9 #include "../include/librealsense2/hpp/rs_frame.hpp" 10 #include "../include/librealsense2/hpp/rs_processing.hpp" 100 if (index != -1 && index != other.
index)
107 if (stream != other.
stream)
109 if (format != other.
format)
111 if (index != other.
index)
118 return !(*
this == other);
148 virtual void init_profiles_info(
const rs2::frame*
f);
178 void configure_processing_callback();
190 int _left_target_bpp = 0;
191 int _right_target_bpp = 0;
192 int _left_target_profile_idx = 1;
193 int _right_target_profile_idx = 2;
216 : _parent(parent), _opt(opt) {}
223 for (
size_t i = 0;
i < _parent->_processing_blocks.size();
i++)
225 if (_parent->_processing_blocks[
i]->supports_option(_opt))
227 _parent->_processing_blocks[
i]->get_option(_opt).set(
value);
239 option&
get() {
return _parent->get(_opt).get_option(_opt); }
240 const option&
get()
const {
return _parent->get(_opt).get_option(_opt); }
251 void add(std::shared_ptr<processing_block> block);
281 std::shared_ptr<librealsense::processing_block_interface>
block;
frame_source & _actual_source
rs2::stream_profile _source_stream_profile
rs2_processing_block(std::shared_ptr< librealsense::processing_block_interface > block)
std::vector< rs2_option > list
composite_processing_block * _parent
const char * get_description() const override
synthetic_source(frame_source &actual)
GLuint const GLchar * name
virtual ~stream_filter_processing_block()
bool match(const stream_filter &other)
std::vector< std::shared_ptr< processing_block > > _processing_blocks
bool operator==(const stream_filter &other)
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
frame_interface * allocate_motion_frame(std::shared_ptr< stream_profile_interface > stream, frame_interface *original, rs2_extension frame_type=RS2_EXTENSION_MOTION_FRAME) override
std::shared_ptr< librealsense::processing_block_interface > block
stream_filter(rs2_stream s, rs2_format f, int i)
std::shared_ptr< rs2_frame_callback > frame_callback_ptr
rs2_stream _left_target_stream
virtual ~composite_processing_block()
std::shared_ptr< stream_profile_interface > _left_target_stream_profile
stream_profile get_profile() const
bool operator!=(const stream_filter &other)
rs2_format _target_format
#define LRS_EXTENSION_API
rs2_extension _left_extension_type
rs2_format _right_target_format
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
frame_processor_callback_ptr _callback
rs2_format _source_format
std::shared_ptr< stream_profile_interface > _right_target_stream_profile
rs2_source * get_c_wrapper() override
frame_interface * allocate_video_frame(std::shared_ptr< stream_profile_interface > stream, frame_interface *original, int new_bpp=0, int new_width=0, int new_height=0, int new_stride=0, rs2_extension frame_type=RS2_EXTENSION_VIDEO_FRAME) override
bypass_option(composite_processing_block *parent, rs2_option opt)
virtual ~depth_processing_block()
bool is_enabled() const override
std::shared_ptr< rs2_source > _c_wrapper
rs2::stream_profile _target_stream_profile
std::shared_ptr< rs2_frame_processor_callback > frame_processor_callback_ptr
synthetic_source_interface & get_source() override
virtual ~generic_processing_block()
option_range get_range() const override
GLint GLsizei GLsizei height
rs2_stream _right_target_stream
bool match(const rs2::frame &frame)
rs2_options(librealsense::options_interface *options)
depth_processing_block(const char *name)
rs2_stream _target_stream
BOOST_DEDUCED_TYPENAME optional< T >::reference_const_type get(optional< T > const &opt)
void frame_ready(frame_holder result) override
rs2_format
A stream's format identifies how binary data is encoded within a frame.
stream_filter _stream_filter
rs2_stream
Streams are different types of data provided by RealSense devices.
rs2_format format() const
virtual ~processing_block()
frame_interface * allocate_composite_frame(std::vector< frame_holder > frames) override
struct rs2_processing_block rs2_processing_block
rs2_extension
Specifies advanced interfaces (capabilities) objects may implement.
rs2_extension _extension_type
GLenum GLenum GLenum input
rs2_extension _right_extension_type
const char * get_value_description(float v) const override
synthetic_source _source_wrapper
rs2_format _left_target_format
GLsizei GLsizei GLchar * source
librealsense::options_interface * options
void operator=(const stream_filter &other)
void enable_recording(std::function< void(const option &)> record_action) override
frame_interface * allocate_points(std::shared_ptr< stream_profile_interface > stream, frame_interface *original, rs2_extension frame_type=RS2_EXTENSION_POINTS) override
bool is_read_only() const override
rs2_stream stream_type() const
float query() const override
std::shared_ptr< stream_profile_interface > _source_stream_profile