Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
capturesessionfixture_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 GPL-3.0-only
3
4#ifndef CAPTURESESSIONFIXTURE_P_H
5#define CAPTURESESSIONFIXTURE_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 <private/framegenerator_p.h>
19#include <QtMultimedia/qvideoframeinput.h>
20#include <QtMultimedia/qaudioinput.h>
21#include <QtMultimedia/qmediacapturesession.h>
22#include <QtMultimedia/qmediarecorder.h>
23#include <QtMultimedia/qaudiobufferinput.h>
24#include <QtCore/qtemporaryfile.h>
25
26#include <private/testvideosink_p.h>
27#include <QtTest/qsignalspy.h>
28
29QT_BEGIN_NAMESPACE
30
31enum class StreamType { Audio, Video, AudioAndVideo };
32enum class AutoStop { EmitEmpty, No };
33enum class RunMode { Pull, Push };
34
61
62QT_END_NAMESPACE
63
64#endif
QMediaCaptureSession m_session
void start(RunMode mode, AutoStop autoStop)
void setVideoSink(QVideoSink *videoSink)
bool waitForRecorderStopped(std::chrono::milliseconds duration)
CaptureSessionFixture(StreamType streamType)