feat(videoout): implement sceVideoOutGetResolutionStatus #1714
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1714"
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 johnmaia on 2026-10-08T17:25:02Z.
What
Implements
sceVideoOutGetResolutionStatus(NID6kPnj51T62Y). Three of the homebrew titles in #1578 import it and stop at start-up without it: ps5-opengl (PPSA99005), EVO-PLAYER-PS5 (PPSA99039) and ProsperoRadio (PPSA99001). It was the most-needed import in that list without a pull request.VideoOutResolutionStatusfollows the two title declarations, which agree: EVO-PLAYER-PS5 (projects/common/include/evo_ps5.h,fullWidth,fullHeight,paneWidth,paneHeight,uint64_t refreshRate,float screenSizeInInch,uint16_t flags, reserved) and ps5-opengl (src/platform/ps5_agc_native_runtime.c, with_Static_assertsize 48 andrefresh_rateat 16). Astatic_assertpins the size and both offsets.widthandheight, andrefreshRateis the refresh rate ID chosen exactly assceVideoOutGetOutputStatusdoes (3 for 59.94 Hz, 13 in the 119.88 Hz output mode; EVO-PLAYER-PS5 reads 13 as 120 Hz). The pane equals the full size becausesceVideoOutSetWindowModeMarginsapplies no margins.screenSizeInInchis 0, the value EDID uses for an undefined size, since the host display's size is not read; shadPS4 returns a fixed 50.flagsand the reserved fields are 0; the whole struct is written.statusor an invalid or closed handle throws, as in the other VideoOut status getters.Tested
guest_video_out_resolution_status(registered in ctest): status prefilled with0xffbytes, then 1920x1080 full and pane, the samerefreshRateassceVideoOutGetOutputStatus, zero screen size, flags and reserved fields; null status, handles 0, -1, a never-opened handle and a closed handle all throw.libSceVideoOut.prxexports6kPnj51T62Y, the NID shadPS4 binds tosceVideoOutGetResolutionStatus.guest_video_out_wqhd_detection,guest_video_out_resolution_status,guest_videodec2).Overlap: #1496 adds a test to the same place in
libSceVideoOut/CMakeLists.txtand edits the neighbouring VideoOut lines of TechnicalDebt, so whichever merges second needs a small rebase. It does not change how the refresh rate is reported.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T17:25:30Z.
Progress report (
17350cf→16824f2)➖ System libraries: 84.76% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceVideoOutGetResolutionStatusImported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-08T20:16:23Z.
sceVideoOutGetResolutionStatusis the next stop on Windows for two titles once their current blocker is fixed. EVO Player (PPSA99039) with #1634 and OpenGL Showcase (PPSA99005) with #1613 both stop atFAIL: unresolved ELF import 6kPnj51T62Y from libSceVideoOut.prx. With this PR, EVO Player gets past it tosigemptyset.Windows 11, Radeon 860M, MinGW-w64 GCC 15.2.0, Release,
main4b6ab6bb; title relinked withrelinker --windowsand run with the patchedbuild/core/libs/libs/*.prx.Tested with AI assistance (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-09T12:05:36Z.
A title that stops first on this: PS5VR (PPSA99177, v1.2.0 from the homebrew catalog), relinked for Linux and run on
maind70b8998(CachyOS, GCC, Release, in a bubblewrap sandbox):6kPnj51T62YissceVideoOutGetResolutionStatus, the first unresolved import it binds. Not run with this PR.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:51:33Z.
Checked on Linux: build and ctest green (
guest_video_out_resolution_statuspasses and fails to build without the change). The 48-byte layout and offsets match shadPS4 and prosper;refreshRatefollowssceVideoOutGetOutputStatus; thescreenSizeInInch= 0 deviation (references use 50) and the unconfirmed layout are listed in TechnicalDebt. Linux and Windows CI green, confirmed on Windows by @LeandroLP23. Merging; #1496 will need a small rebase on the neighbouring CMake/TechnicalDebt lines.