Open slimsag opened 12 months ago
In the future it could be useful to have platform optimized formats. Having a universal solution is important though and the thinking here sounds good.
KTX2, WebP, JPEG XL are solid options IMO.
Pros:
wuffs
library, usable with Zig.Cons:
libjxl
's fast_lossless implementation.Pros:
cwebp -z 9 -o
. Great at pixel art.Cons:
Pros:
cjxl -e 1 -d 0
) is extremely fast to encode and decode on my machine, optimized for multiple cores.
It loves to beat QOI in speed and resulting compression. Cons:
zune
library for assessing complexity?Pros:
cjxl -d 0 -e 1
is still king.Cons:
Pros:
libzstd
, however not in the Zig standard library.Cons:
PNG, WebP, JPEG, and others are non-options because they are only disk-compressed.
KTX2 is likely a non-option because the spec for it is nasty.
.basis
or.KTX2
format: https://github.com/BinomialLLC/basis_universal.ktx2
format is quite nasty, if you look at the file format it is pretty convoluted..basis
is fairly nice and simple.Perhaps we can use that with just
.basis
files?