Repository navigation
rust: port scene bounds placement to obs-scene - #1661
Merged
Merged
Conversation
nathan-v
force-pushed
the
port/scene-bounds-place
branch
from
October 22, 2026 03:38
2baade1 to
8b90c9d
Compare
Contributor
Author
|
Rebased the conflicting head |
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.
Fixes #1637
Ports the characterized placement half of scene bounds into
obs-scene::bounds_place: scale fitting, alignment, optional crop and flip adjustment. Absolute/relative bounds resolution stays in the scene.obs_bounds_placeandadd_alignmentretain their internal C signatures and hidden visibility. No public headers or existing C tests change, and no user-visible behavior change is intended.The original C source remains in a reference-only unity group and the renamed oracle. The unchanged
test_scene_bounds_place.cstill characterizes the C implementation, and a second executable links the same source directly against the Rust archive to test the private Rust symbols without exporting them.RED and GREEN
d6c45b532(original published RED3b9c0ae73):soldr cargo test -p obs-data --test obs-tests-core scene::bounds_place --locked— 0 passed, 16 failed on safe-core stubs. All existing cmocka assertions are mirrored in Tier 1.8b90c9d22(rebased from2baade1d8): safe implementation plus thin ABI shims, realobs.hcrop layout measurements (size, alignment, every field offset), and exact C differential checks. The existing graphics suite covers vec2 ABI layout.thresholds_flips_and_rounding_match_cfail. Restored core: 20 passed.Validation
git range-diffconfirms unchanged RED tests and unchanged placement implementation; only shared symbol-list context changed.-D warnings, Dylints, rustfmt, pinned clang-format/gersemi, test inventory (eight category binaries), platform/performance ratchets and relevant source-group/registration/policy checks pass../lint --fixwas attempted. macOS host-sensitive CI self-tests fail on Linux-tool assumptions, host/Windows facade compilation and/varversus/private/varpaths. An alphabetical registration failure introduced here was fixed; the source-group check passes after staging the new group. The remaining lint lane passes withOBS_GATE_SKIP_SELF_TEST=1../unittestpasses native workspace tests but cannot cross-link Windows-GNU from this Apple Silicon host. The cross lane fails because its Windows-MSVC compiler cannot findstdio.h. No local attestation is claimed.ENABLE_HARDENED_RUNTIME=NOxcconfig, with no committed signing change. The runner'sgrep -q/pipefailprobe and a stale legacylibobs-with-rustdirectory required capturing the loader output and selecting the currentbuild_rust/libobs/RelWithDebInfoframework explicitly. The stale framework's unrelated failures disappear on both a separately built master baseline and the current production framework.test_group_empty_bounds,test_scene_dup_group_children) and 3 existing PulseAudio skips. Both C and Rust-linked placement executables pass. Exports are identical (1,766 symbols). Hybrid mode completed all 352 tests: all scene tests passed, including both geometry cases that failed in C-reference mode. Two timing-sensitive tests (test_output_delay_restart, with 72.9% rendering lag, andtest_vlc_audio_pacing) failed in the full run, then both passed in one isolated rerun (48 seconds). Three PulseAudio tests skip in both modes. The full Linux run is therefore not reported as unconditionally green.plugins/obs-browserworktree difference, which was preserved.8b90c9d2205ff8913248d5ab63dbfa455e055632: all selected CI passed, includingCI Gate ✅, Fast Gate, repository self-tests, macOS/Windows Rust tests, cross lint, and Tier 2 on Linux/macOS/Windows. Linux OFF and ON each completed 355 registered tests: 352 passed, 3 existing PulseAudio skips, zero failures. macOS completed its 200-test registries and Windows its 175-test registries with zero failures in every reported mode; both placement executables passed throughout. No fixes were needed after the conflict-only rebase. Marked ready after verifying the completed workflow matches this exact head.