Skip to content

v0.0.8: image.decode_into

Choose a tag to compare

@fluxin fluxin released this 20 Oct 20:58
· 46 commits to main since this release

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, sized width * height * 4 from image.info. It
    covers every format; image.decode is now info, one allocation, then
    decode_into.
    • gif, bmp and webp each gain decode_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.