在本页

cameraFormat QML Value Type

描述摄像设备支持的视频格式。更多

Import Statement: import QtMultimedia
In C++: QCameraFormat

属性

详细说明

cameraFormat 表示摄像机设备支持的某种视频格式。

格式是pixel format 、分辨率和帧频范围的组合。

可通过cameraDevice 查询 cameraFormat 对象,查看支持的视频格式集。

另请参阅 cameraDeviceCamera

属性文档

maxFrameRate : real [read-only]

返回此格式所定义的最高帧频。

摄像机会一直尝试使用特定视频格式所支持的最高帧频。

minFrameRate : real [read-only]

返回此格式定义的最低帧频。

pixelFormat : enumeration [read-only]

保存像素格式。

通常是QVideoFrameFormat::Format_Jpeg 或 QVideoFrameFormat::Format_YUVY,但摄像机也可能支持其他格式。

另请参阅 QVideoFrameFormat::PixelFormat

resolution : size [read-only]

返回分辨率。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.