- Replace the in-process GTK3 run_gui() with run_worker(), which owns the camera engine. - Worker streams downscaled Cairo BGRA frames to stdout, with a length header per frame. - Worker reads UI commands from stdin (switch, snap, snap_full, rec_start, quit) and emits state lines (info, active, flash, toast, saved_photo, rec_state). - SIGINT/SIGTERM set a stop flag so the worker shuts down cleanly.
This commit is contained in:
1 parent
1c954aa657
commit
de39b74282
4 files changed
+193
-907
No files matched your search
+1
-1
@@ -48,5 +48,5 @@ Chandra includes KMS/libinput/compositor adaptations tailored for mainline Linux
|
||||
|
||||
## Camera App (`chandra-camera`)
|
||||
|
||||
- [`camera/chandra-camera`](../camera/chandra-camera) provides a native GTK3/Cairo Wayland camera app installed via [`session/install.py`](../session/install.py) with its desktop launcher and icon (`Camera`).
|
||||
- [`camera/chandra-camera`](../camera/chandra-camera) and [`camera/chandra-camera-ui.c`](../camera/chandra-camera-ui.c) provide a native GTK3/Cairo Wayland camera app (no extra Python GI packages required) installed via [`session/install.py`](../session/install.py) with its desktop launcher and icon (`Camera`).
|
||||
- Supports multi-sensor `libcamera` discovery and live switching (`Back · imx519`, `Front · imx371`, `Back 2 · imx376` on OnePlus 6T, with automatic V4L2 fallback on desktops), sensor orientation transform + front-camera mirror preview, Photo mode (`HD` instant / `Full` high-resolution `StillCapture`, `0`/`3s`/`10s` self-timer, 3×3 rule-of-thirds grid) saving JPEGs to `~/Pictures/Camera`, Video mode recording H.264 MP4s via `ffmpeg` to `~/Videos/Camera`, an in-app photo gallery viewer, rear flash/torch LED control (`/sys/class/leds/white:flash`) through `org.freedesktop.login1.Session.SetBrightness`, and hardware volume-button or `Space`/`Return` shutter control.
|
||||
Reference in new issue
Block a user