autoconvert: Import fsselector from gst-plugins-farsight as autoconvert

fsselector is too close to selector, so import is as autoconvert. Not importing
the history because the directory is also called gst/selector and it fails.
This commit is contained in:
Olivier Crête 2009-02-25 21:05:42 -05:00 committed by Edward Hervey
parent 1068a40d6d
commit b02708a2f6
8 changed files with 1507 additions and 1 deletions

View file

@ -245,6 +245,7 @@ dnl these are all the gst plug-ins, compilable without additional libs
AG_GST_CHECK_PLUGIN(aacparse)
AG_GST_CHECK_PLUGIN(aiffparse)
AG_GST_CHECK_PLUGIN(amrparse)
AG_GST_CHECK_PLUGIN(autoconvert)
AG_GST_CHECK_PLUGIN(camerabin)
AG_GST_CHECK_PLUGIN(legacyresample)
AG_GST_CHECK_PLUGIN(bayer)
@ -1433,6 +1434,7 @@ gst/Makefile
gst/aacparse/Makefile
gst/aiffparse/Makefile
gst/amrparse/Makefile
gst/autoconvert/Makefile
gst/legacyresample/Makefile
gst/liveadder/Makefile
gst/bayer/Makefile

View file

@ -117,6 +117,7 @@ EXTRA_HFILES = \
$(top_srcdir)/ext/x264/gstx264enc.h \
$(top_srcdir)/gst/aacparse/gstaacparse.h \
$(top_srcdir)/gst/amrparse/gstamrparse.h \
$(top_srcdir)/gst/autoconvert/gstautoconvert.h \
$(top_srcdir)/gst/camerabin/gstcamerabin.h \
$(top_srcdir)/gst/deinterlace/gstdeinterlace.h \
$(top_srcdir)/gst/dccp/gstdccpclientsink.h \

View file

@ -22,7 +22,8 @@
<xi:include href="xml/element-amrwbdec.xml" />
<xi:include href="xml/element-amrwbenc.xml" />
<xi:include href="xml/element-amrwbparse.xml" />
<xi:include href="xml/element-audioparse.xml" />
<xi:include href="xml/element-amrwbparse.xml" />
<xi:include href="xml/element-autoconvert.xml" />
<xi:include href="xml/element-camerabin.xml" />
<xi:include href="xml/element-celtdec.xml" />
<xi:include href="xml/element-celtenc.xml" />
@ -87,6 +88,7 @@
<title>gst-plugins-bad Plugins</title>
<xi:include href="xml/plugin-aacparse.xml" />
<xi:include href="xml/plugin-amrparse.xml" />
<xi:include href="xml/plugin-autoconvert.xml" />
<xi:include href="xml/plugin-legacyresample.xml" />
<xi:include href="xml/plugin-alsaspdif.xml" />
<xi:include href="xml/plugin-amrwb.xml" />

View file

@ -82,6 +82,20 @@ GST_TYPE_AUDIO_PARSE
gst_audio_parse_get_type
</SECTION>
<SECTION>
<FILE>element-autoconvert</FILE>
<TITLE>autoconvert</TITLE>
GstAutoConvert
<SUBSECTION Standard>
GstAutoConvertClass
GST_TYPE_AUTO_CONVERT
GST_AUTO_CONVERT
GST_AUTO_CONVERT_CLASS
GST_IS_AUTO_CONVERT
GST_IS_AUTO_CONVERT_CLASS
</SECTION>
<SECTION>
<FILE>element-camerabin</FILE>
<TITLE>camerabin</TITLE>

View file

@ -0,0 +1,34 @@
<plugin>
<name>autoconvert</name>
<description>Selects convertor element based on caps</description>
<filename>../../gst/autoconvert/.libs/libgstautoconvert.so</filename>
<basename>libgstautoconvert.so</basename>
<version>0.10.10.1</version>
<license>LGPL</license>
<source>gst-plugins-bad</source>
<package>GStreamer Bad Plug-ins CVS/prerelease</package>
<origin>Unknown package origin</origin>
<elements>
<element>
<name>autoconvert</name>
<longname>Select convertor based on caps</longname>
<class>Generic/Bin</class>
<description>Selects the right transform element based on the caps</description>
<author>Olivier Crete &lt;olivier.crete@collabora.co.uk&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>ANY</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>ANY</details>
</caps>
</pads>
</element>
</elements>
</plugin>

View file

@ -0,0 +1,7 @@
plugin_LTLIBRARIES = libgstautoconvert.la
libgstautoconvert_la_SOURCES = gstautoconvert.c gstautoconvert.h
libgstautoconvert_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS)
libgstautoconvert_la_LIBADD = $(GST_LIBS_LIBS)
libgstautoconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS)

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,63 @@
/* GStreamer
*
* Copyright 2007 Collabora Ltd
* @author: Olivier Crete <olivier.crete@collabora.co.uk>
* Copyright 2007-2008 Nokia
*
* 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_AUTO_CONVERT_H__
#define __GST_AUTO_CONVERT_H__
#include <gst/gst.h>
#include <gst/gstbin.h>
G_BEGIN_DECLS
#define GST_TYPE_AUTO_CONVERT (gst_auto_convert_get_type())
#define GST_AUTO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_AUTO_CONVERT,GstAutoConvert))
#define GST_AUTO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_AUTO_CONVERT,GstAutoConvertClass))
#define GST_IS_AUTO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_AUTO_CONVERT))
#define GST_IS_AUTO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_AUTO_CONVERT))
typedef struct _GstAutoConvert GstAutoConvert;
typedef struct _GstAutoConvertClass GstAutoConvertClass;
struct _GstAutoConvert
{
/*< private >*/
GstBin bin; /* we extend GstBin */
/* Protected by the object lock too */
GList *factories;
GstPad *sinkpad;
GstPad *srcpad;
/* Have to be set all at once
* Protected by the object lock */
GstElement *current_subelement;
GstPad *current_internal_srcpad;
GstPad *current_internal_sinkpad;
};
struct _GstAutoConvertClass
{
GstBinClass parent_class;
};
G_END_DECLS
#endif /* __GST_AUTO_CONVERT_H__ */