1// Copyright (C) 2021 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 QGSTREAMERINTEGRATION_H
5#define QGSTREAMERINTEGRATION_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/qplatformmediaintegration_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QFFmpegMediaFormatInfo;
23
24class QFFmpegMediaIntegration : public QPlatformMediaIntegration
25{
26public:
27 QFFmpegMediaIntegration();
28
29 QMaybe<QPlatformAudioDecoder *> createAudioDecoder(QAudioDecoder *decoder) override;
30 QMaybe<std::unique_ptr<QPlatformAudioResampler>> createAudioResampler(const QAudioFormat &inputFormat, const QAudioFormat &outputFormat) override;
31 QMaybe<QPlatformMediaCaptureSession *> createCaptureSession() override;
32 QMaybe<QPlatformMediaPlayer *> createPlayer(QMediaPlayer *player) override;
33 QMaybe<QPlatformCamera *> createCamera(QCamera *) override;
34 QPlatformSurfaceCapture *createScreenCapture(QScreenCapture *) override;
35 QPlatformSurfaceCapture *createWindowCapture(QWindowCapture *) override;
36 QMaybe<QPlatformMediaRecorder *> createRecorder(QMediaRecorder *) override;
37 QMaybe<QPlatformImageCapture *> createImageCapture(QImageCapture *) override;
38
39 QMaybe<QPlatformVideoSink *> createVideoSink(QVideoSink *sink) override;
40
41 QMaybe<QPlatformAudioInput *> createAudioInput(QAudioInput *input) override;
42// QPlatformAudioOutput *createAudioOutput(QAudioOutput *) override;
43
44 QVideoFrame convertVideoFrame(QVideoFrame &srcFrame,
45 const QVideoFrameFormat &destFormat) override;
46
47protected:
48 QPlatformMediaFormatInfo *createFormatInfo() override;
49
50 QPlatformVideoDevices *createVideoDevices() override;
51
52 QPlatformCapturableWindows *createCapturableWindows() override;
53};
54
55QT_END_NAMESPACE
56
57#endif
58

source code of qtmultimedia/src/plugins/multimedia/ffmpeg/qffmpegmediaintegration_p.h