feat(libSceJxr): enumerate supported pixel format conversions #15646
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15646"
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 santhoshkumar-dev on 2026-11-03T23:08:26Z.
What
PKFormatConverter_EnumConversions(g5p4acBy56A) currently throws through a parameterless placeholder. Bind the source-defined query: a 16-byte source GUID and 32-bit index produce a signed 64-bitERRand a borrowed target GUID. The reference returns targets in table order; an unknown source or exhausted index returns -108 and stores DontCare. Null arguments and overlapping input/output storage throw before the native call.The adapter calls the existing, source-built pinned JXRGluePFC.c through a C bridge. Its local GUID copy keeps native code from writing guest output storage, and the native
ERRis widened with its sign on Windows. Returned GUIDs use the existing bridge's read-only native storage while the module is loaded. Console signature/table equivalence and pointer identity with the separate guest GUID data exports remain unverified and are recorded in debt.The dependency line records integration order with older JXR branches that edit the same inventory-debt paragraph. There is no runtime dependency on their functions. The independent metadata cleanup and this topic merge cleanly.
Tested
Submitted head
3ba4f11fc72d277aadbf359fba3d6394af03e4cf, based on upstream main1c8c0efc8c41314402e6966da5bef6ea3d639d10.BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF: completelibstarget including all 406 packaged.prxfiles, the packaged loader and selected JXR executables build. 77/77 CTests pass, zero skips: public-header audit, all 64 compilation batches, the packaged-library loader and all 11 JXR tests.UINT32_MAX. It additionally checks RGB24→BGR24 ordering, unknown/DontCare sources, replacement of an existing output on a miss, source/output canaries, retained and repeated pointer lifetime, and unchanged rejected null/overlap arguments.PKFormatConverter_EnumConversions_nid_postfix not implemented.139e867b78e181a0812feb553b2db84a7ac168e3, containing this code, #15645's code and #14425/#14631/#14905/#14916/#14933/#15148/#15232/#15479 after shared-file resolution, builds and passes 20/20 selected checks (header audit and all 19 combined JXR runtime tests). #15626 was reviewed separately: its four different default functions have no same-export collision here; the overlap is the debt paragraph.Conventions and whitespace pass. Final
tools/pr_overlap.py --branchscanned 1,811 open PRs and found no same-export collision. It reports the nine older JXR debt conflicts recorded in Depends on and exits 2 because #7645 already conflicts with main. The exact shared JXR CMake file was manually three-way merged for this topic with #7645: clean, exit 0. The new test executable is isolated on Windows and stages only compiler runtimes, preventing project-DLL staging from shadowing the requested raw/patched dependencies. Open/closed/merged history, reviews and linked work were checked; #13139 adds the previous throwing declaration.The full default executable/test build and entire CTest suite were not completed. macOS, physical-console, title and GPU execution were not run. GPU testing is outside this library change.
Additional Linux validation on the submitted head. Ubuntu 24.04 x86-64 under WSL2, GCC 13.3, Ninja Release with bundled dependencies and tests enabled. The complete
libstarget and selected test executables build. All 11 JXR runtime tests pass, including both normal and packaged export modes, along with the packaged-library loader (12/12). The public-header audit and all 64 compile batches also pass when run directly from an ext4 copy of the exact submitted source. The initial mounted-drive audit timed out at 90 seconds, which skipped its 64 dependent CTest entries. The full CTest suite remains unrun.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 MarcZX10 on 2026-11-23T04:47:01Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review found no verified defect in the inspected code.
What I ran
Reviewed head
3ba4f11fc72d277aadbf359fba3d6394af03e4cf. No commands or tests were run; the build and test results below are author-reported. Readdescription.md,commits.md,manifest.json,diff.patch, and all nine changed repository files listed in the manifest. No changed files were excluded.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, test, or negative control was run during this review. Physical-console behavior, console ABI signature and conversion table equivalence, and identity with the separate guest GUID exports remain unverified as recorded in the change description.
To get this to a good state
Nothing is required.
Pull request closed