gl, wayland: mark more declared functions with GST_EXPORT

This commit is contained in:
Tim-Philipp Müller 2017-08-10 09:09:22 +01:00
parent a50c09ac26
commit fbb62097e7
7 changed files with 46 additions and 5 deletions

View file

@ -31,7 +31,8 @@
G_BEGIN_DECLS
GType gst_egl_image_get_type (void);
GST_EXPORT GType gst_egl_image_get_type (void);
#define GST_TYPE_EGL_IMAGE (gst_egl_image_get_type())
#define GST_IS_EGL_IMAGE(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_EGL_IMAGE))
#define GST_EGL_IMAGE_CAST(obj) ((GstEGLImage *)(obj))
@ -70,17 +71,21 @@ struct _GstEGLImage
gpointer _padding[GST_PADDING];
};
GST_EXPORT
GstEGLImage * gst_egl_image_new_wrapped (GstGLContext * context,
EGLImageKHR image,
GstGLFormat format,
gpointer user_data,
GstEGLImageDestroyNotify user_data_destroy);
GST_EXPORT
EGLImageKHR gst_egl_image_get_image (GstEGLImage * image);
GST_EXPORT
GstEGLImage * gst_egl_image_from_texture (GstGLContext * context,
GstGLMemory * gl_mem,
guintptr * attribs);
#if GST_GL_HAVE_DMABUF
GST_EXPORT
GstEGLImage * gst_egl_image_from_dmabuf (GstGLContext * context,
gint dmabuf,
GstVideoInfo * in_info,

View file

@ -27,6 +27,7 @@
G_BEGIN_DECLS
GST_EXPORT
GType gst_gl_display_egl_get_type (void);
#define GST_TYPE_GL_DISPLAY_EGL (gst_gl_display_egl_get_type())
@ -64,9 +65,16 @@ struct _GstGLDisplayEGLClass
gpointer _padding[GST_PADDING];
};
GST_EXPORT
GstGLDisplayEGL *gst_gl_display_egl_new (void);
GST_EXPORT
GstGLDisplayEGL *gst_gl_display_egl_new_with_egl_display (EGLDisplay display);
GST_EXPORT
GstGLDisplayEGL *gst_gl_display_egl_from_gl_display (GstGLDisplay * display);
GST_EXPORT
EGLDisplay gst_gl_display_egl_get_from_native (GstGLDisplayType type, guintptr display);
#define GST_GL_DISPLAY_EGL_NAME "gst.gl.display.egl"

View file

