2002-12-14 16:22:01 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GstMemChunk
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
Atomic chunk allocator
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
GstMemChunk is an atomic chunk allocator. It uses atomic operations
|
|
|
|
to allocate fixed size memory regions and is therefore thread safe
|
|
|
|
without the overhead of mutexes or other heavyweight locking mechanisms.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The GstMemChunk is used to allocate critical resources for #GstBuffer and
|
|
|
|
#GstEvent.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2005-05-06 17:33:55 +00:00
|
|
|
#GstBuffer, #GstEvent, #GstData
|
2002-12-14 16:22:01 +00:00
|
|
|
</para>
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
<!-- ##### STRUCT GstMemChunk ##### -->
|
|
|
|
<para>
|
|
|
|
The memchunk structure
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2002-12-14 16:22:01 +00:00
|
|
|
<!-- ##### FUNCTION gst_mem_chunk_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@name:
|
|
|
|
@atom_size:
|
|
|
|
@area_size:
|
|
|
|
@type:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_mem_chunk_destroy ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@mem_chunk:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_mem_chunk_alloc ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@mem_chunk:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_mem_chunk_alloc0 ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@mem_chunk:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gst_mem_chunk_free ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@mem_chunk:
|
|
|
|
@mem:
|
|
|
|
|
|
|
|
|