QtVideo Namespace
用于相机和视频功能的枚举。更多
头文件: | #include <QtVideo> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
qmake: | QT += multimedia |
自 | Qt 6.7 |
类型
(since 6.7) enum class | Rotation { None, Clockwise90, Clockwise180, Clockwise270 } |
类型文档
[since 6.7]
enum class QtVideo::Rotation
视频帧在显示前顺时针旋转的角度。旋转在视频坐标中进行,其中 Y 轴在显示屏上指向下方。这意味着旋转方向符合QTransform::rotate 。
常数 | 值 | 说明 |
---|---|---|
QtVideo::Rotation::None | 0 | 无需旋转,图像方向正确 |
QtVideo::Rotation::Clockwise90 | 90 | 框架应顺时针旋转 90 度 |
QtVideo::Rotation::Clockwise180 | 180 | 框架应顺时针旋转 180 度 |
QtVideo::Rotation::Clockwise270 | 270 | 框架应顺时针旋转 270 度 |
此枚举在 Qt 6.7 中引入。
© 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.