Packs width pixels from src to the given planes and strides in the format info.
The pixels from source have each component interleaved and will be packed into the planes in data.
This function operates on pack_lines lines, meaning that src should contain at least pack_lines lines with a stride of
sstride and y 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.
| info | |
| flags |
flags to control the packing |
| src |
a source array |
| sstride |
the source array stride |
| data |
pointers to the destination data planes |
| stride |
strides of the destination planes |
| chroma_site |
the chroma siting of the target when subsampled (not used) |
| y |
the y position in the image to pack to |
| width |
the amount of pixels to pack. |