feat(libSceOpusSilkEnc): implement sceOpusSilkEncCancel #27585
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27585"
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 sschandra2006 on 2026-11-26T18:42:26Z.
What
Implement
sceOpusSilkEncCancelinlibSceOpusSilkEnc, bringing the library to 100% export completion (15/15 exports implemented). As identified in firmware disassembly and console measurements,sceOpusSilkEncCancelvalidates non-null state before reading the 32-bit AJM context word at state +0xF0 and forwarding the cancellation request tosceAjmiBatchCancel(context, batchId).Tested
Unit tests in
GuestOpusSilkEnc.cpp:0x81770001errnoSCE_AJM_ERROR_INVALID_CONTEXT(0x80930002)SCE_AJM_ERROR_INVALID_BATCHfor unknown batch)python tools/check_conventions.py --base upstream/mainpassed cleanlypython tools/debt_fold.py --checkpassed cleanlypython tools/pr_overlap.py --branch feat/libscesilkenc-cancelconfirmed zero overlap across all 2,432 open PRsChecklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T18:53:51Z.
Review: APPROVED
Reviewed — looks good
The implementation follows the described context lookup and AJMI batch cancel dispatch; no blocking defect was found in the changed code read.
What I ran
Reviewed head
5358865c1f29e569f00280aaa05ed700362af87busingrepo_read.pyto inspect prepared artifacts and pinned repository files. No tests or builds were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests or build were run. Console behavior and the description’s reported firmware observations were not independently verified. All four files listed as reviewed in
manifest.jsonwere read:core/libs/prx/libSceOpusSilkEnc/CMakeLists.txt,core/libs/prx/libSceOpusSilkEnc/Export.cpp,core/libs/tests/GuestOpusSilkEnc.cpp, anddocs/dev/debt/changes/feat-opus-encoder-ctl.md. No files were excluded by the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:33:32Z.
Review: COMMENTED
Compiled and ran the exact
GuestOpusSilkEncfixture on Linux with the branch’s source, the bundled Opus library, and the existing AJMI and libc libraries. The cancellation checks passed.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.