Repository navigation
feat(contentexport): export images to a persistent host catalog - #2232
Closed
erick-dsnk wants to merge 1 commit into
Closed
erick-dsnk wants to merge 1 commit into
erick-dsnk wants to merge 1 commit into
Conversation
9 tasks done
This was referenced Oct 9, 2026
Collaborator
|
Closing: as the description says, no title reaches these exports on main, and a host image catalog is a lot to carry without one. Reopen when a title stops at one of them. |
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Guest code can now start an export session, import JPEG/PNG/GIF images from a guest file or a data-provider callback, import an explicit image thumbnail, and finish the session. The five exports previously threw unconditionally. Imports preserve source bytes and publish media plus metadata into a persistent host catalog that a separate content-search change can query.
The catalog lives under the launch root's
/data/anyps5-content. Each successful import receives its own guest-readable path. An exclusive pending directory reserves the content ID; complete media and metadata are published by directory rename. Native file locks serialize publication and catalog snapshots across processes. A generation assigned at publication advances the update ID even when two exports finish in the opposite order from their start.Guest allocator callbacks supply the streaming copy buffer and receive their original user data. Callback imports enforce the declared byte total and the 0/more, 1/done protocol; malformed callbacks, allocation failures and failed imports leave the output and published catalog unchanged. Live sessions enforce the ten-execution limit, and an active callback cannot finish, terminate or reenter its own session.
Scope: image imports. PNG/JPEG use the existing source-built decoders; GIF uses the existing stb submodule and validates its first frame. Video imports and nonzero bytes in the ambiguous reserved/comment field throw. Automatic thumbnails, console gallery notifications and sharing are not implemented. Host storage paths, session-limit application, error precedence and all recovered ABI contracts remain unverified on PS5 hardware; these gaps are recorded in TechnicalDebt.
ABI evidence:
comment; SharpProspero calls them reserved, so a nonzero value throws.Draft limitation: no commercial title has been shown reaching these exports on current main. Maintainer feedback on #1582 requests a title ID and stop log for library additions. This draft supplies working implementation and host test evidence; it does not claim that acceptance requirement is met.
Completion accounting: the unchanged progress scanner reports five newly implemented exports,
libSceContentExport2/7 → 7/7, and overall libraries 2578/3044 (84.69%) → 2583/3044 (84.86%). These figures classify declared exports and do not establish full console compatibility.Tested
Linux, GCC 13.3.0, Release,
BUILD_TESTING=ON, dedicated worktree based on upstream maind70b89989473ba1f6ae13e44e079e67f1f8a44b0.guest_content_export: passed in 0.06 seconds. Checks byte-for-byte JPEG/PNG/GIF import, explicit thumbnail bytes, chunked callbacks including separate final completion, dimensions and ownership metadata, session limits, callback reentrance, allocator balance and failure, malformed callbacks, unsupported images and MIME mismatches, output preservation and rollback, parallel exports, concurrent readers during publication, out-of-order publication generations, reinitialization persistence, and a fresh child process reading and publishing the catalog.tools/check_conventions.py --base upstream/main: passed.tools/check_test_registration.py build: passed; no new unregistered tests.git diff --check: passed.88e5bdeebed5b4923b2887c0e50490dc380add20checked out in the existing USB validation worktree and configured afresh: full default build passed (1,140 rebuild steps), patchedlibstarget passed, andguest_content_exportpassed again in 0.01 seconds. No build artifacts were copied between trees. The dedicated content-export branch and worktree remain separate and clean. No complete CTest suite was run for this content-export head.Checklist
main; no other open PR implements the same functions (complete paginated baseline audit plus newest PRs through feat(libc): implement IPv4 address helpers #2231; chore: adopt clang-format and pre-commit #1128 only reformats this file).mdfiles or images added to the repository