MapData Struct

struct QAbstractVideoBuffer::MapData

QAbstractVideoBuffer::MapData 構造体は、マップされたプレーンレイアウトを記述する。詳細...

パブリック変数

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

詳細説明

この構造体には、マップされたプレーンの数と、各プレーンのプレーンデータ(具体的には、1行あたりのバイト数、データポインタ、データサイズ)が格納されます。構造体は、それが参照するデータの所有権を保持しない。

デフォルトで作成された構造体は、データがマッピングされていないことを意味する。

構造体内の値のデフォルトはすべて0である。

QAbstractVideoBuffer::mapも参照

メンバ変数のドキュメント

int[4] MapData::bytesPerLine

0 からplaneCount - 1 までの各プレーンの 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.