mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
Implements the decode-once cache claimed in the PR review reply: HDR image layers now reuse decoded rgb48le buffers across the frames they're visible. Cache is render-scoped (cleared per job) and keyed by framePath::sourceTransfer::targetTransfer because convertTransfer mutates the buffer in-place. Only image layers receive the cache. Video layers would bloat memory (every frame has a unique path: ~37 MB × 300 frames at 1080p ≈ 11 GB). Images decode once and are blitted on every visible frame. Also promotes the blitHdrVideoLayer catch block from log.debug to log.warn — a blit failure means a missing/dropped HDR layer, which is user-visible and shouldn't be silent at the default log level. Made-with: Cursor