18 Q_PROPERTY(QSize resolution READ resolution CONSTANT)
19 Q_PROPERTY(QVideoFrameFormat::PixelFormat pixelFormat READ pixelFormat CONSTANT)
20 Q_PROPERTY(
float minFrameRate READ minFrameRate CONSTANT)
21 Q_PROPERTY(
float maxFrameRate READ maxFrameRate CONSTANT)
23 QCameraFormat()
noexcept;
24 QCameraFormat(
const QCameraFormat &other)
noexcept;
25 QCameraFormat &operator=(
const QCameraFormat &other)
noexcept;
28 QVideoFrameFormat::PixelFormat pixelFormat()
const noexcept;
29 QSize resolution()
const noexcept;
30 float minFrameRate()
const noexcept;
31 float maxFrameRate()
const noexcept;
33 bool isNull()
const noexcept {
return !d; }
35 bool operator==(
const QCameraFormat &other)
const;
36 inline bool operator!=(
const QCameraFormat &other)
const
37 {
return !operator==(other); }
40 friend class QCameraFormatPrivate;
41 QCameraFormat(QCameraFormatPrivate *p);
42 QExplicitlySharedDataPointer<QCameraFormatPrivate> d;
44#ifndef QT_NO_DEBUG_STREAM
45 Q_MULTIMEDIA_EXPORT
friend QDebug operator<<(QDebug,
const QCameraFormat&);
53 Q_PROPERTY(QByteArray id READ id CONSTANT)
54 Q_PROPERTY(QString description READ description CONSTANT)
55 Q_PROPERTY(
bool isDefault READ isDefault CONSTANT)
56 Q_PROPERTY(Position position READ position CONSTANT)
57 Q_PROPERTY(QList<QCameraFormat> videoFormats READ videoFormats CONSTANT)
58 Q_PROPERTY(QtVideo::Rotation correctionAngle READ correctionAngle CONSTANT)
61 QCameraDevice(
const QCameraDevice& other);
62 QCameraDevice& operator=(
const QCameraDevice& other);
65 bool operator==(
const QCameraDevice &other)
const;
66 inline bool operator!=(
const QCameraDevice &other)
const;
70 QByteArray id()
const;
71 QString description()
const;
77 bool isDefault()
const;
87 Position position()
const;
89 QList<QSize> photoResolutions()
const;
90 QList<QCameraFormat> videoFormats()
const;
92 QtVideo::Rotation correctionAngle()
const;
96 friend class QCameraDevicePrivate;
97 QCameraDevice(QCameraDevicePrivate *p);
98 QExplicitlySharedDataPointer<QCameraDevicePrivate> d;