You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port the scene coordinate conversion in obs-scene.c to obs-scene #1645
nudge_abs_values, pos_to_absolute, pos_from_absolute, size_to_absolute, size_from_absolute, item_canvas_scale, and item_relative_scale in libobs/obs-scene.c.h, to obs-scene.
Phase and position
Phase 6, tracked by #444. After bounds placement (#1637). That port left absolute versus relative here, because size_to_absolute reads the scene's canvas.
Dependencies and existing tests
Depends on the canvas size the scene already has (get_scene_dimensions stays in obs-scene.c.h). No cmocka test covers this math. The characterization lands first: move the conversion into its own C file and pin the current behavior. No Rust in that PR.
Callers that stay in obs-scene.c.h: bounds placement's absolute step, group transform, save and load, and the position, scale, and bounds getters.
Notes
Header-inline today. The move keeps the same math. The scene still decides the canvas width and height, whether to nudge onto a half pixel (a group item, or an item whose parent is a group, does not nudge), and whether a group or nested scene keeps its scale. No SIMD. No intentional differences in the characterization. The Rust port follows in a later PR.
Claiming: scene absolute/relative coordinates (nudge_abs_values, pos_to_absolute, pos_from_absolute, size_to_absolute, size_from_absolute, item_canvas_scale, and item_relative_scale in libobs/obs-scene.c.h)
This PR moves that math into obs-scene-coords.c.h and adds a cmocka test that pins the current C behavior. No Rust. The scene still reads the canvas size, and it still decides the nudge and the keep-scale early return.
After that merges, the Rust port into obs-scene: RED on stubs, then GREEN, the shim, and the Tier 3 differential.
Activity
nathan-v commentedon Oct 21, 2026
Claiming: scene absolute/relative coordinates (
nudge_abs_values,pos_to_absolute,pos_from_absolute,size_to_absolute,size_from_absolute,item_canvas_scale, anditem_relative_scaleinlibobs/obs-scene.c.h)obs-scene-coords.c.hand adds a cmocka test that pins the current C behavior. No Rust. The scene still reads the canvas size, and it still decides the nudge and the keep-scale early return.obs-scene: RED on stubs, then GREEN, the shim, and the Tier 3 differential.First PR today.
nathan-v commentedon Oct 21, 2026
Characterization PR is up: #1647
C move into
obs-scene-coords.c.h, plustest_scene_coords. No Rust. The Rust port is the rest of this claim.nathan-v commentedon Oct 21, 2026
Port draft is up: #1651
Stacked on #1647. RED
e280ff58b(8 panics, not yet implemented). GREEN91f83df06. It stays a draft until CI is green.obs-scene: Port scene coordinate conversion
obs-scene: Port scene coordinate conversion (obs-rust#1651)