feat(libSceJxr): implement PKFormatConverter_EnumConversions #28906
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28906"
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 NobleBrains on 2026-12-04T15:04:30Z.
What
PKFormatConverter_EnumConversionsin libSceJxr threwNotImplemented. It now copies the source pixel format GUID in, calls jxrlib'sPKFormatConverter_EnumConversionsthrough a new glue function, and copies the returned target pointer out to the guest. A null pointer or an unreadable or unwritable guest pointer returns the invalid-argument error.Whether the PS5 module adds or removes entries from jxrlib's
s_pcInfoconversion table is not measured on a console; the debt fragment says so.Tested
On Linux x86_64 (Release, container),
guest_jxr_glue: 1/1 passed, with a new case for the function.check_conventions.pyanddebt_fold.py --checkpass.Not run: Windows, macOS, a counter-test with the source change reverted, and any title.
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)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T15:11:35Z.
Review: COMMENTED
Actionable comments
be6bec1b-e85f-459b-acd7-22d28cbc577bReviewing files that changed from the base of the PR and between
7e4db5636eand21085c6390.core/libs/prx/libSceJxr/Export.cppcore/libs/prx/libSceJxr/include/Api.hppcore/libs/prx/libSceJxr/src/NativeGlue.ccore/libs/tests/GuestJxrGlue.cppdocs/dev/debt/changes/jxr-enum-conversions.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T15:47:37Z.
Review: APPROVED
Verified head
21085c6390on Windows 11 with GCC 15.2, applied to main484b0368d3.guest_jxr_glue: passes on main, and passes with this PR, including the newTestEnumConversions.The glue forwards a copied source GUID to jxrlib's
PKFormatConverter_EnumConversions, then copies out the target pointer. For a missing index, jxrlib setsGUID_PKPixelFormatDontCarebefore returningWMP_errIndexNotFound(-108), which the test checks.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T15:58:04Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
21085c6390c4aadc6476933a8863fee46f3a2889implements format conversion enumeration, and the inspected code supports merging.What I ran
Read the prepared diff and all five changed files listed under
reviewedinfiles.json. Usedrepo_read.pyto inspectExport.cppat the pinned head. No tests or builds were run; the test results in the PR description are author-reported.Results
Negative control
Not run; the test was not executed with the implementation reverted.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
Windows or macOS behavior, a reverted-source counter-test, console behavior, and title compatibility were not verified. The PR reports
guest_jxr_glue1/1 passed andcheck_conventions.pyanddebt_fold.py --checkpassed; these results were not independently run.files.jsonlists no excluded files.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.