Repository navigation
v0.0.8: image.decode_into
Fixes from the consumers' switch to v0.0.7: ovg, o3d, onimite and odawg.
image.decode_into(data, pixels, pool, allocator)writes RGBA8 into
memory the caller owns, sizedwidth * height * 4fromimage.info. It
covers every format;image.decodeis nowinfo, one allocation, then
decode_into.gif,bmpandwebpeach gaindecode_into.- WebP lossless decodes straight into the caller's buffer, with the same
time and memory as before.
- Caller's allocator holds only the result: core:image's buffers for
PNG, TGA and QOI are now heap scratch, freed before returning. A 1080p PNG
takes 8.1 MB of yours, down from 20 MB.
Output is unchanged: the image gate and the WebP gate are all identical.