gl: add necessary get_type() functions for allocation params structures

All using the existing GstGLAllocationParams infrastructure
This commit is contained in:
Matthew Waters 2017-01-10 19:58:48 +11:00
parent e4345d7be4
commit a1f2da88bf
9 changed files with 37 additions and 2 deletions

View file

@ -39,11 +39,14 @@ gst_mpegts_stream_type_get_type
gst_insert_bin_get_type
gst_gl_buffer_allocator_get_type
gst_gl_base_memory_allocator_get_type
gst_gl_allocation_params_get_type
gst_gl_base_memory_allocator_get_type
gst_gl_buffer_allocation_params_get_type
gst_gl_buffer_allocator_get_type
gst_gl_video_allocation_params_get_type
gst_gl_memory_allocator_get_type
gst_gl_memory_pbo_allocator_get_type
gst_gl_renderbuffer_allocation_params_get_type
gst_gl_renderbuffer_allocator_get_type
gst_gl_base_filter_get_type
gst_gl_buffer_pool_get_type

View file

@ -46,6 +46,8 @@
GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_BASE_MEMORY);
#define GST_CAT_DEFUALT GST_CAT_GL_BASE_MEMORY
GST_DEFINE_MINI_OBJECT_TYPE (GstGLBaseMemory, gst_gl_base_memory);
GQuark
gst_gl_base_memory_error_quark (void)
{

View file

@ -29,6 +29,10 @@
G_BEGIN_DECLS
#define GST_TYPE_GL_BASE_MEMORY (gst_gl_base_memory_get_type())
GST_EXPORT
GType gst_gl_base_memory_get_type(void);
#define GST_TYPE_GL_BASE_MEMORY_ALLOCATOR (gst_gl_base_memory_allocator_get_type())
GST_EXPORT
GType gst_gl_base_memory_allocator_get_type(void);

View file

@ -345,6 +345,11 @@ _gst_gl_buffer_allocation_params_free_data (GstGLBufferAllocationParams *
gst_gl_allocation_params_free_data (&params->parent);
}
G_DEFINE_BOXED_TYPE (GstGLBufferAllocationParams,
gst_gl_buffer_allocation_params,
(GBoxedCopyFunc) gst_gl_allocation_params_copy,
(GBoxedFreeFunc) gst_gl_allocation_params_free);
/**
* gst_gl_buffer_allocation_params_new:
* @context: a #GstGLContext

View file

@ -60,6 +60,10 @@ struct _GstGLBuffer
typedef struct _GstGLBufferAllocationParams GstGLBufferAllocationParams;
#define GST_TYPE_GL_BUFFER_ALLOCATION_PARAMS (gst_gl_buffer_allocation_params_get_type())
GST_EXPORT
GType gst_gl_buffer_allocation_params_get_type (void);
#define GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER (1 << 4)
/**

View file

@ -1043,6 +1043,10 @@ gst_is_gl_memory (GstMemory * mem)
GST_TYPE_GL_MEMORY_ALLOCATOR);
}
G_DEFINE_BOXED_TYPE (GstGLVideoAllocationParams, gst_gl_video_allocation_params,
(GBoxedCopyFunc) gst_gl_allocation_params_copy,
(GBoxedFreeFunc) gst_gl_allocation_params_free);
static void
_gst_gl_video_allocation_params_set_video_alignment (GstGLVideoAllocationParams
* params, GstVideoAlignment * valign)

View file

@ -83,6 +83,11 @@ struct _GstGLMemory
gpointer _padding[GST_PADDING];
};
#define GST_TYPE_GL_VIDEO_ALLOCATION_PARAMS (gst_gl_video_allocation_params_get_type())
GST_EXPORT
GType gst_gl_video_allocation_params_get_type (void);
typedef struct _GstGLVideoAllocationParams GstGLVideoAllocationParams;
#define GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_VIDEO (1 << 3)

View file

@ -334,6 +334,11 @@ gst_is_gl_renderbuffer (GstMemory * mem)
GST_TYPE_GL_RENDERBUFFER_ALLOCATOR);
}
G_DEFINE_BOXED_TYPE (GstGLRenderbufferAllocationParams,
gst_gl_renderbuffer_allocation_params,
(GBoxedCopyFunc) gst_gl_allocation_params_copy,
(GBoxedFreeFunc) gst_gl_allocation_params_free);
static void
_gst_gl_rb_alloc_params_free_data (GstGLRenderbufferAllocationParams * params)
{

View file

@ -102,6 +102,9 @@ struct _GstGLRenderbufferAllocatorClass
#include <gst/gl/gstglbasememory.h>
GType gst_gl_renderbuffer_allocation_params_get_type (void);
#define GST_TYPE_RENDERBUFFER_ALLOCATION_PARAMS (gst_gl_renderbuffer_allocation_params_get_type)
typedef struct
{
GstGLAllocationParams parent;