The QCameraFormat class describes a video format supported by a camera device. More...
Header: | #include <QCameraFormat> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
qmake: | QT += multimedia |
QCameraFormat(const QCameraFormat &other) | |
QCameraFormat() | |
QCameraFormat & | operator=(const QCameraFormat &other) |
~QCameraFormat() | |
bool | isNull() const |
float | maxFrameRate() const |
float | minFrameRate() const |
QVideoFrameFormat::PixelFormat | pixelFormat() const |
QSize | resolution() const |
bool | operator!=(const QCameraFormat &other) const |
bool | operator==(const QCameraFormat &other) const |
QCameraFormat represents a certain video format supported by a camera device.
The format is a combination of a pixel format, resolution and a range of frame rates.
QCameraFormat objects can be queried from QCameraDevice to inspect the set of supported video formats.
See also QCameraDevice and QCamera.
[read-only]
maxFrameRate : const floatReturns 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.
Access functions:
float | maxFrameRate() const |
[read-only]
minFrameRate : const floatReturns the lowest frame rate defined by this format.
Access functions:
float | minFrameRate() const |
[read-only]
pixelFormat : const QVideoFrameFormat::PixelFormatReturns 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.
Access functions:
QVideoFrameFormat::PixelFormat | pixelFormat() const |
See also QVideoFrameFormat::PixelFormat.
[read-only]
resolution : const QSizeReturns the resolution.
Access functions:
QSize | resolution() const |
Copy constructs a camera format from the other format.
Constructs a null camera format.
See also isNull().
Assign other to this.
Destructs the camera format object.
Returns true if this is a default constructed QCameraFormat.
Returns false
if the other format is equal to this camera format, otherwise true
.
Returns true
if the other format is equal to this camera format, otherwise false
.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: