gamut v0.0.7 ask for what you want

Guillaume Piolat first.last at spam.org
Tue Aug 9 22:02:37 UTC 2022


On Monday, 8 August 2022 at 16:07:54 UTC, wjoe wrote:
> your lib would not just be @nogc but @no_allocation.

All image decoders in gamut need to malloc more than just for 
pixel data.
Even STB allocates for format conversion, zlib buffers, 16-bit 
<-> 8-bit, etc. it's not just pixel data.
Single allocation pessimizes the size a lot because since you 
haven't encoded yet, you need to prepare a buffer for a large 
worst-case.


More information about the Digitalmars-d-announce mailing list