Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtVideo Namespace Reference

Enumerations for camera and video functionality. More...

Enumerations

enum class  Rotation { None = 0 , Clockwise90 = 90 , Clockwise180 = 180 , Clockwise270 = 270 }
 
enum class  MapMode { NotMapped = 0x00 , ReadOnly = 0x01 , WriteOnly = 0x02 , ReadWrite = ReadOnly | WriteOnly }
 Enumerates how a video buffer's data is mapped to system memory. More...
 

Functions

constexpr MapMode operator& (MapMode lhs, MapMode rhs)
 
constexpr MapMode operator| (MapMode lhs, MapMode rhs)
 
constexpr MapModeoperator&= (MapMode &lhs, MapMode rhs)
 
constexpr MapModeoperator|= (MapMode &lhs, MapMode rhs)
 

Detailed Description

Enumerations for camera and video functionality.

Since
6.7 \inmodule QtMultimedia

Enumeration Type Documentation

◆ MapMode

enum class QtVideo::MapMode
strong

Enumerates how a video buffer's data is mapped to system memory.

\value NotMapped The video buffer is not mapped to memory. \value ReadOnly 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. \value WriteOnly The mapped memory is uninitialized when mapped, but the possibly modified content will be used to populate the video buffer when unmapped. \value ReadWrite 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
QVideoFrame::mapMode(), map()
Enumerator
NotMapped 
ReadOnly 
WriteOnly 
ReadWrite 

Definition at line 25 of file qtvideo.h.

◆ Rotation

enum class QtVideo::Rotation
strong
Since
6.7

The angle of the clockwise rotation that should be applied to a video frame before displaying.

\value None No rotation required, the frame has correct orientation \value Clockwise90 The frame should be rotated clockwise by 90 degrees \value Clockwise180 The frame should be rotated clockwise by 180 degrees \value Clockwise270 The frame should be rotated clockwise by 270 degrees

Enumerator
None 
Clockwise90 
Clockwise180 
Clockwise270 

Definition at line 17 of file qtvideo.h.

Function Documentation

◆ operator&()

constexpr MapMode QtVideo::operator& ( MapMode lhs,
MapMode rhs )
constexpr

Definition at line 33 of file qtvideo.h.

References qToUnderlying().

+ Here is the call graph for this function:

◆ operator&=()

constexpr MapMode & QtVideo::operator&= ( MapMode & lhs,
MapMode rhs )
constexpr

Definition at line 43 of file qtvideo.h.

◆ operator|()

constexpr MapMode QtVideo::operator| ( MapMode lhs,
MapMode rhs )
constexpr

Definition at line 38 of file qtvideo.h.

References qToUnderlying().

+ Here is the call graph for this function:

◆ operator|=()

constexpr MapMode & QtVideo::operator|= ( MapMode & lhs,
MapMode rhs )
constexpr

Definition at line 48 of file qtvideo.h.