Copy the contents from src to dest.
Copy the plane with index plane from src to dest.
Unmap the memory previously mapped with gst_video_frame_map.
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.
Use info and buffer to fill in the values of frame with the video frame information of frame id.
A video frame obtained from gstvideo.video_frame.VideoFrame.map