FormatUnpack


Description:

[ CCode ( has_target = false ) ]
public delegate void FormatUnpack (FormatInfo info, PackFlags flags, void* dest, void* data, int stride, int x, int y, int width)

Unpacks width pixels from the given planes and strides containing data of format info.

The pixels will be unpacked into dest with each component interleaved as per info's unpack_format, which will usually be one of ARGB, AYUV, ARGB64 or AYUV64 depending on the format to unpack. dest should at least be big enough to hold width * bytes_per_pixel bytes where bytes_per_pixel relates to the unpack format and will usually be either 4 or 8 depending on the unpack format. bytes_per_pixel will be the same as the pixel stride for plane 0 for the above formats.

For subsampled formats, the components will be duplicated in the destination array. Reconstruction of the missing components can be performed in a separate step after unpacking.

Parameters:

info

a FormatInfo

flags

flags to control the unpacking

dest

a destination array

data

pointers to the data planes

stride

strides of the planes

x

the x position in the image to start from

y

the y position in the image to start from

width

the amount of pixels to unpack.


Namespace: Gst.Video