Rudimentary Allegro QOI plugin #1668
bonkmaykrQ
started this conversation in
Show and tell
Replies: 1 comment
-
At a glance this looks good, and the file format is quite fascinating too. I'd be happy to have this included. The only issue I see is that it'll run afoul the same issue as the MP3 support: the reference implementation's authors are too lazy to do a proper release, which means that it cannot be packaged by Linux distributions and homebrew on MacOS, which means that those versions of Allegro won't have this enabled and you'll need to build from source. The windows binaries, since we make them ourselves, will easily have it though. Vendoring (i.e. adding the source to Allegro itself) is not an option. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found that when combined with PhysFS ZIP mounting, QOI gave the best speed and compression ratio for lossless sprites. It's a pretty useful format for games. I wrote a (probably really bad) C add-on to handle QOI within Allegro.
https://git.worlio.com/Canithesis/allegro_qoi
This implementation does have some issues. No saving QOIs yet. Doesn't log anything. And it imports the reference decoder which always provides it's own buffer with it's own settings, meaning some time and memory is wasted just copying data to the right location. Polishing these up isn't a huge task. Could maybe merge the ref decoder into the plugin itself since it's very basic anyways.
This is about the same as allegro_image's libwebp integration (tiny), perhaps it could be merged into allegro_image once i've ironed it out.
Beta Was this translation helpful? Give feedback.
All reactions