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
Inventory of platform conditionals in shared-named files of plugins/obs-qsv11/ (6 #ifs in 4 files). Existing pattern: common_utils_windows.cpp, common_utils_linux.cpp, bits/{windows,linux}_defs.h, common_directx11.*.
common_utils.h: replace with a single #include "bits/platform_defs.h" chosen by CMake include path, or add qsv_platform.h that includes the right bits header.
qsv_platform_init_session(this), qsv_platform_configure_video_signal(...) implemented in common_utils_windows.cpp / common_utils_linux.cpp.
qsv_platform_texture_valid(const struct encoder_texture*) for obs-qsv11.c:1245.
Likely must stay
obs-qsv-test.cpp:17: GPU-preference export symbols for the Windows test exe; rename file/move the symbols into a -windows.cpp source.
Behaviour-preserving moves. Verify with: the plugin's native builds on each platform (ci-full label, since these are outside the quick gate), the existing cmocka tests where the moved function is testable, and ./lint. Where a facade function is pure (path/name/constant selection) add a small unit test per platform implementation. The #847 ratchet lint baseline must go down by the count moved.
Claiming. Same shape as #1248/#1252/#1257: a conditional-free qsv-host.h (bits/defs selection, session/D3D11 setup, video-signal ext buffer, texture validity) with qsv-host-{windows,linux} implementations in per-OS groups; upstream files edited in place, not renamed. The pure texture_valid check gets a cmocka test (RED then GREEN). obs-qsv-test.cpp's GPU-preference exports move to a Windows-only host file if the group rules allow, else stay as the documented exception.
Activity
zackees commentedon Oct 17, 2026
Claiming. Same shape as #1248/#1252/#1257: a conditional-free
qsv-host.h(bits/defs selection, session/D3D11 setup, video-signal ext buffer, texture validity) withqsv-host-{windows,linux}implementations in per-OS groups; upstream files edited in place, not renamed. The puretexture_validcheck gets a cmocka test (RED then GREEN).obs-qsv-test.cpp's GPU-preference exports move to a Windows-only host file if the group rules allow, else stay as the documented exception.obs-qsv11: Host code behind qsv-host.h (obs-rust#860) (obs-rust#1263)