Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 <QtMultimedia/qvideoframe.h>
9#include <QtCore/qobject.h>
10
12
16
17class Q_MULTIMEDIA_EXPORT QVideoFrameInput : public QObject
18{
20public:
21 explicit QVideoFrameInput(QObject *parent = nullptr);
22
23 explicit QVideoFrameInput(const QVideoFrameFormat &format, QObject *parent = nullptr);
24
25 ~QVideoFrameInput() override;
26
27 bool sendVideoFrame(const QVideoFrame &frame);
28
30
31 QMediaCaptureSession *captureSession() const;
32
35
36private:
37 void setCaptureSession(QMediaCaptureSession *captureSession);
38
39 QPlatformVideoFrameInput *platformVideoFrameInput() const;
40
42 Q_DISABLE_COPY(QVideoFrameInput)
43 Q_DECLARE_PRIVATE(QVideoFrameInput)
44};
45
47
48#endif // QVIDEOFRAMEINPUT_H
The QMediaCaptureSession class allows capturing of audio and video content.
\inmodule QtCore
Definition qobject.h:103
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
\inmodule QtMultimedia
void readyToSendVideoFrame()
Signals that a new frame can be sent to the video frame input.
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:27
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
#define Q_OBJECT
#define Q_SIGNALS
QFrame frame
[0]