mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 00:55:43 +00:00
The limit of one read is decided here (the 8 GiB floor, or the memory budget when that is more) and handed to craft-exr as the read's max_bytes, so the planes it reserves and the largest block it decompresses follow it. craft-exr reserves the planes fallibly, so the reader's own fallible plane allocation is not needed: memory the system can't give is a read that failed just now (read_error), a plane over the limit a refusal for size.