feat(libSceVideoOut): implement sceVideoOutSetFlipMaster and sceVideoOutClearFlipMaster #5239

Closed
ErenYeager1836 wants to merge 1 commit from upstream-pr/5239 into main
ErenYeager1836 commented 2026-10-13 15:23:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-13T15:23:56Z.


What

Carried from @screamm with author attribution preserved.

Implements flip master/slave tie management in libSceVideoOut:

  • Implements sceVideoOutSetFlipMaster(slave, master) and sceVideoOutClearFlipMaster(slave).
  • Validates port handles, rejecting invalid/closed handles with VIDEO_OUT_ERROR_INVALID_HANDLE, self-ties or nested master/slave ties with VIDEO_OUT_ERROR_UNSUPPORTED_OPERATION (0x8029001C), and pending flips with VIDEO_OUT_ERROR_RESOURCE_BUSY.
  • sceVideoOutClearFlipMaster removes established tie and throws if port has no master. Closing a slave drops the tie; closing a master with active slaves throws.
  • Updates docs/dev/debt/libSceVideoOut.md and replaces unparameterized stubs.

Tested

ideo_out_flip_tests ( ests/Flip.cpp): exercises flipmaster mode, testing handle verification, busy and unsupported returns, slave closure tie release, and flip completion after tie clearing.

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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4845507433 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5239). Originally posted by [ErenYeager1836](https://github.com/ErenYeager1836) on 2026-10-13T15:23:56Z. --- ### What Carried from @screamm with author attribution preserved. Implements flip master/slave tie management in libSceVideoOut: - Implements sceVideoOutSetFlipMaster(slave, master) and sceVideoOutClearFlipMaster(slave). - Validates port handles, rejecting invalid/closed handles with VIDEO_OUT_ERROR_INVALID_HANDLE, self-ties or nested master/slave ties with VIDEO_OUT_ERROR_UNSUPPORTED_OPERATION (0x8029001C), and pending flips with VIDEO_OUT_ERROR_RESOURCE_BUSY. - sceVideoOutClearFlipMaster removes established tie and throws if port has no master. Closing a slave drops the tie; closing a master with active slaves throws. - Updates docs/dev/debt/libSceVideoOut.md and replaces unparameterized stubs. ### Tested ideo_out_flip_tests ( ests/Flip.cpp): exercises flipmaster mode, testing handle verification, busy and unsupported returns, slave closure tie release, and flip completion after tie clearing. ### 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 under Silent stubs in their library's technical 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] AI-assisted: yes
github-actions[bot] commented 2026-10-13 16:08:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T16:08:58Z.


Progress report (0214069 → 9f78a68)

📈 System libraries: 88.2% (+0.05%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceVideoOut sceVideoOutClearFlipMaster
libSceVideoOut sceVideoOutSetFlipMaster
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149862352 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5239#issuecomment-6149862352). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T16:08:58Z. --- <!-- progress-report --> ### Progress report (0214069 → 9f78a68) 📈 **System libraries**: 88.2% (+0.05%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutClearFlipMaster` | | libSceVideoOut | `sceVideoOutSetFlipMaster` | </details>
oneandonlydean commented 2026-10-14 02:30:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:30:55Z.


Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159564185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5239#issuecomment-6159564185). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T02:30:55Z. --- Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

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!5239
No description provided.