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 transition render and audio steps in obs-source-transition.c to obs-source #2173
Port the transition render and audio step decisions in libobs/obs-source-transition.c.h to rust/obs-source, as a new module transition_render, next to transition_clock. These decisions move:
obs_transition_video_render2: the stop step at t >= 1, and the draw choice:
transitioning with textures draws both;
audio-only shows source B;
otherwise source A.
obs_transition_video_render_direct: the stop step with the inactive-source rule, and the source index.
obs_transition_audio_render: dropping removed sources, the stop step, and mixing both sources or copying source A.
transition_process_audio: the validity check and pos.
recalculate_transition_matrix: the scaled size and the alignment offsets after the ported fit.
These stay in C:
the lock, copy_transition_state and the refs;
obs_transition_stop, handle_stop and the signals;
mix_child and get_sample_time;
add_alignment and the matrix calls.
Plan (one PR, separate commits)
A behaviour-neutral move into libobs/obs-source-transition-render.c.h, as hidden functions.
Characterization in test_transition_render_steps. It covers:
every stop-step combination, at t just below, at and above 1, including NaN;
the direct index for every flag;
the audio step with each source present, removed or pending;
pos at and around min_ts, and the u64 wrap;
the matrix inputs for each scale type and alignment.
RED, then GREEN: the safe Rust core plus shims, in a libobs.ported-source-transition-render group. Exported symbols are unchanged.
Tier 3 parity against the original C:
exhaustive over the flags;
a proptest over f32 bit patterns, full-range timestamps and sizes;
a deliberate-break check and port_comparison numbers.
These real-libobs tests must stay green on every lane:
Activity
rdoupe commentedon Oct 24, 2026
Claiming: #2173.
libobs: Move the transition render and audio steps into obs-source-tr…
test: Characterize the transition render and audio steps
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Port the transition render and audio steps
obs-source: Check the transition render and audio steps port against …
docs: Record the transition render and audio steps port
libobs: Move the transition render and audio steps into obs-source-tr…
test: Characterize the transition render and audio steps
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Port the transition render and audio steps
obs-source: Check the transition render and audio steps port against …
docs: Record the transition render and audio steps port
libobs: Move the transition render and audio steps into obs-source-tr…
test: Characterize the transition render and audio steps
obs-source: Add Tier 1 tests for the transition render and audio step…
obs-source: Port the transition render and audio steps
obs-source: Check the transition render and audio steps port against …
docs: Record the transition render and audio steps port
obs-source: Port the transition render and audio steps (obs-rust#2184)