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
5#include <rhi/qrhi.h>
6
7#include <QtCore/qdebug.h>
8
9#include <QtCore/qloggingcategory.h>
10
12
14 : QPlatformVideoSink(parent)
15{
16}
17
18QAndroidVideoSink::~QAndroidVideoSink()
19{
20}
21
22void 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
33QT_END_NAMESPACE
34
35#include "moc_qandroidvideosink_p.cpp"
void setRhi(QRhi *rhi) override
QObject * parent
Definition qobject.h:73
The QVideoSink class represents a generic sink for video data.
Definition qvideosink.h:22
Combined button and popup list for selecting options.