• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer
3  * Copyright (C) 2014 Matthew Waters <ystreet00@gmail.com>
4  * Copyright (C) 2019 Seungha Yang <seungha.yang@navercorp.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef __GST_GL_DISPLAY_EGL_DEVICE_H__
23 #define __GST_GL_DISPLAY_EGL_DEVICE_H__
24 
25 #include <gst/gl/gstgldisplay.h>
26 
27 G_BEGIN_DECLS
28 
29 GST_GL_API
30 GType gst_gl_display_egl_device_get_type (void);
31 
32 #define GST_TYPE_GL_DISPLAY_EGL_DEVICE             (gst_gl_display_egl_device_get_type())
33 #define GST_GL_DISPLAY_EGL_DEVICE(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_DISPLAY_EGL_DEVICE,GstGLDisplayEGLDevice))
34 #define GST_GL_DISPLAY_EGL_DEVICE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_GL_DISPLAY_EGL_DEVICE,GstGLDisplayEGLDeviceClass))
35 #define GST_IS_GL_DISPLAY_EGL_DEVICE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_DISPLAY_EGL_DEVICE))
36 #define GST_IS_GL_DISPLAY_EGL_DEVICE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_GL_DISPLAY_EGL_DEVICE))
37 #define GST_GL_DISPLAY_EGL_DEVICE_CAST(obj)        ((GstGLDisplayEGLDevice*)(obj))
38 
39 typedef struct _GstGLDisplayEGLDevice GstGLDisplayEGLDevice;
40 typedef struct _GstGLDisplayEGLDeviceClass GstGLDisplayEGLDeviceClass;
41 
42 /**
43  * GstGLDisplayEGLDevice:
44  *
45  * the contents of a #GstGLDisplayEGLDevice are private and should only be accessed
46  * through the provided API
47  *
48  * Since: 1.18
49  */
50 struct _GstGLDisplayEGLDevice
51 {
52   GstGLDisplay parent;
53 
54   gpointer device;
55 
56   gpointer _padding[GST_PADDING];
57 };
58 
59 /**
60  * GstGLDisplayEGLDeviceClass:
61  *
62  * Opaque #GstGLDisplayEGLDeviceClass struct
63  *
64  * Since: 1.18
65  */
66 struct _GstGLDisplayEGLDeviceClass
67 {
68   GstGLDisplayClass object_class;
69 
70   gpointer _padding[GST_PADDING];
71 };
72 
73 GST_GL_API
74 GstGLDisplayEGLDevice *gst_gl_display_egl_device_new (guint device_index);
75 
76 GST_GL_API
77 GstGLDisplayEGLDevice *gst_gl_display_egl_device_new_with_egl_device (gpointer device);
78 
79 
80 G_END_DECLS
81 
82 #endif /* __GST_GL_DISPLAY_EGL_DEVICE_H__ */
83