Compute the padded height of each plane from meta (padded size divided by stride).
Compute the size, in bytes, of each video plane described in meta including any padding and alignment constraint defined in meta->alignment.
Map the video plane with index plane in meta and return a pointer to the first byte of the plane and the stride of the plane.
Unmap a previously mapped plane with gstvideo.video_meta.VideoMeta.map.
Extra buffer metadata describing image properties
This meta can also be used by downstream elements to specifiy their buffer layout requirements for upstream. Upstream should try to fit those requirements, if possible, in order to prevent buffer copies.
This is done by passing a custom #GstStructure to gst.query.Query.addAllocationMeta when handling the ALLOCATION query. This structure should be named 'video-meta' and can have the following fields:
The padding fields have the same semantic as #GstVideoMeta.alignment and so represent the paddings requested on produced video buffers.
Since 1.24 it can be serialized using gst.meta.Meta.serialize and gst.meta.Meta.deserialize.