Repository navigation
libobs: Characterize and extract video render size before Rust port - #4358
Merged
Merged
Conversation
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.
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.