Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rsimpl::ds::ds_device Class Reference

#include <ds-device.h>

Inheritance diagram for rsimpl::ds::ds_device:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< frame_timestamp_readercreate_frame_timestamp_reader (int subdevice) const
 
std::vector< std::shared_ptr< frame_timestamp_reader > > create_frame_timestamp_readers () const override
 
 ds_device (std::shared_ptr< uvc::device > device, const static_device_info &info, calibration_validator validator)
 
void get_option_range (rs_option option, double &min, double &max, double &step, double &def) override
 
void get_options (const rs_option options[], size_t count, double values[]) override
 
void on_before_start (const std::vector< subdevice_mode_selection > &selected_modes) override
 
rs_stream select_key_stream (const std::vector< rsimpl::subdevice_mode_selection > &selected_modes) override
 
void set_options (const rs_option options[], size_t count, const double values[]) 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
 
bool supports_option (rs_option option) const override
 
 ~ds_device ()
 
- Public Member Functions inherited from rs_device_base
rs_frame_refclone_frame (rs_frame_ref *frame) override
 
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
 
const char * get_serial () const override
 
const rsimpl::stream_interfaceget_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
 
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
 
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 bool supports (rs_capabilities capability) const override
 
virtual bool supports (rs_camera_info info_param) const override
 
void wait_all_streams () override
 
virtual ~rs_device_base ()
 
- Public Member Functions inherited from rs_device
virtual ~rs_device ()
 

Static Public Member Functions

static void set_common_ds_config (std::shared_ptr< uvc::device > device, static_device_info &info, const ds::ds_info &cam_info)
 
- Static Public Member Functions inherited from rs_device_base
static void update_device_info (rsimpl::static_device_info &info)
 

Protected Member Functions

std::vector< supported_optionget_ae_range_vec ()
 
uint32_t get_lr_framerate () const
 
bool is_disparity_mode_enabled () const
 
void on_update_depth_units (uint32_t units)
 
void on_update_disparity_multiplier (double multiplier)
 
- Protected Member Functions inherited from rs_device_base
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

time_pad start_stop_pad
 
- Protected Attributes inherited from rs_device_base
rsimpl::device_config config
 
std::atomic< intframes_drops_counter
 
std::atomic< bool > keep_fw_logger_alive
 
bool motion_module_ready
 

Detailed Description

Definition at line 30 of file ds-device.h.

Constructor & Destructor Documentation

rsimpl::ds_device::ds_device ( std::shared_ptr< uvc::device >  device,
const static_device_info info,
calibration_validator  validator 
)

Definition at line 23 of file ds-device.cpp.

rsimpl::ds_device::~ds_device ( )

Definition at line 32 of file ds-device.cpp.

Member Function Documentation

std::shared_ptr< frame_timestamp_reader > rsimpl::ds_device::create_frame_timestamp_reader ( int  subdevice) const

Definition at line 889 of file ds-device.cpp.

std::vector< std::shared_ptr< frame_timestamp_reader > > rsimpl::ds_device::create_frame_timestamp_readers ( ) const
overridevirtual

Implements rs_device_base.

Definition at line 943 of file ds-device.cpp.

std::vector< supported_option > rsimpl::ds_device::get_ae_range_vec ( )
protected

Definition at line 57 of file ds-device.cpp.

uint32_t rsimpl::ds_device::get_lr_framerate ( ) const
protected

Definition at line 380 of file ds-device.cpp.

void rsimpl::ds_device::get_option_range ( rs_option  option,
double &  min,
double &  max,
double &  step,
double &  def 
)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 591 of file ds-device.cpp.

void rsimpl::ds_device::get_options ( const rs_option  options[],
size_t  count,
double  values[] 
)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 200 of file ds-device.cpp.

bool rsimpl::ds_device::is_disparity_mode_enabled ( ) const
protected

Definition at line 37 of file ds-device.cpp.

void rsimpl::ds_device::on_before_start ( const std::vector< subdevice_mode_selection > &  selected_modes)
overridevirtual

Implements rs_device_base.

Definition at line 314 of file ds-device.cpp.

void rsimpl::ds_device::on_update_depth_units ( uint32_t  units)
protected

Definition at line 43 of file ds-device.cpp.

void rsimpl::ds_device::on_update_disparity_multiplier ( double  multiplier)
protected

Definition at line 49 of file ds-device.cpp.

rs_stream rsimpl::ds_device::select_key_stream ( const std::vector< rsimpl::subdevice_mode_selection > &  selected_modes)
override

Definition at line 357 of file ds-device.cpp.

void rsimpl::ds_device::set_common_ds_config ( std::shared_ptr< uvc::device >  device,
static_device_info info,
const ds::ds_info cam_info 
)
static

Definition at line 390 of file ds-device.cpp.

void rsimpl::ds_device::set_options ( const rs_option  options[],
size_t  count,
const double  values[] 
)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 110 of file ds-device.cpp.

void rsimpl::ds_device::start ( rs_source  source)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 298 of file ds-device.cpp.

void rsimpl::ds_device::start_fw_logger ( char  fw_log_op_code,
int  grab_rate_in_ms,
std::timed_mutex &  mutex 
)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::r200_camera.

Definition at line 304 of file ds-device.cpp.

void rsimpl::ds_device::stop ( rs_source  source)
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 292 of file ds-device.cpp.

void rsimpl::ds_device::stop_fw_logger ( )
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::r200_camera.

Definition at line 309 of file ds-device.cpp.

bool rsimpl::ds_device::supports_option ( rs_option  option) const
overridevirtual

Reimplemented from rs_device_base.

Reimplemented in rsimpl::zr300_camera.

Definition at line 555 of file ds-device.cpp.

Member Data Documentation

time_pad rsimpl::ds::ds_device::start_stop_pad
protected

Definition at line 40 of file ds-device.h.


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


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19