Memory.map

Fill info with the pointer and sizes of the memory in mem that can be accessed according to flags.

This function can return false for various reasons:

  • the memory backed by mem is not accessible with the given flags.
  • the memory was already mapped with a different mapping.

info and its contents remain valid for as long as mem is valid and until gst.memory.Memory.unmap is called.

For each gst.memory.Memory.map call, a corresponding gst.memory.Memory.unmap call should be done.

Parameters

info gst.map_info.MapInfo

pointer for info

flags gst.types.MapFlags

mapping flags

Return Value

Type: bool

true if the map operation was successful.