blob: d2ea8d6b195a7eef1d23a1af1580dc942dcbfc2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// 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 QCAMERAINFO_P_H
#define QCAMERAINFO_P_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/qcameradevice.h>
#include <QtCore/qsharedpointer.h>
#include <QtCore/private/qglobal_p.h>
QT_BEGIN_NAMESPACE
class QCameraFormatPrivate : public QSharedData
{
public:
QVideoFrameFormat::PixelFormat pixelFormat;
QSize resolution;
float minFrameRate = 0;
float maxFrameRate = 0;
QCameraFormat create() { return QCameraFormat(this); }
};
class QCameraDevicePrivate : public QSharedData
{
public:
QByteArray id;
QString description;
bool isDefault = false;
QCameraDevice::Position position = QCameraDevice::UnspecifiedPosition;
int orientation = 0;
QList<QSize> photoResolutions;
QList<QCameraFormat> videoFormats;
static const QCameraDevicePrivate *handle(const QCameraDevice &device)
{
return device.d.data();
}
bool operator==(const QCameraDevicePrivate &other) const
{
return id == other.id && description == other.description && isDefault == other.isDefault
&& position == other.position && orientation == other.orientation
&& photoResolutions == other.photoResolutions && videoFormats == other.videoFormats;
}
QCameraDevice create() { return QCameraDevice(this); }
};
QT_END_NAMESPACE
#endif // QCAMERAINFO_P_H
|