mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
egl: Add a boxed type for GstEGLDisplay
This commit is contained in:
parent
26c1514491
commit
c645e41711
2 changed files with 7 additions and 0 deletions
|
@ -337,3 +337,7 @@ gst_egl_display_get (GstEGLDisplay * display)
|
||||||
return display->display;
|
return display->display;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G_DEFINE_BOXED_TYPE (GstEGLDisplay, gst_egl_display,
|
||||||
|
(GBoxedCopyFunc) gst_egl_display_ref,
|
||||||
|
(GBoxedFreeFunc) gst_egl_display_unref);
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,9 @@ GstMemory * gst_egl_image_allocator_alloc (GstAllocator * allocator, GstEGLDispl
|
||||||
GstMemory * gst_egl_image_allocator_wrap (GstAllocator * allocator, GstEGLDisplay * display, EGLImageKHR image, GstEGLImageType type, GstMemoryFlags flags, gsize size, gpointer user_data, GDestroyNotify user_data_destroy);
|
GstMemory * gst_egl_image_allocator_wrap (GstAllocator * allocator, GstEGLDisplay * display, EGLImageKHR image, GstEGLImageType type, GstMemoryFlags flags, gsize size, gpointer user_data, GDestroyNotify user_data_destroy);
|
||||||
|
|
||||||
/* EGLDisplay wrapper with refcount, connection is closed after last ref is gone */
|
/* EGLDisplay wrapper with refcount, connection is closed after last ref is gone */
|
||||||
|
#define GST_TYPE_EGL_DISPLAY (gst_egl_display_get_type())
|
||||||
|
GType gst_egl_display_get_type(void);
|
||||||
|
|
||||||
GstEGLDisplay * gst_egl_display_new (EGLDisplay display);
|
GstEGLDisplay * gst_egl_display_new (EGLDisplay display);
|
||||||
GstEGLDisplay * gst_egl_display_ref (GstEGLDisplay * display);
|
GstEGLDisplay * gst_egl_display_ref (GstEGLDisplay * display);
|
||||||
void gst_egl_display_unref (GstEGLDisplay * display);
|
void gst_egl_display_unref (GstEGLDisplay * display);
|
||||||
|
|
Loading…
Reference in a new issue