cameraFormat QML Value Type
描述了相机设备支持的一种视频格式。更多...
| Import Statement: | import QtMultimedia |
| In C++: | QCameraFormat |
属性
- maxFrameRate : real
- minFrameRate : real
- pixelFormat : enumeration
- resolution : size
详细说明
cameraFormat 表示摄像机设备支持的某种视频格式。
该格式由pixel format 、分辨率和帧率范围组合而成。
可通过cameraDevice 查询 cameraFormat 对象,以查看支持的视频格式集。
另请参阅 cameraDevice 和Camera 。
属性文档
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.