News for hackers. Stuff that matters.
Re:QOA, the Quite OK Audio Format by Computeiful on Thursday February 02, 2023 @09:29AM (#34626924)
QOI caused a huge burst in interest for image formats. Audio is a little harder to work with and understanding so I can imagine less impact for QOA (still good though). What I'm really looking forward to is QOV (video).
Re:QOA, the Quite OK Audio Format by actionfromafar on Thursday February 02, 2023 @09:34AM (#34627003)
QOI is only 8-bit depth (per channel) so it's a no-go for me. But interesting, yes.
Re:QOA, the Quite OK Audio Format by stefncb on Thursday February 02, 2023 @10:19AM (#34627679)
Out of curiosity, what for?
Re:QOA, the Quite OK Audio Format by zokier on Thursday February 02, 2023 @10:32AM (#34627931)
Considering QOIs association with gamedev, HDR textures would be decent guess
Re:QOA, the Quite OK Audio Format by dylan604 on Thursday February 02, 2023 @10:55AM (#34628310)
Not the OP but as an example, the difference between 8-bit and 10-bit on visual complexities like gradients are very noticeable.
Re:QOA, the Quite OK Audio Format by actionfromafar on Thursday February 02, 2023 @11:02AM (#34628428)
I have a pipeline for scanning of analog sources like film. Since these are meant to be edited after scanning, 8-bit range is much to limited.
Re:QOA, the Quite OK Audio Format by thanatos519 on Thursday February 02, 2023 @11:28AM (#34628844)
I render accumulation fractals like the Buddhabrot at 32 bits per channel. So far I have only used about 27 bits but it's nice to have a bit of headroom.
Re:QOA, the Quite OK Audio Format by krasin on Thursday February 02, 2023 @01:12PM (#34630699)
> Out of curiosity, what for?

Modern cameras can usually sense 12-bit colors. It's wasteful to throw this information away. We historically use 8-bit colors because of technical limitations in the past and because it's conveniently matching a byte. But quality-wise, 12-bit color is just much better.

Re:QOA, the Quite OK Audio Format by creshal on Thursday February 02, 2023 @01:56PM (#34631393)
I wonder how much complexity it would add to support 10 or 16 bit per channel in the file format.
Re:QOA, the Quite OK Audio Format by adgjlsfhk1 on Thursday February 02, 2023 @02:11PM (#34631610)
you'd have to totally redesign the format. QOI is very specialized on 8 bits per channel (and RGBA)
Re:QOA, the Quite OK Audio Format by creshal on Thursday February 02, 2023 @04:54PM (#34633729)
The physical layout, sure, but would it conceptually involve more than just defining twice as large chunk types for 16 bit channels? Unless I'm missing something, it should be fairly uncomplicated code-wise?
Re:QOA, the Quite OK Audio Format by adgjlsfhk1 on Thursday February 02, 2023 @06:09PM (#34634600)
Not really. QOI's opcodes are very specifically designed based on the characteristics of 8 bit images. For example, there is an 8 bit opcode for a run of up to 64 identical pixels. This makes a lot of sense for an 8 bit image, but is a lot less likely to appear in a 16 bit picture. For a 16 bit photo, the minimal QOI modification would almost certainly be worse than uncompressed since noise in the sensor will prevent any of the 8 bit opcodes from working.
Re:QOA, the Quite OK Audio Format by creshal on Friday February 03, 2023 @06:55AM (#34640009)
RLE doesn't really work for photos even at 8 bit depth, the noise is noticeable even there. It's mainly useful for drawn/rendered content, where solid colored areas are far more common. That won't be much different at 16 bit depth.
Re:QOA, the Quite OK Audio Format by adgjlsfhk1 on Friday February 03, 2023 @11:02AM (#34642889)
A possibly better example for photos would be the 8 bit tag that says a pixel is within -2 to +1 in each of RGB. In 8 bit, there are a lot of cases where this is a big enough range to capture the noise of a static color (and or a gradient). In a 16 bit image, a lot of the time there might be 3-4 bits of noise which will mean that the tag is a lot less useful.
Re:QOA, the Quite OK Audio Format by p0nce on Sunday February 05, 2023 @01:16PM (#34667233)
I've extended QOI for 10-bit here: https://github.com/AuburnSounds/gamut (and also grey and grey+alpha). So it's a separate incompatible codec yes.

The problem with a QOI that would have 16-bit is that lossless becomes more expensive, exact match in the color table is more rare too and not worth it anymore.

You will start to need more prediction modes + offsets.

Using QOIX for elevation maps in PBR currently.