Revision control
Copy as Markdown
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QWINDOWSMEDIACAPTURE_H
#define QWINDOWSMEDIACAPTURE_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <QtMultimedia/private/qplatformmediacapture_p.h>
#include <QtMultimedia/private/qplatformmediaintegration_p.h>
QT_BEGIN_NAMESPACE
class QWindowsMediaEncoder;
class QWindowsCamera;
class QWindowsMediaDeviceSession;
class QWindowsImageCapture;
class QPlatformAudioInput;
class QWindowsMediaCaptureService : public QPlatformMediaCaptureSession
{
Q_OBJECT
public:
QWindowsMediaCaptureService();
virtual ~QWindowsMediaCaptureService();
QPlatformCamera *camera() override;
void setCamera(QPlatformCamera *camera) override;
QPlatformImageCapture *imageCapture() override;
void setImageCapture(QPlatformImageCapture *imageCapture) override;
QPlatformMediaRecorder *mediaRecorder() override;
void setMediaRecorder(QPlatformMediaRecorder *recorder) override;
void setAudioInput(QPlatformAudioInput *) override;
void setAudioOutput(QPlatformAudioOutput *output) override;
void setVideoPreview(QVideoSink *sink) override;
QWindowsMediaDeviceSession *session() const;
private:
QWindowsCamera *m_camera = nullptr;
QWindowsMediaDeviceSession *m_mediaDeviceSession = nullptr;
QWindowsImageCapture *m_imageCapture = nullptr;
QWindowsMediaEncoder *m_encoder = nullptr;
};
QT_END_NAMESPACE
#endif // QWINDOWSMEDIAINTERFACE_H