VideoFrame.mapId

Use info and buffer to fill in the values of frame with the video frame information of frame id.

When id is -1, the default frame is mapped. When id != -1, this function will return false when there is no GstVideoMeta with that id.

All video planes of buffer will be mapped and the pointers will be set in frame->data.

Parameters

frame gstvideo.video_frame.VideoFrame

pointer to #GstVideoFrame

info gstvideo.video_info.VideoInfo

a #GstVideoInfo

buffer gst.buffer.Buffer

the buffer to map

id int

the frame id to map

flags gst.types.MapFlags

#GstMapFlags

Return Value

Type: bool

true on success.