gnomemm r2075 - in gstreamermm/trunk: . gstreamer/src tools/m4



Author: jaalburqu
Date: Sun Mar  1 23:34:03 2009
New Revision: 2075
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2075&view=rev

Log:
2009-03-01  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/src/Makefile_list_of_hg.am_fragment:
	* gstreamer/src/typefindfactory.ccg:
	* gstreamer/src/typefindfactory.hg:
	* tools/m4/convert_gst.m4: Wrapped GstTypeFindFactory.

Added:
   gstreamermm/trunk/gstreamer/src/typefindfactory.ccg
   gstreamermm/trunk/gstreamer/src/typefindfactory.hg
Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
   gstreamermm/trunk/tools/m4/convert_gst.m4

Modified: gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	(original)
+++ gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	Sun Mar  1 23:34:03 2009
@@ -10,7 +10,7 @@
 	iterator.hg message.hg pad.hg padtemplate.hg parse.hg pipeline.hg \
 	plugin.hg pluginfeature.hg preset.hg query.hg registry.hg segment.hg \
 	structure.hg systemclock.hg taglist.hg tagsetter.hg task.hg \
-	typefind.hg urihandler.hg value.hg xml.hg \
+	typefind.hg typefindfactory.hg urihandler.hg value.hg xml.hg \
 	basesrc.hg basesink.hg basetransform.hg pushsrc.hg audioclock.hg \
 	audiofilter.hg audiosink.hg audiosrc.hg baseaudiosink.hg \
 	baseaudiosrc.hg cddabasesrc.hg videosink.hg \

Added: gstreamermm/trunk/gstreamer/src/typefindfactory.ccg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/typefindfactory.ccg	Sun Mar  1 23:34:03 2009
@@ -0,0 +1,23 @@
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gstreamermm/caps.h>
+#include <gstreamermm/typefind.h>
+
+_PINCLUDE(gstreamermm/private/pluginfeature_p.h)

Added: gstreamermm/trunk/gstreamer/src/typefindfactory.hg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/typefindfactory.hg	Sun Mar  1 23:34:03 2009
@@ -0,0 +1,56 @@
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gst/gsttypefindfactory.h>
+#include <gstreamermm/pluginfeature.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+
+class Caps;
+class TypeFind;
+
+/** Gst::TypeFindFactory â Information about registered typefind functions.
+ * These functions allow querying informations about registered typefind
+ * functions.
+ *
+ * TODO: Maybe include an example of writing a simple typefinder like the one
+ * in the C API docs.
+ *
+ * Last reviewed on 2005-11-09 (0.9.4).
+ */
+class TypeFindFactory : public PluginFeature
+{
+  _CLASS_GOBJECT(TypeFindFactory, GstTypeFindFactory, GST_TYPE_FIND_FACTORY, PluginFeature, GstPluginFeature)
+
+public:
+#m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> >',`$2($3, Glib::OWNERSHIP_DEEP)')
+  _WRAP_METHOD(static Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> > get_list(), gst_type_find_factory_get_list)
+
+#m4 _CONVERSION(`gchar**',`Glib::StringArrayHandle',`$2($3, Glib::OWNERSHIP_NONE)')
+  _WRAP_METHOD(Glib::StringArrayHandle get_extensions() const, gst_type_find_factory_get_extensions)
+
+  _WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_caps(), gst_type_find_factory_get_caps)
+  _WRAP_METHOD(Glib::RefPtr<const Gst::Caps> get_caps() const, gst_type_find_factory_get_caps, constversion)
+  _WRAP_METHOD(void call_slot(Gst::TypeFind& find), gst_type_find_factory_call_function)
+};
+
+} // namespace Gst

Modified: gstreamermm/trunk/tools/m4/convert_gst.m4
==============================================================================
--- gstreamermm/trunk/tools/m4/convert_gst.m4	(original)
+++ gstreamermm/trunk/tools/m4/convert_gst.m4	Sun Mar  1 23:34:03 2009
@@ -154,6 +154,11 @@
 _CONVERSION(`const GstTagList*',`const Gst::TagList',`Glib::wrap(const_cast<GstTagList*>($3), 0, true)')
 _CONVERSION(`Gst::TagList',`GstTagList*',`($3).gobj()')
 
+#TypeFind
+_CONVERSION(`Gst::TypeFind&',`GstTypeFind*',`($3).gobj()')
+
+############### gstreamermm Interface Conversions ######################
+
 #TunerChannel
 _CONVERSION(`GstTunerChannel*',`Glib::RefPtr<Gst::TunerChannel>', `Glib::wrap($3)')
 _CONVERSION(`GstTunerChannel*',`Glib::RefPtr<const Gst::TunerChannel>', `Glib::wrap($3)')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]