Subject: | buffer memory pointer |
Hello
It will be good to have "data_ptr" method in gstreamer buffer object in
order to avoid memory copying.
best regards
Subject: | data_ptr.diff |
diff --git a/xs/GstBuffer.xs b/xs/GstBuffer.xs
index 10e20c5..4f77a45 100644
--- a/xs/GstBuffer.xs
+++ b/xs/GstBuffer.xs
@@ -41,6 +41,14 @@ data (buffer)
OUTPUT:
RETVAL
+void *
+data_ptr (buffer)
+ GstBuffer *buffer
+ CODE:
+ RETVAL = GST_BUFFER_DATA (buffer);
+ OUTPUT:
+ RETVAL
+
guint
size (buffer)
GstBuffer *buffer