QCameraFormat#
The QCameraFormat class describes a video format supported by a camera device. More…
New in version 6.1.
Synopsis#
Properties#
Functions#
def
isNull()def
maxFrameRate()def
minFrameRate()def
__ne__(other)def
__eq__(other)def
pixelFormat()def
resolution()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
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
- class PySide6.QtMultimedia.QCameraFormat#
PySide6.QtMultimedia.QCameraFormat(other)
- Parameters:
Constructs a null camera format.
See also
Copy constructs a camera format from the other format.
Note
Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.
- property PᅟySide6.QtMultimedia.QCameraFormat.maxFrameRate: float#
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.
- Access functions:
maxFrameRate()
- property PᅟySide6.QtMultimedia.QCameraFormat.minFrameRate: float#
Returns the lowest frame rate defined by this format.
- Access functions:
minFrameRate()
- property PᅟySide6.QtMultimedia.QCameraFormat.pixelFormat: PixelFormat#
Returns the pixel format.
Most commonly this is either Format_Jpeg or QVideoFrameFormat::Format_YUVY but other formats could also be supported by the camera.
See also
PixelFormat
- Access functions:
pixelFormat()
- property PᅟySide6.QtMultimedia.QCameraFormat.resolution: PySide6.QtCore.QSize#
Returns the resolution.
- Access functions:
resolution()
- PySide6.QtMultimedia.QCameraFormat.isNull()#
- Return type:
bool
Returns true if this is a default constructed QCameraFormat .
- PySide6.QtMultimedia.QCameraFormat.maxFrameRate()#
- Return type:
float
Getter of property maxFrameRate .
- PySide6.QtMultimedia.QCameraFormat.minFrameRate()#
- Return type:
float
Getter of property minFrameRate .
- PySide6.QtMultimedia.QCameraFormat.__ne__(other)#
- Parameters:
- Return type:
bool
Returns false if the other format is equal to this camera format, otherwise true.
- PySide6.QtMultimedia.QCameraFormat.__eq__(other)#
- Parameters:
- Return type:
bool
Returns true if the other format is equal to this camera format, otherwise false.
- PySide6.QtMultimedia.QCameraFormat.pixelFormat()#
- Return type:
Getter of property pixelFormat .
- PySide6.QtMultimedia.QCameraFormat.resolution()#
- Return type:
Getter of property resolution .