Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
librealsense::device Class Reference

#include <device.h>

Inheritance diagram for librealsense::device:
Inheritance graph

Public Member Functions

virtual bool compress_while_record () const override
virtual bool contradicts (const stream_profile_interface *a, const std::vector< stream_profile > &others) const override
virtual std::shared_ptr< matchercreate_matcher (const frame_holder &frame) const override
size_t find_sensor_idx (const sensor_interface &s) const
std::shared_ptr< contextget_context () const override
platform::backend_device_group get_device_data () const override
std::pair< uint32_t, rs2_extrinsicsget_extrinsics (const stream_interface &stream) const override
sensor_interfaceget_sensor (size_t subdevice) override
const sensor_interfaceget_sensor (size_t subdevice) const override
size_t get_sensors_count () const override
void hardware_reset () override
bool is_valid () const override
virtual void stop_activity () const
void tag_profiles (stream_profiles profiles) const override
virtual ~device ()
- Public Member Functions inherited from librealsense::device_interface
virtual std::vector< tagged_profileget_profiles_tags () const =0
virtual ~device_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::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
const std::stringget_info (rs2_camera_info info) const override
void register_info (rs2_camera_info info, const std::string &val)
bool supports_info (rs2_camera_info info) const override
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::extension_snapshot
virtual ~extension_snapshot ()=default

Protected Member Functions

int add_sensor (const std::shared_ptr< sensor_interface > &sensor_base)
int assign_sensor (const std::shared_ptr< sensor_interface > &sensor_base, uint8_t idx)
 device (std::shared_ptr< context > ctx, const platform::backend_device_group group, bool device_changed_notifications=false)
std::vector< rs2_formatmap_supported_color_formats (rs2_format source_format)
void register_stream_to_extrinsic_group (const stream_interface &stream, uint32_t groupd_index)

Protected Attributes

std::map< int, std::pair< uint32_t, std::shared_ptr< const stream_interface > > > _extrinsics

Private Attributes

uint64_t _callback_id
std::shared_ptr< context_context
std::mutex _device_changed_mtx
bool _device_changed_notifications
const platform::backend_device_group _group
bool _is_valid
lazy< std::vector< tagged_profile > > _profiles_tags
std::vector< std::shared_ptr< sensor_interface > > _sensors

Detailed Description

Definition at line 43 of file device.h.

Constructor & Destructor Documentation

device::~device ( )

Definition at line 154 of file device.cpp.

device::device ( std::shared_ptr< context ctx,
const platform::backend_device_group  group,
bool  device_changed_notifications = false 

Definition at line 126 of file device.cpp.

Member Function Documentation

int device::add_sensor ( const std::shared_ptr< sensor_interface > &  sensor_base)

Definition at line 163 of file device.cpp.

int device::assign_sensor ( const std::shared_ptr< sensor_interface > &  sensor_base,
uint8_t  idx 

Definition at line 169 of file device.cpp.

virtual bool librealsense::device::compress_while_record ( ) const
bool device::contradicts ( const stream_profile_interface a,
const std::vector< stream_profile > &  others 
) const
std::shared_ptr< matcher > device::create_matcher ( const frame_holder frame) const
size_t device::find_sensor_idx ( const sensor_interface s) const

Definition at line 199 of file device.cpp.

std::shared_ptr<context> librealsense::device::get_context ( ) const

Implements librealsense::device_interface.

Definition at line 58 of file device.h.

platform::backend_device_group librealsense::device::get_device_data ( ) const

Implements librealsense::device_interface.

Definition at line 62 of file device.h.

std::pair< uint32_t, rs2_extrinsics > device::get_extrinsics ( const stream_interface stream) const

Implements librealsense::device_interface.

Definition at line 233 of file device.cpp.

sensor_interface & device::get_sensor ( size_t  subdevice)

Implements librealsense::device_interface.

Definition at line 187 of file device.cpp.

const sensor_interface & device::get_sensor ( size_t  subdevice) const

Implements librealsense::device_interface.

Definition at line 210 of file device.cpp.

size_t device::get_sensors_count ( ) const

Implements librealsense::device_interface.

Definition at line 182 of file device.cpp.

void device::hardware_reset ( )
bool librealsense::device::is_valid ( ) const

Implements librealsense::device_interface.

Definition at line 69 of file device.h.

std::vector< rs2_format > device::map_supported_color_formats ( rs2_format  source_format)

Definition at line 263 of file device.cpp.

void device::register_stream_to_extrinsic_group ( const stream_interface stream,
uint32_t  groupd_index 

Definition at line 246 of file device.cpp.

void device::stop_activity ( ) const

Definition at line 329 of file device.cpp.

void device::tag_profiles ( stream_profiles  profiles) const

Implements librealsense::device_interface.

Definition at line 283 of file device.cpp.

Member Data Documentation

uint64_t librealsense::device::_callback_id

Definition at line 101 of file device.h.

std::shared_ptr<context> librealsense::device::_context

Definition at line 97 of file device.h.

std::mutex librealsense::device::_device_changed_mtx

Definition at line 100 of file device.h.

bool librealsense::device::_device_changed_notifications

Definition at line 99 of file device.h.

std::map<int, std::pair<uint32_t, std::shared_ptr<const stream_interface> > > librealsense::device::_extrinsics

Definition at line 93 of file device.h.

const platform::backend_device_group librealsense::device::_group

Definition at line 98 of file device.h.

bool librealsense::device::_is_valid

Definition at line 99 of file device.h.

lazy<std::vector<tagged_profile> > librealsense::device::_profiles_tags

Definition at line 102 of file device.h.

std::vector<std::shared_ptr<sensor_interface> > librealsense::device::_sensors

Definition at line 96 of file device.h.

The documentation for this class was generated from the following files:

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37