18#include <QtMultimedia/qcameradevice.h>
19#include <QtCore/private/qglobal_p.h>
23class QCameraFormatPrivate :
public QSharedData
26 QVideoFrameFormat::PixelFormat pixelFormat = QVideoFrameFormat::Format_Invalid;
28 float minFrameRate = 0;
29 float maxFrameRate = 0;
30 QVideoFrameFormat::ColorRange colorRange = QVideoFrameFormat::ColorRange_Unknown;
32 static QVideoFrameFormat::ColorRange getColorRange(
const QCameraFormat &format)
34 auto d = handle(format);
35 return d ? d->colorRange : QVideoFrameFormat::ColorRange_Unknown;
38 static const QCameraFormatPrivate *handle(
const QCameraFormat &format)
40 return format.d.get();
43 QCameraFormat create() {
return QCameraFormat(
this); }
59 return device.d.data();
64 return id == other.id && description == other.description && isDefault == other.isDefault
65 && position == other.position && orientation == other.orientation
66 && photoResolutions == other.photoResolutions && videoFormats == other.videoFormats;
QCameraDevice::Position position
QList< QCameraFormat > videoFormats
static const QCameraDevicePrivate * handle(const QCameraDevice &device)
bool operator==(const QCameraDevicePrivate &other) const
QList< QSize > photoResolutions
QDebug operator<<(QDebug d, const QCameraDevice &camera)