a #GstVideoFormatInfo
flags to control the packing
a source array
the source array stride
pointers to the destination data planes
strides of the destination planes
the chroma siting of the target when subsampled (not used)
the y position in the image to pack to
the amount of pixels to pack.
Packs
width
pixels fromsrc
to the given planes and strides in the formatinfo
. The pixels from source have each component interleaved and will be packed into the planes indata
.This function operates on pack_lines lines, meaning that
src
should contain at least pack_lines lines with a stride ofsstride
andy
should be a multiple of pack_lines.Subsampled formats will use the horizontally and vertically cosited component from the source. Subsampling should be performed before packing.
Because this function does not have a x coordinate, it is not possible to pack pixels starting from an unaligned position. For tiled images this means that packing should start from a tile coordinate. For subsampled formats this means that a complete pixel needs to be packed.