Gst.MapInfo

Fields

Name

Type

Access

Description

data

bytes

r/w

a pointer to the mapped data

flags

Gst.MapFlags

r/w

flags used when mapping the memory

maxsize

int

r/w

the maximum bytes in data

memory

Gst.Memory

r/w

a pointer to the mapped memory

size

int

r/w

the valid size in data

user_data

[object]

r/w

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

Methods

clear ()

get_data ()

init ()

Details

class Gst.MapInfo

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

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

clear()[source]

Release the memory obtained with Gst.Memory.map()

New in version 1.28.

get_data()[source]
Returns:

Data of self.

Return type:

bytes or None

New in version 1.28.

init()[source]

Initializes self.

New in version 1.28.