docs(libSceVideoOut): list the latency wait and start point calls as silent stubs #17903

Merged
milescoviello merged 1 commit from upstream-pr/17903 into main 2026-11-12 07:56:07 +00:00
milescoviello commented 2026-11-09 21:26:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-11-09T21:26:41Z.


What

sceVideoOutLatencyControlWaitBeforeInput and sceVideoOutLatencyMeasureSetStartPoint (src/Output.cpp) check the handle and return 0. They don't wait for anything or record the start point, and docs/dev/debt/libSceVideoOut.md doesn't list either one. This adds one Silent stubs entry for both. It says what they skip and why: the host output keeps no latency measurement. It also notes that an unopened handle throws VIDEO_OUT_ERROR_INVALID_HANDLE.

Call of Duty: Black Ops II (PPSA34502), relinked here, calls each once, counted from the call sites of the import stubs in its relinked executable.

How

Changed: docs/dev/debt/libSceVideoOut.md, one entry added to Silent stubs after the sceVideoOutOpen entry, linking to Output.cpp where both are defined. No code change.

Tested

Docs only. tools/check_conventions.py --base upstream/main passes on main.

My open #17615 adds a different Silent stubs entry at the end of the same section, three unchanged lines further down. git merge-tree --write-tree of the two branches merges cleanly. tools/pr_overlap.py --branch could not compare #4040 and #14212, which conflict with main. #4040 adds an sceVideoOutAdjustColor entry and #14212 inserts blank lines between entries. Neither changes the sceVideoOutOpen line this entry follows, apart from #14212's blank lines, which whichever lands second resolves.

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
  • GPUs tested: n/a (docs only)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5231466830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17903). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-11-09T21:26:41Z. --- ### What `sceVideoOutLatencyControlWaitBeforeInput` and `sceVideoOutLatencyMeasureSetStartPoint` (`src/Output.cpp`) check the handle and return 0. They don't wait for anything or record the start point, and `docs/dev/debt/libSceVideoOut.md` doesn't list either one. This adds one Silent stubs entry for both. It says what they skip and why: the host output keeps no latency measurement. It also notes that an unopened handle throws `VIDEO_OUT_ERROR_INVALID_HANDLE`. Call of Duty: Black Ops II (PPSA34502), relinked here, calls each once, counted from the call sites of the import stubs in its relinked executable. ### How Changed: `docs/dev/debt/libSceVideoOut.md`, one entry added to Silent stubs after the `sceVideoOutOpen` entry, linking to `Output.cpp` where both are defined. No code change. ### Tested Docs only. `tools/check_conventions.py --base upstream/main` passes on `main`. My open #17615 adds a different Silent stubs entry at the end of the same section, three unchanged lines further down. `git merge-tree --write-tree` of the two branches merges cleanly. `tools/pr_overlap.py --branch` could not compare #4040 and #14212, which conflict with `main`. #4040 adds an `sceVideoOutAdjustColor` entry and #14212 inserts blank lines between entries. Neither changes the `sceVideoOutOpen` line this entry follows, apart from #14212's blank lines, which whichever lands second resolves. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 - [x] GPUs tested: n/a (docs only) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gabichuuuuu commented 2026-11-10 17:49:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:50Z.

Review: COMMENTED


Read 31a0e22191 against main.

Correctness. sceVideoOutLatencyControlWaitBeforeInput and sceVideoOutLatencyMeasureSetStartPoint (libSceVideoOut/src/Output.cpp:430-447 on main) throw a runtime_error naming VIDEO_OUT_ERROR_INVALID_HANDLE when the handle is not open, otherwise return 0; the point is ignored ((void)point). That matches the entry. The debt file has no existing entry for either function (only the sceVideoOutLatencyMeasureSetStartPointAuto NID row at line 257). It is placed in ### Silent stubs after sceVideoOutOpen, in the format of its neighbours. #17763 edits a different line of the same file, so there is no conflict. The PPSA34502 call count cannot be checked from the code.

Not run here; this is from reading the code.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5846663993 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17903#pullrequestreview-5846663993). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-10T17:49:50Z. **Review:** COMMENTED --- Read `31a0e22191` against `main`. **Correctness.** `sceVideoOutLatencyControlWaitBeforeInput` and `sceVideoOutLatencyMeasureSetStartPoint` (`libSceVideoOut/src/Output.cpp:430-447` on main) throw a `runtime_error` naming `VIDEO_OUT_ERROR_INVALID_HANDLE` when the handle is not open, otherwise return 0; the point is ignored (`(void)point`). That matches the entry. The debt file has no existing entry for either function (only the `sceVideoOutLatencyMeasureSetStartPointAuto` NID row at line 257). It is placed in `### Silent stubs` after `sceVideoOutOpen`, in the format of its neighbours. #17763 edits a different line of the same file, so there is no conflict. The PPSA34502 call count cannot be checked from the code. Not run here; this is from reading the code. AI-assisted: yes.
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!17903
No description provided.