From b9a3ddf5c26a47d2cbf56a8275fbf0f35b9dc301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 28 May 2009 14:37:21 +0200 Subject: [PATCH] Add libgstbase bindings and fixup the Adapter bindings --- gstreamer-sharp/Adapter.custom | 7 + gstreamer-sharp/Gstreamer.metadata | 22 + gstreamer-sharp/Makefile.am | 3 +- gstreamer-sharp/Tag.custom | 4 +- gstreamer-sharp/gstreamer-api.raw | 699 +++++++++++++++++++++++++++++ source/gstreamer-sharp-source.xml | 10 + 6 files changed, 742 insertions(+), 3 deletions(-) create mode 100644 gstreamer-sharp/Adapter.custom diff --git a/gstreamer-sharp/Adapter.custom b/gstreamer-sharp/Adapter.custom new file mode 100644 index 0000000000..1e0ea64707 --- /dev/null +++ b/gstreamer-sharp/Adapter.custom @@ -0,0 +1,7 @@ + [DllImport("libgstbase-0.10.dll")] + static extern void gst_adapter_push(IntPtr raw, IntPtr buf); + + public void Push(Gst.Buffer buf) { + gst_adapter_push(Handle, buf == null ? IntPtr.Zero : buf.OwnedHandle); + } + diff --git a/gstreamer-sharp/Gstreamer.metadata b/gstreamer-sharp/Gstreamer.metadata index 8a6575ab1d..f0f0df8c10 100644 --- a/gstreamer-sharp/Gstreamer.metadata +++ b/gstreamer-sharp/Gstreamer.metadata @@ -972,6 +972,28 @@ 1 + + BaseSrcFlags + Gst.ElementFlags.Last << 0 + Gst.ElementFlags.Last << 2 + + TypeFindHelperGetRangeFunction + out + true + + Adapter + 1 + 1 + 1 + 1 + Take + true + + BaseSrc + BaseSink + BaseTransform + PushSrc + ColorBalanceType MixerFlags diff --git a/gstreamer-sharp/Makefile.am b/gstreamer-sharp/Makefile.am index 1fe1300e58..57632ea322 100644 --- a/gstreamer-sharp/Makefile.am +++ b/gstreamer-sharp/Makefile.am @@ -108,7 +108,8 @@ customs = \ TypeFindFactory.custom \ MixerTrack.custom \ TunerNorm.custom \ - TunerChannel.custom + TunerChannel.custom \ + Adapter.custom build_customs = $(addprefix $(srcdir)/, $(customs)) diff --git a/gstreamer-sharp/Tag.custom b/gstreamer-sharp/Tag.custom index 9a03005f36..a95ef8c101 100644 --- a/gstreamer-sharp/Tag.custom +++ b/gstreamer-sharp/Tag.custom @@ -9,14 +9,14 @@ public static void Register (string name, Gst.TagFlags flag, System.Type type, s Register (name, flag, gt, nick, blurb, func); } -[DllImport("libgstreamer-0.10.dll") ] +[DllImport ("libgstreamer-0.10.dll") ] static extern void gst_tag_merge_strings_with_comma (out GLib.Value dest, ref GLib.Value src); public static void MergeStringsWithComma (out GLib.Value dest, ref GLib.Value src) { gst_tag_merge_strings_with_comma (out dest, ref src); } -[DllImport("libgstreamer-0.10.dll") ] +[DllImport ("libgstreamer-0.10.dll") ] static extern void gst_tag_merge_use_first (out GLib.Value dest, ref GLib.Value src); public static void MergeUseFirst (out GLib.Value dest, ref GLib.Value src) { diff --git a/gstreamer-sharp/gstreamer-api.raw b/gstreamer-sharp/gstreamer-api.raw index d16e7d6b56..e938735dda 100644 --- a/gstreamer-sharp/gstreamer-api.raw +++ b/gstreamer-sharp/gstreamer-api.raw @@ -6174,6 +6174,705 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/gstreamer-sharp-source.xml b/source/gstreamer-sharp-source.xml index 8b2ff78ba4..0ba19d1a9d 100644 --- a/source/gstreamer-sharp-source.xml +++ b/source/gstreamer-sharp-source.xml @@ -29,6 +29,16 @@ ../../gstreamer/gst/gettext.h + + + ../../gstreamer/libs/gst/base + + ../../gstreamer/libs/gst/base/gstdataqueue.h + ../../gstreamer/libs/gst/base/gstcollectpads.h + ../../gstreamer/libs/gst/base/gstbitreader.h + ../../gstreamer/libs/gst/base/gstbytereader.h + + ../../gst-plugins-base/gst-libs/gst/interfaces