Skip to content

rust: Port the scene item transform composition in obs-scene.c to obs-scene #2385

Closed

Description

@rdoupe

Rust port, round 8 unit 4 (round 7 unit 3, re-scoped): the scene item transform composition in libobs/obs-scene.c.h, moved to obs-scene::item_transform.

Scope

Rust takes over these decisions:

  • update_nested_scene_crop: the guard and the scale factors;
  • compute_item_transform: the bounds-crop reset, nested crop, cropped size, absolute or relative inputs, bounded or scaled size, both matrices, and output_scale/box_scale;
  • calculate_bounds_data.

C keeps update_item_transform (the defer check, source size read, video lock and signal) and every get_scene_dimensions read.

C also keeps all six float-to-integer casts, so the port matches C on every architecture. R7-3, flipped items placed differently on arm64, stays a separate decision.

#2281 (out-of-range bounds types become NONE) has merged.

Plan

The standard six commits:

  1. move;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in a libobs.ported-* group;
  5. Tier 3 parity, with bit-equal f32 matrices;
  6. docs.

Activity

  1. rdoupe commented on Oct 25, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2385.

  2. added
    ready
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions