feat(libSceVideodec2): declare sceVideodec2InitLibrary #8113

Merged
Nixitov merged 1 commit from upstream-pr/8113 into main 2026-10-22 13:22:59 +00:00
Nixitov commented 2026-10-19 22:09:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-19T22:09:36Z.


What

Declares sceVideodec2InitLibrary (DXlobplVYj0) in libSceVideodec2 as a throwing export, following the existing libSceVideoOut and libkernel unimplemented declarations.

The module's decoders are created per sceVideodec2CreateDecoder and need no library-level initialisation, and no measured behaviour or signature exists for this call: neither SharpProspero nor EVO-PLAYER-PS5 declares it. Rather than invent one, it throws, and the debt entry records that together with the title that reaches it.

Tested

Relinked against main a30f58a42. PPSA98260 (TubeBlock), Windows, MinGW-w64 GCC 15.2:

  • Before: FAIL: unresolved ELF import DXlobplVYj0 from libSceVideodec2.prx, exits at load.
  • With this PR: loads and gets past it to the next unresolved import, q0gN8e4VLZo (sceVideodec2TermLibrary), which is the natural follow-up.

No test: this is a declaration-only export like the existing sceKernelUnknown* ones; there is no behaviour to assert beyond the throw. check_conventions.py --base origin/main passes.

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: none
  • Fixes: none
  • Unblocks: PPSA98260
  • GPUs tested: n/a (video decoder declaration; no AGC, shader recompiler or VideoOut change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4928090485 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113). Originally posted by [Nixitov](https://github.com/Nixitov) on 2026-10-19T22:09:36Z. --- ### What Declares `sceVideodec2InitLibrary` (`DXlobplVYj0`) in `libSceVideodec2` as a throwing export, following the existing `libSceVideoOut` and `libkernel` unimplemented declarations. The module's decoders are created per `sceVideodec2CreateDecoder` and need no library-level initialisation, and no measured behaviour or signature exists for this call: neither SharpProspero nor EVO-PLAYER-PS5 declares it. Rather than invent one, it throws, and the debt entry records that together with the title that reaches it. ### Tested Relinked against `main` `a30f58a42`. PPSA98260 (TubeBlock), Windows, MinGW-w64 GCC 15.2: - Before: `FAIL: unresolved ELF import DXlobplVYj0 from libSceVideodec2.prx`, exits at load. - With this PR: loads and gets past it to the next unresolved import, `q0gN8e4VLZo` (`sceVideodec2TermLibrary`), which is the natural follow-up. No test: this is a declaration-only export like the existing `sceKernelUnknown*` ones; there is no behaviour to assert beyond the throw. `check_conventions.py --base origin/main` passes. ### 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: none - [x] Fixes: none - [x] Unblocks: PPSA98260 - [x] GPUs tested: n/a (video decoder declaration; no AGC, shader recompiler or VideoOut change) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 22:10:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T22:10:23Z.


Progress report (cecb540 → 4bd46aa)

➖ System libraries: 42.1% (+0.0%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libSceVideodec2 sceVideodec2InitLibrary
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278483529 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6278483529). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T22:10:23Z. --- <!-- progress-report --> ### Progress report (cecb540 → 4bd46aa) ➖ **System libraries**: 42.1% (+0.0%, +1 declared functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceVideodec2 | `sceVideodec2InitLibrary` | </details>
DavidSamir commented 2026-10-19 22:35:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-19T22:35:47Z.


TubeBlock (PPSA98260) imports thirteen more absent libSceVideodec2 functions after this one, starting with sceVideodec2TermLibrary. #8119 exports those thirteen the same way and leaves sceVideodec2InitLibrary to this PR.

With this head (pr-8113) and #8119 together on main 0929be5e8d, the shared Unimplemented.cpp joined by hand, TubeBlock loads with no absent imports. It is still running at 60 s in 2 of 2 runs on Windows 11 (RTX 3070, WinLibs GCC 15.2.0, Release).

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278875336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6278875336). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-19T22:35:47Z. --- TubeBlock (PPSA98260) imports thirteen more absent libSceVideodec2 functions after this one, starting with `sceVideodec2TermLibrary`. #8119 exports those thirteen the same way and leaves `sceVideodec2InitLibrary` to this PR. With this head (`pr-8113`) and #8119 together on `main` `0929be5e8d`, the shared `Unimplemented.cpp` joined by hand, TubeBlock loads with no absent imports. It is still running at 60 s in 2 of 2 runs on Windows 11 (RTX 3070, WinLibs GCC 15.2.0, Release). AI-assisted: yes
babyhuey commented 2026-10-21 00:39:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-21T00:39:12Z.


Linux run of this head (bced97974) together with #8119 (a42118dc4), since the description covers Windows only. Both merged onto main e10b4d619, with the shared Unimplemented.cpp joined by hand as @DavidSamir did (both PRs add it; nothing else conflicts). Ubuntu 24.04 container, GCC 13, Release, BUILD_TESTING=ON.

  • guest_videodec2 and guest_videodec2_unimplemented pass 5 of 5 (--repeat until-fail:5). The build has no warnings.
  • TubeBlock (PPSA98260, catalog 01.000.157), headless with SDL's offscreen driver:
    • main e10b4d619: symbol lookup error: ... undefined symbol: DXlobplVYj0 at load.
    • With both PRs: no absent imports. The title logs [YTV] videodec2 imports: 26/26 reachable and runs until the DisplayWindow Vulkan check, where headless runs of the other UI titles stop too.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305067035 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6305067035). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-21T00:39:12Z. --- Linux run of this head (bced97974) together with #8119 (a42118dc4), since the description covers Windows only. Both merged onto `main` `e10b4d619`, with the shared `Unimplemented.cpp` joined by hand as @DavidSamir did (both PRs add it; nothing else conflicts). Ubuntu 24.04 container, GCC 13, Release, `BUILD_TESTING=ON`. - `guest_videodec2` and `guest_videodec2_unimplemented` pass 5 of 5 (`--repeat until-fail:5`). The build has no warnings. - TubeBlock (PPSA98260, catalog 01.000.157), headless with SDL's offscreen driver: - `main` `e10b4d619`: `symbol lookup error: ... undefined symbol: DXlobplVYj0` at load. - With both PRs: no absent imports. The title logs `[YTV] videodec2 imports: 26/26 reachable` and runs until the `DisplayWindow` Vulkan check, where headless runs of the other UI titles stop too. AI-assisted: yes
oneandonlydean commented 2026-10-21 13:05:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T13:05:37Z.


@Nixitov thanks for the rebase. One small thing in the debt bullet: we keep game names and title IDs out of the docs, so could you replace the last sentence with "A title imports it from this module."? The code is fine as it is.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316788733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6316788733). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T13:05:37Z. --- @Nixitov thanks for the rebase. One small thing in the debt bullet: we keep game names and title IDs out of the docs, so could you replace the last sentence with "A title imports it from this module."? The code is fine as it is.
Nixitov commented 2026-10-21 16:02:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-21T16:02:06Z.


Done — the debt bullet now ends "A title imports it from this module." (4bd46aa9e). Nothing else changed in the file; python tools/check_conventions.py --base origin/main still passes.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6320448761 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6320448761). Originally posted by [Nixitov](https://github.com/Nixitov) on 2026-10-21T16:02:06Z. --- Done — the debt bullet now ends "A title imports it from this module." (`4bd46aa9e`). Nothing else changed in the file; `python tools/check_conventions.py --base origin/main` still passes. AI-assisted: yes
rooklz commented 2026-10-22 12:51:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-22T12:51:11Z.


Title evidence for this, in case it helps the intake rule: PPSA98260 (TubeBlock, the SmartTube build in the homebrew catalog, release 01.000.157) imports DXlobplVYj0 from libSceVideodec2, and on current main it is the title's first unresolved import, so the loader stops there before anything runs (tools/import_audit.py on the relinker registry: Current stop: DXlobplVYj0 [libSceVideodec2.prx]). It also imports eight of the module's other unimplemented exports (QueryDecoderInfo, MapMemory, MapDirectMemory, the four PresetDecoderConfigInfo variants and GetHevcPictureInfo), so a throwing declaration moves its stop to whichever of those it calls first.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341191755 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8113#issuecomment-6341191755). Originally posted by [rooklz](https://github.com/rooklz) on 2026-10-22T12:51:11Z. --- Title evidence for this, in case it helps the intake rule: PPSA98260 (TubeBlock, the SmartTube build in the homebrew catalog, release `01.000.157`) imports `DXlobplVYj0` from `libSceVideodec2`, and on current `main` it is the title's first unresolved import, so the loader stops there before anything runs (`tools/import_audit.py` on the relinker registry: `Current stop: DXlobplVYj0 [libSceVideodec2.prx]`). It also imports eight of the module's other unimplemented exports (`QueryDecoderInfo`, `MapMemory`, `MapDirectMemory`, the four `PresetDecoderConfigInfo` variants and `GetHevcPictureInfo`), so a throwing declaration moves its stop to whichever of those it calls first.
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!8113
No description provided.