2 * Copyright (C) 2007-2009 Nokia Corporation.
4 * Author: Felipe Contreras <felipe.contreras@nokia.com>
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.
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.
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
22 #include "gstomx_vorbisdec.h"
25 GSTOMX_BOILERPLATE (GstOmxVorbisDec, gst_omx_vorbisdec, GstOmxBaseAudioDec,
26 GST_OMX_BASE_AUDIODEC_TYPE);
28 static void instance_init (GstElement * element);
31 type_base_init (gpointer g_class)
33 GstElementClass *element_class;
35 element_class = GST_ELEMENT_CLASS (g_class);
37 gst_element_class_set_details_simple (element_class,
38 "OpenMAX IL Vorbis audio decoder",
39 "Codec/Decoder/Audio",
40 "Decodes audio in Vorbis format with OpenMAX IL", "Felipe Contreras");
42 gst_element_class_add_pad_template (element_class,
43 gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
44 gstomx_template_caps (G_TYPE_FROM_CLASS (g_class), "sink")));
46 gst_element_class_add_pad_template (element_class,
47 gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
48 gstomx_template_caps (G_TYPE_FROM_CLASS (g_class), "src")));
52 type_class_init (gpointer g_class, gpointer class_data)
54 GstOmxBaseFilterClass *basefilter_class;
56 basefilter_class = GST_OMX_BASE_FILTER_CLASS (g_class);
57 basefilter_class->instance_init = instance_init;
61 instance_private_value_init(GstElement * element)
63 GstOmxBaseFilter *omx_base;
65 omx_base = GST_OMX_BASE_FILTER (element);
67 omx_base->use_timestamps = FALSE;
71 instance_init (GstElement * element)
73 GST_OMX_BASE_FILTER_CLASS (parent_class)->instance_init(element);
75 instance_private_value_init(element);
79 type_instance_init (GTypeInstance * instance, gpointer g_class)
81 instance_private_value_init(GST_ELEMENT(instance));