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
[legend]

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 ( )
virtual

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 
)
explicitprotected

Definition at line 126 of file device.cpp.

Member Function Documentation

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

Definition at line 163 of file device.cpp.

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

Definition at line 169 of file device.cpp.

virtual bool librealsense::device::compress_while_record ( ) const
inlineoverridevirtual
bool device::contradicts ( const stream_profile_interface a,
const std::vector< stream_profile > &  others 
) const
overridevirtual
std::shared_ptr< matcher > device::create_matcher ( const frame_holder frame) const
overridevirtual
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
inlineoverridevirtual

Implements librealsense::device_interface.

Definition at line 58 of file device.h.

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

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
overridevirtual

Implements librealsense::device_interface.

Definition at line 233 of file device.cpp.

sensor_interface & device::get_sensor ( size_t  subdevice)
overridevirtual

Implements librealsense::device_interface.

Definition at line 187 of file device.cpp.

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

Implements librealsense::device_interface.

Definition at line 210 of file device.cpp.

size_t device::get_sensors_count ( ) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 182 of file device.cpp.

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

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)
protected

Definition at line 263 of file device.cpp.

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

Definition at line 246 of file device.cpp.

void device::stop_activity ( ) const
virtual

Definition at line 329 of file device.cpp.

void device::tag_profiles ( stream_profiles  profiles) const
overridevirtual

Implements librealsense::device_interface.

Definition at line 283 of file device.cpp.

Member Data Documentation

uint64_t librealsense::device::_callback_id
private

Definition at line 101 of file device.h.

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

Definition at line 97 of file device.h.

std::mutex librealsense::device::_device_changed_mtx
mutableprivate

Definition at line 100 of file device.h.

bool librealsense::device::_device_changed_notifications
private

Definition at line 99 of file device.h.

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

Definition at line 93 of file device.h.

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

Definition at line 98 of file device.h.

bool librealsense::device::_is_valid
private

Definition at line 99 of file device.h.

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

Definition at line 102 of file device.h.

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

Definition at line 96 of file device.h.


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


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