mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
gl: add necessary get_type() functions for allocation params structures
All using the existing GstGLAllocationParams infrastructure
This commit is contained in:
parent
e4345d7be4
commit
a1f2da88bf
9 changed files with 37 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -345,6 +345,11 @@ _gst_gl_buffer_allocation_params_free_data (GstGLBufferAllocationParams *
|
|||
gst_gl_allocation_params_free_data (¶ms->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
|
||||
|
|
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue