Skip to content

rust: Port video set_render_size to obs-core after extraction #4285

Closed

Description

@zackees

Phase 6: port the host-independent set_render_size helper from libobs/obs-video-render-size.c.h to obs-core after prerequisite #4284 lands.

The helper disables depth testing, selects GS_NEITHER, sets an orthographic projection and then sets the viewport, preserving that call order. Its uint32 dimensions become float projection dimensions and int viewport dimensions. Keep the public C API/ABI unchanged and preserve production render callers.

Prerequisite #4284 adds C-only characterization of the actual private helper with recording graphics callbacks, then extracts its body verbatim. Branch: test/4284-video-render-size-extract. Wait for it to land before swapping implementation.

Test plan: RED safe-core tests mirroring every C assertion; GREEN implementation; reachable private C ABI plus unchanged C characterization against the Rust implementation and C reference; randomized Tier 3 comparison against the original extracted source with oracle callbacks, including float rounding boundaries. Tier 4 does not apply to this internal graphics helper. Keep tests in the existing Core state category binary. Cover private adapter link support with real sources if needed, never placeholder globals or aborting stubs.

Activity

  1. added
    port
    P2
    size:S
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: video set_render_size Rust swap on port/4285-video-render-size, stacked on test/4284-video-render-size-extract at 71fc36a. 1. Verify direct C characterization. 2. Commit RED safe-core mirrors, then GREEN Rust core/ABI swap and differential coverage. 3. Run focused checks and full lint, push branch only for manager handoff today; no PR until the queue drains.

  3. added
    ready
    on Nov 9, 2026
  4. moved this from Triage to In progress in obs-rust Multiviewon Nov 9, 2026
  5. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  6. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    Landed on master in #4541 (fdfe24c); verified the merge is an ancestor of origin/master and rust/obs-core/src/video_render_size.rs exists there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2portreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions