feat(libSceAvPlayer): export missing firmware functions from database #6852

Closed
al3w0f205 wants to merge 1 commit from upstream-pr/6852 into main
al3w0f205 commented 2026-10-16 14:16:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-16T14:16:39Z.


What

Adds missing libSceAvPlayer functions identified from firmware export databases (aerolib.csv) as explicit throwing stubs (NotImplemented_nid_no_patch(__func__)). Also documents the unverified guest signatures under ### Unknown function info in docs/dev/debt/libSceAvPlayer.md and verifies throwing behavior in guest tests.

Exported functions:

  • sceAvPlayerPrintf
  • sceAvPlayerVprintf
  • sceAvPlayerGetAvailableBW
  • sceAvPlayerGetStreamBitrate
  • sceAvPlayerInitImpl
  • sceAvPlayerJumpTimeOffset
  • sceAvPlayerSetAvailableBW
  • sceAvPlayerStreamingRegisterVprinf
  • sceAvPlayerVPrintf

Tested

  • Windows 11, MinGW64 Ninja build
  • CTest test suite passed 100%
  • tools/check_conventions.py --base origin/main passed with 0 errors

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4889662716 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-16T14:16:39Z. --- ### What Adds missing `libSceAvPlayer` functions identified from firmware export databases (`aerolib.csv`) as explicit throwing stubs (`NotImplemented_nid_no_patch(__func__)`). Also documents the unverified guest signatures under `### Unknown function info` in `docs/dev/debt/libSceAvPlayer.md` and verifies throwing behavior in guest tests. Exported functions: - `sceAvPlayerPrintf` - `sceAvPlayerVprintf` - `sceAvPlayerGetAvailableBW` - `sceAvPlayerGetStreamBitrate` - `sceAvPlayerInitImpl` - `sceAvPlayerJumpTimeOffset` - `sceAvPlayerSetAvailableBW` - `sceAvPlayerStreamingRegisterVprinf` - `sceAvPlayerVPrintf` ### Tested - Windows 11, MinGW64 Ninja build - CTest test suite passed 100% - `tools/check_conventions.py --base origin/main` passed with 0 errors ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 14:17:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:17:26Z.


Progress report (e0e3ced → d89898c)

📉 System libraries: 88.61% (-0.22%, +9 declared functions)

🆕 9 declared as stubs
Library Name
libSceAvPlayer sceAvPlayerGetAvailableBW
libSceAvPlayer sceAvPlayerGetStreamBitrate
libSceAvPlayer sceAvPlayerInitImpl
libSceAvPlayer sceAvPlayerJumpTimeOffset
libSceAvPlayer sceAvPlayerPrintf
libSceAvPlayer sceAvPlayerSetAvailableBW
libSceAvPlayer sceAvPlayerStreamingRegisterVprinf
libSceAvPlayer sceAvPlayerVPrintf
libSceAvPlayer sceAvPlayerVprintf
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217470303 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#issuecomment-6217470303). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T14:17:26Z. --- <!-- progress-report --> ### Progress report (e0e3ced → d89898c) 📉 **System libraries**: 88.61% (-0.22%, +9 declared functions) <details> <summary>🆕 9 declared as stubs</summary> | Library | Name | | - | - | | libSceAvPlayer | `sceAvPlayerGetAvailableBW` | | libSceAvPlayer | `sceAvPlayerGetStreamBitrate` | | libSceAvPlayer | `sceAvPlayerInitImpl` | | libSceAvPlayer | `sceAvPlayerJumpTimeOffset` | | libSceAvPlayer | `sceAvPlayerPrintf` | | libSceAvPlayer | `sceAvPlayerSetAvailableBW` | | libSceAvPlayer | `sceAvPlayerStreamingRegisterVprinf` | | libSceAvPlayer | `sceAvPlayerVPrintf` | | libSceAvPlayer | `sceAvPlayerVprintf` | </details>
MarcZX10 commented 2026-10-16 14:26:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T14:26:23Z.


The latest conventions run fails because the PR body is missing the required ### What, ### Tested, and ### Checklist sections (rather than because of the code). Please format the description with those headings and fill the checklist fields, including Depends on, Unblocks, GPUs tested, and AI-assisted; then conventions should re-run on the description update.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217637157 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#issuecomment-6217637157). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T14:26:23Z. --- The latest conventions run fails because the PR body is missing the required `### What`, `### Tested`, and `### Checklist` sections (rather than because of the code). Please format the description with those headings and fill the checklist fields, including `Depends on`, `Unblocks`, `GPUs tested`, and `AI-assisted`; then conventions should re-run on the description update.
github-actions[bot] commented 2026-10-16 14:40:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:40:06Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1601 core/libs/tests/GuestAvPlayer.cpp
PR 6044 core/libs/tests/GuestAvPlayer.cpp
PR 7412 docs/dev/debt/libSceAvPlayer.md
PR 8044 core/libs/tests/GuestAvPlayer.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217907459 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#issuecomment-6217907459). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T14:40:06Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1601](https://www.github.com/boykopovar/AnyPS5/pull/1601) | `core/libs/tests/GuestAvPlayer.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestAvPlayer.cpp` | | [PR 7412](https://www.github.com/boykopovar/AnyPS5/pull/7412) | `docs/dev/debt/libSceAvPlayer.md` | | [PR 8044](https://www.github.com/boykopovar/AnyPS5/pull/8044) | `core/libs/tests/GuestAvPlayer.cpp` |
al3w0f205 commented 2026-10-16 14:45:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-16T14:45:27Z.


Thank you! The PR description has been updated with the required ### What, ### Tested, and ### Checklist sections, and conventions are now passing green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218015041 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#issuecomment-6218015041). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-16T14:45:27Z. --- Thank you! The PR description has been updated with the required ### What, ### Tested, and ### Checklist sections, and conventions are now passing green.
adriadam10 commented 2026-10-19 10:21:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:21:43Z.

Review: CHANGES_REQUESTED


Thanks for the PR. As it stands it only declares nine exports with no parameters that throw, so behaviour is identical to the import being unresolved; it just moves the progress number.

  • Export.cpp:195-238: no signature or behaviour for any of these. I found none of the names in KytyPS5, shadPS4, fpPS4 or prosper. "Present in aerolib.csv" tells us the name exists, not what the arguments are.
  • Export.cpp:230: sceAvPlayerStreamingRegisterVprinf (looks like a typo) and the Printf/Vprintf/VPrintf variants need a source showing they are distinct exports, not database noise.
  • GuestAvPlayer.cpp:1588-1610: only 3 of the 9 are tested, and only that they throw.
  • docs/dev/debt/libSceAvPlayer.md:17: the line is appended at the end of its section, which tends to conflict with other PRs; insert it mid-section.
  • GuestAvPlayer.cpp is also touched by #1601 and #6044; please check the overlap.

What would make this mergeable: implement the ones a reference (or a title's import) gives a real signature for, with tests pinning their return values, and drop the rest.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5570123048 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#pullrequestreview-5570123048). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T10:21:43Z. **Review:** CHANGES_REQUESTED --- Thanks for the PR. As it stands it only declares nine exports with no parameters that throw, so behaviour is identical to the import being unresolved; it just moves the progress number. - `Export.cpp:195-238`: no signature or behaviour for any of these. I found none of the names in KytyPS5, shadPS4, fpPS4 or prosper. "Present in aerolib.csv" tells us the name exists, not what the arguments are. - `Export.cpp:230`: `sceAvPlayerStreamingRegisterVprinf` (looks like a typo) and the `Printf`/`Vprintf`/`VPrintf` variants need a source showing they are distinct exports, not database noise. - `GuestAvPlayer.cpp:1588-1610`: only 3 of the 9 are tested, and only that they throw. - `docs/dev/debt/libSceAvPlayer.md:17`: the line is appended at the end of its section, which tends to conflict with other PRs; insert it mid-section. - `GuestAvPlayer.cpp` is also touched by #1601 and #6044; please check the overlap. What would make this mergeable: implement the ones a reference (or a title's import) gives a real signature for, with tests pinning their return values, and drop the rest.
al3w0f205 commented 2026-10-20 02:01:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-20T02:01:58Z.


Closing in favor of implementing real signatures and verified behaviors rather than throwing stubs without parameters.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6281595001 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6852#issuecomment-6281595001). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-20T02:01:58Z. --- Closing in favor of implementing real signatures and verified behaviors rather than throwing stubs without parameters.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6852
No description provided.