PySide6.QtMultimedia.QCameraFormat¶
- class QCameraFormat¶
The
QCameraFormatclass describes a video format supported by a camera device.Details
QCameraFormatrepresents 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.QCameraFormatobjects can be queried fromQCameraDeviceto inspect the set of supported video formats.See also
Added in version 6.1.
Synopsis¶
Properties¶
Methods¶
def
__init__()def
isNull()def
maxFrameRate()def
minFrameRate()def
__ne__()def
__eq__()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
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property maxFrameRateᅟ: float¶
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.
- Access functions:
- property minFrameRateᅟ: float¶
Returns the lowest frame rate defined by this format.
- Access functions:
- property pixelFormatᅟ: QVideoFrameFormat.PixelFormat¶
Returns the pixel format.
Most commonly this is either
Format_Jpegor QVideoFrameFormat::Format_YUVY but other formats could also be supported by the camera.See also
- Access functions:
Returns the resolution.
- Access functions:
- __init__()¶
Constructs a null camera format.
See also
- __init__(other)
- Parameters:
other –
QCameraFormat
Copy constructs a camera format from the
otherformat.- isNull()¶
- Return type:
bool
Returns true if this is a default constructed
QCameraFormat.- maxFrameRate()¶
- Return type:
float
Getter of property
maxFrameRateᅟ.- minFrameRate()¶
- Return type:
float
Getter of property
minFrameRateᅟ.- __ne__(other)¶
- Parameters:
other –
QCameraFormat- Return type:
bool
Returns
falseif theotherformat is equal to this camera format, otherwisetrue.- __eq__(other)¶
- Parameters:
other –
QCameraFormat- Return type:
bool
Returns
trueif theotherformat is equal to this camera format, otherwisefalse.- pixelFormat()¶
- Return type:
Getter of property
pixelFormatᅟ.Getter of property
resolutionᅟ.