Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hdr options changes #590

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Hdr options changes #590

merged 2 commits into from
Oct 25, 2023

Conversation

naushir
Copy link
Collaborator

@naushir naushir commented Oct 25, 2023

No description provided.

Keep the option values and behaviour the same, but now unconditionally
set the sensor HDR control to 0 when starting, and only set to 1 if
we are using an IMX708 sensor.  This annoyingly involves opening the
camera manager multiple times in certain configurations.

Signed-off-by: Naushir Patuck <[email protected]>
@davidplowman
Copy link
Collaborator

It all seems fair enough to me... if quite a lot of effort for something that you feel shouldn't have been needed in the first place!

The camera manager may be initialised multiple times depending on the
current and wanted state of the sensor HDR control. Avoid this by
having the camera manager accessable from the Options class and only
re-initialising it if the state of the sensor HDR control has changed.
Do this carefully enough, and there ought to be no change in behaviour
perceived by a application or the user.

Signed-off-by: Naushir Patuck <[email protected]>
app_->initCameraManager();

// Unconditionally disable libcamera logging for a bit.
libcamera::logSetTarget(libcamera::LoggingTargetNone);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this suppress only infos and debugs, or does it remove errors and warnings?
We might want to keep the latter.

@naushir naushir merged commit 00e39d5 into main Oct 25, 2023
10 checks passed
@naushir naushir deleted the hdr_options branch October 25, 2023 14:22
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