Skip to content

feat(frontend-sync): add zero-allocation offline RGB888 showcase GIF … - #40

Merged
red77290 merged 5 commits into
mainfrom
feat/offline-showcase-gif-sync
Dec 4, 2026
Merged

red77290 merged 5 commits into
mainfrom
feat/offline-showcase-gif-sync

Conversation

@red77290

@red77290 red77290 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Offline RGB888 Showcase GIF Sync on RPi

  • Resolve local /showcase/<folder>/<stem>.gif (YOKO) and /showcase_tate/<folder>/<stem>.gif (TATE) via DmdCache::resolve_offline_showcase_gif_path with 0 network traffic when present on SD/DATA
  • Decode multi-frame 24-bit RGB888 GIFs off-thread into PreloadedRgb888Gif and render on H-Core via SyncOfflineGifRenderer (once, alternating, loop cycles, V1.6-FinalLocked parity with ESP32)
  • Prove 0 H-Core heap allocations across 10,000 frames via TrackingAllocator in tests/test_v16_final_locked.rs plus full MQTT TATE E2E tests and trilingual (EN/FR/ES) Online/Offline/Hybrid guides

Integer UI Upscaling (matrix.ui_scale) & Multi-Panel Pixel Mapper (matrix.pixel_mapper)

  • matrix.ui_scale ("auto", "1", "2", "3", "4") & ScaledDrawingSurface: Zero-allocation Nearest-Neighbor integer upscaling wrapper around IDrawingSurface preserving DirtyBounds and CanvasView.
  • Zero impact on existing YOKO & TATE panels: "auto" stays strictly at 1x for 64x32, 32x64, 64x64, 128x32, 32x128, 128x64, 64x128, 256x64, and 64x256, triggering 2x/3x/4x only when min(width, height) >= 128 and max(width, height) >= 192 (256x192 -> 2x 128x96, 512x384 -> 4x 128x96).
  • Native 1x full-screen media bypass (surface.unscaled()): Keeps native 1x full-screen rendering for gifs, DMD Media Showcase Phase 2 LiveStream video/panoramas, and FrontendSync ShowcaseStream, while letting Showcase Phase 1 Intro Cards benefit from upscaling on giant LED walls.
  • matrix.pixel_mapper: Forwards hzeller pixel-mapper chains (e.g. "U-mapper", "V-mapper") to LedMatrixOptions::set_pixel_mapper_config and mirrors folded geometry in MatrixConfig::effective_physical_dimensions().
  • WebUI, OpenAPI, Trilingual Docs & Tests: Added #hw-pixel-mapper and #hw-ui-scale controls (EN/FR/ES parity), updated docs/openapi.yaml + trilingual docs, and added unit + 10,000-frame TrackingAllocator H-Core proofs.

web-flow and others added 5 commits November 24, 2026 19:49
…sync on RPi

- Resolve local `/showcase/<folder>/<stem>.gif` (YOKO) and `/showcase_tate/<folder>/<stem>.gif` (TATE) via `DmdCache::resolve_offline_showcase_gif_path` with `0` network traffic when present on SD/DATA
- Decode multi-frame 24-bit `RGB888` GIFs off-thread into `PreloadedRgb888Gif` and render on H-Core via `SyncOfflineGifRenderer` (`once`, `alternating`, `loop` cycles, `V1.6-FinalLocked` parity with ESP32)
- Prove `0` H-Core heap allocations across 10,000 frames via `TrackingAllocator` in `tests/test_v16_final_locked.rs` plus full MQTT TATE E2E tests and trilingual (`EN`/`FR`/`ES`) Online/Offline/Hybrid guides
…er support

- Add matrix.ui_scale ('auto', '1', '2', '3', '4') and zero-allocation ScaledDrawingSurface Nearest-Neighbor wrapper around IDrawingSurface preserving DirtyBounds and CanvasView.
- Guarantee strict 1x zero-impact behavior in 'auto' mode for 64x32, 32x64, 64x64, 128x32, 32x128, 128x64, 64x128, 256x64, and 64x256, only activating 2x/3x/4x when min(w,h) >= 128 and max(w,h) >= 192 (e.g. 256x192, 512x384).
- Preserve native 1x full-screen rendering via surface.unscaled() for gifs, DMD Media Showcase Phase 2 LiveStream video/panoramas, and FrontendSync ShowcaseStream while upscaling Phase 1 Intro Cards.
- Add matrix.pixel_mapper (e.g. 'U-mapper', 'V-mapper') forwarded to hzeller LedMatrixOptions::set_pixel_mapper_config and mirrored in effective_physical_dimensions().
- Update WebUI Hardware tab, OpenAPI schema, EN/FR/ES i18n & docs, and unit + H-Core 10,000-frame zero-allocation tests.
@red77290
red77290 merged commit 837ef4c into main Dec 4, 2026
@red77290
red77290 deleted the feat/offline-showcase-gif-sync branch December 4, 2026 17:10
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.

2 participants