gst.buffer_list
Module for [BufferList] class
class BufferList
Types 1
classBufferList : gobject.boxed.Boxed
Buffer lists are an object containing a list of buffers.
Buffer lists are created with gst.buffer_list.BufferList.new_ and filled with data using gst.buffer_list.BufferList.insert.
Buffer lists can be pushed on a srcpad with gst.pad.Pad.pushList. 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.
Methods
gst.buffer_list.BufferList newSized(uint size) static nothrowCreates a new, empty #GstBufferList. The list will have size space preallocated so that memory reallocations can be avoided.size_t calculateSize() nothrowCalculates the size of the data contained in list by adding the size of all buffers. Returns: the size of the data contained in list in bytes.gst.buffer_list.BufferList copyDeep() nothrowCreates a copy of the given buffer list. This will make a newly allocated copy of the buffers that the source buffer list contains. Returns: a new copy of list.gst.buffer.Buffer getWritable(uint idx) nothrowGets the buffer at idx, ensuring it is a writable buffer.void insert(int idx, gst.buffer.Buffer buffer) nothrowInserts buffer at idx in list. Other buffers are moved to make room for this new buffer.uint length() nothrowReturns the number of buffers in list. Returns: the number of buffers in the buffer listvoid remove(uint idx, uint length) nothrowRemoves length buffers starting from idx in list. The following buffers are moved to close the gap.