Shine is a fixed-point MP3 encoder for devices without a floating-point unit. Version 4.0 adds a psychoacoustic model, still in fixed point, with no libm. It was built with an AI coding assistant in three separate…
Version 4.0 adds a psychoacoustic model, still in fixed point, with no libm. It was built with an AI coding assistant in three separate passes. First, a description of how an existing psychoacoustic model behaves. Then, from that description alone, a normative spec (doc/psy in the repo). Finally, an implementation written from the spec alone. After that, PEAQ-driven tuning loops and a CPU loop (profiling, reading the generated assembly, testing vectorization options) took it the rest of the way.
On our measurements, it runs about 3x faster than LAME at a similar PEAQ score. PEAQ is only a model of hearing, though, so there's a blind test comparing shine, LAME and FDK AAC, with live results: https://toots.github.io/shine/listen/
0 comments
No comments yet.
Related stories
- Hacker News · 1 points · 2 months ago
- Hacker News · 1 points · about 3 hours ago
- Hacker News · 421 points · 2 months ago
- Hacker News · 3 points · 2 months ago
- Hacker News · 4 points · about 13 hours ago
- Hacker News · 6 points · about 2 months ago