Skip to content

Add Auto HDR support - #14159

Merged
OhadMeir merged 6 commits into
realsenseai:developmentfrom
AviaAv:auto-hdr
Jul 29, 2025
Merged

Add Auto HDR support#14159
OhadMeir merged 6 commits into
realsenseai:developmentfrom
AviaAv:auto-hdr

Conversation

@AviaAv

@AviaAv AviaAv commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

Tracked on: [RSDSO-19396]

@AviaAv
AviaAv requested a review from Nir-Az July 23, 2025 12:22
@AviaAv AviaAv changed the title add auto HDR support add Auto HDR support Jul 23, 2025
@AviaAv AviaAv changed the title add Auto HDR support Add Auto HDR support Jul 23, 2025
@Nir-Az
Nir-Az requested review from OhadMeir and removed request for Nir-Az July 23, 2025 12:37
Comment thread common/hdr-model.cpp
Comment thread common/hdr-model.cpp Outdated

initialize_default_config();
load_hdr_config_from_device();
//load_hdr_config_from_device();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread common/hdr-model.cpp Outdated
// pairs of gain and exposure
const std::vector< std::pair< int, int > > defaults = { { 16, (int)_exp_range.min }, { 16, 32000 } };
for (auto const& p : defaults)
const std::vector< std::pair< int, int > > man_defaults = { { 16, (int)_exp_range.min }, { 16, 32000 } };

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we only have ex_min as a variable and all other are hard coded?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Nir-Az

Nir-Az commented Jul 23, 2025

Copy link
Copy Markdown
Collaborator

Looks good overall, please update once it is ready for merge

Comment thread src/ds/advanced_mode/json_loader.hpp Outdated
const auto& controls = item.at("controls");
for (const auto& control : controls) {
for (const auto& kv : controls.items()) {
// just begin() because the control is a single object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread common/hdr-model.h
int depth_man_exp;
int depth_exp;

int delta_gain;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that you only use depth_gain/exp or delta_gain/exp. Why do we need this duplicity? Can use a single pair of values and set to needed fields

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to keep the values of both modes, even if we switch between them - for example, if we were on Auto mode and we switch to Manual mode, we will display the old Manual mode values instead of the Auto mode ones

@OhadMeir
OhadMeir merged commit 7726e15 into realsenseai:development Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants