Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
#include <sensor.h>
Public Member Functions | |
sensor_base (std::string name, device *device) | |
virtual stream_profiles | init_stream_profiles ()=0 |
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 void | open (const stream_profiles &requests)=0 |
virtual void | close ()=0 |
virtual void | start (frame_callback_ptr callback)=0 |
virtual void | stop ()=0 |
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 |
Protected Member Functions | |
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) |
Protected Attributes | |
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 |
|
inlinevirtual |
|
protected |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Reimplemented from librealsense::info_container.
|
overridevirtual |
Implements librealsense::sensor_interface.
std::shared_ptr<notifications_processor> librealsense::sensor_base::get_notifications_processor | ( | ) |
|
inlineoverridevirtual |
Implements librealsense::sensor_interface.
|
pure virtual |
|
inlineoverridevirtual |
Implements librealsense::sensor_interface.
|
protected |
|
overridevirtual |
Implements librealsense::sensor_interface.
void librealsense::sensor_base::register_metadata | ( | rs2_frame_metadata_value | metadata, |
std::shared_ptr< md_attribute_parser_base > | metadata_parser | ||
) | const |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
inline |
|
inline |
void librealsense::sensor_base::register_pixel_format | ( | native_pixel_format | pf | ) |
void librealsense::sensor_base::remove_pixel_format | ( | native_pixel_format | pf | ) |
|
protected |
|
protected |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
overridevirtual |
Reimplemented from librealsense::info_container.
|
protected |
|
overridevirtual |
Implements librealsense::sensor_interface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |