MapData Struct

struct QAbstractVideoBuffer ::MapData

The QAbstractVideoBuffer::MapData structure describes the mapped plane layout. 更多...

公共变量

int[4] bytesPerLine
uchar *[4] data
int[4] dataSize
int planeCount

详细描述

The structure contains a number of mapped planes, and plane data for each plane, specificly, a number of bytes per line, a data pointer, and a data size. The structure doesn't hold any ownership of the data it refers to.

A defaultly created structure means that no data has been mapped.

All the values in the structure default to zeros.

另请参阅 QAbstractVideoBuffer::map .

成员变量文档编制

int [ 4 ] MapData:: bytesPerLine

The array of numbrers of bytes per line for each plane from 0 to planeCount - 1 .

The values of the array default to 0 .

uchar *[ 4 ] MapData:: data

The array of pointers to the mapped video pixel data for each plane from 0 to planeCount - 1 . The implementation of QAbstractVideoBuffer must hold ownership of the data at least until QAbstractVideoBuffer::unmap 被调用。

The values of the array default to nullptr .

int [ 4 ] MapData:: dataSize

The array of sizes in bytes of the mapped video pixel data for each plane from 0 to planeCount - 1 .

The values of the array default to 0 .

int MapData:: planeCount

The number of planes of the mapped video data. If the format of the data is multiplanar, and the value is 1 , the actual plane layout will be calculated upon invoking of QVideoFrame::map from the frame height, bytesPerLine[0] ,和 dataSize[0] .

默认为 0 .