VideoFilter inherits from
[platform/upstream/gstreamer.git] / gst / videofilter / gstvideofilter.c
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) <2003> David Schleef <ds@schleef.org>
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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include "gstvideofilter.h"
26
27 GST_DEBUG_CATEGORY_STATIC (gst_videofilter_debug);
28 #define GST_CAT_DEFAULT gst_videofilter_debug
29
30 static void gst_videofilter_class_init (gpointer g_class, gpointer class_data);
31 static void gst_videofilter_init (GTypeInstance * instance, gpointer g_class);
32
33 static GstBaseTransformClass *parent_class = NULL;
34
35 GType
36 gst_videofilter_get_type (void)
37 {
38   static GType videofilter_type = 0;
39
40   if (!videofilter_type) {
41     static const GTypeInfo videofilter_info = {
42       sizeof (GstVideofilterClass),
43       NULL,
44       NULL,
45       gst_videofilter_class_init,
46       NULL,
47       NULL,
48       sizeof (GstVideofilter),
49       0,
50       gst_videofilter_init,
51     };
52
53     videofilter_type = g_type_register_static (GST_TYPE_BASE_TRANSFORM,
54         "GstVideofilter", &videofilter_info, G_TYPE_FLAG_ABSTRACT);
55   }
56   return videofilter_type;
57 }
58
59 static void
60 gst_videofilter_class_init (gpointer g_class, gpointer class_data)
61 {
62   GObjectClass *gobject_class;
63   GstElementClass *gstelement_class;
64   GstBaseTransformClass *trans_class;
65   GstVideofilterClass *klass;
66
67   klass = (GstVideofilterClass *) g_class;
68   gobject_class = (GObjectClass *) klass;
69   gstelement_class = (GstElementClass *) klass;
70   trans_class = (GstBaseTransformClass *) klass;
71
72   parent_class = g_type_class_peek_parent (klass);
73
74   GST_DEBUG_CATEGORY_INIT (gst_videofilter_debug, "videofilter", 0,
75       "videofilter");
76 }
77
78 static void
79 gst_videofilter_init (GTypeInstance * instance, gpointer g_class)
80 {
81   GstVideofilter *videofilter = GST_VIDEOFILTER (instance);
82
83   GST_DEBUG_OBJECT (videofilter, "gst_videofilter_init");
84
85   videofilter->inited = FALSE;
86 }