Raph Levien's nibnib decodes images two pixels at a time to hit extreme speed on an RP2350
Nibnib: Image compression with extreme decompression speed

A 4bpp image format built for extreme decompression speed, born from an experiment in DVI output on the RP2350 microcontroller. Its palette stores deltas rather than absolute colors, so soft regions look far better than plain palette images. Decoding reads one byte per pixel pair, doubles the previous pixel, and adds a palette entry — roughly 6 cycles per pixel. Encoding is asymmetric and orders of magnitude slower, relying on Floyd-Steinberg error diffusion.
The nibnib format uses a palette at its core, but surpasses palette images in quality because the palette stores a delta rather than the absolute color, vastly improving soft regions.
- raphlinus
If you have an Adafruit Fruit Jam, you can run the demo on that board [1]. It can stream 640x480 video off an SD card at 60fps, as well as display a static image from flash.
Also possibly of interest to HN, the decoder[2] is written in a new low level language called symbolasm[3], which seeks to combine the advantages of assembly language (it's possible to reason about and optimize performance with few limits) with some of the affordances of C, especially named variables and struct fields.
[1]: https://github.com/raphlinus/vic-2350
[2]: https://github.com/raphlinus/vic-2350/blob/main/image.sy
- augment_me
1) IMO pointless to put an emphasis on extreme decompression speed but not show numbers against JPEG even
2) BCx essentially does the same codebooking/paletting but more efficiently by allowing you to interpolate between two palette entries for an even larger compression
- zahlman
This seems like straining the definition of "compression". We have a delta-coding filter and then palettization? That's it?
Edit: I should say, I find it surprising (but cool) that it apparently works so well. I would have expected errors to accumulate since the decoder has to un-delta-code. I saw mention of Floyd-Steinberg dithering and presumably that's what it's for; seems hard to get it working across multiple colour axes simultaneously, but the complexity is all in the encoder, so.
- Vaushite
Reminds me slightly of the old Hold And Modify idea. Big palette values are like loading new colours; small ones are like HAM.
- vardump
This reminds me a bit of Amiga HAM. Similar horizontal fringing.
I guess you could also call Amiga's HAM graphics mode a compression method. Getting 12-bit (4096 colors) with just 6 input bits, with the original Amiga chipset, often called as "OCS".
Or later 262144 colors with 8 input bits, with the AGA chipset.