Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgstreameregldisplay.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#if QT_CONFIG(gstreamer_gl) && QT_CONFIG(gstreamer_gl_egl)
7
8# if QT_CONFIG(linux_dmabuf)
9# include <QtMultimedia/private/qdmabuftextureimporter_p.h>
10# include <QtMultimedia/private/qeglimagefunctions_p.h>
11# endif
12
13# include <QtMultimedia/private/qmultimedia_gl_support_p.h>
14
15QT_BEGIN_NAMESPACE
16
17# if QT_CONFIG(linux_dmabuf)
18bool qGstEglCanMapDmaBuf(QRhi *rhi)
19{
20 using namespace QtMultimediaPrivate;
21
22 return rhi && resolveEglDisplay(*rhi) && QEglImageFunctions::instance().isValid();
23}
24# endif
25
26QT_END_NAMESPACE
27
28#endif // QT_CONFIG(gstreamer_gl) && QT_CONFIG(gstreamer_gl_egl)