noinst_HEADERS = gstvideofilter.h gstvideoexample.h gstvideoflip.h gstvideobalance.h
-EXTRA_DIST = gstvideotemplate.c gstvideotemplate.h make_filter
-EXTRA_CLEAN = gstvideoexample.c gstvideoexample.h
+EXTRA_DIST = gstvideotemplate.c make_filter
+EXTRA_CLEAN = gstvideoexample.c
libgstvideofilter_la_SOURCES = gstvideofilter.c
libgstvideofilter_la_CFLAGS = $(GST_CFLAGS)
# no, this doesn't work if $(srcdir) != (builddir)
-gstvideoexample.c gstvideoexample.h: $(srcdir)/make_filter \
- $(srcdir)/gstvideotemplate.c $(srcdir)/gstvideotemplate.h
+gstvideoexample.c: $(srcdir)/make_filter $(srcdir)/gstvideotemplate.c
$(srcdir)/make_filter Videoexample
#include "config.h"
#endif
-/*#define DEBUG_ENABLED */
-#include <gstvideotemplate.h>
+#include <gst/gst.h>
+#include <gstvideofilter.h>
#include <string.h>
+#define GST_TYPE_VIDEOTEMPLATE \
+ (gst_videotemplate_get_type())
+#define GST_VIDEOTEMPLATE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEOTEMPLATE,GstVideotemplate))
+#define GST_VIDEOTEMPLATE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEOTEMPLATE,GstVideotemplateClass))
+#define GST_IS_VIDEOTEMPLATE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOTEMPLATE))
+#define GST_IS_VIDEOTEMPLATE_CLASS(obj) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOTEMPLATE))
+
+typedef struct _GstVideotemplate GstVideotemplate;
+typedef struct _GstVideotemplateClass GstVideotemplateClass;
+
+struct _GstVideotemplate {
+ GstVideofilter videofilter;
+
+};
+
+struct _GstVideotemplateClass {
+ GstVideofilterClass parent_class;
+};
+
+
/* GstVideotemplate signals and args */
enum {
/* FILL ME */
+++ /dev/null
-/* GStreamer
- * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-
-#ifndef __GST_VIDEOTEMPLATE_H__
-#define __GST_VIDEOTEMPLATE_H__
-
-
-#include <gst/gst.h>
-
-#include "gstvideofilter.h"
-
-
-G_BEGIN_DECLS
-
-#define GST_TYPE_VIDEOTEMPLATE \
- (gst_videotemplate_get_type())
-#define GST_VIDEOTEMPLATE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEOTEMPLATE,GstVideotemplate))
-#define GST_VIDEOTEMPLATE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEOTEMPLATE,GstVideotemplateClass))
-#define GST_IS_VIDEOTEMPLATE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEOTEMPLATE))
-#define GST_IS_VIDEOTEMPLATE_CLASS(obj) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEOTEMPLATE))
-
-typedef struct _GstVideotemplate GstVideotemplate;
-typedef struct _GstVideotemplateClass GstVideotemplateClass;
-
-struct _GstVideotemplate {
- GstVideofilter videofilter;
-
-};
-
-struct _GstVideotemplateClass {
- GstVideofilterClass parent_class;
-};
-
-GType gst_videotemplate_get_type(void);
-
-G_END_DECLS
-
-#endif /* __GST_VIDEOTEMPLATE_H__ */
-
open OUT, ">gst$template.c";
@lines = <IN>;
-map { s/Videotemplate/$Template/g;
+map {
+ s/gstvideotemplate\.c/SOURCEFILE/g;
+ s/Videotemplate/$Template/g;
s/videotemplate/$template/g;
s/VIDEOTEMPLATE/$TEMPLATE/g;
# remember to break up the Id: in the line below
s/\$I[d]: (.*)\$/$1/g;
-} @lines;
-
-print OUT @lines;
-
-close IN;
-close OUT;
-
-open IN, "gstvideotemplate.h";
-open OUT, ">gst$template.h";
-
-@lines = <IN>;
-map { s/Videotemplate/$Template/g;
- s/videotemplate/$template/g;
- s/VIDEOTEMPLATE/$TEMPLATE/g;
+ s/SOURCEFILE/gstvideotemplate\.c/g;
} @lines;
print OUT @lines;