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
qwindowscamera_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
4#ifndef QWINDOWSCAMERA_H
5#define QWINDOWSCAMERA_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/qplatformcamera_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QWindowsMediaCaptureService;
24
26{
28public:
30 virtual ~QWindowsCamera();
31
32 bool isActive() const override;
33
34 void setCamera(const QCameraDevice &camera) override;
35
36 void setCaptureSession(QPlatformMediaCaptureSession *) override;
37
38 bool setCameraFormat(const QCameraFormat &format) override;
39
40 void setActive(bool active) override;
41
42private Q_SLOTS:
43 void onActiveChanged(bool active);
44
45private:
46 QWindowsMediaCaptureService *m_captureService = nullptr;
47 QWindowsMediaDeviceSession *m_mediaDeviceSession = nullptr;
48 QCameraDevice m_cameraDevice;
49 QCameraFormat m_cameraFormat;
50 bool m_active = false;
51};
52
53QT_END_NAMESPACE
54
55#endif // QWINDOWSCAMERA_H
The QCamera class provides interface for system camera devices.
Definition qcamera.h:26
bool setCameraFormat(const QCameraFormat &) override
bool isActive() const override
void setCamera(const QCameraDevice &camera) override
void setCaptureSession(QPlatformMediaCaptureSession *) override
void setActive(bool active) override
~QWindowsCamera() override
QWindowsMediaDeviceSession * session() const
void setActiveCamera(const QCameraDevice &camera)
Combined button and popup list for selecting options.