1 /* 2 * GStreamer 3 * Copyright (C) 2015 Matthew Waters <matthew@centricular.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_SRC_BIN_H_ 22 #define _GST_GL_SRC_BIN_H_ 23 24 #include <gst/gst.h> 25 26 #include <gst/gl/gl.h> 27 28 G_BEGIN_DECLS 29 30 GType gst_gl_src_bin_get_type(void); 31 #define GST_TYPE_GL_SRC_BIN \ 32 (gst_gl_src_bin_get_type()) 33 #define GST_GL_SRC_BIN(obj) \ 34 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_SRC_BIN,GstGLSrcBin)) 35 #define GST_GL_SRC_BIN_CLASS(klass) \ 36 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GL_SRC_BIN,GstGLSrcBinClass)) 37 #define GST_IS_GL_SRC_BIN(obj) \ 38 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_SRC_BIN)) 39 #define GST_IS_GL_SRC_BIN_CLASS(klass) \ 40 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GL_SRC_BIN)) 41 #define GST_GL_SRC_BIN_GET_CLASS(obj) \ 42 (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_SRC_BIN,GstGLSrcBinClass)) 43 44 typedef struct _GstGLSrcBin GstGLSrcBin; 45 typedef struct _GstGLSrcBinClass GstGLSrcBinClass; 46 47 struct _GstGLSrcBin 48 { 49 GstBin parent; 50 51 GstPad *srcpad; 52 53 GstElement *src; 54 GstElement *convert; 55 GstElement *download; 56 }; 57 58 struct _GstGLSrcBinClass 59 { 60 GstBinClass parent_class; 61 62 GstElement * (*create_element) (void); 63 }; 64 65 void gst_gl_src_bin_finish_init (GstGLSrcBin * self); 66 void gst_gl_src_bin_finish_init_with_element (GstGLSrcBin * self, 67 GstElement * element); 68 69 G_END_DECLS 70 71 #endif 72