Klasse BufferList

Alle implementierten Schnittstellen:
PointerInterface

public class BufferList extends Record
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.

https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html

  • Konstruktordetails

    • BufferList

      public BufferList(PointerContainer pointer)
    • BufferList

      public BufferList()
      Creates a new, empty #GstBufferList.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newSizedBufferList

      public static BufferList newSizedBufferList(int size)
      Creates a new, empty #GstBufferList. The list will have @size space
      preallocated so that memory reallocations can be avoided.
      Parameter:
      size - an initial reserved size
      Gibt zurück:
      the new #GstBufferList.
    • calculateSize

      public long calculateSize()
      Calculates the size of the data contained in @list by adding the
      size of all buffers.
      Gibt zurück:
      the size of the data contained in @list in bytes.
    • copyDeep

      public BufferList copyDeep()
      Creates a copy of the given buffer list. This will make a newly allocated
      copy of the buffers that the source buffer list contains.
      Gibt zurück:
      a new copy of @list.
    • get

      public Buffer get(int idx)
      Gets the buffer at @idx.

      You must make sure that @idx does not exceed the number of
      buffers available.
      Parameter:
      idx - the index
      Gibt zurück:
      the buffer at @idx in @group. The returned buffer remains valid as long as @list is valid and buffer is not removed from the list.
    • getWritable

      public Buffer getWritable(int idx)
      Gets the buffer at @idx, ensuring it is a writable buffer.

      You must make sure that @idx does not exceed the number of
      buffers available.
      Parameter:
      idx - the index
      Gibt zurück:
      the buffer at @idx in @group. The returned buffer remains valid as long as @list is valid and the buffer is not removed from the list.
    • insert

      public void insert(int idx, @Nonnull Buffer buffer)
      Inserts @buffer at @idx in @list. Other buffers are moved to make room for
      this new buffer.

      A -1 value for @idx will append the buffer at the end.
      Parameter:
      idx - the index
      buffer - a #GstBuffer
    • length

      public int length()
      Returns the number of buffers in @list.
      Gibt zurück:
      the number of buffers in the buffer list
    • remove

      public void remove(int idx, int length)
      Removes @length buffers starting from @idx in @list. The following buffers
      are moved to close the gap.
      Parameter:
      idx - the index
      length - the amount to remove
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()