diff --git a/src/ds/d500/d500-device.cpp b/src/ds/d500/d500-device.cpp index 15a9b3139e3..cefe8d46bb7 100644 --- a/src/ds/d500/d500-device.cpp +++ b/src/ds/d500/d500-device.cpp @@ -1,8 +1,6 @@ // License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2022 Intel Corporation. All Rights Reserved. -#include "device.h" -#include "image.h" #include "metadata-parser.h" #include "metadata.h" #include @@ -17,21 +15,15 @@ #include #include "stream.h" #include "environment.h" -#include "d500-color.h" -#include "ds/d400/d400-nonmonochrome.h" #include #include #include "proc/depth-formats-converter.h" #include "proc/y8i-to-y8y8.h" -#include "proc/y12i-to-y16y16.h" #include "proc/y16i-to-y10msby10msb.h" -#include "proc/color-formats-converter.h" #include "hdr-config.h" -#include "../common/fw/firmware-version.h" -#include "fw-update/fw-update-unsigned.h" #include #include @@ -129,8 +121,7 @@ namespace librealsense : synthetic_sensor(ds::DEPTH_STEREO, uvc_sensor, owner, d500_depth_fourcc_to_rs2_format, d500_depth_fourcc_to_rs2_stream), _owner(owner), - _depth_units(-1), - _hdr_cfg(nullptr) + _depth_units(-1) { } processing_blocks get_recommended_processing_blocks() const override @@ -260,14 +251,6 @@ namespace librealsense set_frame_metadata_modifier([&](frame_additional_data& data) {data.depth_units = _depth_units.load(); }); } - void init_hdr_config(const option_range& exposure_range, const option_range& gain_range) - { - _hdr_cfg = std::make_shared(*(_owner->_hw_monitor), get_raw_sensor(), - exposure_range, gain_range); - } - - std::shared_ptr get_hdr_config() { return _hdr_cfg; } - float get_stereo_baseline_mm() const override { return _owner->get_stereo_baseline_mm(); } float get_preset_max_value() const override @@ -279,7 +262,6 @@ namespace librealsense const d500_device* _owner; mutable std::atomic _depth_units; float _stereo_baseline_mm; - std::shared_ptr _hdr_cfg; }; bool d500_device::is_camera_in_advanced_mode() const @@ -403,7 +385,7 @@ namespace librealsense return get_d500_raw_calibration_table(d500_calibration_table_id::rgb_calibration_id); }; - if (((hw_mon_over_xu) && (RS400_IMU_PID != _pid)) || (!group.usb_devices.size())) + if (hw_mon_over_xu || (!group.usb_devices.size())) { _hw_monitor = std::make_shared( std::make_shared( @@ -495,18 +477,13 @@ namespace librealsense std::make_shared>(raw_depth_sensor, depth_xu, DS5_EXT_TRIGGER, "Generate trigger from the camera to external device once per frame")); - std::shared_ptr