![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QCameraFormat class describes a video format supported by a camera device. \inmodule QtMultimedia. More...
#include <qcameradevice.h>
Public Member Functions | |
| QCameraFormat () noexcept | |
| \qmlvaluetype cameraFormat\inqmlmodule QtMultimedia | |
| 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 14 of file qcameradevice.h.
|
defaultnoexcept |
\qmlvaluetype cameraFormat\inqmlmodule QtMultimedia
Describes a video format supported by a camera device.
cameraFormat 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 frates.
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 32 of file qcameradevice.h.
|
noexcept |
Definition at line 156 of file qcameradevice.cpp.
|
noexcept |
Definition at line 134 of file qcameradevice.cpp.
|
inline |
Returns false if the other format is equal to this camera format, otherwise true.
Definition at line 35 of file qcameradevice.h.
|
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 172 of file qcameradevice.cpp.
|
noexcept |
Definition at line 102 of file qcameradevice.cpp.
|
noexcept |
Definition at line 118 of file qcameradevice.cpp.
|
friend |
Definition at line 39 of file qcameradevice.h.
|
read |
\qmlproperty real QtMultimedia::cameraFormat::maxFrameRate
Returns the highest frame rate defined by this format.
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.
The camera will always try to use the highest frame rate supported by a certain video format.
Definition at line 20 of file qcameradevice.h.
|
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 19 of file qcameradevice.h.
|
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 18 of file qcameradevice.h.
|
read |
\qmlproperty size QtMultimedia::cameraFormat::resolution
Returns the resolution.
Returns the resolution.
Definition at line 17 of file qcameradevice.h.