Skip to content

libobs: Port render-size setup to safe Rust with private graphics bridge - #4541

Merged
zackees merged 3 commits into
masterfrom
port/4285-video-render-size
Nov 10, 2026
Merged

zackees merged 3 commits into
masterfrom
port/4285-video-render-size

Conversation

@zackees

@zackees zackees commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Parent #4358 has merged; ai-rebase replayed only this PR's own commits onto master.

Refs #4285.

Published from branch-only work held during the 2026-11-09 merge-queue backlog (the worker's report said to open it once the queue drained).

Commits:

  • test: Pin video render-size graphics calls before extraction
  • libobs: Extract render-size setup without changing behavior
  • test: Mirror video render-size graphics calls against Rust stub
  • libobs: Port render-size setup to safe Rust with private graphics bridge

Refs #4285. Stacked on test/4284-video-render-size-extract at 71fc36a. Preserve the original C helper in the oracle and C reference; reuse the unchanged characterization through the Rust static archive. Exact callback parity includes float rounding and signed viewport boundaries. Differential negative control rejected cull mode 0 instead of GS_NEITHER (2).
…e links alone

The standalone test_video_render_size_rust target links libobs_rust.lib.
In release, obs_video_set_render_size shared archive members whose
dependencies reached audio_callback/audio_mix and the private audio-seam
adapter, which needs libobs's unexported obs global (MSVC LNK2019).
Local RED: release archive closure from obs_video_set_render_size reached
cgu.5/cgu.7 with undefined obs_audio_seam_*; GREEN: closure is one member.
Same fix as obs-hotkey/obs-scene (#4076).

Ci-Attestation: {"at":1794314767,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["1211402bf769e960eeb101c736d2336dbc9acab0"],"secs":378,"stamp":"a1b8a12c3faed0ed85a59984c5eb04ec","tree":"5d6bfaa35872b4bf34f02cfa385bd2c70848539b","v":1,"via":"run"}
Ci-Attestation: {"at":1794314767,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["1211402bf769e960eeb101c736d2336dbc9acab0"],"secs":378,"stamp":"84687ed9a3666078168676e6447f4d0a","tree":"5d6bfaa35872b4bf34f02cfa385bd2c70848539b","v":1,"via":"run"}
Ci-Attestation: {"at":1794314767,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["1211402bf769e960eeb101c736d2336dbc9acab0"],"secs":378,"stamp":"ea0c9a364206902a5528b1e4221720fc","tree":"5d6bfaa35872b4bf34f02cfa385bd2c70848539b","v":1,"via":"run"}
@zackees
zackees force-pushed the port/4285-video-render-size branch from bebc6e5 to ea5e9a7 Compare November 10, 2026 12:46
@zackees
zackees added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit fdfe24c Nov 10, 2026
39 checks passed
@zackees
zackees deleted the port/4285-video-render-size branch November 10, 2026 13:22
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 10, 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