diff options
author | Benjamin Gaignard <benjamin.gaignard@stericsson.com> | 2010-12-15 21:14:38 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-12-15 21:14:38 +0100 |
commit | 27ac6c3e473bcf5472cfb5c7817c122349d44531 (patch) | |
tree | ef1b85cafa01ce2e1c07d534b8b1794ab1cbb5bd /gst/autoconvert/plugin.c | |
parent | a99e13cd5a9596137d6d8ba9d2974932f20c296c (diff) | |
download | gstreamer-plugins-bad-27ac6c3e473bcf5472cfb5c7817c122349d44531.tar.gz |
autocolorspace: Add autoconvert based video format convert element
Fixes bug #636106.
Diffstat (limited to 'gst/autoconvert/plugin.c')
-rw-r--r-- | gst/autoconvert/plugin.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gst/autoconvert/plugin.c b/gst/autoconvert/plugin.c new file mode 100644 index 000000000..dd2ca033b --- /dev/null +++ b/gst/autoconvert/plugin.c @@ -0,0 +1,46 @@ +/* GStreamer + * Copyright 2010 ST-Ericsson SA + * @author: Benjamin Gaignard <benjamin.gaignard@stericsson.com> + * + * 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. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "gstautoconvert.h" +#include "gstautocolorspace.h" + +static gboolean +plugin_init (GstPlugin * plugin) +{ + gboolean ret; + + ret = gst_element_register (plugin, "autoconvert", + GST_RANK_NONE, GST_TYPE_AUTO_CONVERT); + + ret &= gst_element_register (plugin, "autocolorspace", + GST_RANK_NONE, GST_TYPE_AUTO_COLOR_SPACE); + + return ret; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "autoconvert", + "Selects convertor element based on caps", + plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) |