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
custommediainputsnippets.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef CUSTOMMEDIAINPUTSNIPPETS_H
5#define CUSTOMMEDIAINPUTSNIPPETS_H
6
7#include <QAudioBufferInput>
8#include <QVideoFrameInput>
9#include <QMediaCaptureSession>
10#include <QMediaRecorder>
11#include <QVideoFrame>
12#include <QAudioBuffer>
13#include <QTimer>
14#include <QCoreApplication>
15
16class MediaGenerator : public QObject
17{
19
20public slots:
21 void nextVideoFrame();
22 void nextAudioBuffer();
23
26 void audioBufferReady(const QAudioBuffer &buffer);
27
28private:
29 QVideoFrame nextFrame();
30 QAudioBuffer nextBuffer();
31};
32
34{
36
37public:
40};
41
42#endif // CUSTOMMEDIAINPUTSNIPPETS_H
void nextAudioBuffer()
[nextVideoFrame()]
void audioBufferReady(const QAudioBuffer &buffer)
int main(int argc, char *argv[])
[ctor_close]