Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#include "qwasmvideosink_p.h"
5
6#include <QtGui/rhi/qrhi.h>
7
9
14
16{
17 if (rhi && rhi->backend() != QRhi::OpenGLES2)
18 rhi = nullptr;
19 if (m_rhi == rhi)
20 return;
21 m_rhi = rhi;
22}
23
25
26#include "moc_qwasmvideosink_p.cpp"
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
Implementation backend() const
Definition qrhi.cpp:8651
@ OpenGLES2
Definition qrhi.h:1809
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
void setRhi(QRhi *) override
QWasmVideoSink(QVideoSink *parent=0)
Combined button and popup list for selecting options.