feat(libSceVideoOut): implement sceVideoOutRemoveBufferAttributeOption #8418

Merged
hypermoist merged 1 commit from upstream-pr/8418 into main 2026-10-21 13:32:40 +00:00
hypermoist commented 2026-10-20 12:29:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-20T12:29:15Z.


What

Implements sceVideoOutRemoveBufferAttributeOption (k4Ak+e2D1Hg), which is absent today. The issue/discussion scan lists it as a missing import for PPSA04610 and PPSA25380.

The export in the decrypted libSceVideoOut.sprx (0x84c0, 8 bytes) clears the given bits of the 64-bit option field of VideoOutBufferAttribute2. That field is at offset 0x18 in the existing struct. So the function is the inverse of sceVideoOutAddBufferAttributeOption, and it sits next to that function with the same (attribute, option) signature and the same null-attribute exception (the console would fault).

Tested

Linux (CachyOS, GCC, Release). video_out_flip_tests passes, and it now also checks that:

  • removing 0x21 from 0x28 leaves only STRICT_COLORIMETRY and keeps the other fields;
  • the buffer is then accepted again;
  • removing the last option gives NONE;
  • a null attribute throws.

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
  • Fixes: none
  • Unblocks: none verified
  • GPUs tested: NVIDIA GeForce RTX 3060 (tests only)
  • AI-assisted: yes (Claude Code), reviewed by the contributor

🤖 Generated with Claude Code

https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4935724926 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8418). Originally posted by [hypermoist](https://github.com/hypermoist) on 2026-10-20T12:29:15Z. --- ### What Implements `sceVideoOutRemoveBufferAttributeOption` (`k4Ak+e2D1Hg`), which is absent today. The issue/discussion scan lists it as a missing import for PPSA04610 and PPSA25380. The export in the decrypted `libSceVideoOut.sprx` (0x84c0, 8 bytes) clears the given bits of the 64-bit `option` field of `VideoOutBufferAttribute2`. That field is at offset 0x18 in the existing struct. So the function is the inverse of `sceVideoOutAddBufferAttributeOption`, and it sits next to that function with the same `(attribute, option)` signature and the same null-attribute exception (the console would fault). ### Tested Linux (CachyOS, GCC, Release). `video_out_flip_tests` passes, and it now also checks that: - removing `0x21` from `0x28` leaves only `STRICT_COLORIMETRY` and keeps the other fields; - the buffer is then accepted again; - removing the last option gives `NONE`; - a null attribute throws. ### 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] Fixes: none - [x] Unblocks: none verified - [x] GPUs tested: NVIDIA GeForce RTX 3060 (tests only) - [x] AI-assisted: yes (Claude Code), reviewed by the contributor 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
github-actions[bot] commented 2026-10-20 12:30:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T12:30:04Z.


Progress report (02b5a8e → e9bde2a)

➖ System libraries: 64.15% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceVideoOut sceVideoOutRemoveBufferAttributeOption
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6290870386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8418#issuecomment-6290870386). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T12:30:04Z. --- <!-- progress-report --> ### Progress report (02b5a8e → e9bde2a) ➖ **System libraries**: 64.15% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutRemoveBufferAttributeOption` | </details>
github-actions[bot] commented 2026-10-20 12:40:10 +00:00 (Migrated from github.com)

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


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 5021 core/libs/prx/libSceVideoOut/tests/Flip.cpp
PR 6044 core/libs/prx/libSceVideoOut/tests/Flip.cpp
PR 6977 core/libs/prx/libSceVideoOut/include/Buffer.hpp
core/libs/prx/libSceVideoOut/src/Buffer.cpp
core/libs/prx/libSceVideoOut/tests/Flip.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291054343 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8418#issuecomment-6291054343). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-20T12:40:10Z. --- <!-- 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 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceVideoOut/tests/Flip.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceVideoOut/tests/Flip.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceVideoOut/include/Buffer.hpp`<br>`core/libs/prx/libSceVideoOut/src/Buffer.cpp`<br>`core/libs/prx/libSceVideoOut/tests/Flip.cpp` |
adriadam10 commented 2026-10-21 13:34:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-21T13:34:44Z.


Checked the signature against SharpProspero, the null-attribute behaviour against the existing Add counterpart, and that the new Flip test pins the cleared bits, the re-accepted buffer, the NONE case and the null throw; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6317414479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8418#issuecomment-6317414479). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-21T13:34:44Z. --- Checked the signature against SharpProspero, the null-attribute behaviour against the existing Add counterpart, and that the new Flip test pins the cleared bits, the re-accepted buffer, the NONE case and the null throw; merged.
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!8418
No description provided.