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.GLBaseMemory
is aGst.Memory
subclass 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.GLBaseMemoryAllocator
params (
GstGL.GLAllocationParams
) – theGstGL.GLAllocationParams
to allocate the memory with
- Returns:
a new
GstGL.GLBaseMemory
from 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.GLBaseMemory
operation.New in version 1.8.
- init(allocator, parent, context, params, size, user_data, notify)[source]¶
- Parameters:
allocator (
Gst.Allocator
) – theGst.Allocator
to initialize withparent (
Gst.Memory
orNone
) – the parentGst.Memory
to initialize withcontext (
GstGL.GLContext
) – theGstGL.GLContext
to initialize withparams (
Gst.AllocationParams
orNone
) – the GstAllocationParams to initialize withsize (
int
) – the number of bytes to be allocatednotify (
GLib.DestroyNotify
orNone
) – aGLib.DestroyNotify
Initializes self with the required parameters
New in version 1.8.
- memcpy(dest, offset, size)[source]¶
- Parameters:
dest (
GstGL.GLBaseMemory
) – the destinationGstGL.GLBaseMemory
offset (
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.