Repository navigation
obs-qsv11: Host code behind qsv-host.h (#860) - #1263
Merged
Merged
Conversation
qsv-host.h declares the host interface; qsv-host-<os>.c.h are stubs in new per-OS C unity groups. test_qsv_host pins the Linux check and fails against the stub.
Moves the shared files' platform conditionals into per-OS host code: - obs-qsv11.c.h texture validity -> qsv_host_texture_valid (qsv-host-<os>.c.h) - QSV_Encoder_Internal D3D11/VA-API accel selection -> qsv_host_select_accel_mode - Windows video signal ext buffer -> qsv_host_add_video_signal_info (both in common_utils_<os>.cpp.hpp) - common_utils.h bits/<os>_defs.h selection -> OBS_QSV_HOST_DEFS from CMake Baseline regenerated with --update.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #860. Part of #847. Same shape as #1248 / #1252 / #1257.
Moved inventory
obs-qsv11.c.h#ifdef _WIN32texture check (handlevstex[0]/tex[1])qsv_host_texture_valid()inqsv-host-{windows,linux}.c.h(new C groupsbuild/obs-qsv11.{windows,linux}-c+.h.c+ PCHs)QSV_Encoder_Internal.cpp.hpp#if _WIN32D3D11 / VA-API accel mode +m_bUseD3D11/m_bUseTexAllocqsv_host_select_accel_mode()incommon_utils_{windows,linux}.cpp.hppQSV_Encoder_Internal.cpp.hpp#if _WIN32video signal info ext bufferqsv_host_add_video_signal_info()(Windows fills it; Linux is a no-op, as before)common_utils.hbits/{windows,linux}_defs.hselection#include OBS_QSV_HOST_DEFS, set per platform by CMake (plugin, obs-qsv-test, cmake/cross)qsv-host.his conditional-free apart from__cplusplus. Existing OS files stay where they are.Baseline delta (
ci/platform_ifdef_ratchet.py --update)QSV_Encoder_Internal.cpp.hpp: 2 -> 0common_utils.h: 2 -> 0obs-qsv11.c.h: 1 -> 0Total -5.
RED / GREEN
test/cmocka/test_qsv_host.c(Linux, compiles onlyqsv-host-linux.c.h, links libobs+cmocka) against areturn falsestub:test_both_planesfails; 280/281 others pass.test_qsv_hostpasses in both builds (linux-validate --repeat 1 --tests test_qsv_host). One unrelated failure in that run:test_vlc_playlist_gap(libobs-with-rust, 26 s VLC playback timing); it passed in the RED run with the same libobs code.Not verified locally
ci_scopeselectswindows=trueandlinux_targets=obs-qsv11, so PR CI is the first build of the Windows and Linux plugin.Leftovers
common_directx11.h(3 findings:<windows.h>,<d3d11.h>,<dxgi1_2.h>) stays in the baseline. It is a Windows-only file, but the ratchet doesn't recognise its name. Renaming it is out of scope for this PR.obs-qsv-test.cpp.hpp_MSC_VERexports are untouched. The ratchet doesn't flag them (the file isn't in the baseline), and the file is built only in the Windows group.