gl: Mark GL memory GType functions as deprecated
authorSebastian Dröge <sebastian@centricular.com>
Mon, 21 Feb 2022 12:23:27 +0000 (14:23 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 21 Feb 2022 21:26:43 +0000 (21:26 +0000)
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>

12 files changed:
subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglmemoryegl.c
subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglmemoryegl.h
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasememory.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasememory.h
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbuffer.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbuffer.h
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmemory.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmemory.h
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmemorypbo.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmemorypbo.h
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglrenderbuffer.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglrenderbuffer.h

index 9ab3c07..6813ece 100644 (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:
index 2ee8f1a..b8a18be 100644 (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
index 746bd30..e182eb6 100644 (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:
index 7582cf9..198c629 100644 (file)
 
 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())
index f60c710..612d054 100644 (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;
 
index 4cc7f9b..860dce3 100644 (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
index dbc765a..9cb0787 100644 (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
 {
index daea4d1..8dff412 100644 (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
index 13fdba3..c06f4ba 100644 (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
 {
index f40ca4f..7df55ae 100644 (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
index 189c11a..b438f5d 100644 (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,
index f775287..46bdc75 100644 (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