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 22:17:01 +00:00
|
|
|
#include "gsteffectv.h"
|
2009-06-16 18:13:35 +00:00
|
|
|
#include "gstaging.h"
|
|
|
|
#include "gstdice.h"
|
|
|
|
#include "gstedge.h"
|
|
|
|
#include "gstquark.h"
|
|
|
|
#include "gstrev.h"
|
|
|
|
#include "gstshagadelic.h"
|
|
|
|
#include "gstvertigo.h"
|
|
|
|
#include "gstwarp.h"
|
2002-04-23 20:47:14 +00:00
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
struct _elements_entry
|
|
|
|
{
|
2009-06-15 15:39:20 +00:00
|
|
|
const gchar *name;
|
2004-03-14 22:34:33 +00:00
|
|
|
GType (*type) (void);
|
2002-04-23 20:47:14 +00:00
|
|
|
};
|
|
|
|
|
2009-06-15 15:39:20 +00:00
|
|
|
static const struct _elements_entry _elements[] = {
|
VideoFilter inherits from
Original commit message from CVS:
2005-11-23 Julien MOUTTE <julien@moutte.net>
* ext/cairo/gsttimeoverlay.c:
(gst_timeoverlay_update_font_height),
(gst_timeoverlay_set_caps), (gst_timeoverlay_get_unit_size),
(gst_timeoverlay_transform), (gst_timeoverlay_base_init),
(gst_timeoverlay_class_init), (gst_timeoverlay_init),
(gst_timeoverlay_get_type):
* ext/cairo/gsttimeoverlay.h:
* gst/debug/Makefile.am:
* gst/debug/gstnavigationtest.c:
(gst_navigationtest_handle_src_event),
(gst_navigationtest_get_unit_size),
(gst_navigationtest_set_caps),
(gst_navigationtest_transform),
(gst_navigationtest_change_state),
(gst_navigationtest_base_init), (gst_navigationtest_class_init),
(gst_navigationtest_init), (gst_navigationtest_get_type),
(plugin_init):
* gst/debug/gstnavigationtest.h:
* gst/effectv/Makefile.am:
* gst/effectv/gstaging.c: (gst_agingtv_set_caps),
(gst_agingtv_get_unit_size), (gst_agingtv_transform),
(gst_agingtv_base_init), (gst_agingtv_class_init),
(gst_agingtv_init), (gst_agingtv_get_type):
* gst/effectv/gstdice.c: (gst_dicetv_set_caps),
(gst_dicetv_get_unit_size), (gst_dicetv_transform),
(gst_dicetv_base_init), (gst_dicetv_class_init),
(gst_dicetv_init),
(gst_dicetv_get_type):
* gst/effectv/gstedge.c: (gst_edgetv_set_caps),
(gst_edgetv_get_unit_size), (gst_edgetv_transform),
(gst_edgetv_base_init), (gst_edgetv_class_init),
(gst_edgetv_init),
(gst_edgetv_get_type):
* gst/effectv/gsteffectv.c:
* gst/effectv/gsteffectv.h:
* gst/effectv/gstquark.c: (gst_quarktv_set_caps),
(gst_quarktv_get_unit_size), (fastrand),
(gst_quarktv_transform),
(gst_quarktv_change_state), (gst_quarktv_base_init),
(gst_quarktv_class_init), (gst_quarktv_init),
(gst_quarktv_get_type):
* gst/effectv/gstrev.c: (gst_revtv_set_caps),
(gst_revtv_get_unit_size), (gst_revtv_transform),
(gst_revtv_base_init), (gst_revtv_class_init), (gst_revtv_init),
(gst_revtv_get_type):
* gst/effectv/gstshagadelic.c: (gst_shagadelictv_set_caps),
(gst_shagadelictv_get_unit_size), (gst_shagadelictv_transform),
(gst_shagadelictv_base_init), (gst_shagadelictv_class_init),
(gst_shagadelictv_init), (gst_shagadelictv_get_type):
* gst/effectv/gstvertigo.c: (gst_vertigotv_set_caps),
(gst_vertigotv_get_unit_size), (gst_vertigotv_transform),
(gst_vertigotv_base_init), (gst_vertigotv_class_init),
(gst_vertigotv_init), (gst_vertigotv_get_type):
* gst/effectv/gstwarp.c: (gst_warptv_set_caps),
(gst_warptv_get_unit_size), (gst_warptv_transform),
(gst_warptv_base_init), (gst_warptv_class_init),
(gst_warptv_init),
(gst_warptv_get_type):
* gst/videofilter/Makefile.am:
* gst/videofilter/gstvideobalance.c:
* gst/videofilter/gstvideobalance.h:
* gst/videofilter/gstvideofilter.c: (gst_videofilter_get_type),
(gst_videofilter_class_init), (gst_videofilter_init):
* gst/videofilter/gstvideofilter.h:
* gst/videofilter/gstvideoflip.c: (gst_videoflip_set_caps),
(gst_videoflip_transform_caps), (gst_videoflip_get_unit_size),
(gst_videoflip_flip), (gst_videoflip_transform),
(gst_videoflip_handle_src_event), (gst_videoflip_set_property),
(gst_videoflip_base_init), (gst_videoflip_class_init),
(gst_videoflip_init), (plugin_init), (gst_videoflip_get_type):
* gst/videofilter/gstvideoflip.h: VideoFilter inherits from
BaseTransform, it's just a place holder for now and every video
effect plugin has been ported to use BaseTransform features
directly. QuarkTV was fixed too (was broken), navigationtest
works
and best for the end, videoflip converts navigation events
depending
on flip method ! Fixes #320953
2005-11-23 15:50:51 +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},
|
2004-03-14 22:34:33 +00:00
|
|
|
{NULL, 0},
|
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
|
|
|
|
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,
|
2004-03-15 19:32:27 +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;
|
|
|
|
}
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"effectv",
|
|
|
|
"effect plugins from the effectv project",
|
2005-11-14 02:13:35 +00:00
|
|
|
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
|