mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Rust-based video composition renderer using Skia (Chrome's 2D engine): - scene graph types with serde JSON parsing - Skia raster surface with JPEG/PNG encoding - element painter: backgrounds, border-radius, transforms, opacity, text - static render pipeline: scene → Skia paint → FFmpeg pipe → MP4 - CDP scene extraction bridge (TypeScript) - criterion benchmark: 1080p, 20 elements with text Benchmark results (CPU raster, Apple Silicon): paint_1080p_20_elements: 29.8ms/frame paint_and_encode_jpeg_1080p: 35.7ms/frame CPU raster is comparable to Chrome CDP (14-40ms). The GPU backend (Metal/Vulkan, Phase 3) is where the 10-50x speedup materializes — the infrastructure is proven, the bottleneck is CPU vs GPU painting.