Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
librealsense::software_sensor Class Reference

#include <software-device.h>

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

Classes

class  depth_extension
 
class  stereo_extension
 

Public Member Functions

std::shared_ptr< stream_profile_interfaceadd_motion_stream (rs2_motion_stream motion_stream, bool is_default=false)
 
void add_option (rs2_option option, option_range range, bool is_writable)
 
std::shared_ptr< stream_profile_interfaceadd_pose_stream (rs2_pose_stream pose_stream, bool is_default=false)
 
void add_read_only_option (rs2_option option, float val)
 
std::shared_ptr< stream_profile_interfaceadd_video_stream (rs2_video_stream video_stream, bool is_default=false)
 
void close () override
 
bool extend_to (rs2_extension extension_type, void **ptr) override
 
stream_profiles init_stream_profiles () override
 
void on_motion_frame (rs2_software_motion_frame frame)
 
void on_notification (rs2_software_notification notif)
 
void on_pose_frame (rs2_software_pose_frame frame)
 
void on_video_frame (rs2_software_video_frame frame)
 
void open (const stream_profiles &requests) override
 
void set_metadata (rs2_frame_metadata_value key, rs2_metadata_type value)
 
 software_sensor (std::string name, software_device *owner)
 
void start (frame_callback_ptr callback) override
 
void stop () override
 
void update_read_only_option (rs2_option option, float val)
 
- Public Member Functions inherited from librealsense::sensor_base
rs2_format fourcc_to_rs2_format (uint32_t format) const
 
rs2_stream fourcc_to_rs2_stream (uint32_t fourcc_format) const
 
stream_profiles get_active_streams () const override
 
device_interfaceget_device () override
 
std::shared_ptr< std::map< uint32_t, rs2_format > > & get_fourcc_to_rs2_format_map ()
 
std::shared_ptr< std::map< uint32_t, rs2_stream > > & get_fourcc_to_rs2_stream_map ()
 
virtual frame_callback_ptr get_frames_callback () const override
 
const std::stringget_info (rs2_camera_info info) const override
 
notifications_callback_ptr get_notifications_callback () const override
 
virtual std::shared_ptr< notifications_processorget_notifications_processor () const
 
processing_blocks get_recommended_processing_blocks () const override
 
stream_profiles get_stream_profiles (int tag=profile_tag::PROFILE_TAG_ANY) const override
 
virtual bool is_opened () const
 
bool is_streaming () const override
 
int register_before_streaming_changes_callback (std::function< void(bool)> callback) override
 
virtual void register_metadata (rs2_frame_metadata_value metadata, std::shared_ptr< md_attribute_parser_base > metadata_parser) const
 
void register_notifications_callback (notifications_callback_ptr callback) override
 
void register_on_open (on_open callback)
 
 sensor_base (std::string name, device *device, recommended_proccesing_blocks_interface *owner)
 
virtual void set_frames_callback (frame_callback_ptr callback) override
 
void set_source_owner (sensor_base *owner)
 
bool supports_info (rs2_camera_info info) const override
 
void unregister_before_start_callback (int token) override
 
virtual ~sensor_base () override
 
- Public Member Functions inherited from librealsense::sensor_interface
virtual ~sensor_interface ()=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_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::recommended_proccesing_blocks_interface
virtual ~recommended_proccesing_blocks_interface ()=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
 
void register_info (rs2_camera_info info, const std::string &val)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from librealsense::recommended_proccesing_blocks_base
virtual void create_snapshot (std::shared_ptr< recommended_proccesing_blocks_interface > &snapshot) const override
 
virtual void enable_recording (std::function< void(const recommended_proccesing_blocks_interface &)> recording_function) override
 
 recommended_proccesing_blocks_base (recommended_proccesing_blocks_interface *owner)
 
- Public Member Functions inherited from librealsense::recordable< recommended_proccesing_blocks_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::extendable_interface
virtual ~extendable_interface ()=default
 

Private Member Functions

std::shared_ptr< stream_profile_interfacefind_profile_by_uid (int uid)
 

Private Attributes

lazy< depth_extension_depth_extension
 
std::map< rs2_frame_metadata_value, rs2_metadata_type_metadata_map
 
software_recommended_proccesing_blocks _pbs
 
stream_profiles _profiles
 
lazy< stereo_extension_stereo_extension
 
int _unique_id
 

Friends

class software_device
 

Additional Inherited Members

- Protected Member Functions inherited from librealsense::sensor_base
void assign_stream (const std::shared_ptr< stream_interface > &stream, std::shared_ptr< stream_profile_interface > target) const
 
std::shared_ptr< framegenerate_frame_from_data (const platform::frame_object &fo, frame_timestamp_reader *timestamp_reader, const rs2_time_t &last_timestamp, const unsigned long long &last_frame_number, std::shared_ptr< stream_profile_interface > profile)
 
