gnomemm r1618 - in gstreamermm/trunk: . gstreamer gstreamer/src
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1618 - in gstreamermm/trunk: . gstreamer gstreamer/src
- Date: Tue, 22 Jul 2008 18:49:27 +0000 (UTC)
Author: jaalburqu
Date: Tue Jul 22 18:49:27 2008
New Revision: 1618
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1618&view=rev
Log:
2008-07-22 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/gstreamermm.h:
* gstreamer/src/Makefile_list_of_hg.am_fragment:
* gstreamer/src/pushsrc.ccg:
* gstreamer/src/pushsrc.hg: Added Gst::PushSrc class.
* gstreamer/src/basesink.ccg:
* gstreamer/src/basesrc.ccg:
* gstreamer/src/basetransform.ccg: Removed unused includes.
Added:
gstreamermm/trunk/gstreamer/src/pushsrc.ccg
gstreamermm/trunk/gstreamer/src/pushsrc.hg
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/gstreamermm.h
gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
gstreamermm/trunk/gstreamer/src/basesink.ccg
gstreamermm/trunk/gstreamer/src/basesrc.ccg
gstreamermm/trunk/gstreamer/src/basetransform.ccg
Modified: gstreamermm/trunk/gstreamer/gstreamermm.h
==============================================================================
--- gstreamermm/trunk/gstreamer/gstreamermm.h (original)
+++ gstreamermm/trunk/gstreamer/gstreamermm.h Tue Jul 22 18:49:27 2008
@@ -43,6 +43,7 @@
#include <gstreamermm/basesrc.h>
#include <gstreamermm/basesink.h>
#include <gstreamermm/basetransform.h>
+#include <gstreamermm/pushsrc.h>
#include <gstreamermm/init.h>
#include <gstreamermm/version.h>
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 Tue Jul 22 18:49:27 2008
@@ -10,7 +10,8 @@
message.hg pad.hg padtemplate.hg parse.hg pipeline.hg \
plugin.hg pluginfeature.hg query.hg registry.hg segment.hg \
structure.hg systemclock.hg tagsetter.hg task.hg urihandler.hg \
- value.hg xml.hg basesrc.hg basesink.hg basetransform.hg
+ value.hg xml.hg \
+ basesrc.hg basesink.hg basetransform.hg pushsrc.hg
#TODO: Add ghostpad.hg when bug #539108 is fixed (and patch in bug is applied)
#TODO: Add iterator.hg when it is implemented
Modified: gstreamermm/trunk/gstreamer/src/basesink.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/basesink.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/basesink.ccg Tue Jul 22 18:49:27 2008
@@ -22,5 +22,4 @@
#include <gst/base/gstbasesink.h>
#include <gstreamermm/pad.h>
-_PINCLUDE(glibmm/private/object_p.h)
_PINCLUDE(gstreamermm/private/element_p.h)
Modified: gstreamermm/trunk/gstreamer/src/basesrc.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/basesrc.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/basesrc.ccg Tue Jul 22 18:49:27 2008
@@ -23,5 +23,4 @@
#include <gstreamermm/caps.h>
#include <gstreamermm/buffer.h>
-_PINCLUDE(glibmm/private/object_p.h)
_PINCLUDE(gstreamermm/private/element_p.h)
Modified: gstreamermm/trunk/gstreamer/src/basetransform.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/basetransform.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/basetransform.ccg Tue Jul 22 18:49:27 2008
@@ -23,7 +23,6 @@
#include <gstreamermm/caps.h>
#include <gstreamermm/buffer.h>
-_PINCLUDE(glibmm/private/object_p.h)
_PINCLUDE(gstreamermm/private/element_p.h)
namespace Gst
Added: gstreamermm/trunk/gstreamer/src/pushsrc.ccg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/pushsrc.ccg Tue Jul 22 18:49:27 2008
@@ -0,0 +1,24 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* 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 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gst/base/gstpushsrc.h>
+
+_PINCLUDE(gstreamermm/private/basesrc_p.h)
Added: gstreamermm/trunk/gstreamer/src/pushsrc.hg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/pushsrc.hg Tue Jul 22 18:49:27 2008
@@ -0,0 +1,55 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* 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 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gstreamermm/basesrc.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+/** Gst::PushSrc â Base class for push based source elements.
+ * This class is mostly useful for elements that cannot do random access, or at
+ * least very slowly. The source usually prefers to push out a fixed size
+ * buffer.
+ *
+ * Subclasses usually operate in a format that is different from the default
+ * Gst::FORMAT_BYTES format of Gst::BaseSrc.
+ *
+ * Classes extending this base class will usually be scheduled in a push based
+ * mode. If the peer accepts to operate without offsets and within the limits
+ * of the allowed block size, this class can operate in getrange based mode
+ * automatically. To make this possible, the subclass should override the
+ * Gst::BaseSrc::check_get_range_vfunc() method.
+ *
+ * The subclass should extend the methods from the baseclass in addition to the
+ * GstBaseSrc::create_vfunc() method.
+ *
+ * Seeking, flushing, scheduling and sync is all handled by this base class.
+ *
+ * Last reviewed on 2006-07-04 (0.10.9).
+ */
+class PushSrc
+: public BaseSrc
+{
+ _CLASS_GOBJECT(PushSrc, GstPushSrc, GST_PUSH_SRC, BaseSrc, GstBaseSrc)
+};
+
+} //namespace Gst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]