gstvideo.video_frame

Module for [VideoFrame] class

Types 1

A video frame obtained from [gstvideo.video_frame.VideoFrame.map]

Fields
GstVideoFrame _cInstance
Methods
void * _cPtr()
gstvideo.video_info.VideoInfo info() @propertyGet `info` field. Returns: the #GstVideoInfo
gstvideo.types.VideoFrameFlags flags() @propertyGet `flags` field. Returns: #GstVideoFrameFlags for the frame
void flags(gstvideo.types.VideoFrameFlags propval) @propertySet `flags` field. Params: propval = #GstVideoFrameFlags for the frame
gst.buffer.Buffer buffer() @propertyGet `buffer` field. Returns: the mapped buffer
void buffer(gst.buffer.Buffer propval) @propertySet `buffer` field. Params: propval = the mapped buffer
int id() @propertyGet `id` field. Returns: id of the mapped frame. the id can for example be used to identify the frame in case of multiview video.
void id(int propval) @propertySet `id` field. Params: propval = id of the mapped frame. the id can for example be used to identify the frame in case of multiview video.
bool copy(gstvideo.video_frame.VideoFrame src)Copy the contents from src to dest.
bool copyPlane(gstvideo.video_frame.VideoFrame src, uint plane)Copy the plane with index plane from src to dest.
void unmap()Unmap the memory previously mapped with gstvideoframe_map.
bool map(out gstvideo.video_frame.VideoFrame frame, gstvideo.video_info.VideoInfo info, gst.buffer.Buffer buffer, gst.types.MapFlags flags)Use info and buffer to fill in the values of frame. frame is usually allocated on the stack, and you will pass the address to the #GstVideoFrame structure allocated on the stack; [gstvideo.videofra...
bool mapId(out gstvideo.video_frame.VideoFrame frame, gstvideo.video_info.VideoInfo info, gst.buffer.Buffer buffer, int id, gst.types.MapFlags flags)Use info and buffer to fill in the values of frame with the video frame information of frame id.
Constructors
this(void * ptr, Flag!"Take" take)