Repository navigation
Closed
Description
Context
FastLED/license#14 defines Phase 0 of the gated replacement of the RPSL/RCSL Helix MP3 decoder with CC0 minimp3. FastLED currently compiles src/third_party/libhelix_mp3/ unconditionally and src/fl/codec/mp3.cpp.hpp is Helix-only. Upstream minimp3 is CC0-1.0; the pinned baseline for this phase is lieff/minimp3@ea99364f61c14656440e8d77e9c233ccf3124633.
Proposal
Vendor pristine minimp3, add FastLED build/licensing integration, add a caller-owned scratch API as a minimal documented upstream patch, and introduce a compile-time dual-backend adapter while leaving Helix as the default. Add a host golden harness that builds both Helix and minimp3-float and validates frame behavior and PCM quality over the available deterministic corpus.
Acceptance criteria
- Capture RED evidence before implementation: a focused backend-selection/build test fails because the minimp3 backend and vendor tree do not yet exist.
- Vendor
minimp3.hand, only if the harness needs it, test-onlyminimp3_ex.hatsrc/third_party/minimp3/, wrapped/integrated according to FastLED conventions. - Record upstream SHA
ea99364f61c14656440e8d77e9c233ccf3124633; include the CC0-1.0 license, required third-party manifest data, and per-file license markers. - Add
mp3dec_decode_frame_r(dec, scratch, ...)with caller-ownedmp3dec_scratch_t; keep the pristine upstream source plus a minimal documented diff/patch contract. - Preserve the public
fl::Mp3API and add mutually exclusiveFASTLED_MP3_BACKEND_HELIX/FASTLED_MP3_BACKEND_MINIMP3selection, with Helix remaining the default. - The minimp3 adapter maps frame decode behavior and derives
Mp3Info.versionfrom MPEG header bytes. - Add a deterministic host golden harness comparing Helix and minimp3-float frame acceptance/sample counts and checking both decoders against the available ISO-quality floor; Helix-vs-minimp3 PSNR is report-only in this phase.
- Turn the focused RED signal GREEN, then pass Linux/Windows/macOS host validation and compile-only coverage including AVR and WASM.
- 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 remains the default in this phase so G0 is behavior-preserving; the default changes only at Phase 5.
- The vendored baseline is pinned to the current upstream
masterSHA so provenance and later diffs are reproducible. minimp3_ex.his test-only unless implementation proves the production streaming adapter needs it.- Phase 0 owns only G0; performance, fixed-point conversion, SIMD, and Helix deletion remain in later child issues.
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
- License strategy motivating Helix removal: Strategy: project-agnostic GPL/free-software compatibility exception license#10
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity