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

framepointer to #GstVideoFrame
infoa #GstVideoInfo
bufferthe buffer to map
idthe frame id to map
flags#GstMapFlags

Returns

true on success.