Skip to content

Conversation

@andrews05
Copy link
Contributor

I've been learning about QOI format lately and thought it could be a great option for RleX so I put this together to try it out.
Pros of QOI:

  • It's an existing, well-defined format with support in software such as imagemagick and ffmpeg.
  • Compresses notably better than my previous "packbitsx" proposal.
  • Is still very simple and very fast (this PR is similar in both line count and performance to the packbitsx PR).
  • Has precedent for use in game engines (https://github.com/phoboslab/qoi#qoi-support-in-other-software).

Obviously a multi-frame RleX isn't quite the same as a QOI image file, so you can't just use other software to read and write it, but potentially QOI could also be used in Kestrel for static images (instead of PICT or TGA etc), in which case it could be helpful having a compatible bitstream.
On the other hand, if there's no reason to keep the bitstream compatible then there are some easy changes that could be made to make it better and/or faster.

Anyway, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant