feat(libSceJxr): implement codec allocation and bit I/O structures #17403
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17403"
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 MarrasFederico on 2026-11-08T19:00:02Z.
What
Consolidates #16706, #16713, #16728, #16854, #16827, #16851, #16714, #16712, #16710, #16711 into one topic so the shared remaining-stub count, test blocks, and build registrations do not cause cascading conflicts between individual merges. Preserves their published library implementations, with identical shared helpers and declarations kept once.
Implemented exports:
allocateTileInfofreeTileInfoallocateQuantizerfreeQuantizerallocatePredInfofreePredInfoallocateBitIOInfosetBitIOPointersdetachISWritedetachISReadThe debt count is recalculated from the resulting
Export.cpp: 14 remainingNotImplemented_nid_no_patch(__func__)calls. Internal definition anchors are refreshed.Prediction tests share one free callback that preserves both live-block accounting and the pre-free pointer observation.
The individual Jxr PR series previously received Windows checks from JJenkx and gabichuuuuu. For the PRs in this group, the recorded checks include gabichuuuuu on #16706 and JJenkx on #17403. Those results apply to the individual revisions recorded in their comments, not this combined commit.
Tested
Ubuntu 26.04.1 LTS, kernel 7.0.0-43-generic, GCC 15.2.0, Release,
BUILD_TESTING=ON, CMake 4.4.4 with Ninja 1.13 from a virtualenv. Mergedupstream/main(d5663ee9a3, fulld5663ee9a36d47e79c53ec0d30ce6555831f084d) intofedc9a47cdwith normal merge commit1139d1a740, followed by930e0560b1(930e0560b1fc0159bdfad04175e726bc0204482e, reconciling the post-merge stub count bullet indocs/dev/debt/libSceJxr.md); published history was not rebased, squashed or force-pushed. Windows and macOS were not compiled here; no game title was run.libSceJxrand the 17guest_jxr*test executables.ctest -R '^guest_jxr' --output-on-failure --repeat until-fail:3: 100% tests passed out of 23, 3 runs each,Not Run= 0 (exit 0).python3 tools/check_conventions.py --base upstream/main: "All conventions checks passed." (exit 0, 0 errors, 0 warnings).python3 core/libs/tests/test_public_headers.py --audit-only: 413 libraries, 34548 exports: unique declarations and umbrella coverage verified.git diff --check upstream/main...HEAD: clean.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)Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T19:55:59Z.
Review: COMMENTED
Windows run of head
f5fa58b4a4, merged alone ontomain095ff72367(clean merge). Setup: Windows 11, WinLibs GCC 15.2 (x86_64-ucrt-posix-seh), Release,BUILD_TESTING=ON.guest_jxr*tests with--repeat until-fail:5: every run passes.main'slibSceJxr/Export.cppand this PR's header, the build stops withconflicting declaration of C function, because the tests call exports that only exist with this PR.The four consolidations still conflict with each other. Merged onto
maintwo at a time, every pair of #17400, #17401, #17402 and #17403 conflicts. For this one, that's with #17400, #17401, #17402. The conflicts are indocs/dev/debt/libSceJxr.md(the remaining-stub line) in every pair, plusGlueHelpers.cpp,NativeGlue.c,Api.hpp,CMakeLists.txt,GuestJxr.cpporGuestJxrGlue.cppdepending on the pair. So the cascade the description wants to avoid is now four-way instead of 22-way: after the first one merges, the other three each need a rebase. Stacking them (each based on the previous) or one PR for the shared helpers and debt line would remove it.The duplicate
JxrGuestMalloc_nid_no_patchthat #16706 and #16714 each added is now defined once inGlueHelpers.cpp.