bufferAddVideoMeta

fngstvideo.video_meta.VideoMeta bufferAddVideoMeta(gst.buffer.Buffer buffer, gstvideo.types.VideoFrameFlags flags, gstvideo.types.VideoFormat format, uint width, uint height) nothrow

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

buffera #GstBuffer
flags#GstVideoFrameFlags
formata #GstVideoFormat
widththe width
heightthe height

Returns

the #GstVideoMeta on buffer.