Face unlock: screen fill-light for low light; fix Quad-Bayer AE ramp
CI / test (push) Failing after 51s
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:
1 parent
c5b96e2c70
commit
40c5d6722c
8 files changed
+266
-12
No files matched your search
@@ -136,7 +136,17 @@ fn ChandraCompositor::auth_ops(self : ChandraCompositor) -> Array[@scene.DrawOp]
|
||||
let rad = self.theme.radius + 2
|
||||
let sw = self.output_w
|
||||
let sh = self.output_h
|
||||
ops.push(@scene.DrawOp::FillRect(@scene.Rect::new(0, 0, sw, sh), @scene.Rgba::new(0, 0, 0, 150), 0))
|
||||
ops.push(
|
||||
@scene.DrawOp::FillRect(
|
||||
@scene.Rect::new(0, 0, sw, sh),
|
||||
if d.face == Scanning {
|
||||
@scene.Rgba::new(255, 250, 242, 235)
|
||||
} else {
|
||||
@scene.Rgba::new(0, 0, 0, 150)
|
||||
},
|
||||
0,
|
||||
),
|
||||
)
|
||||
let w = (sw - 32).min(460)
|
||||
let pad = 24
|
||||
let inner = w - pad * 2
|
||||
|
||||
Reference in new issue
Block a user