mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
7.4 KiB
7.4 KiB
libSceVisionManager technical debt
Unknown function info
- sceVisionManagerCancelRequest, sceVisionManagerFinalize, sceVisionManagerGenerateRegisterUserDataFinalize, sceVisionManagerGenerateRegisterUserDataInitialize, sceVisionManagerGetCalibrateTrackingLedInfo, sceVisionManagerGetRegisterUserDataSize, sceVisionManagerGetResultOfCalibrateHmd, sceVisionManagerGetResultOfCalibrateTrackingLed, sceVisionManagerGetStoreCameraImgYPtr, sceVisionManagerInitialize, sceVisionManagerRegistryClear, sceVisionManagerRequestCalibrateHmd, sceVisionManagerRequestCalibrateStereoCamera (libSceVisionManager) - names and NIDs are present in the PS5 3.20 export inventory, but no credible prototypes were found. The declarations have no parameters solely to resolve known imports; this is not an ABI claim and callers must not call them until signatures are verified
- sceVisionManagerRequestCalibrateTrackingLed, sceVisionManagerRequestClose, sceVisionManagerRequestFindFace, sceVisionManagerRequestHeadDetection, sceVisionManagerRequestRecogUtility, sceVisionManagerRequestStoreCameraImgY, sceVisionManagerSetCallbackForUpdateCameraFrame, sceVisionManagerSetCallbackForUpdateCtrlCore, sceVisionManagerSetCallbackForUpdateRecog, sceVisionManagerSetCallbackForUpdateStoreFrame and sceVisionManagerWaitResponse (libSceVisionManager) - names and NIDs are present in the PS5 3.20 export inventory, but no credible prototypes were found. The declarations have no parameters solely to resolve known imports; this is not an ABI claim and callers must not call them until signatures are verified
- sceVisionManagerGetLibraryVersion, sceVisionManagerGetNumOfRegisterUserDataSlot, sceVisionManagerGetWorkingMemorySize, sceVisionManagerRequestFindPad, sceVisionManagerRequestFindPadCorrespondRegion, sceVisionManagerRequestPadTracking, sceVisionManagerGetResultOfFindPad, sceVisionManagerGetResultOfFindPadCorrespondRegion and
-R5dI6KjYpY- the parameter names and the layouts behind the pointers are unknown. They follow firmware 13.42's libSceVisionManager.sprx, read from its disassembly and run natively on x86-64 (not a console); argument types are inferred from register use. None of them reads library state.sceVisionManagerGetLibraryVersionwrites 0x1020000214072421 and returns 0, or returns 0x80E70000 for a null pointer.sceVisionManagerGetNumOfRegisterUserDataSlot(version, count)writes 16 for version 0x1017000014043000 and 30 for 0x1020000214072421 and returns 0; any other version returns 0x80E70000 and writes nothing, and a nullcountreturns 0x80E70000 for either version.sceVisionManagerGetWorkingMemorySizewrites 0, 0x1600000 and 0x4200000 through its three pointers, without checking them, and returns 0. The pad requests never succeed:sceVisionManagerRequestFindPad(context, parameter)returns 0x80E70004 when both pointers are set and*parameteris nonzero and below 5 (signed), and 0x80E70000 otherwise;sceVisionManagerRequestFindPadCorrespondRegion(context, parameter, region, result)adds thatregionis 1 to 4 andresultis set;sceVisionManagerRequestPadTrackingignores its first argument and uses a limit of 4.sceVisionManagerGetResultOfFindPadandsceVisionManagerGetResultOfFindPadCorrespondRegionreturn 0x80E70004 when all three pointers are set and 0x80E70000 otherwise.-R5dI6KjYpY(input, output)returns 0x80E70000 for a null pointer; otherwise it clears 32 bytes ofoutput, writes 5 tooutput[0]when the larger ofinput[0]andinput[1](unsigned) is 10 to 29 and 10 when it is 30 or more, and returns 0 - the null checks of 13 calls (libSceVisionManager) - only the null tests are modelled: each returns 0x80E70000 when one of the arguments in the table is null, and throws otherwise; what the calls do then is unknown. The parameter names and the layouts behind the pointers are unknown, and the types (
void*for a tested argument,std::uint64_tfor an untested one before it) are inferred from register use. Firmware 13.42's libSceVisionManager.sprx, read from its disassembly and run under a CPU emulator on x86-64 (not a console), tests these arguments first, before any call or state read; a null pointer is the only invalid value checked here.
| Export | Null-tested arguments |
|---|---|
sceVisionManagerApplyCalibrateHmdResult |
1 |
sceVisionManagerGenerateRegisterUserData |
1, 2 |
sceVisionManagerGetCalibrateTrackingLedNecessity |
1, 2 |
sceVisionManagerGetHitCountOfRegisterUserData |
1, 2, 4 |
sceVisionManagerGetRegisterUserDataVersion |
1, 2, 3 |
sceVisionManagerGetResultOfCalibrateStereoCamera |
1, 2 |
sceVisionManagerGetResultOfFindFace |
1, 2, 3, 4 |
sceVisionManagerRequestInitializeRegisterUserData |
1 |
sceVisionManagerRequestOpen |
1 |
sceVisionManagerSetCallbackForUpdateCalibrateHmdResult |
1 |
sceVisionManagerSetCallbackForUpdateCalibrateStereoCameraResult |
1 |
sceVisionManagerSetCallbackForUpdateCalibrateTrackingLedResult |
1 |
sceVisionManagerSetCallbackForUpdateRunningStatus |
1, 2 |
Functional
- sceVisionManagerGetWorkingMemorySize (libSceVisionManager) - returns
0x80E70000when output pointers are null or unwritable viaGuestCopyOut_nid_no_patch, preserving host errno; console behavior on unmapped pointers is not measured. - sceVisionManagerRequestClose, sceVisionManagerRequestCalibrateHmd, sceVisionManagerRequestCalibrateStereoCamera, sceVisionManagerRequestCalibrateTrackingLed and sceVisionManagerRequestRecogUtility (libSceVisionManager) - they return
0x80E70025and nothing else. In firmware 13.42 each first tests the library's open count and returns0x80E70025while it is 0; onlysceVisionManagerRequestOpenraises it, and it still throws here, so the count stays 0. Once it is implemented, these must test the count and implement the open case. Read from the module's disassembly, not measured on a console.
Additional callable exports
- Additional callable exports - 7 entries present in both version-labelled images are import-resolution declarations only. Neither label independently authenticates retail firmware provenance. Parameter lists, return types and behavior are unverified; parameterless
intdeclarations are placeholders, not verified ABI contracts. Every entry except-R5dI6KjYpY, described under Unknown function info, throws throughNotImplemented_nid_no_patch. Unidentified names use literal NID aliases. Identified candidate names match their NIDs in the public symbol database or supplemental catalog.
| Name | NID |
|---|---|
Unknown |
-R5dI6KjYpY |
Unknown |
0chNZ7GKUO0 |
Unknown |
9gGQMrf6sWg |
Unknown |
ORAn12NcHYs |
Unknown |
YQiB-svtbcc |
Unknown |
dzN0VRFvA84 |
Unknown |
wu4afKNlup4 |