cameraFormat QML Value Type
描述摄像设备支持的视频格式。更多
Import Statement: | import QtMultimedia |
属性
- maxFrameRate : real
- minFrameRate : real
- pixelFormat : enumeration
- resolution : size
详细说明
cameraFormat 表示摄像机设备支持的某种视频格式。
格式是pixel format 、分辨率和帧频范围的组合。
可通过cameraDevice 查询 cameraFormat 对象,查看支持的视频格式集。
另请参阅 cameraDevice 和Camera 。
属性文档
maxFrameRate : real |
返回此格式定义的最高帧频。
摄像机将始终尝试使用特定视频格式所支持的最高帧频。
minFrameRate : real |
返回此格式定义的最低帧频。
pixelFormat : enumeration |
保存像素格式。
通常是QVideoFrameFormat::Format_Jpeg 或 QVideoFrameFormat::Format_YUVY,但摄像机也可能支持其他格式。
resolution : size |
返回分辨率。
© 2025 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.