feat(contentsearch): search exported images and read metadata #2234
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2234"
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 erick-dsnk on 2026-10-09T12:37:35Z.
What
Implement the five pending
libSceContentSearchcalls for images exported through the host'slibSceContentExportcatalog. Searches now return actual persisted image rows, apply typed comparisons and homogeneous AND/OR groups, sort and paginate results, and expose metadata handles for title, created time, byte size and decoded dimensions. Metadata text writes respect the caller's capacity and preserve its buffer pointer; termination invalidates existing handles.Depends on #2232. This stacked branch includes export foundation commit
88e5bdee; the search-only implementation is commita9a26832and changes only the search library, its runtime test and TechnicalDebt.Mixed AND/OR precedence, duration columns and video rows, and
mime_type/durationmetadata remain unsupported and throw. Unknown handles, paths, fields and argument errors throw when a console error code is unavailable. The catalog is scoped to the launch root's/data/anyps5-content; console-wide captures, permission behavior and locale-dependent text collation remain unverified.Signatures follow Orbital's ContentSearch declarations. Guest filter enums and layouts, metadata values, the 2400-byte content row, the maximum page size of 92 and known errors follow SharpProspero's ContentSearch bindings. Static assertions check the row offsets and structure sizes.
tools/progress.pyclassifies five additional declared search exports as implemented (2/7 to 7/7). The export foundation contributes another five exports; the stacked branch contains ten additions in total and each is counted once. These counts reflect implemented entry points; the unsupported cases listed above remain exceptions and do not constitute full console parity.Tested
Linux, GCC, Release, exact stacked head
a9a26832f3a2cdc7e59206704ea3b4c19424a92d: focusedguest_content_search_testsbuild andctest -R '^guest_content_search$'pass (0.01 s). The test performs real PNG file/thumbnail and data-callback exports, queries their returned paths and persisted rows, verifies all exported and thumbnail bytes, reads title/size/tick/decoded width/height metadata, filters by the host user and queries again after service termination and reinitialization.Additional file-backed catalog cases check all six comparisons, homogeneous AND/OR groups, sort and pagination, empty results, limit errors, short and unterminated buffers, invalidated handles, deleted files, unknown columns and unsupported video rows with output preservation. Conventions, test registration and
git diff --checkpass.The same exact head was configured in a previously built Linux Release worktree: the incremental full default build and
libsbuild pass, including refreshed patched ContentSearch NIDs. Bothguest_content_exportand the actualguest_content_searchroundtrip pass (0.01 s each). The full project test suite was not rerun for this head; these are the relevant runtime tests.No commercial title or PS5 hardware tested; no main-branch title log reaching these calls is supplied.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T12:40:33Z.
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.
main)docs/dev/TechnicalDebt.mdL40Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:10:39Z.
Same as #2232: closing until a title reaches these calls on main.
Pull request closed