Functions
gst_gl_video_allocation_params_init_full ()
gboolean
gst_gl_video_allocation_params_init_full
(GstGLVideoAllocationParams *params,
gsize struct_size,
guint alloc_flags,
GstGLAllocationParamsCopyFunc copy,
GstGLAllocationParamsFreeFunc free,
GstGLContext *context,
GstAllocationParams *alloc_params,
GstVideoInfo *v_info,
guint plane,
GstVideoAlignment *valign,
GstGLTextureTarget target,
GstVideoGLTextureType tex_type,
gpointer wrapped_data,
gpointer gl_handle,
gpointer user_data,
GDestroyNotify notify);
gst_gl_memory_init_once ()
void
gst_gl_memory_init_once (void);
gst_gl_memory_init ()
void
gst_gl_memory_init (GstGLMemory *mem,
GstAllocator *allocator,
GstMemory *parent,
GstGLContext *context,
GstGLTextureTarget target,
GstVideoGLTextureType tex_type,
GstAllocationParams *params,
GstVideoInfo *info,
guint plane,
GstVideoAlignment *valign,
gpointer user_data,
GDestroyNotify notify);
gst_gl_memory_texsubimage ()
void
gst_gl_memory_texsubimage (GstGLMemory *gl_mem,
gpointer read_pointer);
gst_gl_memory_get_texture_height ()
gint
gst_gl_memory_get_texture_height (GstGLMemory *gl_mem);
gst_gl_memory_get_texture_id ()
guint
gst_gl_memory_get_texture_id (GstGLMemory *gl_mem);
gst_gl_memory_get_texture_type ()
GstVideoGLTextureType
gst_gl_memory_get_texture_type (GstGLMemory *gl_mem);
gst_gl_memory_get_texture_width ()
gint
gst_gl_memory_get_texture_width (GstGLMemory *gl_mem);
Types and Values
GST_GL_MEMORY_VIDEO_FORMATS_STR
#define GST_GL_MEMORY_VIDEO_FORMATS_STR
struct GstGLVideoAllocationParams
struct GstGLVideoAllocationParams {
GstGLAllocationParams parent;
GstVideoInfo *v_info;
guint plane;
GstVideoAlignment *valign;
GstGLTextureTarget target;
GstVideoGLTextureType tex_type;
};
GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_VIDEO
#define GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_VIDEO (1 << 3)
GstGLMemoryAllocator
typedef struct _GstGLMemoryAllocator GstGLMemoryAllocator;
GstGLMemoryAllocatorClass
typedef struct {
GstGLBaseMemoryAllocatorClass parent_class;
GstGLBaseMemoryAllocatorMapFunction map;
GstGLBaseMemoryAllocatorCopyFunction copy;
GstGLBaseMemoryAllocatorUnmapFunction unmap;
} GstGLMemoryAllocatorClass;
GstGLMemory
typedef struct {
GstGLBaseMemory mem;
guint tex_id;
GstGLTextureTarget tex_target;
GstVideoGLTextureType tex_type;
GstVideoInfo info;
GstVideoAlignment valign;
guint plane;
gfloat tex_scaling[2];
} GstGLMemory;
GST_GL_MEMORY_ALLOCATOR_NAME
#define GST_GL_MEMORY_ALLOCATOR_NAME "GLMemory"