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
qwindowsmediacapture_p.h
Go to the documentation of this file.
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#ifndef QWINDOWSMEDIACAPTURE_H
4#define QWINDOWSMEDIACAPTURE_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <private/qplatformmediacapture_p.h>
18#include <private/qplatformmediaintegration_p.h>
19
21
23class QWindowsCamera;
26class QPlatformAudioInput;
27
29{
31
32public:
35
36 QPlatformCamera *camera() override;
37 void setCamera(QPlatformCamera *camera) override;
38
40 void setImageCapture(QPlatformImageCapture *imageCapture) override;
41
43 void setMediaRecorder(QPlatformMediaRecorder *recorder) override;
44
45 void setAudioInput(QPlatformAudioInput *) override;
46
47 void setAudioOutput(QPlatformAudioOutput *output) override;
48
49 void setVideoPreview(QVideoSink *sink) override;
50
52
53private:
54 QWindowsCamera *m_camera = nullptr;
55 QWindowsMediaDeviceSession *m_mediaDeviceSession = nullptr;
56 QWindowsImageCapture *m_imageCapture = nullptr;
57 QWindowsMediaEncoder *m_encoder = nullptr;
58};
59
60QT_END_NAMESPACE
61
62#endif // QWINDOWSMEDIAINTERFACE_H
QPlatformImageCapture * imageCapture() override
void setCamera(QPlatformCamera *camera) override
void setAudioInput(QPlatformAudioInput *) override
QPlatformCamera * camera() override
QPlatformMediaRecorder * mediaRecorder() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
void setAudioOutput(QPlatformAudioOutput *output) override
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
QWindowsMediaDeviceSession * session() const
QPlatformMediaFormatInfo * createFormatInfo() override
QMaybe< QPlatformCamera * > createCamera(QCamera *camera) override
QMaybe< QPlatformMediaRecorder * > createRecorder(QMediaRecorder *recorder) override
QMaybe< QPlatformMediaCaptureSession * > createCaptureSession() override
QPlatformVideoDevices * createVideoDevices() override
QMaybe< QPlatformMediaPlayer * > createPlayer(QMediaPlayer *parent) override
QMaybe< QPlatformImageCapture * > createImageCapture(QImageCapture *imageCapture) override
QMaybe< QPlatformVideoSink * > createVideoSink(QVideoSink *sink) override
QMaybe< QPlatformAudioDecoder * > createAudioDecoder(QAudioDecoder *decoder) override
Combined button and popup list for selecting options.