[0.11] gstreamer: docs: improve memory docs
Wim Taymans
wtay at kemper.freedesktop.org
Fri Jan 6 01:40:24 PST 2012
Module: gstreamer
Branch: 0.11
Commit: 220b324d24bdbc987e1048535e4171b1998fc0e6
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=220b324d24bdbc987e1048535e4171b1998fc0e6
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Fri Jan 6 10:39:46 2012 +0100
docs: improve memory docs
---
gst/gstmemory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/gstmemory.c b/gst/gstmemory.c
index b062180..a44da54 100644
--- a/gst/gstmemory.c
+++ b/gst/gstmemory.c
@@ -27,6 +27,11 @@
* GstMemory is a lightweight refcounted object that wraps a region of memory.
* They are typically used to manage the data of a #GstBuffer.
*
+ * A GstMemory object has an allocated region of memory of maxsize. The maximum
+ * size does not change during the lifetime of the memory object. The memory
+ * also has an offset and size property that specifies the valid range of memory
+ * in the allocated region.
+ *
* Memory is usually created by allocators with a gst_allocator_alloc()
* method call. When NULL is used as the allocator, the default allocator will
* be used.
@@ -45,6 +50,7 @@
* gst_memory_get_sizes() and gst_memory_resize() respectively.
*
* Getting access to the data of the memory is performed with gst_memory_map().
+ * The call will return a pointer to offset bytes into the region of memory.
* After the memory access is completed, gst_memory_unmap() should be called.
*
* Memory can be copied with gst_memory_copy(), which will returnn a writable
More information about the gstreamer-commits
mailing list