Skip to content

obs-scene: Port synchronized scene item crop getter (#3897) - #3928

Merged
zackees merged 6 commits into
masterfrom
port/3897-scene-item-crop-getter
Nov 7, 2026
Merged

zackees merged 6 commits into
masterfrom
port/3897-scene-item-crop-getter

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Ports obs_sceneitem_get_crop to obs-scene while preserving its C API/ABI and existing behavior. Refs #3897. The getter retains item-before-output null diagnostics and copies all four signed crop integers under the captured parent's existing C video mutex; detached items skip locking. There are no intentional behavior differences.

History preserves C-only characterization 262c4de, separate verbatim extraction a9ec52a, Tier 1 RED e99dc86 and GREEN e46c4c3. RED failed both new tests at the intended stub. The differential mutation was caught with persistence disabled and exact GREEN restored. The callback-only oracle checks complete item-state and guarded output bytes, real-header layouts, integer extremes, random crops, diagnostics and concurrent blocking/publication.

The final rebased head passes all 376 scene tests, the whole native-build module's 147 tests, all 914 obs-util tests and its doctests, formatter, field discovery, registration-entry, native portability, sorted graph and README checks. Host GCC and Clang accept the fixture, extraction and oracle with strict format/conversion warnings treated as errors. Full lint passed before the final clean rebase, including 359 CI self-tests; range-diff confirms all six port patches are identical after rebasing. Local review has no outstanding findings.

Final scoped Tier 2 passes both actual libraries: 100 crop-getter repeats, three crop/canvas repeats and three repeats of all eight standalone scene targets. Loader checks prove both library paths and all 1,767 exports match.

An additional full-suite attempt before the final rebase exited 8 in the C-reference mode: test_deinterlace_2x_field_order_60i_into_50 and test_media_sync_offset_restart failed. The latter missed the flash after an ended clip's scene round trip. The full hybrid mode was not reached. Those existing C tests were left untouched; no full-suite pass is claimed.

Test cost: 25 reduced-parity runs on the rebased head have a longest elapsed time of 0.08 seconds and peak RSS of 17,496 KiB for the seven new tests. The concurrency case starts one worker at a time in two sequential phases; diagnostics use one isolated subprocess. No Rust test executable is added. Tier 4 does not apply. Native macOS/Windows runtime and sanitizers were not run locally; hosted required checks remain the merge gate.

@zackees
zackees force-pushed the port/3897-scene-item-crop-getter branch from 8e37190 to 526031b Compare November 7, 2026 20:11
@zackees
zackees marked this pull request as ready for review November 7, 2026 20:12
@zackees
zackees enabled auto-merge November 7, 2026 20:12
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 7, 2026
@zackees
zackees force-pushed the port/3897-scene-item-crop-getter branch from 526031b to 8273fb8 Compare November 7, 2026 22:09
@zackees
zackees enabled auto-merge November 7, 2026 22:09
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased independently onto master 3fd7bc9, preserving the merged scale getter and all earlier scene ports alongside the crop getter. Replaced head 526031b with 8273fb8. Range-diff preserves characterization, extraction, RED and GREEN order; the only patch changes are unions in shared module lists.

All requested checks pass: seven focused Tier 1 and Tier 3 tests including concurrent publication and null diagnostics, all 152 native-build tests, all 914 utility tests and both doctests, formatting, oracle discovery, native registration, portability, sorted test graph and README checks. GCC and Clang compile the native group, characterization and oracle with strict warnings. The push uses the exact old-head lease; the new remote head is verified and auto-merge is armed for it. Hosted CI and additional Tier 2 runtime were not awaited or rerun. Handed off to the coordinator.

@zackees
zackees force-pushed the port/3897-scene-item-crop-getter branch from 8273fb8 to ed0b309 Compare November 7, 2026 23:14
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current master 320cc40 and pushed ed0b309 with the exact lease on 8273fb8. Both scene port sets are retained, with characterization, extraction, RED and GREEN order preserved; range-diff changes are module-list conflict resolution and formatting. All seven focused Tier 1/Tier 3 crop tests, including concurrent locking/publication, all 153 native_build tests, all 914 obs-util tests and doctests, full lint with pinned clang-format, explicit Rust format, oracle field discovery, registration entries, native portability, sorted graph and README checks passed. GCC and Clang compiled the fixture, extraction and oracle under the sanitizer Nix shell with strict warnings as errors. Auto-merge was re-armed with the new head pinned and confirmed enabled. Handed off to the coordinator without waiting on hosted CI. Refs #3897.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit c73cec7 Nov 7, 2026
40 checks passed
@zackees
zackees deleted the port/3897-scene-item-crop-getter branch November 7, 2026 23:52
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant