1 /* 2 * GStreamer 3 * Copyright (C) 2007 David Schleef <ds@schleef.org> 4 * Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com> 5 * Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com> 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Library General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Library General Public License for more details. 16 * 17 * You should have received a copy of the GNU Library General Public 18 * License along with this library; if not, write to the 19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #ifndef _GST_GL_FILTER_BIN_H_ 24 #define _GST_GL_FILTER_BIN_H_ 25 26 #include <gst/gst.h> 27 #include <gst/base/gstbasetransform.h> 28 #include <gst/video/video.h> 29 30 #include <gst/gl/gl.h> 31 32 G_BEGIN_DECLS 33 34 GType gst_gl_filter_bin_get_type(void); 35 #define GST_TYPE_GL_FILTER_BIN (gst_gl_filter_bin_get_type()) 36 #define GST_GL_FILTER_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTER_BIN,GstGLFilterBin)) 37 #define GST_IS_GL_FILTER_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTER_BIN)) 38 #define GST_GL_FILTER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTER_BIN,GstGLFilterBinClass)) 39 #define GST_IS_GL_FILTER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTER_BIN)) 40 #define GST_GL_FILTER_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTER_BIN,GstGLFilterBinClass)) 41 42 typedef struct _GstGLFilterBin GstGLFilterBin; 43 typedef struct _GstGLFilterBinClass GstGLFilterBinClass; 44 45 /** 46 * GstGLFilterBin: 47 * @parent: parent #GstBin 48 */ 49 struct _GstGLFilterBin 50 { 51 GstBin parent; 52 53 GstPad *srcpad; 54 GstPad *sinkpad; 55 56 GstElement *upload; 57 GstElement *in_convert; 58 GstElement *filter; 59 GstElement *out_convert; 60 GstElement *download; 61 }; 62 63 /** 64 * GstGLFilterBinClass: 65 * @parent_class: parent class 66 */ 67 struct _GstGLFilterBinClass 68 { 69 GstBinClass parent_class; 70 71 GstElement * (*create_element) (void); 72 }; 73 74 void gst_gl_filter_bin_finish_init (GstGLFilterBin * self); 75 void gst_gl_filter_bin_finish_init_with_element (GstGLFilterBin * self, 76 GstElement * element); 77 78 G_END_DECLS 79 80 #endif /* _GST_GL_FILTER_BIN_H_ */ 81