mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 04:04:25 +00:00
- unpack: checked sample, row-bit and output products, capped at MAX_SAMPLES before allocating - every chunk is charged what its decoder may allocate (lossless: coded rows + 1/8; lossy: the 32-pixel MCU-padded tile) against the aggregate budget before decoding, the lossless decoder is held to that, and truncated capacity is released - the lossy encoded-size floor allows 64 x spp samples per two-bit block (chroma subsampling)