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
test: Characterize and extract video set_render_size before Rust port #4284
Phase 6 prerequisite for porting the host-independent render setup helper in libobs/obs-video.c.h:99-106 to obs-core.
Extract set_render_size verbatim to libobs/obs-video-render-size.c.h, preserving its signature and production call sites. Add a C cmocka characterization that records the depth-test, cull-mode, projection and viewport calls, their order and dimensions (including zero, asymmetric, float rounding boundaries and INT_MAX). The test compiles the private C source and uses recording graphics callbacks; it characterizes C only until a later port makes the helper reachable.
No existing focused C test or Rust implementation was found. Exact-name searches found no open issue/PR; pushed port/42* and test/42* diffs cover scale effects and core tick callbacks, which this work avoids. No public headers, existing C tests, host code or WebSocket changes.
Deliverable is a branch only, without a PR while the CI queue is backlogged. The Rust swap is a separate follow-up after this prerequisite lands, with safe-core tests, unchanged C compatibility and oracle differential coverage.
Claiming: characterization and verbatim extraction of set_render_size. 1. Pin graphics call arguments and order with a C-only cmocka test. 2. Extract the helper without changing its signature or behavior. 3. Verify and push branch test/4284-video-render-size-extract from slot obs-studio12 (im-bo-view2). Branch-only delivery this session; no PR until the queue drains.
Activity
zackees commentedon Nov 9, 2026
Claiming: characterization and verbatim extraction of set_render_size. 1. Pin graphics call arguments and order with a C-only cmocka test. 2. Extract the helper without changing its signature or behavior. 3. Verify and push branch test/4284-video-render-size-extract from slot obs-studio12 (im-bo-view2). Branch-only delivery this session; no PR until the queue drains.
libobs: Extract render-size setup without changing behavior
libobs: Characterize and extract video render size before Rust port (#…
zackees commentedon Nov 18, 2026
Landed on master in #4358 (b227f00); verified the merge is an ancestor of origin/master and libobs/obs-video-render-size.c.h exists there.