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
qffmpegwindowcapture_uwp_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 QFFMPEGWINDOWCAPTURE_UWP_P_H
5#define QFFMPEGWINDOWCAPTURE_UWP_P_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 <QtCore/qnamespace.h>
19#include <QtMultimedia/private/qplatformsurfacecapture_p.h>
21#include <memory>
22
23QT_BEGIN_NAMESPACE
24
25class QFFmpegWindowCaptureUwp : public QPlatformSurfaceCapture
26{
27public:
28 QFFmpegWindowCaptureUwp();
29 ~QFFmpegWindowCaptureUwp() override;
30
31 QVideoFrameFormat frameFormat() const override;
32
33 static bool isSupported();
34
35private:
36 class Grabber;
37
38 bool setActiveInternal(bool active) override;
39
40private:
41 std::unique_ptr<Grabber> m_grabber;
42};
43
44QT_END_NAMESPACE
45
46#endif // QFFMPEGWINDOWCAPTURE_UWP_P_H
Grabber(QFFmpegWindowCaptureUwp &capture, HWND hwnd)
auto wait_for(Async const &async, Windows::Foundation::TimeSpan const &timeout)
Windows::Foundation::AsyncStatus AsyncStatus
static QString isCapturableWindow(HWND hwnd)