mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* fix(hdr): bound HDR image decode and resample sizes The native HDR image path sized its host buffers from the PNG header and the element's page-measured layout box, with no ceiling. - PNG decode checks IHDR dimensions and bit depth before allocating, inflates with maxOutputLength = height * (stride + 1), and rejects image data whose inflated length does not match the header. - HDR images are limited to 8192x8192 pixels; resampleRgb48leObjectFit refuses targets above that. - A layout box larger than the output frame is shrunk uniformly to fit it. - Decoded and resampled HDR image buffers count against the HDR extraction budget (HDR_EXTRACTION_MAX_BYTES / cgroup limit) for the render's lifetime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * build(engine): raise the packed size budget to 510000 bytes The PNG header checks and bounded inflate add about 500 bytes to the packed engine, which was already within a few hundred bytes of its 1% tolerance over the 500000-byte budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>