MapInfo

class MapInfo(*args, **kwargs)

A structure containing the result of a map operation such as map(). It contains the data and size.

MapInfo cannot be used with g_auto() because it is ambiguous whether it needs to be unmapped using unmap() or unmap(). Instead, GstBufferMapInfo and GstMemoryMapInfo can be used in that case.

Fields

class MapInfo
data

A pointer to the mapped data

flags

Flags used when mapping the memory

maxsize

The maximum bytes in data

memory

A pointer to the mapped memory

size

The valid size in data

user_data

Extra private user_data that the implementation of the memory can use to store extra info.