v4l2: allocator: G_TYPE defined for GstV4l2MemoryGroup

This is needed to pass the GstV4l2MemoryGroup structure through
a glib signal.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8454>
This commit is contained in:
sergey radionov 2025-02-11 11:03:18 +07:00 committed by GStreamer Marge Bot
parent 3d525f9b65
commit 5577174668
2 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,7 @@
#define gst_v4l2_allocator_parent_class parent_class
G_DEFINE_TYPE (GstV4l2Allocator, gst_v4l2_allocator, GST_TYPE_ALLOCATOR);
G_DEFINE_POINTER_TYPE (GstV4l2MemoryGroup, gst_v4l2_memory_group);
GST_DEBUG_CATEGORY_STATIC (v4l2allocator_debug);
#define GST_CAT_DEFAULT v4l2allocator_debug

View File

@ -29,6 +29,7 @@
G_BEGIN_DECLS
#define GST_TYPE_V4L2_MEMORY_GROUP (gst_v4l2_memory_group_get_type())
#define GST_TYPE_V4L2_ALLOCATOR (gst_v4l2_allocator_get_type())
#define GST_IS_V4L2_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_V4L2_ALLOCATOR))
#define GST_IS_V4L2_ALLOCATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_V4L2_ALLOCATOR))
@ -111,6 +112,8 @@ struct _GstV4l2AllocatorClass {
GstAllocatorClass parent_class;
};
GType gst_v4l2_memory_group_get_type(void);
GType gst_v4l2_allocator_get_type(void);
gboolean gst_is_v4l2_memory (GstMemory * mem);