Merge gstvideotemplate.h into gstvideotemplate.c

Original commit message from CVS:
Merge gstvideotemplate.h into gstvideotemplate.c
This commit is contained in:
David Schleef 2004-01-07 08:56:45 +00:00
parent 0bd268563c
commit 08797649fb
4 changed files with 33 additions and 81 deletions

View file

@ -5,8 +5,8 @@ noinst_LTLIBRARIES = libgstvideoexample.la
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)
@ -30,7 +30,6 @@ libgstvideobalance_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -lm
# 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

View file

@ -27,10 +27,34 @@
#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 */

View file

@ -1,60 +0,0 @@
/* 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__ */

View file

@ -16,25 +16,14 @@ open IN, "gstvideotemplate.c";
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;