Repository navigation
test: Characterize the scene group transform - #1722
Merged
Merged
Conversation
transform_val and the matrix half of the group transform now live in obs-scene-group-transform.c.h. The scene still converts absolute and relative coordinates, still inverts the draw transform when an item joins a group, and still calls update_item_transform. Same behavior. Refs obs-rust#1719
The symbols are not exported, so the test compiles the C and pins what it does today. A zero scale becomes negative zero. A rotation in the matrix does not change the scale. No display. Refs obs-rust#1719
6 of 7 tasks
6 of 7 tasks
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 #1719
What and why
The group transform math in
obs-scene.c.hmoves out before the Rust port.transform_val, and the matrix half ofget_ungrouped_transformandapply_group_transform, go intoobs-scene-group-transform.c.h. The scene still reads the item. It still converts absolute and relative coordinates, because that needs the canvas. It still inverts the group's draw transform when an item joins a group, and it still callsupdate_item_transform.calculate_bounds_datais unchanged.The new file is its own unity group,
libobs.scene-group-transform, onLIBOBS_SOURCES. It stays C. The port, later, moves the include into a ported group.The new symbols are not exported.
test_scene_group_transformcompilesobs-scene-group-transform.c.hand pins the current C. No display. It characterizes that C source, so a later Rust swap stays invisible until the symbols are reachable from the test.Characterized, not endorsed (comments in the test and the header):
rot_delta.x_baseand never reads it. That write stays, so the body matches.RED → GREEN
37110fbb1libobs: Move the scene group transform out5861db987test: Characterize the scene group transform.test_scene_group_transform7/7. Compiled-Wall -Wextra -Werrorand linked against the existing macOSlibobs.framework(ENABLE_RUST_LIBOBS=OFF). The Xcode project was not reconfigured.libobs.core-source) compiles with that same response file.ci/test_build_groups.pypassed (6 tests). clang-format 22.1.3 and gersemi 0.25.0 were applied to the new files../lintwas not run. No stamp. Docker Tier 2 was not run here. PR CI runs it.Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (PR CI builds no OBS app: rungh workflow run ci.yml --ref <branch>for the full builds) and cross-checked with clang and MSVC (not applicable: no flag change)