feat(libSceVideodec2): export thirteen functions as not implemented #8119

Merged
DavidSamir merged 6 commits from upstream-pr/8119 into main 2026-10-21 10:07:25 +00:00
DavidSamir commented 2026-10-19 22:35:25 +00:00 (Migrated from github.com)

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:

FAIL: unresolved ELF import DXlobplVYj0 from libSceVideodec2.prx

The import audit lists all fourteen as absent. tools/nid_names.py names 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:

Function NID
sceVideodec2TermLibrary q0gN8e4VLZo
sceVideodec2QueryLibraryInfo mhKZJqhGnXg
sceVideodec2QueryDecoderInfo EQtFad2c1T8
sceVideodec2MapMemory 2C6StOEz+nM
sceVideodec2MapDirectMemory hIIZXUsMeI8
sceVideodec2PresetDecoderConfigInfo B92MMJrPQMI
sceVideodec2PresetDecoderConfigInfoAvc X9RNCpx+mFE
sceVideodec2PresetDecoderConfigInfoHevc KoHlJNQCzIw
sceVideodec2PresetDecoderConfigInfoVp9 ao7f1-9zqkk
sceVideodec2CreateDecoderBid hjoVB02yu0U
sceVideodec2CreateHevcDecoder pu4kxXkYz3E
sceVideodec2QueryHevcDecoderMemoryInfo krChT8KBUDU
sceVideodec2GetHevcPictureInfo 7M+1UFqWOAI

They are in a new Unimplemented.cpp, as in libSceVideoOut. Each reports <name> not implemented when called. Only sceVideodec2MapDirectMemory has a published parameter list, (decoder, memory), from EVO-PLAYER-PS5's sce_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:

  1. feat(libSceVideodec2): export the library and memory functions as not implemented: the first five in the table.
  2. feat(libSceVideodec2): export the decoder preset and HEVC functions as not implemented: the other eight.
  3. test(libSceVideodec2): check that the thirteen exports report not implemented: guest_videodec2_unimplemented calls each one and requires the error. Without the exports it does not link.
  4. docs(debt): list the Videodec2 exports that report not implemented. It also updates the existing HEVC entry, which said sceVideodec2GetHevcPictureInfo was not exported.

Tested

Windows 11 Pro 26300, i7-11700F, RTX 3070 (610.60), WinLibs GCC 15.2.0, Ninja, Release, on main 0929be5e8d.

TubeBlock (PPSA98260, catalog release, sha256 checked), 60 s runs:

Build Result
main bf2c63f853 stops at load in 2-3 s with the error above (3 runs)
This PR alone stops at load in 5 s on DXlobplVYj0, the one import left absent (#8113's)
main + #8113 + this PR (the shared file joined by hand) still running at 60 s (2 runs), 0 absent imports

The process is busy, not stuck: after 30 s it had 69 threads and 3.4 s of CPU time.

Other checks:

  • No other title can change: of the 102 catalog titles converted here, only PPSA98260 imports any of the thirteen NIDs.
  • Titles that use libSceVideodec2: Twispero (PPSA99474), ProsperoLight (PPSA99002), YouTube Max'd (PPSA99991), PPSA99039 and PPSA99350 run 45 s on both main and this PR.
  • Exports: libSceVideodec2.prx exports the thirteen NIDs (objdump).
  • Tests: guest_videodec2_unimplemented and the existing guest_videodec2 pass, 3 runs of 3.
  • Negative control: on main without Unimplemented.cpp, the new test fails to link with thirteen undefined references.
  • Each commit: the libraries build, and the export count is checked after commits 1 and 2.
  • Tools: tools/check_conventions.py --base origin/main reports 0 errors. Its one warning is the existing HEVC/VP9 entry's length. tools/pr_overlap.py --branch could not compare #6044 (a 300-file test reorganisation that conflicts with main). It touches this library's CMakeLists.txt, where this PR adds one test block.

Linux (WSL2 Ubuntu 24.04, GCC 13.3.0, Release): libs builds, and guest_videodec2_unimplemented and guest_videodec2 pass, 3 runs of 3.

Not checked on a console.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #8113 for PPSA98260 to load (it exports sceVideodec2InitLibrary); this change builds and passes on main alone
  • Fixes: none
  • Unblocks: PPSA98260 (TubeBlock) on Windows, with #8113
  • GPUs tested: n/a (no AGC, shader recompiler or VideoOut change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4928324038 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8119). Originally posted by [DavidSamir](https://github.com/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: ``` FAIL: unresolved ELF import DXlobplVYj0 from libSceVideodec2.prx ``` The import audit lists all fourteen as absent. `tools/nid_names.py` names 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: | Function | NID | |---|---| | `sceVideodec2TermLibrary` | `q0gN8e4VLZo` | | `sceVideodec2QueryLibraryInfo` | `mhKZJqhGnXg` | | `sceVideodec2QueryDecoderInfo` | `EQtFad2c1T8` | | `sceVideodec2MapMemory` | `2C6StOEz+nM` | | `sceVideodec2MapDirectMemory` | `hIIZXUsMeI8` | | `sceVideodec2PresetDecoderConfigInfo` | `B92MMJrPQMI` | | `sceVideodec2PresetDecoderConfigInfoAvc` | `X9RNCpx+mFE` | | `sceVideodec2PresetDecoderConfigInfoHevc` | `KoHlJNQCzIw` | | `sceVideodec2PresetDecoderConfigInfoVp9` | `ao7f1-9zqkk` | | `sceVideodec2CreateDecoderBid` | `hjoVB02yu0U` | | `sceVideodec2CreateHevcDecoder` | `pu4kxXkYz3E` | | `sceVideodec2QueryHevcDecoderMemoryInfo` | `krChT8KBUDU` | | `sceVideodec2GetHevcPictureInfo` | `7M+1UFqWOAI` | They are in a new `Unimplemented.cpp`, as in libSceVideoOut. Each reports `<name> not implemented` when called. Only `sceVideodec2MapDirectMemory` has a published parameter list, `(decoder, memory)`, from [EVO-PLAYER-PS5's `sce_videodec2.h`](https://github.com/sainsaji/EVO-PLAYER-PS5/blob/9715f6ee9bf9b53461d6fdf9a2e11b4c48357783/projects/evoplayer/media/include/sce/sce_videodec2.h#L173). 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: 1. `feat(libSceVideodec2): export the library and memory functions as not implemented`: the first five in the table. 2. `feat(libSceVideodec2): export the decoder preset and HEVC functions as not implemented`: the other eight. 3. `test(libSceVideodec2): check that the thirteen exports report not implemented`: `guest_videodec2_unimplemented` calls each one and requires the error. Without the exports it does not link. 4. `docs(debt): list the Videodec2 exports that report not implemented`. It also updates the existing HEVC entry, which said `sceVideodec2GetHevcPictureInfo` was not exported. ### Tested Windows 11 Pro 26300, i7-11700F, RTX 3070 (610.60), WinLibs GCC 15.2.0, Ninja, Release, on `main` `0929be5e8d`. TubeBlock (PPSA98260, catalog release, sha256 checked), 60 s runs: | Build | Result | |---|---| | `main` `bf2c63f853` | stops at load in 2-3 s with the error above (3 runs) | | This PR alone | stops at load in 5 s on `DXlobplVYj0`, the one import left absent (#8113's) | | `main` + #8113 + this PR (the shared file joined by hand) | still running at 60 s (2 runs), 0 absent imports | The process is busy, not stuck: after 30 s it had 69 threads and 3.4 s of CPU time. Other checks: - **No other title can change:** of the 102 catalog titles converted here, only PPSA98260 imports any of the thirteen NIDs. - **Titles that use libSceVideodec2:** Twispero (PPSA99474), ProsperoLight (PPSA99002), YouTube Max'd (PPSA99991), PPSA99039 and PPSA99350 run 45 s on both `main` and this PR. - **Exports:** `libSceVideodec2.prx` exports the thirteen NIDs (objdump). - **Tests:** `guest_videodec2_unimplemented` and the existing `guest_videodec2` pass, 3 runs of 3. - **Negative control:** on `main` without `Unimplemented.cpp`, the new test fails to link with thirteen undefined references. - **Each commit:** the libraries build, and the export count is checked after commits 1 and 2. - **Tools:** `tools/check_conventions.py --base origin/main` reports 0 errors. Its one warning is the existing HEVC/VP9 entry's length. `tools/pr_overlap.py --branch` could not compare #6044 (a 300-file test reorganisation that conflicts with `main`). It touches this library's `CMakeLists.txt`, where this PR adds one test block. Linux (WSL2 Ubuntu 24.04, GCC 13.3.0, Release): `libs` builds, and `guest_videodec2_unimplemented` and `guest_videodec2` pass, 3 runs of 3. Not checked on a console. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #8113 for PPSA98260 to load (it exports `sceVideodec2InitLibrary`); this change builds and passes on `main` alone - [x] Fixes: none - [x] Unblocks: PPSA98260 (TubeBlock) on Windows, with #8113 - [x] GPUs tested: n/a (no AGC, shader recompiler or VideoOut change) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 22:36:06 +00:00 (Migrated from github.com)

Imported 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
Library Name
libSceVideodec2 sceVideodec2CreateDecoderBid
libSceVideodec2 sceVideodec2CreateHevcDecoder
libSceVideodec2 sceVideodec2GetHevcPictureInfo
libSceVideodec2 sceVideodec2MapDirectMemory
libSceVideodec2 sceVideodec2MapMemory
libSceVideodec2 sceVideodec2PresetDecoderConfigInfo
libSceVideodec2 sceVideodec2PresetDecoderConfigInfoAvc
libSceVideodec2 sceVideodec2PresetDecoderConfigInfoHevc
libSceVideodec2 sceVideodec2PresetDecoderConfigInfoVp9
libSceVideodec2 sceVideodec2QueryDecoderInfo
libSceVideodec2 sceVideodec2QueryHevcDecoderMemoryInfo
libSceVideodec2 sceVideodec2QueryLibraryInfo
libSceVideodec2 sceVideodec2TermLibrary
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278880023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8119#issuecomment-6278880023). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T22:36:06Z. --- <!-- progress-report --> ### Progress report (b5d7637 → 89c2393) 📉 **System libraries**: 50.9% (-0.07%, +13 declared functions) <details> <summary>🆕 13 declared as stubs</summary> | Library | Name | | - | - | | libSceVideodec2 | `sceVideodec2CreateDecoderBid` | | libSceVideodec2 | `sceVideodec2CreateHevcDecoder` | | libSceVideodec2 | `sceVideodec2GetHevcPictureInfo` | | libSceVideodec2 | `sceVideodec2MapDirectMemory` | | libSceVideodec2 | `sceVideodec2MapMemory` | | libSceVideodec2 | `sceVideodec2PresetDecoderConfigInfo` | | libSceVideodec2 | `sceVideodec2PresetDecoderConfigInfoAvc` | | libSceVideodec2 | `sceVideodec2PresetDecoderConfigInfoHevc` | | libSceVideodec2 | `sceVideodec2PresetDecoderConfigInfoVp9` | | libSceVideodec2 | `sceVideodec2QueryDecoderInfo` | | libSceVideodec2 | `sceVideodec2QueryHevcDecoderMemoryInfo` | | libSceVideodec2 | `sceVideodec2QueryLibraryInfo` | | libSceVideodec2 | `sceVideodec2TermLibrary` | </details>
github-actions[bot] commented 2026-10-19 22:45:34 +00:00 (Migrated from github.com)

Imported 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.

Pull request Shared files not compared
PR 6044 core/libs/prx/libSceVideodec2/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6279014723 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8119#issuecomment-6279014723). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T22:45:34Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceVideodec2/CMakeLists.txt` |
DavidSamir commented 2026-10-20 10:55:21 +00:00 (Migrated from github.com)

Imported 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289283338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8119#issuecomment-6289283338). Originally posted by [DavidSamir](https://github.com/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.
dantdmdarealguy commented 2026-10-21 02:12:18 +00:00 (Migrated from github.com)

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:

  • merge base 0929be5e8d;
  • head a42118dc45;
  • head + #8113 bced979742, with the add/add conflict in Unimplemented.cpp joined by hand: #8113's sceVideodec2InitLibrary put before this PR's thirteen, keeping this PR's includes;
  • current main 3b5a24c0d, alone and with both PRs merged.

TubeBlock (PPSA98260) 01.000.157, catalog zip, sha256 66ce3298…0c13d6 matching the catalog record. eboot.bin and sce_module/libc.prx unwrapped with tools/unwrap_self.py, relinked with relinker --windows --registry, package as app0. 60 s runs, no input.

Build Result
base 0929be5e8d 0xC0000139 after 4.3 s, 14 unresolved ELF import … from libSceVideodec2.prx lines, starting with DXlobplVYj0 and q0gN8e4VLZo
main 3b5a24c0d the same stop after 3.2 s
this PR alone 0xC0000139 after 2.9 s, one line left: DXlobplVYj0 (#8113's)
this PR + #8113 still running at 60 s, 59.90 to 59.94 FPS; exits 0 on WM_CLOSE
main + both the same, 59.94 FPS at 57 s, exit 0

With 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, terminate or not implemented line, so none of the fourteen is called in the first 60 s.

Tests

  • guest_videodec2 and guest_videodec2_unimplemented pass 3 of 3 (--repeat until-fail:3) on the head. They also pass on the joined tree and on main + both. patched_libraries passes on all of them.
  • Negative control: with Unimplemented.cpp emptied (the base has no such file), guest_videodec2_unimplemented_tests doesn't link: 13 undefined references, one for each export.
  • The incremental head build has no warnings. tools/check_conventions.py --base 0929be5e8d reports one debt-length warning on docs/dev/debt/libSceVideodec2.md:13, the sceVideodec2CreateDecoder entry this PR edits. That entry was already 2073 characters before the change and is 2092 after. The branch merges into current main 3b5a24c0d without conflicts. It conflicts only with #8113, in the file described above.

TubeBlock home screen at 57 s with this PR and #8113

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6306294862 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8119#issuecomment-6306294862). Originally posted by [dantdmdarealguy](https://github.com/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: - merge base `0929be5e8d`; - head `a42118dc45`; - head + #8113 `bced979742`, with the add/add conflict in `Unimplemented.cpp` joined by hand: #8113's `sceVideodec2InitLibrary` put before this PR's thirteen, keeping this PR's includes; - current `main` `3b5a24c0d`, alone and with both PRs merged. **TubeBlock (PPSA98260) 01.000.157**, catalog zip, sha256 `66ce3298…0c13d6` matching the catalog record. `eboot.bin` and `sce_module/libc.prx` unwrapped with `tools/unwrap_self.py`, relinked with `relinker --windows --registry`, package as `app0`. 60 s runs, no input. | Build | Result | |---|---| | base `0929be5e8d` | `0xC0000139` after 4.3 s, 14 `unresolved ELF import … from libSceVideodec2.prx` lines, starting with `DXlobplVYj0` and `q0gN8e4VLZo` | | `main` `3b5a24c0d` | the same stop after 3.2 s | | this PR alone | `0xC0000139` after 2.9 s, one line left: `DXlobplVYj0` (#8113's) | | this PR + #8113 | still running at 60 s, 59.90 to 59.94 FPS; exits 0 on WM_CLOSE | | `main` + both | the same, 59.94 FPS at 57 s, exit 0 | With 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, `terminate` or `not implemented` line, so none of the fourteen is called in the first 60 s. **Tests** - `guest_videodec2` and `guest_videodec2_unimplemented` pass 3 of 3 (`--repeat until-fail:3`) on the head. They also pass on the joined tree and on `main` + both. `patched_libraries` passes on all of them. - Negative control: with `Unimplemented.cpp` emptied (the base has no such file), `guest_videodec2_unimplemented_tests` doesn't link: 13 undefined references, one for each export. - The incremental head build has no warnings. `tools/check_conventions.py --base 0929be5e8d` reports one `debt-length` warning on `docs/dev/debt/libSceVideodec2.md:13`, the `sceVideodec2CreateDecoder` entry this PR edits. That entry was already 2073 characters before the change and is 2092 after. The branch merges into current `main` `3b5a24c0d` without conflicts. It conflicts only with #8113, in the file described above. ![TubeBlock home screen at 57 s with this PR and #8113](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/reviews/8119-tube-combo-57s.png) 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8119
No description provided.