QtVideo Namespace
Enumerations for camera and video functionality. More...
Header: | #include <QtVideo> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
qmake: | QT += multimedia |
Since: | Qt 6.7 |
Types
enum class | MapMode { NotMapped, ReadOnly, WriteOnly, ReadWrite } |
(since 6.7) enum class | Rotation { None, Clockwise90, Clockwise180, Clockwise270 } |
Detailed Description
Type Documentation
enum class QtVideo::MapMode
Enumerates how a video buffer's data is mapped to system memory.
Constant | Value | Description |
---|---|---|
QtVideo::MapMode::NotMapped | 0x00 | The video buffer is not mapped to memory. |
QtVideo::MapMode::ReadOnly | 0x01 | The mapped memory is populated with data from the video buffer when mapped, but the content of the mapped memory may be discarded when unmapped. |
QtVideo::MapMode::WriteOnly | 0x02 | The mapped memory is uninitialized when mapped, but the possibly modified content will be used to populate the video buffer when unmapped. |
QtVideo::MapMode::ReadWrite | ReadOnly | WriteOnly | The mapped memory is populated with data from the video buffer, and the video buffer is repopulated with the content of the mapped memory when it is unmapped. |
See also mapMode() and map().
[since 6.7]
enum class QtVideo::Rotation
The angle of the clockwise rotation that should be applied to a video frame before displaying.
Constant | Value | Description |
---|---|---|
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 |
This enum was introduced in Qt 6.7.