* feat(libSceVideoCoreServerInterface): answer the unavailable calls as firmware 13.42 does * docs(libSceVideoCoreServerInterface): drop the empty Unknown function info heading
4.6 KiB
4.6 KiB
libSceVideoCoreServerInterface technical debt
Functional
- sceVideoCoreAbortRequest, sceVideoCoreAddStream, sceVideoCoreAsyncAddStream, sceVideoCoreAsyncSendRequest, sceVideoCoreCancelThumbnail, sceVideoCoreChangeActiveStatus, sceVideoCoreChangeAudioStream, sceVideoCoreChangeDisplaySize, sceVideoCoreChangeHdcpSetting, sceVideoCoreChangeSubtitle and sceVideoCoreDeleteStream (libSceVideoCoreServerInterface) - return 0, as firmware 13.42 does: read from its disassembly and run under a CPU emulator on x86-64, not on a console, each prints
[ERR]<name>()(printf) andThis API is not available.(puts), then clearseaxand returns. The prints are not reproduced. No argument is read, so the declarations keep no parameters; other firmware versions were not read. - sceVideoCoreGenerateThumbnail, sceVideoCoreGenerateThumbnail2, sceVideoCoreGetCanvasHandle, sceVideoCoreGetPlayStatus, sceVideoCoreGetPlayStatus2, sceVideoCoreGetStreamUid, sceVideoCoreGetThumbnail, sceVideoCoreGetThumbnail2, sceVideoCoreLaunchVideoCore, sceVideoCoreMediaSourceAbortSourceBuffer and sceVideoCoreMediaSourceAddSourceBuffer (libSceVideoCoreServerInterface) - return 0, as firmware 13.42 does: read from its disassembly and run under a CPU emulator on x86-64, not on a console, each prints
[ERR]<name>()(printf) andThis API is not available.(puts), then clearseaxand returns. The prints are not reproduced. No argument is read, so the declarations keep no parameters; other firmware versions were not read. - sceVideoCoreMediaSourceAppendData, sceVideoCoreMediaSourceEndOfStream, sceVideoCoreMediaSourceGetBufferedTimeRanges, sceVideoCoreMediaSourceGetInputBufferEmptySize, sceVideoCoreMediaSourceGetPlaybackQuality, sceVideoCoreMediaSourceGetSourceBufferEvent, sceVideoCoreMediaSourceRemoveSourceBuffer, sceVideoCoreMediaSourceSetDuration, sceVideoCoreMediaSourceSetTimestampOffset, sceVideoCorePlayControl and sceVideoCoreRegistEventCallback (libSceVideoCoreServerInterface) - return 0, as firmware 13.42 does: read from its disassembly and run under a CPU emulator on x86-64, not on a console, each prints
[ERR]<name>()(printf) andThis API is not available.(puts), then clearseaxand returns. The prints are not reproduced. No argument is read, so the declarations keep no parameters; other firmware versions were not read. - sceVideoCoreSetAudioMute, sceVideoCoreSetAudioVolume, sceVideoCoreSetFullScreen, sceVideoCoreSetInitialInfo, sceVideoCoreSetInitializeInfo, sceVideoCoreSetPlaybackRange, sceVideoCoreSetThumbnailInfo, sceVideoCoreSyncAddStream, sceVideoCoreSyncSendRequest and sceVideoCoreUnregistEventCallback (libSceVideoCoreServerInterface) - return 0, as firmware 13.42 does: read from its disassembly and run under a CPU emulator on x86-64, not on a console, each prints
[ERR]<name>()(printf) andThis API is not available.(puts), then clearseaxand returns. The prints are not reproduced. No argument is read, so the declarations keep no parameters; other firmware versions were not read. - sceVideoCoreAcquireDecoderResource and sceVideoCoreAcquireDecoderResourceForBeWrapper (libSceVideoCoreServerInterface) - returning
0x80DC0001(VideoCoreErrorInvalidArgument) whenparamorresourceIdis unmapped or unwritable viaGuestCopyIn_nid_no_patch/GuestCopyOut_nid_no_patchis a host-safety fallback preserving host errno; console behavior on unmapped pointers is not measured. - sceVideoCoreAcquireDecoderResource, sceVideoCoreAcquireDecoderResourceForBeWrapper, sceVideoCoreReleaseDecoderResource and sceVideoCoreReleaseDecoderResourceForBeWrapper (libSceVideoCoreServerInterface) - console behaviour is unmeasured. The signatures, the 16-byte acquire parameter, the error codes and the bookkeeping follow shadPS4's
videocore_server.cpp: ids count up from 1 across both kinds and are not reused, and id 0, an unknown id or a resource of the other kind returns RESOURCE_NOT_FOUND (0x80DC0015) or BE_WRAPPER_RESOURCE_NOT_FOUND (0x80DC000E). The parameter is stored but not checked against a decoder budget, so every acquire with valid pointers succeeds, and the callback is stored but never called; when the console calls it is unknown