2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3 * Copyright (C) <2003> David Schleef <ds@schleef.org>
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.
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.
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.
25 #include "gstvideofilter.h"
27 GST_DEBUG_CATEGORY_STATIC (gst_videofilter_debug);
28 #define GST_CAT_DEFAULT gst_videofilter_debug
30 static void gst_videofilter_class_init (gpointer g_class, gpointer class_data);
31 static void gst_videofilter_init (GTypeInstance * instance, gpointer g_class);
33 static GstBaseTransformClass *parent_class = NULL;
36 gst_videofilter_get_type (void)
38 static GType videofilter_type = 0;
40 if (!videofilter_type) {
41 static const GTypeInfo videofilter_info = {
42 sizeof (GstVideofilterClass),
45 gst_videofilter_class_init,
48 sizeof (GstVideofilter),
53 videofilter_type = g_type_register_static (GST_TYPE_BASE_TRANSFORM,
54 "GstVideofilter", &videofilter_info, G_TYPE_FLAG_ABSTRACT);
56 return videofilter_type;
60 gst_videofilter_class_init (gpointer g_class, gpointer class_data)
62 GObjectClass *gobject_class;
63 GstElementClass *gstelement_class;
64 GstBaseTransformClass *trans_class;
65 GstVideofilterClass *klass;
67 klass = (GstVideofilterClass *) g_class;
68 gobject_class = (GObjectClass *) klass;
69 gstelement_class = (GstElementClass *) klass;
70 trans_class = (GstBaseTransformClass *) klass;
72 parent_class = g_type_class_peek_parent (klass);
74 GST_DEBUG_CATEGORY_INIT (gst_videofilter_debug, "videofilter", 0,
79 gst_videofilter_init (GTypeInstance * instance, gpointer g_class)
81 GstVideofilter *videofilter = GST_VIDEOFILTER (instance);
83 GST_DEBUG_OBJECT (videofilter, "gst_videofilter_init");
85 videofilter->inited = FALSE;