gl: Mark GL memory GType functions as deprecated

They can't be used in any useful way. The type of every GstMemory is
always GST_TYPE_MEMORY and the subtyping relationship has to be
implemented on top of that via the associated allocator and mem_type
string.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1764>
This commit is contained in:
Sebastian Dröge 2022-02-21 14:23:27 +02:00 committed by GStreamer Marge Bot
parent bd867aea4f
commit a10b35c011
12 changed files with 28 additions and 6 deletions

View file

@ -55,7 +55,9 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_MEMORY);
G_DEFINE_TYPE (GstGLMemoryEGLAllocator, gst_gl_memory_egl_allocator,
GST_TYPE_GL_MEMORY_ALLOCATOR);
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLMemoryEGL, gst_gl_memory_egl);
#endif
/**
* gst_is_gl_memory_egl:

View file

@ -69,9 +69,10 @@ struct _GstGLMemoryEGL
* GST_TYPE_GL_MEMORY_EGL:
*
* Since: 1.20
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_MEMORY_EGL (gst_gl_memory_egl_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_memory_egl_get_type(void);
GST_GL_API

View file

@ -51,7 +51,9 @@
GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_BASE_MEMORY);
#define GST_CAT_DEFUALT GST_CAT_GL_BASE_MEMORY
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLBaseMemory, gst_gl_base_memory);
#endif
/**
* gst_gl_base_memory_error_quark:

View file

@ -29,8 +29,13 @@
G_BEGIN_DECLS
/**
* GST_TYPE_GL_BASE_MEMORY:
*
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_BASE_MEMORY (gst_gl_base_memory_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_base_memory_get_type(void);
#define GST_TYPE_GL_BASE_MEMORY_ALLOCATOR (gst_gl_base_memory_allocator_get_type())

View file

@ -84,7 +84,9 @@
GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_BUFFER);
#define GST_CAT_DEFUALT GST_CAT_GL_BUFFER
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLBuffer, gst_gl_buffer);
#endif
static GstAllocator *_gl_buffer_allocator;

View file

@ -135,9 +135,10 @@ struct _GstGLBufferAllocatorClass
* GST_TYPE_GL_BUFFER:
*
* Since: 1.20
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_BUFFER (gst_gl_buffer_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_buffer_get_type(void);
GST_GL_API

View file

@ -88,7 +88,9 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_MEMORY);
G_DEFINE_TYPE (GstGLMemoryAllocator, gst_gl_memory_allocator,
GST_TYPE_GL_BASE_MEMORY_ALLOCATOR);
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLMemory, gst_gl_memory);
#endif
typedef struct
{

View file

@ -253,9 +253,10 @@ struct _GstGLMemoryAllocatorClass
* GST_TYPE_GL_MEMORY:
*
* Since: 1.20
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_MEMORY (gst_gl_memory_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_memory_get_type(void);
GST_GL_API

View file

@ -104,7 +104,9 @@ static GstAllocator *_gl_allocator;
G_DEFINE_TYPE (GstGLMemoryPBOAllocator, gst_gl_memory_pbo_allocator,
GST_TYPE_GL_MEMORY_ALLOCATOR);
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLMemoryPBO, gst_gl_memory_pbo);
#endif
typedef struct
{

View file

@ -63,9 +63,10 @@ struct _GstGLMemoryPBO
* GST_TYPE_GL_MEMORY_PBO
*
* Since: 1.20
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_MEMORY_PBO (gst_gl_memory_pbo_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_memory_pbo_get_type(void);
GST_GL_API

View file

@ -59,7 +59,9 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_GL_RENDERBUFFER);
G_DEFINE_TYPE (GstGLRenderbufferAllocator, gst_gl_renderbuffer_allocator,
GST_TYPE_GL_BASE_MEMORY_ALLOCATOR);
#ifndef GST_REMOVE_DEPRECATED
GST_DEFINE_MINI_OBJECT_TYPE (GstGLRenderbuffer, gst_gl_renderbuffer);
#endif
static guint
_new_renderbuffer (GstGLContext * context, guint format, guint width,

View file

@ -147,9 +147,10 @@ GstGLRenderbufferAllocationParams * gst_gl_renderbuffer_allocation_params_ne
* GST_TYPE_GL_RENDERBUFFER:
*
* Since: 1.20
* Deprecated: 1.22: This type has no use.
*/
#define GST_TYPE_GL_RENDERBUFFER (gst_gl_renderbuffer_get_type())
GST_GL_API
GST_GL_DEPRECATED
GType gst_gl_renderbuffer_get_type(void);
GST_GL_API