feat(libSceVideoOut): export sceVideoOutAddBufferAttributeOption #3817

Merged
omurc4 merged 1 commit from upstream-pr/3817 into main 2026-10-11 22:06:21 +00:00
omurc4 commented 2026-10-11 17:08:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by omurc4 on 2026-10-11T17:08:42Z.


What

Exports sceVideoOutAddBufferAttributeOption (MBlv8YWoyOk), the load blocker for Elden Ring Nightreign (PPSA25380) reported in #3802. It ORs option into attribute->option and throws on a null attribute. sceVideoOutRegisterBuffers2 still throws on options other than 0 and 8, so option 0x20 (passed by the title) is not guessed. The signature source and the unknown meaning are recorded in TechnicalDebt. The decode test checks that the option is stored, is idempotent, keeps existing bits, is rejected at description time when unsupported, and that a null attribute throws.

Refs #3802.

Tested

Not tested at runtime. tools/check_conventions.py --base origin/main passes, and Buffer.cpp and tests/Flip.cpp compile with g++ -std=c++20 -fsyntax-only (GCC 15.2, Linux). No full build or ctest run, and no title run.

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes (written with Claude Code; reviewed and submitted by the author)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820812327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3817). Originally posted by [omurc4](https://github.com/omurc4) on 2026-10-11T17:08:42Z. --- ### What Exports `sceVideoOutAddBufferAttributeOption` (`MBlv8YWoyOk`), the load blocker for Elden Ring Nightreign (PPSA25380) reported in #3802. It ORs `option` into `attribute->option` and throws on a null attribute. `sceVideoOutRegisterBuffers2` still throws on options other than 0 and 8, so option 0x20 (passed by the title) is not guessed. The signature source and the unknown meaning are recorded in TechnicalDebt. The decode test checks that the option is stored, is idempotent, keeps existing bits, is rejected at description time when unsupported, and that a null attribute throws. Refs #3802. ### Tested Not tested at runtime. `tools/check_conventions.py --base origin/main` passes, and `Buffer.cpp` and `tests/Flip.cpp` compile with `g++ -std=c++20 -fsyntax-only` (GCC 15.2, Linux). No full build or ctest run, and no title run. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes (written with Claude Code; reviewed and submitted by the author) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-11 17:45:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T17:45:50Z.


Progress report (a11c8f7 → d40189d)

📈 System libraries: 85.82% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceVideoOut sceVideoOutAddBufferAttributeOption
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111865460 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3817#issuecomment-6111865460). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T17:45:50Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → d40189d) 📈 **System libraries**: 85.82% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutAddBufferAttributeOption` | </details>
adriadam10 commented 2026-10-11 22:06:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T22:06:18Z.


Checked the new export against SharpProspero (signature) and KytyPS5/shadPS4 (NID MBlv8YWoyOk), built libSceVideoOut and ran video_out_flip_decode (passes, and fails to build without the change). The null check, the OR into attribute->option and the TechnicalDebt entry match what the code does; merging.

#3818 exports the same function and was opened after this one, so it should be closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114363535 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3817#issuecomment-6114363535). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T22:06:18Z. --- Checked the new export against SharpProspero (signature) and KytyPS5/shadPS4 (NID `MBlv8YWoyOk`), built libSceVideoOut and ran `video_out_flip_decode` (passes, and fails to build without the change). The null check, the OR into `attribute->option` and the TechnicalDebt entry match what the code does; merging. #3818 exports the same function and was opened after this one, so it should be 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!3817
No description provided.