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 source colour space query routing in obs-source.c to obs-source #1979
Port the colour space query routing in libobs/obs-source.c.hobs_source_get_color_space to rust/obs-source, as a new module color_space. These decisions move:
a non-filter source with no video asks its filter parent;
a source with no data, or a disabled one, asks its target;
an async source picks from preferred_spaces against its frame's space. The loop keeps the last preferred space when none matches.
These stay in C: data_valid, the recursion into the parent or target, the video_get_color_space callback, and convert_video_space. C passes in the frame's space.
Plan (one PR, separate commits)
A behaviour-neutral move into libobs/obs-source-color-space.c.h, as hidden route and pick functions. C reads the fields into a small struct.
every route for all 64 combinations of the six inputs;
the async pick with an empty list, a match first, a match last and no match;
a filter that is also flagged async;
an out-of-range value in the list.
RED, then GREEN: the safe Rust core plus shims, in a libobs.ported-source-color-space group. Exported symbols are unchanged.
Tier 3 parity, exhaustive over the 64 rows, plus a proptest over preferred lists of 0–8 arbitrary values. Also a deliberate-break check and port_comparison numbers.
test_filter_color_space (real libobs, #1493) must stay green on every lane.
Activity
rdoupe commentedon Oct 23, 2026
Claiming: #1979.
obs-source: Port the source colour space query routing (obs-rust#1990)