mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
improve docs a little
This commit is contained in:
parent
da81ada9d0
commit
e97ecdebea
1 changed files with 4 additions and 6 deletions
|
@ -37,7 +37,7 @@ Allocators
|
||||||
|
|
||||||
After an allocator is registerd, new GstMemory can be created with
|
After an allocator is registerd, new GstMemory can be created with
|
||||||
|
|
||||||
GstMemory * gst_memory_allocator_alloc (const GstMemoryAllocator * allocator,
|
GstMemory * gst_allocator_alloc (const GstAllocator * allocator,
|
||||||
gsize maxsize, gsize align);
|
gsize maxsize, gsize align);
|
||||||
|
|
||||||
The GstMemory object is a refcounted object that must be freed with
|
The GstMemory object is a refcounted object that must be freed with
|
||||||
|
@ -87,13 +87,11 @@ Memory layout
|
||||||
|
|
||||||
The current properties of the accessible memory can be retrieved with:
|
The current properties of the accessible memory can be retrieved with:
|
||||||
|
|
||||||
gsize gst_memory_get_sizes (GstMemory *mem, gsize *maxsize);
|
gsize gst_memory_get_sizes (GstMemory *mem, gsize *offset, gsize *maxsize);
|
||||||
|
|
||||||
The offset and size can be changed with:
|
The offset and size can be changed with:
|
||||||
|
|
||||||
void gst_memory_resize (GstMemory *mem, gsize offset, gsize size);
|
void gst_memory_resize (GstMemory *mem, gssize offset, gsize size);
|
||||||
|
|
||||||
The visible memory region can currently only be made smaller.
|
|
||||||
|
|
||||||
The memory object is always readable. The memory block is writable when:
|
The memory object is always readable. The memory block is writable when:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue