feat(libSceJxr): implement the generic PKImageEncode #15774
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15774"
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 alvaroelpob on 2026-11-04T14:00:01Z.
What
Implements the libSceJxr generic encoder exports PKImageEncode_Create, Initialize, SetPixelFormat, SetSize, SetResolution, SetColorContext, SetDescriptiveMetadata, WritePixels and Release, as in jxrlib's JXRGlue.c. They use the 66688-byte LP64 PKImageEncode layout measured from the pinned header.
Tested
Full suite on d745cfef7e (Linux): 3883/3883 passed, including the new guest_jxr_image_encode test. It covers each setter's stored fields, the -2 and -3 results, Initialize's defaults, stream start and failing GetPos, Release closing the stream and freeing the encoder, and Create's slots, its allocation failure and a round trip through the slots. The layout's offsets and size are static_asserts against values measured by compiling the pinned JXRGlue.h. check_conventions passes.
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)