|
Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <sensor.h>
Public Member Functions | |
| uvc_sensor (std::string name, std::shared_ptr< platform::uvc_device > uvc_device, std::unique_ptr< frame_timestamp_reader > timestamp_reader, device *dev) | |
| ~uvc_sensor () | |
| region_of_interest_method & | get_roi_method () const override |
| void | set_roi_method (std::shared_ptr< region_of_interest_method > roi_method) override |
| void | open (const stream_profiles &requests) override |
| void | close () override |
| std::vector< platform::stream_profile > | get_configuration () const |
| void | register_xu (platform::extension_unit xu) |
| template<class T > | |
| auto | invoke_powered (T action) -> decltype(action(*static_cast< platform::uvc_device *>(nullptr))) |
| void | register_pu (rs2_option id) |
| void | try_register_pu (rs2_option id) |
| void | start (frame_callback_ptr callback) override |
| void | stop () override |
Public Member Functions inherited from librealsense::sensor_base | |
| 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 |
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::options_container | |
| 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 |
Public Member Functions inherited from librealsense::extension_snapshot | |
| virtual | ~extension_snapshot ()=default |
Public Member Functions inherited from librealsense::info_container | |
| 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 |
Protected Member Functions | |
| stream_profiles | init_stream_profiles () override |
| rs2_extension | stream_to_frame_types (rs2_stream stream) const |
Protected Member Functions inherited from librealsense::sensor_base | |
| 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) |
Additional Inherited Members | |
Protected Attributes inherited from librealsense::sensor_base | |
| 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 |
|
explicit |
| librealsense::uvc_sensor::~uvc_sensor | ( | ) |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
inline |
|
overridevirtual |
Implements librealsense::roi_sensor_interface.
|
overrideprotectedvirtual |
Implements librealsense::sensor_base.
|
inline |
|
overridevirtual |
Implements librealsense::sensor_interface.
| void librealsense::uvc_sensor::register_pu | ( | rs2_option | id | ) |
| void librealsense::uvc_sensor::register_xu | ( | platform::extension_unit | xu | ) |
|
overridevirtual |
Implements librealsense::roi_sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
|
protected |
| void librealsense::uvc_sensor::try_register_pu | ( | rs2_option | id | ) |
1.8.14