1 /*
2  * GStreamer
3  * Copyright (C) 2003 Julien Moutte <julien@moutte.net>
4  * Copyright (C) 2005,2006,2007 David A. Schleef <ds@schleef.org>
5  * Copyright (C) 2008 Julien Isorce <julien.isorce@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_SINK_BIN_H_
24 #define _GST_GL_SINK_BIN_H_
25 
26 #include <gst/gst.h>
27 #include <gst/video/gstvideosink.h>
28 #include <gst/video/video.h>
29 
30 #include <gst/gl/gl.h>
31 
32 G_BEGIN_DECLS
33 
34 GType gst_gl_sink_bin_get_type(void);
35 #define GST_TYPE_GL_SINK_BIN \
36     (gst_gl_sink_bin_get_type())
37 #define GST_GL_SINK_BIN(obj) \
38     (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_SINK_BIN,GstGLSinkBin))
39 #define GST_GL_SINK_BIN_CLASS(klass) \
40     (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GL_SINK_BIN,GstGLSinkBinClass))
41 #define GST_IS_GL_SINK_BIN(obj) \
42     (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_SINK_BIN))
43 #define GST_IS_GL_SINK_BIN_CLASS(klass) \
44     (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GL_SINK_BIN))
45 #define GST_GL_SINK_BIN_GET_CLASS(obj) \
46     (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_SINK_BIN,GstGLSinkBinClass))
47 
48 typedef struct _GstGLSinkBin GstGLSinkBin;
49 typedef struct _GstGLSinkBinClass GstGLSinkBinClass;
50 
51 struct _GstGLSinkBin
52 {
53   GstBin parent;
54 
55   GstPad *sinkpad;
56 
57   GstElement *upload;
58   GstElement *convert;
59   GstElement *balance;
60   GstElement *sink;
61 };
62 
63 struct _GstGLSinkBinClass
64 {
65   GstBinClass parent_class;
66 
67   GstElement * (*create_element) (void);
68 };
69 
70 void gst_gl_sink_bin_finish_init (GstGLSinkBin * self);
71 void gst_gl_sink_bin_finish_init_with_element (GstGLSinkBin * self,
72     GstElement * element);
73 
74 G_END_DECLS
75 
76 #endif
77