#include <device.h>
Public Member Functions | |
rs_frame_ref * | clone_frame (rs_frame_ref *frame) override |
virtual std::vector < std::shared_ptr < rsimpl::frame_timestamp_reader > > | create_frame_timestamp_readers () const =0 |
void | disable_motion_tracking () override |
void | disable_stream (rs_stream stream) override |
void | enable_motion_tracking () override |
void | enable_stream (rs_stream stream, int width, int height, rs_format format, int fps, rs_output_buffer_format output) override |
void | enable_stream_preset (rs_stream stream, rs_preset preset) override |
const char * | get_camera_info (rs_camera_info info) const override |
float | get_depth_scale () const override |
const char * | get_firmware_version () const override |
rs_extrinsics | get_motion_extrinsics_from (rs_stream from) const override |
rs_motion_intrinsics | get_motion_intrinsics () const override |
const char * | get_name () const override |
const char * | get_option_description (rs_option option) const override |
virtual void | get_option_range (rs_option option, double &min, double &max, double &step, double &def) override |
virtual void | get_options (const rs_option options[], size_t count, double values[]) override |
const char * | get_serial () const override |
const rsimpl::stream_interface & | get_stream_interface (rs_stream stream) const override |
const char * | get_usb_port_id () const override |
bool | is_capturing () const override |
int | is_motion_tracking_active () const override |
virtual void | on_before_start (const std::vector< rsimpl::subdevice_mode_selection > &selected_modes)=0 |
bool | poll_all_streams () override |
void | release_frame (rs_frame_ref *ref) override |
rs_device_base (std::shared_ptr< rsimpl::uvc::device > device, const rsimpl::static_device_info &info, rsimpl::calibration_validator validator=rsimpl::calibration_validator()) | |
virtual rs_stream | select_key_stream (const std::vector< rsimpl::subdevice_mode_selection > &selected_modes)=0 |
virtual void | send_blob_to_device (rs_blob_type, void *, int) |
void | set_motion_callback (rs_motion_callback *callback) override |
void | set_motion_callback (void(*on_event)(rs_device *device, rs_motion_data data, void *user), void *user) override |
virtual void | set_options (const rs_option options[], size_t count, const double values[]) override |
void | set_stream_callback (rs_stream stream, void(*on_frame)(rs_device *device, rs_frame_ref *frame, void *user), void *user) override |
void | set_stream_callback (rs_stream stream, rs_frame_callback *callback) override |
void | set_timestamp_callback (void(*on_event)(rs_device *device, rs_timestamp_data data, void *user), void *user) override |
void | set_timestamp_callback (rs_timestamp_callback *callback) override |
virtual void | start (rs_source source) override |
virtual void | start_fw_logger (char fw_log_op_code, int grab_rate_in_ms, std::timed_mutex &mutex) override |
virtual void | stop (rs_source source) override |
virtual void | stop_fw_logger () override |
virtual bool | supports (rs_capabilities capability) const override |
virtual bool | supports (rs_camera_info info_param) const override |
virtual bool | supports_option (rs_option option) const override |
void | wait_all_streams () override |
virtual | ~rs_device_base () |
Static Public Member Functions | |
static void | update_device_info (rsimpl::static_device_info &info) |
Protected Member Functions | |
virtual void | disable_auto_option (int subdevice, rs_option auto_opt) |
const rsimpl::uvc::device & | get_device () const |
rsimpl::uvc::device & | get_device () |
virtual void | on_before_callback (rs_stream, rs_frame_ref *, std::shared_ptr< rsimpl::frame_archive >) |
virtual void | start_motion_tracking () |
virtual void | start_video_streaming () |
virtual void | stop_motion_tracking () |
virtual void | stop_video_streaming () |
Protected Attributes | |
rsimpl::device_config | config |
std::atomic< int > | frames_drops_counter |
std::atomic< bool > | keep_fw_logger_alive |
bool | motion_module_ready |
Private Attributes | |
std::shared_ptr < rsimpl::syncronizing_archive > | archive |
std::chrono::high_resolution_clock::time_point | capture_started |
bool | capturing |
rsimpl::native_stream | color |
rsimpl::aligned_stream | color_to_depth |
bool | data_acquisition_active |
rsimpl::native_stream | depth |
rsimpl::aligned_stream | depth_to_color |
rsimpl::aligned_stream | depth_to_infrared2 |
rsimpl::aligned_stream | depth_to_rect_color |
const std::shared_ptr < rsimpl::uvc::device > | device |
std::atomic< uint32_t > | event_queue_size |
std::atomic< uint32_t > | events_timeout |
rsimpl::native_stream | fisheye |
std::shared_ptr< std::thread > | fw_logger |
rsimpl::native_stream | infrared |
rsimpl::native_stream | infrared2 |
rsimpl::aligned_stream | infrared2_to_depth |
std::atomic< uint32_t > | max_publish_list_size |
rsimpl::native_stream * | native_streams [RS_STREAM_NATIVE_COUNT] |
rsimpl::point_stream | points |
rsimpl::rectified_stream | rect_color |
rsimpl::stream_interface * | streams [RS_STREAM_COUNT] |
std::string | usb_port_id |
std::mutex | usb_port_mutex |
rs_device_base::rs_device_base | ( | std::shared_ptr< rsimpl::uvc::device > | device, |
const rsimpl::static_device_info & | info, | ||
rsimpl::calibration_validator | validator = rsimpl::calibration_validator() |
||
) |
Definition at line 21 of file device.cpp.
rs_device_base::~rs_device_base | ( | ) | [virtual] |
Definition at line 41 of file device.cpp.
rs_frame_ref * rs_device_base::clone_frame | ( | rs_frame_ref * | frame | ) | [override, virtual] |
Implements rs_device.
Definition at line 518 of file device.cpp.
virtual std::vector<std::shared_ptr<rsimpl::frame_timestamp_reader> > rs_device_base::create_frame_timestamp_readers | ( | ) | const [pure virtual] |
Implemented in rsimpl::ds::ds_device, and rsimpl::iv_camera.
void rs_device_base::disable_auto_option | ( | int | subdevice, |
rs_option | auto_opt | ||
) | [protected, virtual] |
Definition at line 701 of file device.cpp.
void rs_device_base::disable_motion_tracking | ( | void | ) | [override, virtual] |
Implements rs_device.
Definition at line 125 of file device.cpp.
void rs_device_base::disable_stream | ( | rs_stream | stream | ) | [override, virtual] |
Implements rs_device.
Definition at line 98 of file device.cpp.
void rs_device_base::enable_motion_tracking | ( | ) | [override, virtual] |
Implements rs_device.
Definition at line 118 of file device.cpp.
void rs_device_base::enable_stream | ( | rs_stream | stream, |
int | width, | ||
int | height, | ||
rs_format | format, | ||
int | fps, | ||
rs_output_buffer_format | output | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 70 of file device.cpp.
void rs_device_base::enable_stream_preset | ( | rs_stream | stream, |
rs_preset | preset | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 79 of file device.cpp.
const char * rs_device_base::get_camera_info | ( | rs_camera_info | info | ) | const [override, virtual] |
Implements rs_device.
Definition at line 62 of file device.cpp.
float rs_device_base::get_depth_scale | ( | ) | const [inline, override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, rsimpl::final, rsimpl::final, and rsimpl::final.
const rsimpl::uvc::device& rs_device_base::get_device | ( | ) | const [inline, protected] |
rsimpl::uvc::device& rs_device_base::get_device | ( | ) | [inline, protected] |
const char* rs_device_base::get_firmware_version | ( | ) | const [inline, override, virtual] |
rs_extrinsics rs_device_base::get_motion_extrinsics_from | ( | rs_stream | from | ) | const [override, virtual] |
rs_motion_intrinsics rs_device_base::get_motion_intrinsics | ( | ) | const [override, virtual] |
const char* rs_device_base::get_name | ( | ) | const [inline, override, virtual] |
const char * rs_device_base::get_option_description | ( | rs_option | option | ) | const [override, virtual] |
Implements rs_device.
Definition at line 530 of file device.cpp.
void rs_device_base::get_option_range | ( | rs_option | option, |
double & | min, | ||
double & | max, | ||
double & | step, | ||
double & | def | ||
) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, and rsimpl::ds::ds_device.
Definition at line 633 of file device.cpp.
void rs_device_base::get_options | ( | const rs_option | options[], |
size_t | count, | ||
double | values[] | ||
) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, rsimpl::ds::ds_device, rsimpl::final, rsimpl::iv_camera, and rsimpl::final.
Definition at line 681 of file device.cpp.
const char* rs_device_base::get_serial | ( | ) | const [inline, override, virtual] |
const rsimpl::stream_interface& rs_device_base::get_stream_interface | ( | rs_stream | stream | ) | const [inline, override, virtual] |
const char * rs_device_base::get_usb_port_id | ( | ) | const [override, virtual] |
Implements rs_device.
Definition at line 710 of file device.cpp.
bool rs_device_base::is_capturing | ( | ) | const [inline, override, virtual] |
int rs_device_base::is_motion_tracking_active | ( | ) | const [inline, override, virtual] |
virtual void rs_device_base::on_before_callback | ( | rs_stream | , |
rs_frame_ref * | , | ||
std::shared_ptr< rsimpl::frame_archive > | |||
) | [inline, protected, virtual] |
virtual void rs_device_base::on_before_start | ( | const std::vector< rsimpl::subdevice_mode_selection > & | selected_modes | ) | [pure virtual] |
Implemented in rsimpl::ds::ds_device, and rsimpl::iv_camera.
bool rs_device_base::poll_all_streams | ( | ) | [override, virtual] |
Implements rs_device.
Definition at line 506 of file device.cpp.
void rs_device_base::release_frame | ( | rs_frame_ref * | ref | ) | [override, virtual] |
Implements rs_device.
Definition at line 513 of file device.cpp.
virtual rs_stream rs_device_base::select_key_stream | ( | const std::vector< rsimpl::subdevice_mode_selection > & | selected_modes | ) | [pure virtual] |
virtual void rs_device_base::send_blob_to_device | ( | rs_blob_type | , |
void * | , | ||
int | |||
) | [inline, virtual] |
Reimplemented in rsimpl::final.
void rs_device_base::set_motion_callback | ( | rs_motion_callback * | callback | ) | [override, virtual] |
Implements rs_device.
Definition at line 132 of file device.cpp.
void rs_device_base::set_motion_callback | ( | void(*)(rs_device *device, rs_motion_data data, void *user) | on_event, |
void * | user | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 194 of file device.cpp.
void rs_device_base::set_options | ( | const rs_option | options[], |
size_t | count, | ||
const double | values[] | ||
) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, rsimpl::ds::ds_device, rsimpl::final, rsimpl::iv_camera, and rsimpl::final.
Definition at line 661 of file device.cpp.
void rs_device_base::set_stream_callback | ( | rs_stream | stream, |
void(*)(rs_device *device, rs_frame_ref *frame, void *user) | on_frame, | ||
void * | user | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 108 of file device.cpp.
void rs_device_base::set_stream_callback | ( | rs_stream | stream, |
rs_frame_callback * | callback | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 113 of file device.cpp.
void rs_device_base::set_timestamp_callback | ( | void(*)(rs_device *device, rs_timestamp_data data, void *user) | on_event, |
void * | user | ||
) | [override, virtual] |
Implements rs_device.
Definition at line 202 of file device.cpp.
void rs_device_base::set_timestamp_callback | ( | rs_timestamp_callback * | callback | ) | [override, virtual] |
Implements rs_device.
Definition at line 209 of file device.cpp.
void rs_device_base::start | ( | rs_source | source | ) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, and rsimpl::ds::ds_device.
Definition at line 215 of file device.cpp.
void rs_device_base::start_fw_logger | ( | char | fw_log_op_code, |
int | grab_rate_in_ms, | ||
std::timed_mutex & | mutex | ||
) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::ds::ds_device, rsimpl::iv_camera, rsimpl::final, rsimpl::final, and rsimpl::final.
Definition at line 283 of file device.cpp.
void rs_device_base::start_motion_tracking | ( | ) | [protected, virtual] |
Reimplemented in rsimpl::final.
Definition at line 140 of file device.cpp.
void rs_device_base::start_video_streaming | ( | ) | [protected, virtual] |
Definition at line 326 of file device.cpp.
void rs_device_base::stop | ( | rs_source | source | ) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, and rsimpl::ds::ds_device.
Definition at line 239 of file device.cpp.
void rs_device_base::stop_fw_logger | ( | ) | [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::ds::ds_device, rsimpl::iv_camera, rsimpl::final, rsimpl::final, and rsimpl::final.
Definition at line 311 of file device.cpp.
void rs_device_base::stop_motion_tracking | ( | ) | [protected, virtual] |
Reimplemented in rsimpl::final.
Definition at line 187 of file device.cpp.
void rs_device_base::stop_video_streaming | ( | ) | [protected, virtual] |
Definition at line 490 of file device.cpp.
bool rs_device_base::supports | ( | rs_capabilities | capability | ) | const [override, virtual] |
Implements rs_device.
Definition at line 606 of file device.cpp.
bool rs_device_base::supports | ( | rs_camera_info | info_param | ) | const [override, virtual] |
Implements rs_device.
Definition at line 627 of file device.cpp.
bool rs_device_base::supports_option | ( | rs_option | option | ) | const [override, virtual] |
Implements rs_device.
Reimplemented in rsimpl::final, and rsimpl::ds::ds_device.
Definition at line 55 of file device.cpp.
void rs_device_base::update_device_info | ( | rsimpl::static_device_info & | info | ) | [static] |
Definition at line 525 of file device.cpp.
void rs_device_base::wait_all_streams | ( | ) | [override, virtual] |
Implements rs_device.
Definition at line 498 of file device.cpp.
std::shared_ptr<rsimpl::syncronizing_archive> rs_device_base::archive [private] |
Reimplemented in rsimpl::final.
std::chrono::high_resolution_clock::time_point rs_device_base::capture_started [private] |
bool rs_device_base::capturing [private] |
rsimpl::native_stream rs_device_base::color [private] |
rsimpl::aligned_stream rs_device_base::color_to_depth [private] |
rsimpl::device_config rs_device_base::config [protected] |
Reimplemented in rsimpl::final.
bool rs_device_base::data_acquisition_active [private] |
rsimpl::native_stream rs_device_base::depth [private] |
rsimpl::aligned_stream rs_device_base::depth_to_color [private] |
rsimpl::aligned_stream rs_device_base::depth_to_infrared2 [private] |
rsimpl::aligned_stream rs_device_base::depth_to_rect_color [private] |
const std::shared_ptr<rsimpl::uvc::device> rs_device_base::device [private] |
std::atomic<uint32_t> rs_device_base::event_queue_size [private] |
std::atomic<uint32_t> rs_device_base::events_timeout [private] |
rsimpl::native_stream rs_device_base::fisheye [private] |
std::atomic<int> rs_device_base::frames_drops_counter [protected] |
std::shared_ptr<std::thread> rs_device_base::fw_logger [private] |
rsimpl::native_stream rs_device_base::infrared [private] |
rsimpl::native_stream rs_device_base::infrared2 [private] |
rsimpl::aligned_stream rs_device_base::infrared2_to_depth [private] |
std::atomic<bool> rs_device_base::keep_fw_logger_alive [protected] |
std::atomic<uint32_t> rs_device_base::max_publish_list_size [private] |
bool rs_device_base::motion_module_ready [protected] |
rsimpl::native_stream* rs_device_base::native_streams[RS_STREAM_NATIVE_COUNT] [private] |
rsimpl::point_stream rs_device_base::points [private] |
rsimpl::rectified_stream rs_device_base::rect_color [private] |
std::string rs_device_base::usb_port_id [mutable, private] |
std::mutex rs_device_base::usb_port_mutex [mutable, private] |