Face unlock: screen fill-light for low light; fix Quad-Bayer AE ramp
CI / test (push) Failing after 51s

- Boost the backlight to 90% while enrolling with the light on or while sign-in is scanning, then restore the previous level when that ends or the window closes.
- Add a Light: On/Off toggle (L key) to the Face window; the backdrop turns soft white while the light is on.
- Quad-Bayer AE: compute the low-light gain once and cap it by the highlight limit, so ramp-up and highlight back-off agree.
- Tests: backlight round-trip through the Face window, Quad-Bayer debayer color/low-light/dark-frame cases, and the AE ramp, back-off and restore order.
This commit is contained in:
nandi committed 2026-11-28 18:32:15 -08:00
1 parent c5b96e2c70
commit 40c5d6722c
8 files changed
+266 -12

No files matched your search

+7
View File
@@ -298,6 +298,7 @@ pub(all) struct ChandraCompositor {
/// it last drawn.
face_hits : Array[(@scene.Rect, FaceHit)]
mut face_rev : Int
mut face_saved_brightness : Int
/// The keymap the dialog types through (parsed from the one clients get).
mut keymap : (Bytes, @polkit.Keymap)?
/// Another polkit agent was started (the Settings switch for Chandra's dialog is off).
@@ -373,6 +374,7 @@ pub fn ChandraCompositor::new(
auth_slow_said: false,
face_hits: [],
face_rev: -1,
face_saved_brightness: -1,
keymap: None,
fallback_agent_started: false,
mods_latched: 0U,
@@ -622,6 +624,11 @@ pub fn ChandraCompositor::resize(self : ChandraCompositor, w : Int, h : Int) ->
///|
pub fn ChandraCompositor::close(self : ChandraCompositor) -> Unit {
self.stop_recording()
if self.face_saved_brightness >= 0 {
let prev = self.face_saved_brightness
self.face_saved_brightness = -1
ignore(self.shell.set_brightness(prev))
}
for _, win in self.windows {
release_snapshot(win.surface)
}