GstGL.GLBaseMemory¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
alloc_data |
r |
||
alloc_size |
r |
||
context |
r/w |
the |
|
data |
r/w |
||
gl_map_count |
r/w |
||
lock |
r/w |
||
map_count |
r/w |
||
map_flags |
r/w |
||
mem |
r/w |
the parent object |
|
notify |
r |
||
query |
r/w |
||
user_data |
r |
Methods¶
class |
|
class |
|
|
|
|
Details¶
- class GstGL.GLBaseMemory¶
GstGL.GLBaseMemoryis aGst.Memorysubclass providing the basis of support for the mapping of GL buffers.Data is uploaded or downloaded from the GPU as is necessary.
- classmethod alloc(allocator, params)[source]¶
- Parameters:
allocator (
GstGL.GLBaseMemoryAllocator) – aGstGL.GLBaseMemoryAllocatorparams (
GstGL.GLAllocationParams) – theGstGL.GLAllocationParamsto allocate the memory with
- Returns:
a new
GstGL.GLBaseMemoryfrom allocator with the requested params.- Return type:
New in version 1.8.
- classmethod init_once()[source]¶
Initializes the GL Base Memory allocator. It is safe to call this function multiple times. This must be called before any other
GstGL.GLBaseMemoryoperation.New in version 1.8.
- init(allocator, parent, context, params, size, user_data, notify)[source]¶
- Parameters:
allocator (
Gst.Allocator) – theGst.Allocatorto initialize withparent (
Gst.MemoryorNone) – the parentGst.Memoryto initialize withcontext (
GstGL.GLContext) – theGstGL.GLContextto initialize withparams (
Gst.AllocationParamsorNone) – the GstAllocationParams to initialize withsize (
int) – the number of bytes to be allocatednotify (
GLib.DestroyNotifyorNone) – aGLib.DestroyNotify
Initializes self with the required parameters
New in version 1.8.
- memcpy(dest, offset, size)[source]¶
- Parameters:
dest (
GstGL.GLBaseMemory) – the destinationGstGL.GLBaseMemoryoffset (
int) – the offset to start atsize (
int) – the number of bytes to copy
- Returns:
whether the copy succeeded.
- Return type:
New in version 1.8.