GstVideoFormatInfo

Information for a video format.

Members

Variables

bits
uint bits;

The number of bits used to pack data items. This can be less than 8 when multiple pixels are stored in a byte. for values > 8 multiple bytes should be read according to the endianness flag before applying the shift and mask.

depth
uint[4] depth;

the depth in bits for each component

description
const(char)* description;

use readable description of the format

flags
GstVideoFormatFlags flags;

#GstVideoFormatFlags

format
GstVideoFormat format;

#GstVideoFormat

hSub
uint[4] hSub;

subsampling factor of the height for the component. Use GST_VIDEO_SUB_SCALE to scale a height.

nComponents
uint nComponents;

the number of components in the video format.

nPlanes
uint nPlanes;

the number of planes for this format. The number of planes can be less than the amount of components when multiple components are packed into one plane.

name
const(char)* name;

string representation of the format

packFunc
GstVideoFormatPack packFunc;

an pack function for this format

packLines
int packLines;

the amount of lines that will be packed

pixelStride
int[4] pixelStride;

the pixel stride of each component. This is the amount of bytes to the pixel immediately to the right. When bits < 8, the stride is expressed in bits. For 24-bit RGB, this would be 3 bytes, for example, while it would be 4 bytes for RGBx or ARGB.

plane
uint[4] plane;

the plane number where a component can be found

poffset
uint[4] poffset;

the offset in the plane where the first pixel of the components can be found.

shift
uint[4] shift;

the number of bits to shift away to get the component data

tileHs
uint tileHs;

The height of a tile, in bytes, represented as a shift. DEPREACTED, use tile_info[] array instead.

tileInfo
GstVideoTileInfo[4] tileInfo;

Information about the tiles for each of the planes.

tileMode
GstVideoTileMode tileMode;

The tiling mode

tileWs
uint tileWs;

The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead.

unpackFormat
GstVideoFormat unpackFormat;

the format of the unpacked pixels. This format must have the #GST_VIDEO_FORMAT_FLAG_UNPACK flag set.

unpackFunc
GstVideoFormatUnpack unpackFunc;

an unpack function for this format

wSub
uint[4] wSub;

subsampling factor of the width for the component. Use GST_VIDEO_SUB_SCALE to scale a width.