the paddings and alignment constraints of the video buffer.
It is up to the caller of gst_buffer_add_video_meta_full()
to set it
using gst_video_meta_set_alignment(), if they did not it defaults
to no padding and no alignment. Since: 1.18
the buffer this metadata belongs to
additional video flags
the video format
the video height
identifier of the frame
parent #GstMeta
the number of planes in the image
array of offsets for the planes. This field might not always be
valid, it is used by the default implementation of map
.
array of strides for the planes. This field might not always be
valid, it is used by the default implementation of map
.
the video width
Compute the padded height of each plane from meta
(padded size
divided by stride).
It is not valid to call this function with a meta associated to a TILED video format.
Compute the size, in bytes, of each video plane described in meta
including
any padding and alignment constraint defined in meta->
alignment.
Set the alignment of meta
to alignment
. This function checks that
the paddings defined in alignment
are compatible with the strides
defined in meta
and will fail to update if they are not.
a #GstVideoAlignment
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_add_allocation_meta() when handling the ALLOCATION query. This structure should be named 'video-meta' and can have the following fields: