| Top |
| #define | GST_GL_MEMORY_ALLOCATOR() |
| void | gst_gl_memory_init () |
| gboolean | gst_gl_memory_setup_buffer () |
| GstVideoGLTextureType | gst_gl_texture_type_from_format () |
| gboolean | gst_is_gl_memory () |
GstGLMemory is a GstGLBaseBuffer subclass providing support for the mapping of GL textures.
GstGLMemory is created through gst_gl_memory_alloc() or system memory can
be wrapped through gst_gl_memory_wrapped().
Data is uploaded or downloaded from the GPU as is necessary.
#define GST_GL_MEMORY_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GL_MEMORY_ALLOCATOR, GstGLMemoryAllocator))
void gst_gl_memory_init (GstGLMemory *mem,GstAllocator *allocator,GstMemory *parent,GstGLContext *context,GstGLTextureTarget target,GstAllocationParams *params,GstVideoInfo *info,guint plane,GstVideoAlignment *valign,gpointer user_data,GDestroyNotify notify);
Initializes mem
with the required parameters
mem |
the GstGLBaseMemory to initialize |
|
allocator |
the GstAllocator to initialize with |
|
parent |
the parent GstMemory to initialize with. |
[allow-none] |
context |
the GstGLContext to initialize with |
|
params |
the |
[allow-none] |
size |
the number of bytes to be allocated |
|
notify |
[allow-none] | |
user_data |
user data to call |
[allow-none] |
gboolean gst_gl_memory_setup_buffer (GstGLMemoryAllocator *allocator,GstBuffer *buffer,GstGLVideoAllocationParams *params);
allocator |
the |
|
buffer |
a GstBuffer to setup |
|
params |
the GstGLVideoAllocationParams to allocate with |
GstVideoGLTextureType gst_gl_texture_type_from_format (GstGLContext *context,GstVideoFormat v_format,guint plane);
typedef struct {
GstGLBaseMemory mem;
guint tex_id;
GstGLTextureTarget tex_target;
GstVideoGLTextureType tex_type;
GstVideoInfo info;
GstVideoAlignment valign;
guint plane;
gfloat tex_scaling[2];
} GstGLMemory;
Represents information about a GL texture
the parent object |
||
guint |
the GL texture id for this memory |
|
the GL texture target for this memory |
||
the texture type |
||
GstVideoInfo |
the texture's GstVideoInfo |
|
GstVideoAlignment |
data alignment for system memory mapping |
|
guint |
data plane in |
|
gfloat |
GL shader scaling parameters for |