1 /* 2 * GStreamer 3 * Copyright (C) 2009 Julien Isorce <julien.isorce@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_MIXER_BIN_H__ 22 #define __GST_GL_MIXER_BIN_H__ 23 24 #include <gst/gst.h> 25 #include <gst/video/video.h> 26 #include <gst/gl/gl.h> 27 28 G_BEGIN_DECLS 29 30 GType gst_gl_mixer_bin_get_type(void); 31 #define GST_TYPE_GL_MIXER_BIN (gst_gl_mixer_bin_get_type()) 32 #define GST_GL_MIXER_BIN(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_MIXER_BIN, GstGLMixerBin)) 34 #define GST_GL_MIXER_BIN_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GL_MIXER_BIN, GstGLMixerBinClass)) 36 #define GST_IS_GL_MIXER_BIN(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_MIXER_BIN)) 38 #define GST_IS_GL_MIXER_BIN_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GL_MIXER_BIN)) 40 #define GST_GL_MIXER_BIN_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_GL_MIXER_BIN,GstGLMixerBinClass)) 42 43 typedef struct _GstGLMixerBin GstGLMixerBin; 44 typedef struct _GstGLMixerBinClass GstGLMixerBinClass; 45 typedef struct _GstGLMixerBinPrivate GstGLMixerBinPrivate; 46 47 struct _GstGLMixerBin 48 { 49 GstBin parent; 50 51 GstElement *mixer; 52 GstElement *out_convert; 53 GstElement *download; 54 GstPad *srcpad; 55 56 GstGLMixerBinPrivate *priv; 57 }; 58 59 struct _GstGLMixerBinClass 60 { 61 GstBinClass parent_class; 62 63 GstElement * (*create_element) (void); 64 GstGhostPad * (*create_input_pad) (GstGLMixerBin * self, GstPad * mixer_pad); 65 }; 66 67 void gst_gl_mixer_bin_finish_init (GstGLMixerBin * self); 68 void gst_gl_mixer_bin_finish_init_with_element (GstGLMixerBin * self, 69 GstElement * element); 70 71 G_END_DECLS 72 #endif /* __GST_GL_MIXER_BIN_H__ */ 73