Repository navigation
feat(libSceJxr): release prediction rows - #16851
MarrasFederico wants to merge 3 commits into
Conversation
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
Progress report (577e3d9 → bd430ed)📈 System libraries: 32.72% (+0.0026%, +1 implemented functions) ✅ 1 implemented
Changed libraries (implemented exports)
|
gabichuuuuu
left a comment
There was a problem hiding this comment.
Windows run of head bd430edbb7, merged alone onto main f35f1e5eca (clean merge). Setup: Windows 11, WinLibs GCC 15.2 (x86_64-ucrt-posix-seh), Release, BUILD_TESTING=ON.
- All 16
guest_jxr*tests with--repeat until-fail:5: every run passes. - No runnable negative control: with
main'slibSceJxr/Export.cppand this PR's header, the build stops withconflicting declaration of C function, because the test calls exports whose signatures only exist with this PR.
Merge order: every open libSceJxr PR from this series edits the same "remaining stubs" line in docs/dev/debt/libSceJxr.md, so each merge will conflict with the next one there.
|
Superseded by #17403, which combines the libSceJxr codec structures changes into one PR so the shared stub count and test blocks stop conflicting between merges. Closing. |
What
freePredInfowas a parameterless placeholder that threw. It now follows pinned jxrlib strPredQuant.c: a non-nullpPredInfoMemoryis released with the guestfreeand the field is cleared; the per-channel row pointers are left as they were. A codec without a block is left unchanged. A null codec throwsstd::invalid_argumentwhere jxrlib dereferences it.The test hands the codec a guest
mallocblock and checks that the free callback still observes the originalpPredInfoMemory. After the callback returns, only that field is cleared: a full codec byte snapshot is compared, and the quantizers and prediction rows match an untouched reference copy. A second call is a no-op; a null codec throws.freePredInfo - not measured on a PS5: prototype and layout are inferred from the export name; the debt entry is in
docs/dev/debt/libSceJxr.md.Tested
Ubuntu 26.04.1 LTS x86-64, GCC 15.2.0, Release,
BUILD_TESTING=ON, base5062ba1fa434906ad0075f4d46bc763946e21ca3. No PS5 hardware or title was tested; Windows and macOS were not tested.Built
core/libs/prx/libSceJxr/allserially withnice -n 19 cmake --build build --parallel 2 --target core/libs/prx/libSceJxr/all.ctest --test-dir build -R 'guest_jxr' --output-on-failurepasses (100% tests passed out of 15).On current
mainthe export is a parameterless placeholder that throws throughNotImplemented_nid_no_patch, so the new assertions cannot pass there.python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpass.Regression control: moving the pointer clear before the guest free makes the callback-order assertion fail. Restored the source, rebuilt with the same serial limits, and all 15 JPEG XR tests pass.
pr_overlap.pyreturned 2. Compared every reported head (docs(debt): separate entries with blank lines and drop derived export totals #14212, feat(libSceJxr): return success from four jxrlib defaults as firmware 13.42 does #15626, feat(libSceJxr): implement descriptive metadata cleanup #15645, feat(libSceJxr): enumerate supported pixel format conversions #15646, feat(libSceJxr): implement PKImageDecode query and metadata exports #15684, feat(libSceJxr): implement codec row-state and coding-context reset helpers #15689, feat(libSceJxr): implement the linked-list WMPStream #15771, feat(libSceJxr): implement the FILE-backed WMPStream functions #15772, feat(libSceJxr): implement the generic PKImageEncode #15774, feat(libSceJxr): implement decoder post-processing helpers #16282, feat(libSceJxr): detach bitstream writers #16710, feat(libSceJxr): allocate prediction rows on the guest heap #16827) against its own merge base, including the original export and any new private-helper definitions: none implements the same export or helpers. Shared debt/header insertions remain. The related feat(libSceJxr): allocate prediction rows on the guest heap #16827 allocates prediction rows. It shares the LP64 assertion, header/helper insertion points, test heap fixture and inventory count; combine feat(libSceJxr): allocate prediction rows on the guest heap #16827 first and reconcile those common insertions, keeping one heap fixture. No functional dependency is required.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)