feat(libSceFreeType): query exact outline curve bounds #9802
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9802"
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-10-22T15:37:55Z.
What
Implement
FT_Outline_Get_BBoxfor guest outlines using bundled FreeType's quadratic/cubic extrema calculation. Guest 64-bit coordinates are copied into owned native vectors; native output is written to a local box and widened on success. Inputs stay unchanged, empty outlines do not inspect their arrays, and errors preserve the output.Signatures and calculations follow FreeType 2.13.3 ftbbox.c, with the name confirmed in the PS5 3.20 inventory. This computes curve extrema separately from the control-point box API in #9064.
Each implemented export is declared once in the canonical public API, included by the implementation and tests. The branch preserves the latest upstream PFR APIs and all merged FreeType features.
The named OT-provider import-resolution helpers also have one declaration each in the shared public API already reachable from the OT umbrella. Export.cpp includes that header. Their existing zero-argument placeholder signatures, explicit NID aliases and throwing behavior are unchanged; this does not establish the console prototypes.
The OT debt paragraph still overlaps #10897. Proposed documentation order: these helper-declaration updates first, then the validation PR retaining the generic pending-helper paragraph and its identified validation names. This order awaits the other author's confirmation; no code or build dependency is required.
The adapter belongs to physical
libSceFreeType. Same-NID inventory stubs in the distinct physicallibSceFreeTypeOlandlibSceFreeTypeOtproviders remain throwing helpers.Tested
Submitted and tested head
dc6395595c3a9589384786675c41e0ed185a3b7d, including upstream main48c160c58b589157ebd94ebd53736a182f8303bf.Windows 11 x64 / WinLibs GCC 15.2.0 r7 and local Ubuntu 24.04.1 x86-64 under WSL2 / GCC 13.3.0 / glibc 2.39: Ninja Release, bundled dependencies,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=OFF. On each platform the completelibstarget and selected test executables build, and 69/69 CTests pass, zero skips: the public-header audit, all 64 public-header compilation batches and 4 focused runtime tests. The new upstream JPEG XR and updated SPIR-V dependencies use their pinned submodule commits. Focused runtime checks include this adapter, existing base/charmap APIs and the packaged-library loader.Final upstream recheck:
88795ed44801fa719eb2df990cbe1f11a1f9bd81merges cleanly; no FreeType/LibreSSL production, shared-header, test-registration or debt changes appeared after the tested base. Results remain pinned to the exact submitted head and its stated base.Conventions, whitespace and all 15 pairwise merge checks across the six maintained PRs pass. Open/closed/merged history was rechecked; no replacement implementation was found. No title or physical-console execution is claimed.
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-10-22T16:12:17Z.
Review: DISMISSED
The wrapper keeps guest arrays in owned native storage, preserves caller inputs, and defers writing the output until FreeType reports success. The bounded-curve arithmetic guard is supported by the documented overflow probe, and the test set compares 8,192 generated curves with native FreeType plus independent extrema and error/canary cases. I reviewed the bundled FreeType 2.13.3
ftbbox.carithmetic and did not find a defect in the stated coordinate guard. Current-main conventions andgit diff --checkpass. The reported full Windows build and focused 4/4 tests are contributor-run; hosted product jobs are skipped.One contribution-rule item remains: this branch is based on
b7d1d47a5f, while currentupstream/mainis8499ea52e571b0edfc1feecfd3f6b9944012b359(8 commits ahead). The merge tree is clean, but CONTRIBUTING requires branches to stay up to date. Please refresh the branch and rerun the focused FreeType tests on that head before merge. I found the #9329 debt-entry order agreement recorded in both PRs and no additional blocker.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:53:44Z.
Review: COMMENTED
I rechecked the exact head
991061e6401f37882d3def52caa57c8ae26f9b8eagainst currentmain(11f976b27c16ed91633f00039dba5dfd97dd7cc1). The conventions check,git diff --check, and merge-tree check pass. The reported focused Windows tests and build are contributor-reported; I did not rerun them here because this VM has 432 MB free on/and no matching build artifacts, so a new build risks exhausting the filesystem. The hosted product build jobs are skipped. The earlier current-main request remains applicable: please rebase onto currentmainand rerun the focused FreeType tests on that head before merge.