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 。
© 2026 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.