VideoFrame

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

Members

Functions

copy
bool copy(gstvideo.video_frame.VideoFrame src)

Copy the contents from src to dest.

copyPlane
bool copyPlane(gstvideo.video_frame.VideoFrame src, uint plane)

Copy the plane with index plane from src to dest.

unmap
void unmap()

Unmap the memory previously mapped with gst_video_frame_map.

Static functions

map
bool map(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.video_frame.VideoFrame.map will then fill in the structures with the various video-specific information you need to access the pixels of the video buffer. You can then use accessor macros such as GST_VIDEO_FRAME_COMP_DATA(), GST_VIDEO_FRAME_PLANE_DATA(), GST_VIDEO_FRAME_COMP_STRIDE(), GST_VIDEO_FRAME_PLANE_STRIDE() etc. to get to the pixels.

mapId
bool mapId(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.