[gstreamermm: 76/167] wrapped (I think) useful methods in buffer
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 76/167] wrapped (I think) useful methods in buffer
- Date: Tue, 3 Sep 2013 19:25:27 +0000 (UTC)
commit 622904f7563ea7fe71066a166b7787bf2860c572
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date: Tue Jul 30 12:29:38 2013 +0200
wrapped (I think) useful methods in buffer
gstreamer/src/buffer.hg | 7 +++++++
tools/m4/convert_gst.m4 | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gstreamer/src/buffer.hg b/gstreamer/src/buffer.hg
index 6eb2218..7292946 100644
--- a/gstreamer/src/buffer.hg
+++ b/gstreamer/src/buffer.hg
@@ -20,6 +20,7 @@
#include <gst/gst.h>
#include <gstreamermm/miniobject.h>
#include <gstreamermm/clock.h>
+#include <gstreamermm/memory.h>
_DEFS(gstreamermm,gst)
@@ -71,6 +72,12 @@ public:
//This is const because it always returns a new buffer:
_WRAP_METHOD(Glib::RefPtr<Gst::Buffer> merge(const Glib::RefPtr<const Gst::Buffer>& other_buffer) const,
gst_buffer_merge)
+ _WRAP_METHOD(Glib::RefPtr<Gst::Memory> get_memory(guint idx) const, gst_buffer_get_memory)
+
+ _WRAP_METHOD(gsize get_size () const, gst_buffer_get_size)
+
+ _WRAP_METHOD(Glib::RefPtr<Gst::Memory> get_all_memory() const, gst_buffer_get_all_memory)
+
_MEMBER_GET(pts, pts, ClockTime, GstClockTime)
_MEMBER_GET(dts, dts, ClockTime, GstClockTime)
diff --git a/tools/m4/convert_gst.m4 b/tools/m4/convert_gst.m4
index 698fd0d..9c8c10e 100644
--- a/tools/m4/convert_gst.m4
+++ b/tools/m4/convert_gst.m4
@@ -134,6 +134,10 @@ _CONVERSION(`GstIterator*',`Gst::Iterator<Gst::Pad>',`Gst::Iterator<Gst::Pad>($3
_CONVERSION(`GstIterator*',`Gst::Iterator<const Gst::Pad>',`Gst::Iterator<const Gst::Pad>($3)')
_CONVERSION(`GstIterator*',`Gst::IteratorBasic<const Gst::QueryTypeDefinition>',`Gst::IteratorBasic<const
Gst::QueryTypeDefinition>($3)')
+dnl Memory
+_CONVERSION(`GstMemory*',`Glib::RefPtr<Gst::Memory>',`Glib::wrap($3)')
+_CONVERSION(`Glib::RefPtr<Gst::Memory>&',`GstMemory*', `Glib::unwrap($3)')
+
dnl Message
_CONVERSION(`GstMessage*',`Glib::RefPtr<Gst::Message>',`Glib::wrap($3)')
_CONVERSION(`GstMessage*',`Glib::RefPtr<const Gst::Message>',`Glib::wrap($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]