Pinch: the image now follows the hand (midpoint drift) and zooms ABOUT the midpoint — the image point under the fingers stays put while the scale changes. Per-frame delta math, clamped as before (fit min, image-edge pan limits). Live watching: new photos appear in the grid within ~2s of being written. inotify does not work on Android's FUSE-backed external storage, so the watcher polls a tree signature (dir mtimes only — a few dozen stats/s) every second; on change (or a 30s safety-net full pass) it debounces 600ms for the write burst, then runs the incremental rescan (walk + DB diff + emit) off the main thread. Supporting changes: - Staged corruption: a decode failure no longer marks an id broken immediately — 3 consecutive failures are required, and a success clears the count. A photo still being written fails once or twice and then decodes; genuine garbage gives up and stays gray. - Grid rebuild preserves the viewport across a live rescan (pins to the cell that was on top), so a new photo landing at the top does not jump the scroll position. |
||
|---|---|---|
| docs/BUGS | ||
| harnesses | ||
| scripts | ||
| shim/out | ||
| src | ||
| tools | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| HANDOFF.md | ||
| LICENSE | ||
| README.md | ||
gallery
A high-performance image gallery for Android (primary), Linux and macOS —
Rust + egui 0.31 (egui_glow / winit 0.30 / glow 0.16).
Ported from Slint 1.18 after the zero-jank campaign showed Slint-on-Mali
janky at its base level while egui measured 3–7× cleaner (HANDOFF.md
§8.11–8.12). The Slint tree is preserved in git history and
docs/BUGS/.
Status: M0–M4 ported to egui, zero-jank tuning in progress. See HANDOFF.md — the development hand-off: architecture, thumbnail pipeline, milestones M1–M7, the Slint jank campaign, the egui port, and the sltest/egtest/tttest harnesses (A/B/C: Slint/egui/WebView).
Build
./scripts/build.sh debug # debug x86_64 APK + install on emulator
./scripts/build.sh # release x86_64 (emulator)
./scripts/build.sh aarch64 # release aarch64 (device)
cargo run # desktop (Linux needs libfontconfig1 + pkg-config)
Requires: Rust (rustup), cargo-apk2, Android SDK + NDK 27 (see HANDOFF.md §3
for exact paths/env).
License
GPL-3.0 (see LICENSE). Built on egui (MIT/Apache-2.0).