![]() |
Qt 6.x
The Qt SDK
|
The QCameraFormat class describes a video format supported by a camera device. \inmodule QtMultimedia. More...
#include <qcameradevice.h>
Collaboration diagram for QCameraFormat:Public Member Functions | |
| QCameraFormat () noexcept | |
| Describes a video format supported by a camera device. | |
| QCameraFormat (const QCameraFormat &other) noexcept | |
| Copy constructs a camera format from the other format. | |
| QCameraFormat & | operator= (const QCameraFormat &other) noexcept |
| Assign other to this. | |
| ~QCameraFormat () | |
| Destructs the camera format object. | |
| QVideoFrameFormat::PixelFormat | pixelFormat () const noexcept |
| QSize | resolution () const noexcept |
| float | minFrameRate () const noexcept |
| float | maxFrameRate () const noexcept |
| bool | isNull () const noexcept |
| Returns true if this is a default constructed QCameraFormat. | |
| bool | operator== (const QCameraFormat &other) const |
Returns true if the other format is equal to this camera format, otherwise false. | |
| bool | operator!= (const QCameraFormat &other) const |
Returns false if the other format is equal to this camera format, otherwise true. | |
Properties | |
| QSize | resolution |
| \qmlproperty size QtMultimedia::cameraFormat::resolution | |
| QVideoFrameFormat::PixelFormat | pixelFormat |
| \qmlproperty enumeration QtMultimedia::cameraFormat::pixelFormat | |
| float | minFrameRate |
| \qmlproperty real QtMultimedia::cameraFormat::minFrameRate | |
| float | maxFrameRate |
| \qmlproperty real QtMultimedia::cameraFormat::maxFrameRate | |
Friends | |
| class | QCameraFormatPrivate |
The QCameraFormat class describes a video format supported by a camera device. \inmodule QtMultimedia.
QCameraFormat represents a certain video format supported by a camera device.
The format is a combination of a \l{QVideoFrameFormat::PixelFormat}{pixel format}, resolution and a range of frame rates.
QCameraFormat objects can be queried from QCameraDevice to inspect the set of supported video formats.
Definition at line 13 of file qcameradevice.h.
|
defaultnoexcept |
Describes a video format supported by a camera device.
\qmlvaluetype cameraFormat \ingroup qmlvaluetypes \inqmlmodule QtMultimedia \since 6.2
! \instantiates QCameraFormat
cameraFormat represents a certain video format supported by a camera device.
The format is a combination of a \l{pixel format}{QVideoFrameFormat::PixelFormat}, resolution and a range of frame rates.
cameraFormat objects can be queried from \l cameraDevice to inspect the set of supported video formats.
Constructs a null camera format.
|
defaultnoexcept |
Copy constructs a camera format from the other format.
|
default |
Destructs the camera format object.
|
inlinenoexcept |
Returns true if this is a default constructed QCameraFormat.
Definition at line 31 of file qcameradevice.h.
References d.
Referenced by QV4L2Camera::setActive(), QWindowsCamera::setActive(), AVFCamera::setCameraFormat(), QAVFCameraBase::setCameraFormat(), QAVFCamera::setCameraFormat(), and QAndroidCamera::setCaptureSession().
Here is the caller graph for this function:
|
noexcept |
Definition at line 155 of file qcameradevice.cpp.
References QCameraFormatPrivate::maxFrameRate.
|
noexcept |
Definition at line 133 of file qcameradevice.cpp.
References QCameraFormatPrivate::minFrameRate.
|
inline |
Returns false if the other format is equal to this camera format, otherwise true.
Definition at line 34 of file qcameradevice.h.
References operator==(), and other().
Here is the call graph for this function:
|
defaultnoexcept |
Assign other to this.
| bool QCameraFormat::operator== | ( | const QCameraFormat & | other | ) | const |
Returns true if the other format is equal to this camera format, otherwise false.
Definition at line 171 of file qcameradevice.cpp.
References QCameraFormatPrivate::maxFrameRate, QCameraFormatPrivate::minFrameRate, other(), QCameraFormatPrivate::pixelFormat, and QCameraFormatPrivate::resolution.
Here is the call graph for this function:
|
noexcept |
Definition at line 101 of file qcameradevice.cpp.
References d, and QVideoFrameFormat::Format_Invalid.
|
noexcept |
Definition at line 117 of file qcameradevice.cpp.
References QCameraFormatPrivate::resolution.
|
friend |
Definition at line 38 of file qcameradevice.h.
|
read |
\qmlproperty real QtMultimedia::cameraFormat::maxFrameRate
Returns the highest frame rate defined by this format.
In 6.2, the camera will always try to use the maximum frame rate supported by a certain video format.
Returns the highest frame rate defined by this format.
In 6.2, the camera will always try to use the highest frame rate supported by a certain video format.
Definition at line 99 of file qcameradevice.h.
Referenced by QPlatformCamera::frameFormat(), and qt_convert_to_capture_device_format().
|
read |
\qmlproperty real QtMultimedia::cameraFormat::minFrameRate
Returns the lowest frame rate defined by this format.
Returns the lowest frame rate defined by this format.
Definition at line 99 of file qcameradevice.h.
Referenced by qt_convert_to_capture_device_format().
|
read |
\qmlproperty enumeration QtMultimedia::cameraFormat::pixelFormat
Holds the pixel format.
Most commonly this is either QVideoFrameFormat::Format_Jpeg or QVideoFrameFormat::Format_YUVY but other formats could also be supported by the camera.
Returns the pixel format.
Most commonly this is either QVideoFrameFormat::Format_Jpeg or QVideoFrameFormat::Format_YUVY but other formats could also be supported by the camera.
Definition at line 99 of file qcameradevice.h.
Referenced by QPlatformCamera::frameFormat(), qt_convert_to_capture_device_format(), and AVFCameraRenderer::setOutputSettings().
|
read |
\qmlproperty size QtMultimedia::cameraFormat::resolution
Returns the resolution.
Returns the resolution.
Definition at line 99 of file qcameradevice.h.
Referenced by QPlatformCamera::frameFormat(), and qt_convert_to_capture_device_format().