feat(libSceOpusCeltDec): implement CELT-only Opus decoding #3626
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3626"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by fishingpvalues on 2026-10-11T14:25:32Z.
What
Implement
libSceOpusCeltDec, the fallback decoder PPSA99001 loads when libSceOpusDec reports a retryable error for a CELT packet. It was stubbed with six not-implemented exports; this routes it to the vendored FFmpeg Opus decoder at 48 kHz for mono and stereo, mirroring libSceOpusDec's ABI (640-byte opaque state, byte-count return) with the CELT-only input contract: TOC configuration below 16, invalid code-3 frame counts, packets above 120 ms, non-48000 Hz rates and undersized PCM buffers throwstd::runtime_errorwith anOpusCeltDec:prefix.Tested
x86-64 Linux host,
guest_opus_celt_decregression test: every throwing path, 20/10/5/2.5 ms stereo and mono frames, code-2/code-3 multi-frame packets, PCM sentinel preservation on rejection, and decoder statefulness (two decoders with the same history produce identical PCM, a fresh decoder differs). PCM vectors are checked live against the same vendored FFmpeg build the prx links.guest_opus_dec(sibling) and the relinker tests pass. No console capture available, so PCM equivalence and error codes remain unverified against real hardware.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T14:26:43Z.
Progress report (
a11c8f7→a351e7f)📈 System libraries: 85.99% (+0.18%, +6 implemented functions)
✅ 6 implemented
sceOpusCeltDecCreateExsceOpusCeltDecDecodesceOpusCeltDecDestroysceOpusCeltDecGetSizesceOpusCeltDecInitializesceOpusCeltDecTerminateImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T15:20:00Z.
Independent pre-review on Linux (full CI runs only happen on manual trigger, so recording one): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.tools/check_conventions.py --base origin/mainpasses.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T16:32:08Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)sceOpusCeltDecCreateExsceOpusCeltDecDecodesceOpusCeltDecDestroysceOpusCeltDecGetSizesceOpusCeltDecInitializesceOpusCeltDecTerminateImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:58:14Z.
Closing: no title reaches this decoder. As the TechnicalDebt line here says, PPSA99001 opens it only after a retryable libSceOpusDec error, which libSceOpusDec never returns. Reopen when a title calls it.
Pull request closed