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
qandroidvideosink.cpp
Go to the documentation of this file.
1
// Copyright (C) 2021 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
"qandroidvideosink_p.h"
5
#
include
<
rhi
/
qrhi
.
h
>
6
7
#
include
<
QtCore
/
qdebug
.
h
>
8
9
#
include
<
QtCore
/
qloggingcategory
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
QAndroidVideoSink
::
QAndroidVideoSink
(
QVideoSink
*
parent
)
14
: QPlatformVideoSink(
parent
)
15
{
16
}
17
18
QAndroidVideoSink::~QAndroidVideoSink()
19
{
20
}
21
22
void
QAndroidVideoSink
::
setRhi
(QRhi *rhi)
23
{
24
if
(rhi && rhi->backend() != QRhi::OpenGLES2)
25
rhi =
nullptr
;
26
if
(m_rhi == rhi)
27
return
;
28
29
m_rhi = rhi;
30
emit rhiChanged(rhi);
31
}
32
33
QT_END_NAMESPACE
34
35
#
include
"moc_qandroidvideosink_p.cpp"
QAndroidVideoSink
Definition
qandroidvideosink_p.h:27
QAndroidVideoSink::setRhi
void setRhi(QRhi *rhi) override
Definition
qandroidvideosink.cpp:22
QObjectData::parent
QObject * parent
Definition
qobject.h:73
QVideoSink
The QVideoSink class represents a generic sink for video data.
Definition
qvideosink.h:22
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtmultimedia
src
plugins
multimedia
android
common
qandroidvideosink.cpp
Generated on Thu Nov 14 2024 00:50:47 for Qt by
1.12.0