QAbstractVideoBuffer::MapData Struct
struct QAbstractVideoBuffer::MapDataQAbstractVideoBuffer::MapData 结构描述了映射平面布局。更多
公共变量
int[4] | bytesPerLine |
uchar *[4] | data |
int[4] | dataSize |
int | planeCount |
详细说明
该结构包含映射平面的数量以及每个平面的平面数据,具体包括每行的字节数、数据指针和数据大小。该结构不拥有所引用数据的任何所有权。
默认创建的结构表示没有映射任何数据。
结构中的所有值默认为零。
另请参见 QAbstractVideoBuffer::map 。
成员变量文档
int[4] MapData::bytesPerLine
从0
到planeCount - 1
的每个平面的每行字节数数组。
数组的默认值为0
。
uchar *[4] MapData::data
从0
到planeCount - 1
的每个平面的映射视频像素数据的指针数组。QAbstractVideoBuffer 的实现必须至少在调用QAbstractVideoBuffer::unmap 之前持有数据的所有权。
数组的默认值为nullptr
。
int[4] MapData::dataSize
0
至planeCount - 1
每个平面的映射视频像素数据的大小(字节)数组。
数组的默认值为0
。
int MapData::planeCount
映射视频数据的平面数。如果数据格式为多平面,且值为1
,则实际平面布局将在调用QVideoFrame::map 时根据帧高、bytesPerLine[0]
和dataSize[0]
计算得出。
默认值为0
。
© 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.