map_id


Description:

public bool map_id (Info info, Buffer buffer, int id, 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:

info

a Info

buffer

the buffer to map

id

the frame id to map

flags

MapFlags

frame

pointer to Frame

Returns:

true on success.