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

#include <hdr-config.h>

Public Member Functions

float get (rs2_option option) const
 
 hdr_config (hw_monitor &hwm, std::shared_ptr< sensor_base > depth_ep, const option_range &exposure_range, const option_range &gain_range)
 
bool is_config_in_process () const
 
bool is_enabled () const
 
void set (rs2_option option, float value, option_range range)
 

Private Member Functions

bool configure_hdr_as_in_fw (const std::vector< byte > &current_subpreset)
 
void disable ()
 
bool is_current_subpreset_hdr (const std::vector< byte > &current_subpreset) const
 
bool is_hdr_enabled_in_device (std::vector< byte > &result) const
 
bool is_hdr_id (int id) const
 
command prepare_hdr_sub_preset_command () const
 
std::vector< uint8_tprepare_sub_preset_frames_config () const
 
std::vector< uint8_tprepare_sub_preset_header () const
 
void restore_options_after_disable ()
 
bool send_sub_preset_to_fw ()
 
void set_enable_status (float value)
 
void set_exposure (float value)
 
void set_gain (float value)
 
void set_id (float value)
 
void set_options_to_be_restored_after_disable ()
 
void set_sequence_index (float value)
 
void set_sequence_size (float value)
 
bool validate_config () const
 

Private Attributes

bool _auto_exposure_to_be_restored
 
int _current_hdr_sequence_index
 
bool _emitter_on_off_to_be_restored
 
option_range _exposure_range
 
option_range _gain_range
 
bool _has_config_changed
 
std::vector< hdr_params_hdr_sequence_params
 
hw_monitor_hwm
 
int _id
 
bool _is_config_in_process
 
bool _is_enabled
 
float _pre_hdr_exposure
 
std::weak_ptr< sensor_base_sensor
 
size_t _sequence_size
 
bool _use_workaround
 
const uint8_t CONTROL_ID_EXPOSURE = 1
 
const uint8_t CONTROL_ID_GAIN = 2
 
const uint8_t CONTROL_ID_LASER = 0
 
const int DEFAULT_CURRENT_HDR_SEQUENCE_INDEX = -1
 
const int DEFAULT_HDR_ID = 0
 
const int DEFAULT_HDR_SEQUENCE_SIZE = 2
 
const float PRE_ENABLE_HDR_EXPOSURE = 30000.f
 

Detailed Description

Definition at line 30 of file hdr-config.h.

Constructor & Destructor Documentation

librealsense::hdr_config::hdr_config ( hw_monitor hwm,
std::shared_ptr< sensor_base depth_ep,
const option_range exposure_range,
const option_range gain_range 
)

Definition at line 9 of file hdr-config.cpp.

Member Function Documentation

bool librealsense::hdr_config::configure_hdr_as_in_fw ( const std::vector< byte > &  current_subpreset)
private

Definition at line 80 of file hdr-config.cpp.

void librealsense::hdr_config::disable ( )
private

Definition at line 369 of file hdr-config.cpp.

float librealsense::hdr_config::get ( rs2_option  option) const

Definition at line 139 of file hdr-config.cpp.

bool librealsense::hdr_config::is_config_in_process ( ) const

Definition at line 219 of file hdr-config.cpp.

bool librealsense::hdr_config::is_current_subpreset_hdr ( const std::vector< byte > &  current_subpreset) const
private

Definition at line 64 of file hdr-config.cpp.

bool librealsense::hdr_config::is_enabled ( ) const

Definition at line 224 of file hdr-config.cpp.

bool librealsense::hdr_config::is_hdr_enabled_in_device ( std::vector< byte > &  result) const
private

Definition at line 50 of file hdr-config.cpp.

bool librealsense::hdr_config::is_hdr_id ( int  id) const
private

Definition at line 75 of file hdr-config.cpp.

command librealsense::hdr_config::prepare_hdr_sub_preset_command ( ) const
private

Definition at line 385 of file hdr-config.cpp.

std::vector< uint8_t > librealsense::hdr_config::prepare_sub_preset_frames_config ( ) const
private

Definition at line 421 of file hdr-config.cpp.

std::vector< uint8_t > librealsense::hdr_config::prepare_sub_preset_header ( ) const
private

