3#include <QtCore/qglobal.h>
5#if defined(Q_OS_WIN) && (defined(QGC_HAS_GST_D3D11_GPU_PATH) || defined(QGC_HAS_GST_D3D12_GPU_PATH))
7#include <QtCore/QLoggingCategory>
8#include <QtCore/QMutex>
25namespace GstD3DContextBridgeCommon {
31 bool warnedWrongBackend =
false;
32 std::atomic<bool> loggedFirstHandoff{
false};
39QRhi *checkRhiBackend(BridgeState &state,
40 const QLoggingCategory &cat,
42 const char *backendName);
47GstElement *matchNeedContext(GstMessage *message,
const char *expectedContextType);
51void logHandoff(BridgeState &state,
52 const QLoggingCategory &cat,
59gint64 readAdapterLuid(gpointer device);
63void logAdapterMatch(QRhi *rhi, gint64 expectedLuid, gpointer gstDevice,
64 const QLoggingCategory &cat,
const char *apiName);
struct _GstElement GstElement