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
4
#
include
"qwasmvideosink_p.h"
5
6
#
include
<
QtGui
/
rhi
/
qrhi
.
h
>
7
8
QT_BEGIN_NAMESPACE
9
10
QWasmVideoSink
::
QWasmVideoSink
(
QVideoSink
*
parent
)
11
:
QPlatformVideoSink
(
parent
)
12
{
13
}
14
15
void
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
24
QT_END_NAMESPACE
25
26
#
include
"moc_qwasmvideosink_p.cpp"
QObjectData::parent
QObject * parent
Definition
qobject.h:73
QVideoSink
The QVideoSink class represents a generic sink for video data.
Definition
qvideosink.h:22
QWasmVideoSink
Definition
qwasmvideosink_p.h:26
QWasmVideoSink::setRhi
void setRhi(QRhi *) override
Definition
qwasmvideosink.cpp:15
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtmultimedia
src
plugins
multimedia
wasm
mediaplayer
qwasmvideosink.cpp
Generated on
for Qt by
1.14.0