The OpenD Programming Language

qoi_decode

Decode a QOI image from memory.

The function either returns null on failure (invalid parameters or malloc failed) or a pointer to the decoded pixels. On success, the qoi_desc struct is filled with the description from the file header.

The returned pixel data should be free()d after use.

version(decodeQOI)
nothrow @nogc
void*
qoi_decode
(
const void* data
,
int size
,
qoi_desc* desc
,)

Meta