@ -36,7 +36,7 @@
G_BEGIN_DECLS
#define GST_TYPE_GL_MEMORY_EGL_ALLOCATOR (gst_gl_memory_egl_allocator_get_type())
GType gst_gl_memory_egl_allocator_get_type(void);
GST_EXPORT GType gst_gl_memory_egl_allocator_get_type(void);
#define GST_IS_GL_MEMORY_EGL_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GL_MEMORY_EGL_ALLOCATOR))
#define GST_IS_GL_MEMORY_EGL_ALLOCATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GL_MEMORY_EGL_ALLOCATOR))
@ -67,10 +67,16 @@ struct _GstGLMemoryEGL
*/
#define GST_GL_MEMORY_EGL_ALLOCATOR_NAME "GLMemoryEGL"
GST_EXPORT
void gst_gl_memory_egl_init_once (void);
GST_EXPORT
gboolean gst_is_gl_memory_egl (GstMemory * mem);
GST_EXPORT
EGLImageKHR gst_gl_memory_egl_get_image (GstGLMemoryEGL * mem);
GST_EXPORT
EGLDisplay gst_gl_memory_egl_get_display (GstGLMemoryEGL * mem);
/**

View file

@ -139,8 +139,11 @@ GST_EXPORT
gboolean gst_gl_display_add_context (GstGLDisplay * display,
GstGLContext * context);
GST_EXPORT
GstGLWindow * gst_gl_display_create_window (GstGLDisplay * display);
GST_EXPORT
gboolean gst_gl_display_remove_window (GstGLDisplay * display, GstGLWindow * window);
GST_EXPORT
GstGLWindow * gst_gl_display_find_window (GstGLDisplay * display, gpointer data, GCompareFunc compare_func);
G_END_DECLS

View file

@ -30,7 +30,7 @@
G_BEGIN_DECLS
#define GST_TYPE_GL_RENDERBUFFER_ALLOCATOR (gst_gl_renderbuffer_allocator_get_type())
GType gst_gl_renderbuffer_allocator_get_type(void);
GST_EXPORT GType gst_gl_renderbuffer_allocator_get_type(void);
#define GST_IS_GL_RENDERBUFFER_ALLOCATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GL_RENDERBUFFER_ALLOCATOR))
#define GST_IS_GL_RENDERBUFFER_ALLOCATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GL_RENDERBUFFER_ALLOCATOR))
@ -102,7 +102,7 @@ struct _GstGLRenderbufferAllocatorClass
#include <gst/gl/gstglbasememory.h>
GType gst_gl_renderbuffer_allocation_params_get_type (void);
GST_EXPORT GType gst_gl_renderbuffer_allocation_params_get_type (void);
#define GST_TYPE_RENDERBUFFER_ALLOCATION_PARAMS (gst_gl_renderbuffer_allocation_params_get_type)
typedef struct
@ -117,12 +117,14 @@ typedef struct
gpointer _padding[GST_PADDING];
} GstGLRenderbufferAllocationParams;
GST_EXPORT
GstGLRenderbufferAllocationParams * gst_gl_renderbuffer_allocation_params_new (GstGLContext * context,
GstAllocationParams * alloc_params,
GstGLFormat renderbuffer_format,
guint width,
guint height);
GST_EXPORT
GstGLRenderbufferAllocationParams * gst_gl_renderbuffer_allocation_params_new_wrapped (GstGLContext * context,
GstAllocationParams * alloc_params,
GstGLFormat renderbuffer_format,
@ -132,13 +134,23 @@ GstGLRenderbufferAllocationParams * gst_gl_renderbuffer_allocation_params_ne
gpointer user_data,
GDestroyNotify notify);
GST_EXPORT
void gst_gl_renderbuffer_init_once (void);
GST_EXPORT
gboolean gst_is_gl_renderbuffer (GstMemory * mem);
/* accessors */
GST_EXPORT
gint gst_gl_renderbuffer_get_width (GstGLRenderbuffer * gl_mem);
GST_EXPORT
gint gst_gl_renderbuffer_get_height (GstGLRenderbuffer * gl_mem);
GST_EXPORT
GstGLFormat gst_gl_renderbuffer_get_format (GstGLRenderbuffer * gl_mem);
GST_EXPORT
guint gst_gl_renderbuffer_get_id (GstGLRenderbuffer * gl_mem);
G_END_DECLS

View file

@ -30,7 +30,7 @@
G_BEGIN_DECLS
GType gst_gl_display_wayland_get_type (void);
GST_EXPORT GType gst_gl_display_wayland_get_type (void);
#define GST_TYPE_GL_DISPLAY_WAYLAND (gst_gl_display_wayland_get_type())
#define GST_GL_DISPLAY_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_DISPLAY_WAYLAND,GstGLDisplayWayland))
@ -71,7 +71,10 @@ struct _GstGLDisplayWaylandClass
gpointer _padding[GST_PADDING];
};
GST_EXPORT
GstGLDisplayWayland *gst_gl_display_wayland_new (const gchar * name);
GST_EXPORT
GstGLDisplayWayland *gst_gl_display_wayland_new_with_display (struct wl_display *display);
G_END_DECLS

View file

@ -30,6 +30,7 @@
G_BEGIN_DECLS
GST_EXPORT
GType gst_gl_display_x11_get_type (void);
#define GST_TYPE_GL_DISPLAY_X11 (gst_gl_display_x11_get_type())
@ -68,7 +69,10 @@ struct _GstGLDisplayX11Class
gpointer _padding[GST_PADDING];
};
GST_EXPORT
GstGLDisplayX11 *gst_gl_display_x11_new (const gchar * name);
GST_EXPORT
GstGLDisplayX11 *gst_gl_display_x11_new_with_display (Display *display);
G_END_DECLS