Repository navigation
Closed
Description
Context
Phase 3 / G3 of FastLED/license#14 and the clean-room conversion designed in FastLED/license#13. The required result is a CC0 fixed-point minimp3 path with measured Helix parity, not a source translation from RPSL Helix.
Proposal
Convert minimp3 stage-by-stage under the Phase 0 golden harness and Phase 1/2 audit rigs: synthesis, IMDCT/antialias, Huffman/dequant/scalefactors, stereo, and end-to-end guard-bit tracking. Commit generators for all ISO-derived tables and retain MINIMP3_ONLY_MP3 for v1.
Acceptance criteria
- Capture RED evidence: fixed-vs-float golden tests fail because
MINIMP3_FIXED_POINTis absent. - Add fixed-vs-float gates for every corpus file: PSNR at least 90 dB, max difference at most 8 LSB, and at least 55 dB signal-relative quality for -60 dBFS content.
- Add per-stage dump comparison and ASan/UBSan differential fuzzing with matching accept/reject, frame consumption, and bounded PCM differences.
- Implement synthesis, IMDCT/antialias, Huffman/dequant/scalefactors, stereo, and guard-bit tracking without copying Helix code, literals, comments, or coefficients.
- Commit generators for every ISO-formula-derived table and document clean-room provenance.
- For every converted stage, keep golden tests green and itemize memory/op-ledger deltas.
- Achieve multiplies/frame no more than 1.1x Helix, working RAM no more than 24 KiB, stack no more than 2 KiB, and target inner-loop counts no more than 1.2x Helix on all four audited ISAs.
- Validate proxy accuracy with on-target ESP32 and RP2040 cycles/frame spot checks.
- Turn the focused RED signal GREEN, pass broader checks, and merge a PR that closes this issue and links Execution plan: vendor minimp3, optimize to Helix parity, SIMD past Helix, delete libhelix_mp3 (phased, gated) license#14.
Decisions
- Helix is an ideas-only clean-room reference; all implementation expression remains CC0-compatible.
- Stage boundaries stay measurable throughout conversion; no big-bang replacement.
- This issue depends on the Phase 1 and Phase 2 ledgers and owns G3 only.
Related issues
- Parent tracker: Execution plan: vendor minimp3, optimize to Helix parity, SIMD past Helix, delete libhelix_mp3 (phased, gated) license#14
- Feasibility and clean-room design: Feasibility: MINIMP3_FIXED_POINT — CC0 fixed-point minimp3 mode, golden-tested vs float, to replace RPSL libhelix_mp3 license#13
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Aug 31, 2026
Acceptance bar set by repo owner (2026-08-31): unit tests and perf tests passing.
An earlier revision of this comment said the perf criteria were relaxed to informational. That is withdrawn — perf tests gate too. MP3 being a low-traffic codec changes which perf evidence is required, not whether perf is enforced.
For this issue that means:
MINIMP3_FIXED_POINT), fixed-vs-float golden gates over the corpus, per-stage comparison, and ASan/UBSan-clean differential fuzzing. Fixed-point stays a hard blocker for chore(mp3): make minimp3 sole backend and remove libhelix #4056.minimp3-fixedrow added:ci/codec_memory/audit.py(working RAM <= 24 KiB, stack <= 2 KiB, 2% ledger regression gate) andci/codec_cpu/audit.py(operation ledger + 5% host trend gate + target codegen ledger across the four audited ISAs).Refs FastLED/license#14.
fix: clear the pre-existing lint and uno-build failures blocking CI
feat(mp3): fixed-point minimp3 DSP path (#4054) (#4105)
chore(mp3): make minimp3 the sole backend and delete libhelix (#4056) (…