Creates a new, empty #GstBufferList.
Calculates the size of the data contained in list
by adding the
size of all buffers.
Creates a copy of the given buffer list. This will make a newly allocated copy of the buffers that the source buffer list contains.
Calls func
with data
for each buffer in list
.
func
can modify the passed buffer pointer or its contents. The return value
of func
defines if this function returns or if the remaining buffers in
the list should be skipped.
a #GstBufferListFunc to call
Returns the number of buffers in list
.
Removes length
buffers starting from idx
in list
. The following buffers
are moved to close the gap.
the index
the amount to remove
Creates a new, empty #GstBufferList.
Creates a new, empty #GstBufferList. The list will have size
space
preallocated so that memory reallocations can be avoided.
an initial reserved size
Modifies a pointer to a #GstBufferList to point to a different #GstBufferList. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old buffer list is unreffed, the new is reffed).
Either new_list
or the #GstBufferList pointed to by old_list
may be %NULL.
pointer to a pointer to a #GstBufferList to be replaced.
pointer to a #GstBufferList that will replace the buffer list pointed to by old_list
.
Modifies a pointer to a #GstBufferList to point to a different
#GstBufferList. This function is similar to gst_buffer_list_replace() except
that it takes ownership of new_list
.
pointer to a pointer to a #GstBufferList to be replaced.
pointer to a #GstBufferList that will replace the bufferlist pointed to by old_list
.
Buffer lists are an object containing a list of buffers.
Buffer lists are created with gst_buffer_list_new() and filled with data using gst_buffer_list_insert().
Buffer lists can be pushed on a srcpad with gst_pad_push_list(). This is interesting when multiple buffers need to be pushed in one go because it can reduce the amount of overhead for pushing each buffer individually.