feat(libSceVideodec2): export thirteen functions as not implemented #8119
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8119"
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 DavidSamir on 2026-10-19T22:35:25Z.
What
TubeBlock (PPSA98260, new in the catalog) imports fourteen libSceVideodec2 functions that no library exports. On Windows, where a module's imports are bound when it loads, the title stops at the first of them:
The import audit lists all fourteen as absent.
tools/nid_names.pynames them. TubeBlock has no direct call site for any of them; they are in its import table only.#8113 (Nixitov) exports the first one,
sceVideodec2InitLibrary(DXlobplVYj0). This PR exports the other thirteen, so neither PR implements a function the other does:sceVideodec2TermLibraryq0gN8e4VLZosceVideodec2QueryLibraryInfomhKZJqhGnXgsceVideodec2QueryDecoderInfoEQtFad2c1T8sceVideodec2MapMemory2C6StOEz+nMsceVideodec2MapDirectMemoryhIIZXUsMeI8sceVideodec2PresetDecoderConfigInfoB92MMJrPQMIsceVideodec2PresetDecoderConfigInfoAvcX9RNCpx+mFEsceVideodec2PresetDecoderConfigInfoHevcKoHlJNQCzIwsceVideodec2PresetDecoderConfigInfoVp9ao7f1-9zqkksceVideodec2CreateDecoderBidhjoVB02yu0UsceVideodec2CreateHevcDecoderpu4kxXkYz3EsceVideodec2QueryHevcDecoderMemoryInfokrChT8KBUDUsceVideodec2GetHevcPictureInfo7M+1UFqWOAIThey are in a new
Unimplemented.cpp, as in libSceVideoOut. Each reports<name> not implementedwhen called. OnlysceVideodec2MapDirectMemoryhas a published parameter list,(decoder, memory), from EVO-PLAYER-PS5'ssce_videodec2.h. The others are declared without parameters rather than with guessed ones. The debt entry records this.#8113 also adds
Unimplemented.cpp, so whichever PR merges second takes a small add/add merge of that file: one function list joined to the other. I will do that merge here if #8113 lands first.Four commits:
feat(libSceVideodec2): export the library and memory functions as not implemented: the first five in the table.feat(libSceVideodec2): export the decoder preset and HEVC functions as not implemented: the other eight.test(libSceVideodec2): check that the thirteen exports report not implemented:guest_videodec2_unimplementedcalls each one and requires the error. Without the exports it does not link.docs(debt): list the Videodec2 exports that report not implemented. It also updates the existing HEVC entry, which saidsceVideodec2GetHevcPictureInfowas not exported.Tested
Windows 11 Pro 26300, i7-11700F, RTX 3070 (610.60), WinLibs GCC 15.2.0, Ninja, Release, on
main0929be5e8d.TubeBlock (PPSA98260, catalog release, sha256 checked), 60 s runs:
mainbf2c63f853DXlobplVYj0, the one import left absent (#8113's)main+ #8113 + this PR (the shared file joined by hand)The process is busy, not stuck: after 30 s it had 69 threads and 3.4 s of CPU time.
Other checks:
mainand this PR.libSceVideodec2.prxexports the thirteen NIDs (objdump).guest_videodec2_unimplementedand the existingguest_videodec2pass, 3 runs of 3.mainwithoutUnimplemented.cpp, the new test fails to link with thirteen undefined references.tools/check_conventions.py --base origin/mainreports 0 errors. Its one warning is the existing HEVC/VP9 entry's length.tools/pr_overlap.py --branchcould not compare #6044 (a 300-file test reorganisation that conflicts withmain). It touches this library'sCMakeLists.txt, where this PR adds one test block.Linux (WSL2 Ubuntu 24.04, GCC 13.3.0, Release):
libsbuilds, andguest_videodec2_unimplementedandguest_videodec2pass, 3 runs of 3.Not checked on a console.
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)sceVideodec2InitLibrary); this change builds and passes onmainaloneImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T22:36:06Z.
Progress report (
b5d7637→89c2393)📉 System libraries: 50.9% (-0.07%, +13 declared functions)
🆕 13 declared as stubs
sceVideodec2CreateDecoderBidsceVideodec2CreateHevcDecodersceVideodec2GetHevcPictureInfosceVideodec2MapDirectMemorysceVideodec2MapMemorysceVideodec2PresetDecoderConfigInfosceVideodec2PresetDecoderConfigInfoAvcsceVideodec2PresetDecoderConfigInfoHevcsceVideodec2PresetDecoderConfigInfoVp9sceVideodec2QueryDecoderInfosceVideodec2QueryHevcDecoderMemoryInfosceVideodec2QueryLibraryInfosceVideodec2TermLibraryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T22:45:34Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceVideodec2/CMakeLists.txtImported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-20T10:55:21Z.
Rechecked with the catalog update TubeBlock 01.000.157 (PPSA98260) on Windows: current main alone stops at load (14 absent libSceVideodec2 imports, 0xc0000139). With #8113 + this PR: 0 absent, runs 60 s. The new version needs no exports beyond these two PRs.
Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-21T02:12:18Z.
Independent Windows check, with and without #8113. Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Ninja, Release,
BUILD_TESTING=ON. Everything was built one after the other in the same build directory:0929be5e8d;a42118dc45;bced979742, with the add/add conflict inUnimplemented.cppjoined by hand: #8113'ssceVideodec2InitLibraryput before this PR's thirteen, keeping this PR's includes;main3b5a24c0d, alone and with both PRs merged.TubeBlock (PPSA98260) 01.000.157, catalog zip, sha256
66ce3298…0c13d6matching the catalog record.eboot.binandsce_module/libc.prxunwrapped withtools/unwrap_self.py, relinked withrelinker --windows --registry, package asapp0. 60 s runs, no input.0929be5e8d0xC0000139after 4.3 s, 14unresolved ELF import … from libSceVideodec2.prxlines, starting withDXlobplVYj0andq0gN8e4VLZomain3b5a24c0d0xC0000139after 2.9 s, one line left:DXlobplVYj0(#8113's)main+ bothWith both PRs the window shows TubeBlock's home screen: the sidebar, the clock and "Sign in to see your Home feed - or use Search". The log has no exception,
terminateornot implementedline, so none of the fourteen is called in the first 60 s.Tests
guest_videodec2andguest_videodec2_unimplementedpass 3 of 3 (--repeat until-fail:3) on the head. They also pass on the joined tree and onmain+ both.patched_librariespasses on all of them.Unimplemented.cppemptied (the base has no such file),guest_videodec2_unimplemented_testsdoesn't link: 13 undefined references, one for each export.tools/check_conventions.py --base 0929be5e8dreports onedebt-lengthwarning ondocs/dev/debt/libSceVideodec2.md:13, thesceVideodec2CreateDecoderentry this PR edits. That entry was already 2073 characters before the change and is 2092 after. The branch merges into currentmain3b5a24c0dwithout conflicts. It conflicts only with #8113, in the file described above.The home screen at 57 s with this PR and #8113. Neither the base nor this PR alone made a window.
Verdict: works on Windows together with #8113. TubeBlock loads with no absent import and renders its home screen. Each PR alone still stops at load.