Skip to content

libobs: Characterize and extract video render size before Rust port - #4358

Merged
zackees merged 2 commits into
masterfrom
test/4284-video-render-size-extract
Nov 9, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4284-video-render-size-extract

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Refs #4284.

Characterize set_render_size graphics callback arguments and order, then extract the helper verbatim into its own C implementation unit before its unchanged callers. The characterization covers zero and unit dimensions, ordinary dimensions, floating-point rounding boundaries and maximum integer dimensions. Existing C tests and public headers remain unchanged.

The characterization commit initially fails because the extracted helper file is absent; the extraction supplies that file and preserves C behavior. Rust RED and GREEN replacement follows in issue #4285 on port/4285-video-render-size. Formatting, focused render-size characterization and the full lint gate are the local checks for this rebased head. PR CI remains the merge gate; no full native suite or native Windows/macOS execution is claimed.

Rebased characterization commit 8f10e92 records the missing-helper RED state; extraction commit bbc89d3 supplies the helper. The focused characterization passed against both library selections on this head.

This is source characterization of the private C helper. It cannot exercise the future Rust swap until that implementation is reachable through the test.

Refs #4284. Rust follow-up: #4285. The C characterization passes with GCC and Clang for zero, asymmetric, float-rounding and INT_MAX dimensions.
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