mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
Merge gstvideotemplate.h into gstvideotemplate.c
Original commit message from CVS: Merge gstvideotemplate.h into gstvideotemplate.c
This commit is contained in:
parent
0bd268563c
commit
08797649fb
4 changed files with 33 additions and 81 deletions
|
@ -5,8 +5,8 @@ noinst_LTLIBRARIES = libgstvideoexample.la
|
||||||
|
|
||||||
noinst_HEADERS = gstvideofilter.h gstvideoexample.h gstvideoflip.h gstvideobalance.h
|
noinst_HEADERS = gstvideofilter.h gstvideoexample.h gstvideoflip.h gstvideobalance.h
|
||||||
|
|
||||||
EXTRA_DIST = gstvideotemplate.c gstvideotemplate.h make_filter
|
EXTRA_DIST = gstvideotemplate.c make_filter
|
||||||
EXTRA_CLEAN = gstvideoexample.c gstvideoexample.h
|
EXTRA_CLEAN = gstvideoexample.c
|
||||||
|
|
||||||
libgstvideofilter_la_SOURCES = gstvideofilter.c
|
libgstvideofilter_la_SOURCES = gstvideofilter.c
|
||||||
libgstvideofilter_la_CFLAGS = $(GST_CFLAGS)
|
libgstvideofilter_la_CFLAGS = $(GST_CFLAGS)
|
||||||
|
@ -30,7 +30,6 @@ libgstvideobalance_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -lm
|
||||||
|
|
||||||
|
|
||||||
# no, this doesn't work if $(srcdir) != (builddir)
|
# no, this doesn't work if $(srcdir) != (builddir)
|
||||||
gstvideoexample.c gstvideoexample.h: $(srcdir)/make_filter \
|
gstvideoexample.c: $(srcdir)/make_filter $(srcdir)/gstvideotemplate.c
|
||||||
$(srcdir)/gstvideotemplate.c $(srcdir)/gstvideotemplate.h
|
|
||||||
$(srcdir)/make_filter Videoexample
|
$(srcdir)/make_filter Videoexample
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,34 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*#define DEBUG_ENABLED */
|
#include <gst/gst.h>
|
||||||
#include <gstvideotemplate.h>
|
#include <gstvideofilter.h>
|
||||||
#include <string.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 */
|
/* GstVideotemplate signals and args */
|
||||||
enum {
|
enum {
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
|
|
|
@ -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__ */
|
|
||||||
|
|
|
@ -16,25 +16,14 @@ open IN, "gstvideotemplate.c";
|
||||||
open OUT, ">gst$template.c";
|
open OUT, ">gst$template.c";
|
||||||
|
|
||||||
@lines = <IN>;
|
@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;
|
||||||
s/VIDEOTEMPLATE/$TEMPLATE/g;
|
s/VIDEOTEMPLATE/$TEMPLATE/g;
|
||||||
# remember to break up the Id: in the line below
|
# remember to break up the Id: in the line below
|
||||||
s/\$I[d]: (.*)\$/$1/g;
|
s/\$I[d]: (.*)\$/$1/g;
|
||||||
} @lines;
|
s/SOURCEFILE/gstvideotemplate\.c/g;
|
||||||
|
|
||||||
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;
|
|
||||||
} @lines;
|
} @lines;
|
||||||
|
|
||||||
print OUT @lines;
|
print OUT @lines;
|
||||||
|
|
Loading…
Reference in a new issue