Definition at line 402 of file hdr-config.cpp.

void librealsense::hdr_config::restore_options_after_disable ( )
private

Definition at line 337 of file hdr-config.cpp.

bool librealsense::hdr_config::send_sub_preset_to_fw ( )
private

Definition at line 354 of file hdr-config.cpp.

void librealsense::hdr_config::set ( rs2_option  option,
float  value,
option_range  range 
)

Definition at line 182 of file hdr-config.cpp.

void librealsense::hdr_config::set_enable_status ( float  value)
private

Definition at line 249 of file hdr-config.cpp.

void librealsense::hdr_config::set_exposure ( float  value)
private

Definition at line 495 of file hdr-config.cpp.

void librealsense::hdr_config::set_gain ( float  value)
private

Definition at line 501 of file hdr-config.cpp.

void librealsense::hdr_config::set_id ( float  value)
private

Definition at line 458 of file hdr-config.cpp.

void librealsense::hdr_config::set_options_to_be_restored_after_disable ( )
private

Definition at line 313 of file hdr-config.cpp.

void librealsense::hdr_config::set_sequence_index ( float  value)
private

Definition at line 481 of file hdr-config.cpp.

void librealsense::hdr_config::set_sequence_size ( float  value)
private

Definition at line 468 of file hdr-config.cpp.

bool librealsense::hdr_config::validate_config ( ) const
private

Definition at line 452 of file hdr-config.cpp.

Member Data Documentation

bool librealsense::hdr_config::_auto_exposure_to_be_restored
private

Definition at line 83 of file hdr-config.h.

int librealsense::hdr_config::_current_hdr_sequence_index
private

Definition at line 79 of file hdr-config.h.

bool librealsense::hdr_config::_emitter_on_off_to_be_restored
private

Definition at line 84 of file hdr-config.h.

option_range librealsense::hdr_config::_exposure_range
private

Definition at line 87 of file hdr-config.h.

option_range librealsense::hdr_config::_gain_range
private

Definition at line 88 of file hdr-config.h.

bool librealsense::hdr_config::_has_config_changed
private

Definition at line 82 of file hdr-config.h.

std::vector<hdr_params> librealsense::hdr_config::_hdr_sequence_params
private

Definition at line 78 of file hdr-config.h.

hw_monitor& librealsense::hdr_config::_hwm
private

Definition at line 85 of file hdr-config.h.

int librealsense::hdr_config::_id
private

Definition at line 76 of file hdr-config.h.

bool librealsense::hdr_config::_is_config_in_process
private

Definition at line 81 of file hdr-config.h.

bool librealsense::hdr_config::_is_enabled
mutableprivate

Definition at line 80 of file hdr-config.h.

float librealsense::hdr_config::_pre_hdr_exposure
private

Definition at line 90 of file hdr-config.h.

std::weak_ptr<sensor_base> librealsense::hdr_config::_sensor
private

Definition at line 86 of file hdr-config.h.

size_t librealsense::hdr_config::_sequence_size
private

Definition at line 77 of file hdr-config.h.

bool librealsense::hdr_config::_use_workaround
private

Definition at line 89 of file hdr-config.h.

const uint8_t librealsense::hdr_config::CONTROL_ID_EXPOSURE = 1
private

Definition at line 60 of file hdr-config.h.

const uint8_t librealsense::hdr_config::CONTROL_ID_GAIN = 2
private

Definition at line 61 of file hdr-config.h.

const uint8_t librealsense::hdr_config::CONTROL_ID_LASER = 0
private

Definition at line 59 of file hdr-config.h.

const int librealsense::hdr_config::DEFAULT_CURRENT_HDR_SEQUENCE_INDEX = -1
private

Definition at line 53 of file hdr-config.h.

const int librealsense::hdr_config::DEFAULT_HDR_ID = 0
private

Definition at line 52 of file hdr-config.h.

const int librealsense::hdr_config::DEFAULT_HDR_SEQUENCE_SIZE = 2
private

Definition at line 54 of file hdr-config.h.

const float librealsense::hdr_config::PRE_ENABLE_HDR_EXPOSURE = 30000.f
private

Definition at line 57 of file hdr-config.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