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
qwasmvideosink.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 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#include <QtGui/rhi/qrhi.h>
7
9
14
15void QWasmVideoSink::setRhi(QRhi *rhi)
16{
17 if (rhi && rhi->backend() != QRhi::OpenGLES2)
18 rhi = nullptr;
19 if (m_rhi == rhi)
20 return;
21 m_rhi = rhi;
22}
23
24QT_END_NAMESPACE
25
26#include "moc_qwasmvideosink_p.cpp"
QObject * parent
Definition qobject.h:73
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
void setRhi(QRhi *) override