Initialize Tizen 2.3
[framework/multimedia/gst-openmax.git] / wearable / omx / gstomx_base_src.h
1 /*
2  * Copyright (C) 2007-2009 Nokia Corporation.
3  *
4  * Author: Felipe Contreras <felipe.contreras@nokia.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation
9  * version 2.1 of the License.
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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef GSTOMX_BASE_SRC_H
23 #define GSTOMX_BASE_SRC_H
24
25 #include <gst/gst.h>
26 #include <gst/base/gstbasesrc.h>
27
28 G_BEGIN_DECLS
29 #define GST_OMX_BASE_SRC(obj) (GstOmxBaseSrc *) (obj)
30 #define GST_OMX_BASE_SRC_TYPE (gst_omx_base_src_get_type ())
31 #define GST_OMX_BASE_SRC_CLASS(obj) (GstOmxBaseSrcClass *) (obj)
32 typedef struct GstOmxBaseSrc GstOmxBaseSrc;
33 typedef struct GstOmxBaseSrcClass GstOmxBaseSrcClass;
34 typedef void (*GstOmxBaseSrcCb) (GstOmxBaseSrc * self);
35
36 #include <gstomx_util.h>
37
38 struct GstOmxBaseSrc
39 {
40   GstBaseSrc element;
41
42   GOmxCore *gomx;
43   GOmxPort *out_port;
44
45   GstOmxBaseSrcCb setup_ports;
46 };
47
48 struct GstOmxBaseSrcClass
49 {
50   GstBaseSrcClass parent_class;
51 };
52
53 GType gst_omx_base_src_get_type (void);
54
55 G_END_DECLS
56 #endif /* GSTOMX_BASE_SRC_H */