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;
31 QVideoFrameFormat::ColorSpace colorSpace = QVideoFrameFormat::ColorSpace_Undefined;
33 static QVideoFrameFormat::ColorRange getColorRange(
const QCameraFormat &format)
35 auto d = handle(format);
36 return d ? d->colorRange : QVideoFrameFormat::ColorRange_Unknown;
39 static QVideoFrameFormat::ColorSpace getColorSpace(
const QCameraFormat &format)
41 auto d = handle(format);
42 return d ? d->colorSpace : QVideoFrameFormat::ColorSpace_Undefined;
45 static const QCameraFormatPrivate *handle(
const QCameraFormat &format)
47 return format.d.get();
50 QCameraFormat create() {
return QCameraFormat(
this); }
66 return device.d.data();
71 return id == other.id && description == other.description && isDefault == other.isDefault
72 && position == other.position && orientation == other.orientation
73 && 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
Combined button and popup list for selecting options.
QDebug operator<<(QDebug d, const QCameraDevice &camera)
QDebug operator<<(QDebug dbg, const QFileInfo &fi)