QtVideo 名稱空間

用於攝像頭和視頻功能的枚舉。 更多...

頭: #include <QtVideo>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia
Since: Qt 6.7

類型

(從 6.7 起) 枚舉類 Rotation { None, Clockwise90, Clockwise180, Clockwise270 }

詳細描述

類型文檔編製

[since 6.7] enum class QtVideo:: Rotation

The angle of the clockwise rotation that should be applied to a video frame before displaying. The rotation is performed in video coordinates, where the Y-axis points downwards on the display. It means that the rotation direction complies with QTransform::rotate .

常量 描述
QtVideo::Rotation::None 0 No rotation required, the frame has correct orientation
QtVideo::Rotation::Clockwise90 90 The frame should be rotated clockwise by 90 degrees
QtVideo::Rotation::Clockwise180 180 The frame should be rotated clockwise by 180 degrees
QtVideo::Rotation::Clockwise270 270 The frame should be rotated clockwise by 270 degrees

該枚舉在 Qt 6.7 引入。