docs(libSceVideoOut): list sceVideoOutSetWindowModeMargins as a silent stub #17615
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17615"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-11-09T02:49:02Z.
What
sceVideoOutSetWindowModeMarginschecks the handle and returns 0 without applyingtoporbottom, but it is not listed under Silent stubs indocs/dev/debt/libSceVideoOut.md. The file only mentions it inside thesceVideoOutGetResolutionStatusentry ("the pane equals the full size becausesceVideoOutSetWindowModeMarginsapplies no margins"). This adds its own Silent stubs entry.The entry also records the callers: of the 38 titles relinked here, four call it, once each. Read from the instructions before each call in the relinked executables:
handletop,bottom+0x6c)vcvttss2siof two float registers+0x20)vcvttss2siof two float registers+0x6c)vcvttss2siof two float registers+0x6c)vcvttss2siof two float registersSo none of them passes constant margins. I didn't trace the float values back to their sources.
How
Changed:
docs/dev/debt/libSceVideoOut.md, one entry added at the end of Silent stubs, linking toOutput.cppwhere the function is defined. No code change.Tested
Docs only.
tools/check_conventions.py --base upstream/mainpasses onmaine67e806b1f.tools/pr_overlap.pycould not compare #4040, #12863 and #14212, which conflict withmain. I read their diffs of this file: #4040 adds ansceVideoOutAdjustColorentry, #12863 adds host-pause entries and #14212 inserts blank lines between entries. None of them changes the Silent stubs lines this PR touches, apart from #14212's blank line, which whichever lands second resolves.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:12Z.
Review: COMMENTED
Read
a91361b88cagainstmain.Correctness.
Output.cpp:sceVideoOutSetWindowModeMargins(line 419) discardstopandbottom, throwsVIDEO_OUT_ERROR_INVALID_HANDLEfor a handle that is not open, and otherwise returns 0, so "checks the handle and returns 0 without applying" is accurate (a closed handle throws rather than returning an error code, which the entry does not claim). The function is not listed anywhere else in the debt files onmainexcept inside thesceVideoOutGetResolutionStatusentry, so this is not a duplicate, and "full size" matchessceVideoOutGetResolutionStatussetting the pane to the full width and height (Output.cpp:286-287). It is added at the end of Silent stubs in the same format as its neighbours. The call-site claims for the four titles are from the PR description and cannot be checked here. No conflict with #16584 or #17696, which edit other lines of the same file.Not run here; this is from reading the code.
AI-assisted: yes.