VideoFrame.mapId
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.
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 | pointer to #GstVideoFrame |
info | a #GstVideoInfo |
buffer | the buffer to map |
id | the frame id to map |
flags | #GstMapFlags |
Returns
true on success.