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
qwasmwindowcapture_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QWASMWINDOWCAPTURE_H
5#define QWASMWINDOWCAPTURE_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 <QObject>
19#include <private/qplatformsurfacecapture_p.h>
20#include <QtCore/qloggingcategory.h>
22#include "mediacapture/qwasmwindowcapture_p.h"
23#include <QWindowCapture>
24
25#include <QScreenCapture>
26
27#include "private/qplatformcapturablewindows_p.h"
28
30
31Q_DECLARE_LOGGING_CATEGORY(qWasmImageCapture)
32
33class QWasmMediaCaptureSession;
34
36{
38public:
41
42 QVideoFrameFormat frameFormat() const override;
43 void setVideoStream(emscripten::val stream);
44 void setCaptureSession(QPlatformMediaCaptureSession *session) override;
45 void setVideoOutput(QWasmVideoOutput *object);
46protected:
47 bool setActiveInternal(bool) override;
48
49private:
50 QWasmMediaCaptureSession *m_captureSession = nullptr;
51 QWasmVideoOutput *m_videoOutput = nullptr;
52
53
54};
55
56QT_END_NAMESPACE
57#endif // QWASMWINDOWCAPTURE_H
void setActive(bool active) override
void setReadyForCapture(bool isReady)
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
void setAudioInput(QPlatformAudioInput *input) override
void setScreenCapture(QPlatformSurfaceCapture *) override
QPlatformSurfaceCapture * screenCapture() override
void setAudioOutput(QPlatformAudioOutput *output) override
QPlatformImageCapture * imageCapture() override
QPlatformMediaRecorder * mediaRecorder() override
QPlatformSurfaceCapture * windowCapture() override
void setImageCapture(QPlatformImageCapture *imageCapture) override
void setWindowCapture(QPlatformSurfaceCapture *) override
void setCamera(QPlatformCamera *camera) override
~QWasmMediaCaptureSession() override
void setVideoPreview(QVideoSink *sink) override
QPlatformCamera * camera() override
void setVideoSource(std::string surfacetype)
QWasmMediaRecorder(QMediaRecorder *parent)
void setVideoOutput(QWasmVideoOutput *output)
void setCaptureSession(QPlatformMediaCaptureSession *session) override
QVideoFrameFormat frameFormat() const override
bool setActiveInternal(bool) override
void setVideoStream(emscripten::val stream)
QVideoFrameFormat frameFormat() const override
bool setActiveInternal(bool) override
void setCaptureSession(QPlatformMediaCaptureSession *session) override
void setVideoStream(emscripten::val stream)
void setVideoOutput(QWasmVideoOutput *object)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")