@bonkmaykr@canithesis.org
56 following, 31 followers
I've written a very rudimentary plugin for Allegro 5 that allows it to load QOI files as textures. Combined with the existing PhysFS plugin this gives both pretty respectable load times and compression.
https://git.worlio.com/Canithesis/allegro_qoi
There are some issues with the plugin as it is now. The big one is that it includes the reference decoder qoi.h which always returns it's own buffer with perfect pitch, and can only read files from either the standard I/O or from memory, so there's a lot of time and memory wasted just copying data around. Not quite as elegant usage as libwebp. But the format is so simple this is not a big deal and I can merge the codec into the plugin later to get around this.
Talked a little about merging this upstream into allegro_image after some additional work.