1 | /* |
2 | * GStreamer |
3 | * Copyright (C) 2014 Matthew Waters <ystreet00@gmail.com> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public |
16 | * License along with this library; if not, write to the |
17 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
18 | * Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef __GST_GL_DISPLAY_EGL_H__ |
22 | #define __GST_GL_DISPLAY_EGL_H__ |
23 | |
24 | #include <gst/gl/gstgldisplay.h> |
25 | |
26 | G_BEGIN_DECLS |
27 | |
28 | GST_GL_API |
29 | GType gst_gl_display_egl_get_type (void); |
30 | |
31 | #define GST_TYPE_GL_DISPLAY_EGL (gst_gl_display_egl_get_type()) |
32 | #define GST_GL_DISPLAY_EGL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_DISPLAY_EGL,GstGLDisplayEGL)) |
33 | #define GST_GL_DISPLAY_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_GL_DISPLAY_EGL,GstGLDisplayEGLClass)) |
34 | #define GST_IS_GL_DISPLAY_EGL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_DISPLAY_EGL)) |
35 | #define GST_IS_GL_DISPLAY_EGL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_GL_DISPLAY_EGL)) |
36 | #define GST_GL_DISPLAY_EGL_CAST(obj) ((GstGLDisplayEGL*)(obj)) |
37 | |
38 | typedef struct _GstGLDisplayEGL GstGLDisplayEGL; |
39 | typedef struct _GstGLDisplayEGLClass GstGLDisplayEGLClass; |
40 | |
41 | /** |
42 | * GstGLDisplayEGL: |
43 | * |
44 | * the contents of a #GstGLDisplayEGL are private and should only be accessed |
45 | * through the provided API |
46 | */ |
47 | struct _GstGLDisplayEGL |
48 | { |
49 | GstGLDisplay parent; |
50 | |
51 | /*< private >*/ |
52 | gpointer display; |
53 | |
54 | gboolean foreign_display; |
55 | |
56 | gpointer _padding[GST_PADDING]; |
57 | }; |
58 | |
59 | struct _GstGLDisplayEGLClass |
60 | { |
61 | GstGLDisplayClass object_class; |
62 | |
63 | gpointer _padding[GST_PADDING]; |
64 | }; |
65 | |
66 | GST_GL_API |
67 | GstGLDisplayEGL *gst_gl_display_egl_new (void); |
68 | |
69 | GST_GL_API |
70 | GstGLDisplayEGL *gst_gl_display_egl_new_with_egl_display (gpointer display); |
71 | |
72 | GST_GL_API |
73 | GstGLDisplayEGL *gst_gl_display_egl_from_gl_display (GstGLDisplay * display); |
74 | |
75 | GST_GL_API |
76 | gpointer gst_gl_display_egl_get_from_native (GstGLDisplayType type, guintptr display); |
77 | |
78 | #define GST_GL_DISPLAY_EGL_NAME "gst.gl.display.egl" |
79 | |
80 | G_END_DECLS |
81 | |
82 | #endif /* __GST_GL_DISPLAY_EGL_H__ */ |
83 | |