Package ch.bailu.gtk.gst
Klasse BufferList
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.BufferList
- Alle implementierten Schnittstellen:
PointerInterface
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.
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
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunglong
Calculates the size of the data contained in @list by adding the
size of all buffers.copyDeep()
Creates a copy of the given buffer list.get
(int idx) Gets the buffer at @idx.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
getWritable
(int idx) Gets the buffer at @idx, ensuring it is a writable buffer.void
Inserts @buffer at @idx in @list.int
length()
Returns the number of buffers in @list.static BufferList
newSizedBufferList
(int size) Creates a new, empty #GstBufferList.void
remove
(int idx, int length) Removes @length buffers starting from @idx in @list.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
BufferList
-
BufferList
public BufferList()Creates a new, empty #GstBufferList.
-
-
Methodendetails
-
getClassHandler
-
newSizedBufferList
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
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
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
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
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 indexbuffer
- 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 indexlength
- the amount to remove
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-