GstGLBuffer

GstGLBuffer

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstAllocator
                ╰── GstGLBaseMemoryAllocator
                    ╰── GstGLBufferAllocator

Description

Functions

gst_gl_buffer_init_once ()

void
gst_gl_buffer_init_once (void);

gst_is_gl_buffer ()

gboolean
gst_is_gl_buffer (GstMemory *mem);

gst_gl_buffer_alloc ()

GstGLBuffer *
gst_gl_buffer_alloc (GstGLContext *context,
                     guint gl_target,
                     guint gl_usage,
                     GstAllocationParams *params,
                     gsize maxsize);

gst_gl_buffer_allocation_params_new ()

GstGLBufferAllocationParams *
gst_gl_buffer_allocation_params_new (GstGLContext *context,
                                     gsize alloc_size,
                                     GstAllocationParams *alloc_params,
                                     guint gl_target,
                                     guint gl_usage);

Types and Values

GstGLBuffer

typedef struct {
  GstGLBaseMemory       mem;

  guint                 id;
  guint                 target;         /* XXX: put this in the allocator? */
  guint                 usage_hints;     /* XXX: put this in the allocator? */
} GstGLBuffer;

struct GstGLBufferAllocationParams

struct GstGLBufferAllocationParams {
  GstGLAllocationParams     parent;

  guint                     gl_target;
  guint                     gl_usage;
};

GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER

#define GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER (1 << 4)

GstGLBufferAllocator

typedef struct _GstGLBufferAllocator GstGLBufferAllocator;

GstGLBufferAllocatorClass

typedef struct {
  GstGLBaseMemoryAllocatorClass parent_class;
} GstGLBufferAllocatorClass;

GST_GL_BUFFER_ALLOCATOR_NAME

#define GST_GL_BUFFER_ALLOCATOR_NAME   "GLBuffer"

GST_CAPS_FEATURE_MEMORY_GL_BUFFER

#define GST_CAPS_FEATURE_MEMORY_GL_BUFFER "memory:GLBuffer"