Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <software-device.h>
Public Member Functions | |
software_sensor (std::string name, software_device *owner) | |
std::shared_ptr< stream_profile_interface > | add_video_stream (rs2_video_stream video_stream) |
stream_profiles | init_stream_profiles () override |
void | open (const stream_profiles &requests) override |
void | close () override |
void | start (frame_callback_ptr callback) override |
void | stop () override |
void | on_video_frame (rs2_software_video_frame frame) |
void | add_read_only_option (rs2_option option, float val) |
void | update_read_only_option (rs2_option option, float val) |
![]() | |
sensor_base (std::string name, device *device) | |
stream_profiles | get_stream_profiles () const override |
virtual stream_profiles | get_active_streams () const override |
notifications_callback_ptr | get_notifications_callback () const override |
void | register_notifications_callback (notifications_callback_ptr callback) override |
int | register_before_streaming_changes_callback (std::function< void(bool)> callback) override |
void | unregister_before_start_callback (int token) override |
std::shared_ptr< notifications_processor > | get_notifications_processor () |
virtual frame_callback_ptr | get_frames_callback () const override |
virtual void | set_frames_callback (frame_callback_ptr callback) override |
bool | is_streaming () const override |
virtual | ~sensor_base () |
void | register_metadata (rs2_frame_metadata_value metadata, std::shared_ptr< md_attribute_parser_base > metadata_parser) const |
void | register_on_open (on_open callback) |
void | register_on_before_frame_callback (on_before_frame_callback callback) |
const device_interface & | get_device () override |
void | register_pixel_format (native_pixel_format pf) |
void | remove_pixel_format (native_pixel_format pf) |
const std::string & | get_info (rs2_camera_info info) const override |
bool | supports_info (rs2_camera_info info) const override |
![]() | |
virtual | ~sensor_interface ()=default |
![]() | |
virtual | ~info_interface ()=default |
![]() | |
virtual | ~recordable ()=default |
![]() | |
virtual | ~options_interface ()=default |
![]() | |
virtual | ~recordable ()=default |
![]() | |
bool | supports_option (rs2_option id) const override |
option & | get_option (rs2_option id) override |
const option & | get_option (rs2_option id) const override |
void | register_option (rs2_option id, std::shared_ptr< option > option) |
void | unregister_option (rs2_option id) |
void | create_snapshot (std::shared_ptr< options_interface > &snapshot) const override |
void | enable_recording (std::function< void(const options_interface &)> record_action) override |
void | update (std::shared_ptr< extension_snapshot > ext) override |
![]() | |
virtual | ~extension_snapshot ()=default |
![]() | |
void | register_info (rs2_camera_info info, const std::string &val) |
void | update_info (rs2_camera_info info, const std::string &val) |
void | create_snapshot (std::shared_ptr< info_interface > &snapshot) const override |
void | enable_recording (std::function< void(const info_interface &)> record_action) override |
void | update (std::shared_ptr< extension_snapshot > ext) override |
Friends | |
class | software_device |
Additional Inherited Members | |
![]() | |
void | raise_on_before_streaming_changes (bool streaming) |
void | set_active_streams (const stream_profiles &requests) |
bool | try_get_pf (const platform::stream_profile &p, native_pixel_format &result) const |
void | assign_stream (const std::shared_ptr< stream_interface > &stream, std::shared_ptr< stream_profile_interface > target) const |
std::vector< request_mapping > | resolve_requests (stream_profiles requests) |
![]() | |
std::vector< platform::stream_profile > | _internal_config |
std::atomic< bool > | _is_streaming |
std::atomic< bool > | _is_opened |
std::shared_ptr< notifications_processor > | _notifications_processor |
on_before_frame_callback | _on_before_frame_callback |
on_open | _on_open |
std::shared_ptr< metadata_parser_map > | _metadata_parsers = nullptr |
frame_source | _source |
device * | _owner |
std::vector< platform::stream_profile > | _uvc_profiles |
librealsense::software_sensor::software_sensor | ( | std::string | name, |
software_device * | owner | ||
) |
void librealsense::software_sensor::add_read_only_option | ( | rs2_option | option, |
float | val | ||
) |
std::shared_ptr<stream_profile_interface> librealsense::software_sensor::add_video_stream | ( | rs2_video_stream | video_stream | ) |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_base.
void librealsense::software_sensor::on_video_frame | ( | rs2_software_video_frame | frame | ) |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
void librealsense::software_sensor::update_read_only_option | ( | rs2_option | option, |
float | val | ||
) |
|
friend |