1 /* 2 * GStreamer 3 * Copyright (C) 2014 Matthew Waters <ystreet00@gmail.com> 4 * Copyright (C) 2015 Freescale Semiconductor <b55597@freescale.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_VIV_FB_H__ 23 #define __GST_GL_DISPLAY_VIV_FB_H__ 24 25 #include <gst/gst.h> 26 #include <gst/gl/gstgldisplay.h> 27 #include <gst/gl/egl/gstegl.h> 28 29 G_BEGIN_DECLS 30 31 GST_GL_API 32 GType gst_gl_display_viv_fb_get_type (void); 33 34 #define GST_TYPE_GL_DISPLAY_VIV_FB (gst_gl_display_viv_fb_get_type()) 35 #define GST_GL_DISPLAY_VIV_FB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_DISPLAY_VIV_FB,GstGLDisplayVivFB)) 36 #define GST_GL_DISPLAY_VIV_FB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_GL_DISPLAY_VIV_FB,GstGLDisplayVivFBClass)) 37 #define GST_IS_GL_DISPLAY_VIV_FB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_DISPLAY_VIV_FB)) 38 #define GST_IS_GL_DISPLAY_VIV_FB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_GL_DISPLAY_VIV_FB)) 39 #define GST_GL_DISPLAY_VIV_FB_CAST(obj) ((GstGLDisplayVivFB*)(obj)) 40 41 typedef struct _GstGLDisplayVivFB GstGLDisplayVivFB; 42 typedef struct _GstGLDisplayVivFBClass GstGLDisplayVivFBClass; 43 44 /** 45 * GstGLDisplayVivFB: 46 * 47 * the contents of a #GstGLDisplayVivFB are private and should only be accessed 48 * through the provided API 49 */ 50 struct _GstGLDisplayVivFB 51 { 52 GstGLDisplay parent; 53 54 /*< private >*/ 55 gint disp_idx; 56 EGLNativeDisplayType display; 57 }; 58 59 struct _GstGLDisplayVivFBClass 60 { 61 GstGLDisplayClass object_class; 62 }; 63 64 GST_GL_API 65 GstGLDisplayVivFB *gst_gl_display_viv_fb_new (gint disp_idx); 66 67 G_END_DECLS 68 69 #endif /* __GST_GL_DISPLAY_VIV_FB_H__ */ 70