tizen beta release
[profile/ivi/gst-openmax0.10.git] / omx / gstomx_dummy.c
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 #include "gstomx_dummy.h"
23 #include "gstomx_base_filter.h"
24 #include "gstomx.h"
25
26 GSTOMX_BOILERPLATE (GstOmxDummy, gst_omx_dummy, GstOmxBaseFilter,
27     GST_OMX_BASE_FILTER_TYPE);
28
29 static GstCaps *
30 generate_src_template (void)
31 {
32   GstCaps *caps;
33
34   caps = gst_caps_new_any ();
35
36   return caps;
37 }
38
39 static GstCaps *
40 generate_sink_template (void)
41 {
42   GstCaps *caps;
43
44   caps = gst_caps_new_any ();
45
46   return caps;
47 }
48
49 static void
50 type_base_init (gpointer g_class)
51 {
52   GstElementClass *element_class;
53
54   element_class = GST_ELEMENT_CLASS (g_class);
55
56   gst_element_class_set_details_simple (element_class,
57       "OpenMAX IL dummy element", "None", "Does nothing", "Felipe Contreras");
58
59   {
60     GstPadTemplate *template;
61
62     template = gst_pad_template_new ("src", GST_PAD_SRC,
63         GST_PAD_ALWAYS, generate_src_template ());
64
65     gst_element_class_add_pad_template (element_class, template);
66   }
67
68   {
69     GstPadTemplate *template;
70
71     template = gst_pad_template_new ("sink", GST_PAD_SINK,
72         GST_PAD_ALWAYS, generate_sink_template ());
73
74     gst_element_class_add_pad_template (element_class, template);
75   }
76 }
77
78 static void
79 type_class_init (gpointer g_class, gpointer class_data)
80 {
81 }
82
83 static void
84 type_instance_init (GTypeInstance * instance, gpointer g_class)
85 {
86   GstOmxBaseFilter *omx_base;
87
88   omx_base = GST_OMX_BASE_FILTER (instance);
89
90   GST_DEBUG_OBJECT (omx_base, "start");
91 }