Allocate a new buffer that wraps the given memory. data must point to maxsize of memory, the wrapped buffer will have the region from offset and size visible.
When the buffer is destroyed, notify will be called with user_data.
The prefix/padding must be filled with 0 if flags contains GST_MEMORY_FLAG_ZERO_PREFIXED and GST_MEMORY_FLAG_ZERO_PADDED respectively.
GstMemoryFlags
data to wrap
allocated size of data
offset in data
user_data
called with user_data when the memory is freed
a new gstreamer.Buffer
ConstructionException GTK+ fails to create the object.
Allocate a new buffer that wraps the given memory. data must point to maxsize of memory, the wrapped buffer will have the region from offset and size visible.
When the buffer is destroyed, notify will be called with user_data.
The prefix/padding must be filled with 0 if flags contains GST_MEMORY_FLAG_ZERO_PREFIXED and GST_MEMORY_FLAG_ZERO_PADDED respectively.