News for hackers. Stuff that matters.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by LeoPanthera on Thursday December 23, 2021 @02:24PM (#29665447)
FLAC is always lossless, but has a variable compression ratio so you can trade compression for speed.

Using the command line "flac" tool, "flac -0" is the fastest, "flac -8" is the slowest, but produces the smallest files.

In my experience, 0-2 all produce roughly equivalent sized files, as do 4-8.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by makapuf on Thursday December 23, 2021 @04:24PM (#29666647)
I tried passing stereo wavs in 2 x 16bits (4bytes) as rgba for qoi but I haven't been very successful.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by adgjlsfhk1 on Thursday December 23, 2021 @05:36PM (#29667288)
That's not surprising. QOI is heavily optimized for images which tend to be relatively continuous, while audio tends to oscillate a ton.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by cycomanic on Friday December 24, 2021 @02:36AM (#29671278)
It might work to fourier transform first (although likely will kill performance)
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by adgjlsfhk1 on Friday December 24, 2021 @02:41AM (#29671320)
fixed size FFT (eg length 64) can be made scary fast.