[gstreamermm] wrapped gsttoc, gsttocentry classes
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] wrapped gsttoc, gsttocentry classes
- Date: Wed, 25 Sep 2013 14:00:49 +0000 (UTC)
commit 153cf33a54eddfcf9e314842cf0d41314b300518
Author: Marcin Kolny at Flytronic.pl <marcin kolny flytronic pl>
Date: Wed Sep 25 15:38:31 2013 +0200
wrapped gsttoc, gsttocentry classes
.gitignore | 2 +
gstreamer/src/filelist.am | 1 +
gstreamer/src/toc.ccg | 27 +++++++++++++++++
gstreamer/src/toc.hg | 69 +++++++++++++++++++++++++++++++++++++++++++++
tools/m4/convert_gst.m4 | 6 ++++
5 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f57bedd..13664eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -171,6 +171,8 @@ gstreamer/gstreamermm/task.cc
gstreamer/gstreamermm/task.h
gstreamer/gstreamermm/taskpool.cc
gstreamer/gstreamermm/taskpool.h
+gstreamer/gstreamermm/toc.cc
+gstreamer/gstreamermm/toc.h
gstreamer/gstreamermm/tuner.cc
gstreamer/gstreamermm/tuner.h
gstreamer/gstreamermm/tunerchannel.cc
diff --git a/gstreamer/src/filelist.am b/gstreamer/src/filelist.am
index daec533..d289e65 100644
--- a/gstreamer/src/filelist.am
+++ b/gstreamer/src/filelist.am
@@ -137,6 +137,7 @@ files_hg = \
tagsetter.hg \
task.hg \
taskpool.hg \
+ toc.hg \
typefindfactory.hg \
typefind.hg \
urihandler.hg \
diff --git a/gstreamer/src/toc.ccg b/gstreamer/src/toc.ccg
new file mode 100644
index 0000000..167e43a
--- /dev/null
+++ b/gstreamer/src/toc.ccg
@@ -0,0 +1,27 @@
+/*
+ * toc.ccg
+ *
+ * Created on: Sep 25, 2013
+ * Author: m.kolny
+ */
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008-2013 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.
+ */
+
+
+_PINCLUDE(gstreamermm/private/miniobject_p.h)
diff --git a/gstreamer/src/toc.hg b/gstreamer/src/toc.hg
new file mode 100644
index 0000000..141122e
--- /dev/null
+++ b/gstreamer/src/toc.hg
@@ -0,0 +1,69 @@
+/*
+ * toc.hg
+ *
+ * Created on: Sep 25, 2013
+ * Author: m.kolny
+ */
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008-20013 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/gst.h>
+#include <gstreamermm/miniobject.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+ class TocEntry;
+
+ _WRAP_ENUM(TocScope, GstTocScope)
+ _WRAP_ENUM(TocEntryType, GstTocEntryType)
+
+class Toc : public MiniObject
+{
+ _CLASS_OPAQUE_REFCOUNTED(Toc, GstToc, NONE, gst_toc_ref, gst_toc_unref)
+public:
+ _WRAP_METHOD(void append_entry(Glib::RefPtr<Gst::TocEntry> entry), gst_toc_append_entry)
+ _WRAP_METHOD(void dump(), gst_toc_dump)
+ _WRAP_METHOD(void dump() const, gst_toc_dump, constversion)
+};
+
+class TocEntry : public MiniObject
+{
+ _CLASS_OPAQUE_REFCOUNTED(TocEntry, GstTocEntry, NONE, gst_toc_entry_ref, gst_toc_entry_unref)
+public:
+ _WRAP_METHOD(TocEntryType get_entry_type(), gst_toc_entry_get_entry_type)
+ _WRAP_METHOD(Glib::ustring get_uid(), gst_toc_entry_get_uid)
+ _WRAP_METHOD(void append_sub_entry(Glib::RefPtr<Gst::TocEntry> entry), gst_toc_entry_append_sub_entry)
+
+ _WRAP_METHOD(bool is_alternative(), gst_toc_entry_is_alternative)
+ _WRAP_METHOD(bool is_alternative() const, gst_toc_entry_is_alternative, constversion)
+
+ _WRAP_METHOD(bool is_sequence(), gst_toc_entry_is_sequence)
+ _WRAP_METHOD(bool is_sequence() const, gst_toc_entry_is_sequence, constversion)
+
+ _WRAP_METHOD(Glib::RefPtr<Gst::TocEntry> get_parent(), gst_toc_entry_get_parent)
+ _WRAP_METHOD(void set_start_stop_times(gint64 start, gint64 stop), gst_toc_entry_set_start_stop_times)
+
+ _WRAP_METHOD(bool get_start_stop_times(gint64& start, gint64& stop), gst_toc_entry_get_start_stop_times)
+ _WRAP_METHOD(bool get_start_stop_times(gint64& start, gint64& stop) const,
gst_toc_entry_get_start_stop_times, constversion)
+};
+
+
+}
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index 46dea04..b30e47c 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -48,6 +48,8 @@ _CONV_ENUM(Gst,StateChangeReturn)
_CONV_ENUM(Gst,StreamVolumeFormat)
_CONV_ENUM(Gst,TagMergeMode)
_CONV_ENUM(Gst,TaskState)
+_CONV_ENUM(Gst,TocEntryType)
+_CONV_ENUM(Gst,TocScope)
_CONV_ENUM(Gst,TunerChannelFlags)
_CONV_ENUM(Gst,URIType)
@@ -226,6 +228,10 @@ _CONVERSION(`const Glib::RefPtr<Gst::TaskPool>&',`GstTaskPool*', `Glib::unwrap($
_CONVERSION(`GstTaskPool*',`Glib::RefPtr<Gst::TaskPool>',`Glib::wrap($3)')
_CONVERSION(`GstTaskPool*',`Glib::RefPtr<const Gst::TaskPool>',`Glib::wrap($3)')
+dnl TocEntry
+_CONVERSION(`GstTocEntry*',`Glib::RefPtr<Gst::TocEntry>',`Glib::wrap($3)')
+_CONVERSION(`Glib::RefPtr<Gst::TocEntry>', `GstTocEntry*',`Glib::unwrap($3)')
+
dnl TypeFind
_CONVERSION(`Gst::TypeFind&',`GstTypeFind*',`$3.gobj()')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]