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
qplatformvideoframeinput_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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
QPLATFORMVIDEOFRAMEINPUT_P_H
5
#
define
QPLATFORMVIDEOFRAMEINPUT_P_H
6
7
#
include
<
QtMultimedia
/
private
/
qplatformvideosource_p
.
h
>
8
#
include
<
QtCore
/
qmetaobject
.
h
>
9
#
include
<
QtCore
/
qpointer
.
h
>
10
11
//
12
// W A R N I N G
13
// -------------
14
//
15
// This file is not part of the Qt API. It exists purely as an
16
// implementation detail. This header file may change from version to
17
// version without notice, or even be removed.
18
//
19
// We mean it.
20
//
21
22
QT_BEGIN_NAMESPACE
23
24
class
QMediaInputEncoderInterface;
25
26
class
Q_MULTIMEDIA_EXPORT
QPlatformVideoFrameInput
:
public
QPlatformVideoSource
27
{
28
Q_OBJECT
29
public
:
30
QPlatformVideoFrameInput(QVideoFrameFormat format = {}) : m_format(std::move(format)) { }
31
32
void
setActive(
bool
) final { }
33
bool
isActive()
const
final {
return
true
; }
34
35
QVideoFrameFormat frameFormat()
const
final {
return
m_format; }
36
37
QString errorString()
const
final {
return
{}; }
38
39
QMediaInputEncoderInterface *encoderInterface()
const
{
return
m_encoderInterface; }
40
void
setEncoderInterface(QMediaInputEncoderInterface *encoderInterface)
41
{
42
m_encoderInterface = encoderInterface;
43
}
44
45
Q_SIGNALS:
46
void
encoderUpdated();
47
48
private
:
49
QMediaInputEncoderInterface *m_encoderInterface =
nullptr
;
50
QVideoFrameFormat m_format;
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
// QPLATFORMVIDEOFRAMEINPUT_P_H
QPlatformVideoFrameInput
Definition
qplatformvideoframeinput_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtmultimedia
src
multimedia
platform
qplatformvideoframeinput_p.h
Generated on
for Qt by
1.18.0