imagine
Goals
- To provide image format decoders for various image formats:
- Decoders should be possible to use without
imaginedoing any allocation (the user provides any necessary buffers). - Decoders should be simple to use when
imagineis allowed to allocate for you. Functions to "just get me the RGBA8 pixels", and things like that.
- Decoders should be possible to use without
- To provide image format encoders for various image formats:
- Depending on format, a low-compression or no-compression encoder will likely
be available even without
imaginebeing allowed to allocate. - Depending on format, a good compressor will be available when
imagineis allowed to allocate.
- Depending on format, a low-compression or no-compression encoder will likely
be available even without
Status
pngandbmpcan both be decoded properly withoutimagineallocating. The "simple" API for doing so is not yet developed. This means that currently you need quite a bit of knowledge about the details of each format to actually decode an image. See thedemoexample if you want to try and understand how things work (though thedemodoesn't yet handle all cases either...).- Changes are expected to break things in upcoming versions! We're
0.0.zfor a reason.
There's many places for improvement, file PRs if you like!