2002-04-23 20:47:14 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
2002-04-24 19:50:00 +00:00
|
|
|
* EffecTV:
|
|
|
|
* Copyright (C) 2001 FUKUCHI Kentarou
|
2002-04-23 20:47:14 +00:00
|
|
|
*
|
2002-08-14 21:01:38 +00:00
|
|
|
* EffecTV is free software. 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.
|
2002-04-23 20:47:14 +00:00
|
|
|
*/
|
|
|
|
|
2003-11-02 12:48:08 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2002-04-23 20:47:14 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <gst/gst.h>
|
2003-07-06 20:49:52 +00:00
|
|
|
#include <gst/video/video.h>
|
2002-04-23 22:17:01 +00:00
|
|
|
#include "gsteffectv.h"
|
2002-04-23 20:47:14 +00:00
|
|
|
|
|
|
|
|
2002-04-23 22:17:01 +00:00
|
|
|
struct _elements_entry {
|
|
|
|
gchar *name;
|
|
|
|
GType (*type) (void);
|
2002-04-23 20:47:14 +00:00
|
|
|
};
|
|
|
|
|
2002-04-23 22:17:01 +00:00
|
|
|
static struct _elements_entry _elements[] = {
|
2003-11-02 12:48:08 +00:00
|
|
|
{ "edgeTV", gst_edgetv_get_type },
|
|
|
|
{ "agingTV", gst_agingtv_get_type },
|
|
|
|
{ "diceTV", gst_dicetv_get_type },
|
|
|
|
{ "warpTV", gst_warptv_get_type },
|
|
|
|
{ "shagadelicTV", gst_shagadelictv_get_type },
|
|
|
|
{ "vertigoTV", gst_vertigotv_get_type },
|
|
|
|
{ "revTV", gst_revtv_get_type },
|
|
|
|
{ "quarkTV", gst_quarktv_get_type },
|
2002-04-23 22:17:01 +00:00
|
|
|
{ NULL, 0 },
|
2002-04-23 20:47:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
GstStaticPadTemplate gst_effectv_src_template =
|
|
|
|
GST_STATIC_PAD_TEMPLATE (
|
|
|
|
"src",
|
|
|
|
GST_PAD_SRC,
|
|
|
|
GST_PAD_ALWAYS,
|
2004-01-12 02:01:51 +00:00
|
|
|
GST_STATIC_CAPS ( GST_VIDEO_CAPS_xRGB_HOST_ENDIAN )
|
2003-12-22 01:47:09 +00:00
|
|
|
);
|
2002-04-23 20:47:14 +00:00
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
GstStaticPadTemplate gst_effectv_sink_template =
|
|
|
|
GST_STATIC_PAD_TEMPLATE (
|
|
|
|
"sink",
|
|
|
|
GST_PAD_SINK,
|
|
|
|
GST_PAD_ALWAYS,
|
2004-01-12 02:01:51 +00:00
|
|
|
GST_STATIC_CAPS ( GST_VIDEO_CAPS_xRGB_HOST_ENDIAN )
|
2003-12-22 01:47:09 +00:00
|
|
|
);
|
2002-04-23 20:47:14 +00:00
|
|
|
|
|
|
|
static gboolean
|
2003-11-02 12:48:08 +00:00
|
|
|
plugin_init (GstPlugin * plugin)
|
2002-04-23 20:47:14 +00:00
|
|
|
{
|
2002-04-23 22:17:01 +00:00
|
|
|
gint i = 0;
|
2002-04-23 20:47:14 +00:00
|
|
|
|
2004-01-07 10:16:09 +00:00
|
|
|
if (!gst_library_load ("gstvideofilter"))
|
|
|
|
return FALSE;
|
|
|
|
|
2002-04-23 22:17:01 +00:00
|
|
|
while (_elements[i].name) {
|
2003-11-02 12:48:08 +00:00
|
|
|
if (!gst_element_register (plugin, _elements[i].name,
|
2003-12-22 01:47:09 +00:00
|
|
|
GST_RANK_NONE, (_elements[i].type) ()))
|
2003-11-02 12:48:08 +00:00
|
|
|
return FALSE;
|
2002-04-23 22:17:01 +00:00
|
|
|
i++;
|
|
|
|
}
|
2002-04-23 20:47:14 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2003-11-02 12:48:08 +00:00
|
|
|
GST_PLUGIN_DEFINE (
|
2002-04-23 20:47:14 +00:00
|
|
|
GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"effectv",
|
2003-11-02 12:48:08 +00:00
|
|
|
"effect plugins from the effectv project",
|
|
|
|
plugin_init,
|
|
|
|
VERSION,
|
|
|
|
"LGPL",
|
|
|
|
GST_PACKAGE,
|
|
|
|
GST_ORIGIN
|
|
|
|
);
|