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
qvideoframeinput.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
QVIDEOFRAMEINPUT_H
5
#
define
QVIDEOFRAMEINPUT_H
6
7
#
include
<
QtMultimedia
/
qtmultimediaexports
.
h
>
8
#
include
<
QtCore
/
qobject
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QPlatformVideoFrameInput;
13
class
QVideoFrameInputPrivate
;
14
class
QMediaCaptureSession
;
15
class
QVideoFrame;
16
class
QVideoFrameFormat;
17
18
class
Q_MULTIMEDIA_EXPORT
QVideoFrameInput
:
public
QObject
19
{
20
Q_OBJECT
21
public
:
22
explicit
QVideoFrameInput(QObject *parent =
nullptr
);
23
24
explicit
QVideoFrameInput(
const
QVideoFrameFormat &format, QObject *parent =
nullptr
);
25
26
~QVideoFrameInput() override;
27
28
bool
sendVideoFrame(
const
QVideoFrame &frame);
29
30
QVideoFrameFormat format()
const
;
31
32
QMediaCaptureSession *captureSession()
const
;
33
34
Q_SIGNALS:
35
void
readyToSendVideoFrame();
36
37
private
:
38
void
setCaptureSession(QMediaCaptureSession *captureSession);
39
40
QPlatformVideoFrameInput *platformVideoFrameInput()
const
;
41
42
friend
class
QMediaCaptureSession;
43
Q_DISABLE_COPY(QVideoFrameInput)
44
Q_DECLARE_PRIVATE(QVideoFrameInput)
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QVIDEOFRAMEINPUT_H
QVideoFrameInputPrivate
Definition
qvideoframeinput.cpp:14
QVideoFrameInputPrivate::platfromVideoFrameInput
QPlatformVideoFrameInput * platfromVideoFrameInput() const
Definition
qvideoframeinput.cpp:37
QVideoFrameInputPrivate::sendVideoFrame
bool sendVideoFrame(const QVideoFrame &frame)
Definition
qvideoframeinput.cpp:18
QVideoFrameInputPrivate::initialize
void initialize(QVideoFrameFormat format={})
Definition
qvideoframeinput.cpp:23
QVideoFrameInputPrivate::QVideoFrameInputPrivate
QVideoFrameInputPrivate(QVideoFrameInput *q)
Definition
qvideoframeinput.cpp:16
QVideoFrameInputPrivate::updateCaptureSessionConnections
void updateCaptureSessionConnections(QMediaCaptureSession *prevSession, QMediaCaptureSession *newSession) override
Definition
qvideoframeinput.cpp:43
QVideoFrameInputPrivate::uninitialize
void uninitialize()
Definition
qvideoframeinput.cpp:29
QVideoFrameInputPrivate::emitReadyToSendMediaFrame
void emitReadyToSendMediaFrame() override
Definition
qvideoframeinput.cpp:61
QVideoFrameInputPrivate::checkIfCanSendMediaFrame
bool checkIfCanSendMediaFrame() const override
Definition
qvideoframeinput.cpp:53
QVideoFrameInput
\inmodule QtMultimedia
Definition
qvideoframeinput.h:19
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QMediaCaptureSession::ObjectTraits< QCamera >
\qmltype CaptureSession
Definition
qmediacapturesession.cpp:133
qtmultimedia
src
multimedia
recording
qvideoframeinput.h
Generated on
for Qt by
1.18.0