17 Q_PROPERTY(QSize resolution READ resolution CONSTANT)
18 Q_PROPERTY(QVideoFrameFormat::PixelFormat pixelFormat READ pixelFormat CONSTANT)
19 Q_PROPERTY(
float minFrameRate READ minFrameRate CONSTANT)
20 Q_PROPERTY(
float maxFrameRate READ maxFrameRate CONSTANT)
22 QCameraFormat()
noexcept;
23 QCameraFormat(
const QCameraFormat &other)
noexcept;
24 QCameraFormat &operator=(
const QCameraFormat &other)
noexcept;
27 QVideoFrameFormat::PixelFormat pixelFormat()
const noexcept;
28 QSize resolution()
const noexcept;
29 float minFrameRate()
const noexcept;
30 float maxFrameRate()
const noexcept;
32 bool isNull()
const noexcept {
return !d; }
34 bool operator==(
const QCameraFormat &other)
const;
35 inline bool operator!=(
const QCameraFormat &other)
const
36 {
return !operator==(other); }
39 friend class QCameraFormatPrivate;
40 QCameraFormat(QCameraFormatPrivate *p);
41 QExplicitlySharedDataPointer<QCameraFormatPrivate> d;
48 Q_PROPERTY(QByteArray id READ id CONSTANT)
49 Q_PROPERTY(QString description READ description CONSTANT)
50 Q_PROPERTY(
bool isDefault READ isDefault CONSTANT)
51 Q_PROPERTY(Position position READ position CONSTANT)
52 Q_PROPERTY(QList<QCameraFormat> videoFormats READ videoFormats CONSTANT)
53 Q_PROPERTY(QtVideo::Rotation correctionAngle READ correctionAngle CONSTANT)
56 QCameraDevice(
const QCameraDevice& other);
57 QCameraDevice& operator=(
const QCameraDevice& other);
60 bool operator==(
const QCameraDevice &other)
const;
61 inline bool operator!=(
const QCameraDevice &other)
const;
65 QByteArray id()
const;
66 QString description()
const;
72 bool isDefault()
const;
82 Position position()
const;
84 QList<QSize> photoResolutions()
const;
85 QList<QCameraFormat> videoFormats()
const;
87 QtVideo::Rotation correctionAngle()
const;
91 friend class QCameraDevicePrivate;
92 QCameraDevice(QCameraDevicePrivate *p);
93 QExplicitlySharedDataPointer<QCameraDevicePrivate> d;