bufferAddVideoMeta
fn
gstvideo.video_meta.VideoMeta bufferAddVideoMeta(gst.buffer.Buffer buffer, gstvideo.types.VideoFrameFlags flags, gstvideo.types.VideoFormat format, uint width, uint height)Attaches GstVideoMeta metadata to buffer with the given parameters and the default offsets and strides for format and width x height.
This function calculates the default offsets and strides and then calls [gstvideo.global.bufferAddVideoMetaFull] with them.
Parameters
buffer | a #GstBuffer |
flags | #GstVideoFrameFlags |
format | a #GstVideoFormat |
width | the width |
height | the height |
Returns
the #GstVideoMeta on buffer.