Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
21
24
26{
28public:
30 virtual ~QWindowsCamera();
31
32 bool isActive() const override;
33
34 void setCamera(const QCameraDevice &camera) override;
35
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
54
55#endif // QWINDOWSCAMERA_H
The QCameraDevice class provides general information about camera devices.
The QCameraFormat class describes a video format supported by a camera device. \inmodule QtMultimedia...
The QCamera class provides interface for system camera devices.
Definition qcamera.h:28
virtual ~QWindowsCamera()
bool isActive() const override
void setCamera(const QCameraDevice &camera) override
void setCaptureSession(QPlatformMediaCaptureSession *) override
bool setCameraFormat(const QCameraFormat &format) override
void setActive(bool active) override
QWindowsCamera(QCamera *camera)
QCamera * camera
Definition camera.cpp:19
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
#define Q_OBJECT
#define Q_SLOTS