The OpenD Programming Language

gamut.plugins.qoix

QOIX support. This is "living standard" format living in Gamut that tries to improve upon QOI.

Members

Functions

qoix_lz4_decode
ubyte* qoix_lz4_decode(const(ubyte)* data, int size, qoi_desc* desc, int flags, PixelType decodedType)

Decodes a QOIX + LZ4 File format: QOIX header (15 bytes) Original data size (4 bytes) LZ4 encoded opcodes Warning: qoi_desc.channels is the encoded channel count. requestedType may or may not be followed as a wish. The actual type, after flags applied, is in decodedType.

qoix_lz4_encode
ubyte* qoix_lz4_encode(const(ubyte)* data, const(qoi_desc)* desc, int* out_len)

Encode in QOIX + LZ4. Result should be freed with free(). File format of final QOIX: QOIX header (QOIX_HEADER_SIZE bytes with compression = QOIX_COMPRESSION_LZ4) Original data size (4 bytes) LZ4 encoded opcodes Note: desc.compression is ignored. This function chooses the compression.

Meta