void raise_on_before_streaming_changes (bool streaming)
 
void set_active_streams (const stream_profiles &requests)
 
- Protected Attributes inherited from librealsense::sensor_base
std::shared_ptr< std::map< uint32_t, rs2_format > > _fourcc_to_rs2_format
 
std::shared_ptr< std::map< uint32_t, rs2_stream > > _fourcc_to_rs2_stream
 
std::vector< platform::stream_profile_internal_config
 
std::atomic< bool > _is_opened
 
std::atomic< bool > _is_streaming
 
std::shared_ptr< metadata_parser_map_metadata_parsers = nullptr
 
std::shared_ptr< notifications_processor_notifications_processor
 
on_open _on_open
 
device_owner
 
frame_source _source
 
sensor_base_source_owner = nullptr
 
std::vector< platform::stream_profile_uvc_profiles
 
- 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 89 of file software-device.h.

Constructor & Destructor Documentation

librealsense::software_sensor::software_sensor ( std::string  name,
software_device owner 
)

Definition at line 73 of file software-device.cpp.

Member Function Documentation

std::shared_ptr< stream_profile_interface > librealsense::software_sensor::add_motion_stream ( rs2_motion_stream  motion_stream,
bool  is_default = false 
)

Definition at line 118 of file software-device.cpp.

void librealsense::software_sensor::add_option ( rs2_option  option,
option_range  range,
bool  is_writable 
)

Definition at line 394 of file software-device.cpp.

std::shared_ptr< stream_profile_interface > librealsense::software_sensor::add_pose_stream ( rs2_pose_stream  pose_stream,
bool  is_default = false 
)

Definition at line 141 of file software-device.cpp.

void librealsense::software_sensor::add_read_only_option ( rs2_option  option,
float  val 
)

Definition at line 380 of file software-device.cpp.

std::shared_ptr< stream_profile_interface > librealsense::software_sensor::add_video_stream ( rs2_video_stream  video_stream,
bool  is_default = false 
)

Definition at line 93 of file software-device.cpp.

void librealsense::software_sensor::close ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 215 of file software-device.cpp.

bool librealsense::software_sensor::extend_to ( rs2_extension  extension_type,
void **  ptr 
)
overridevirtual

Implements librealsense::extendable_interface.

Definition at line 178 of file software-device.cpp.

std::shared_ptr< stream_profile_interface > librealsense::software_sensor::find_profile_by_uid ( int  uid)
private

Definition at line 163 of file software-device.cpp.

stream_profiles librealsense::software_sensor::init_stream_profiles ( )
overridevirtual

Implements librealsense::sensor_base.

Definition at line 200 of file software-device.cpp.

void librealsense::software_sensor::on_motion_frame ( rs2_software_motion_frame  frame)

Definition at line 306 of file software-device.cpp.

void librealsense::software_sensor::on_notification ( rs2_software_notification  notif)

Definition at line 372 of file software-device.cpp.

void librealsense::software_sensor::on_pose_frame ( rs2_software_pose_frame  frame)

Definition at line 339 of file software-device.cpp.

void librealsense::software_sensor::on_video_frame ( rs2_software_video_frame  frame)

Definition at line 256 of file software-device.cpp.

void librealsense::software_sensor::open ( const stream_profiles requests)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 205 of file software-device.cpp.

void librealsense::software_sensor::set_metadata ( rs2_frame_metadata_value  key,
rs2_metadata_type  value 
)

Definition at line 251 of file software-device.cpp.

void librealsense::software_sensor::start ( frame_callback_ptr  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 225 of file software-device.cpp.

void librealsense::software_sensor::stop ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 239 of file software-device.cpp.

void librealsense::software_sensor::update_read_only_option ( rs2_option  option,
float  val 
)

Definition at line 386 of file software-device.cpp.

Friends And Related Function Documentation

friend class software_device
friend

Definition at line 117 of file software-device.h.

Member Data Documentation

lazy<depth_extension> librealsense::software_sensor::_depth_extension
private

Definition at line 160 of file software-device.h.

std::map<rs2_frame_metadata_value, rs2_metadata_type> librealsense::software_sensor::_metadata_map
private

Definition at line 119 of file software-device.h.

software_recommended_proccesing_blocks librealsense::software_sensor::_pbs
private

Definition at line 162 of file software-device.h.

stream_profiles librealsense::software_sensor::_profiles
private

Definition at line 118 of file software-device.h.

lazy<stereo_extension> librealsense::software_sensor::_stereo_extension
private

Definition at line 159 of file software-device.h.

int librealsense::software_sensor::_unique_id
private

Definition at line 120 of file software-device.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:38