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
qplatformvideosource_p.h
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
#
ifndef
QPLATFORMVIDEOSOURCE_P_H
5
#
define
QPLATFORMVIDEOSOURCE_P_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
<
QtMultimedia
/
qvideoframeformat
.
h
>
19
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
20
#
include
<
QtCore
/
qnativeinterface
.
h
>
21
#
include
<
QtCore
/
qobject
.
h
>
22
23
#
include
<
optional
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QVideoFrame;
28
class
QPlatformMediaCaptureSession;
29
30
class
Q_MULTIMEDIA_EXPORT
QPlatformVideoSource
:
public
QObject
31
{
32
Q_OBJECT
33
public
:
34
using
QObject::QObject;
35
36
virtual
void
setActive(
bool
active) = 0;
37
virtual
bool
isActive()
const
= 0;
38
39
virtual
QVideoFrameFormat frameFormat()
const
= 0;
40
41
virtual
std::optional<
int
> ffmpegHWPixelFormat()
const
;
42
43
virtual
void
setCaptureSession(QPlatformMediaCaptureSession *) { }
44
45
virtual
QString errorString()
const
= 0;
46
47
bool
hasError()
const
{
return
!errorString().isEmpty(); }
48
49
Q_SIGNALS:
50
void
newVideoFrame(
const
QVideoFrame &);
51
void
activeChanged(
bool
);
52
void
errorChanged();
53
};
54
55
QT_END_NAMESPACE
56
57
#
endif
// QPLATFORMVIDEOSOURCE_P_H
QPlatformVideoSource
Definition
qplatformvideosource_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
multimedia
platform
qplatformvideosource_p.h
Generated on
for Qt by
1.18.0