Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsgvideotexture_p.h
Go to the documentation of this file.
1
// Copyright (C) 2020 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
#
ifndef
QSGVIDEOTEXTURE_H
5
#
define
QSGVIDEOTEXTURE_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtQuick
/
qsgtexture
.
h
>
19
#
include
<
QtGui
/
qimage
.
h
>
20
#
include
<
QtGui
/
rhi
/
qrhi
.
h
>
21
#
include
<
QtMultimediaQuick
/
private
/
qtmultimediaquickglobal_p
.
h
>
22
23
#
include
<
memory
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QSGVideoTexturePrivate;
28
class
Q_MULTIMEDIAQUICK_EXPORT
QSGVideoTexture
:
public
QSGTexture
29
{
30
Q_DECLARE_PRIVATE(QSGVideoTexture)
31
public
:
32
QSGVideoTexture();
33
~QSGVideoTexture() override;
34
35
qint64 comparisonKey()
const
override;
36
QRhiTexture *rhiTexture()
const
override;
37
QSize textureSize()
const
override;
38
bool
hasAlphaChannel()
const
override;
39
bool
hasMipmaps()
const
override;
40
void
setRhiTexture(QRhiTexture *texture);
41
void
setData(QRhiTexture::Format f,
const
QSize &s,
const
uchar *data,
int
bytes);
42
43
protected
:
44
std::unique_ptr<QSGVideoTexturePrivate> d_ptr;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QSGVIDEOTEXTURE_H
QSGVideoTexturePrivate
Definition
qsgvideotexture.cpp:12
QSGVideoTexture
Definition
qsgvideotexture_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
multimediaquick
qsgvideotexture_p.h
Generated on
for Qt by
1.18.0