Package org.freedesktop.gstreamer.gst
Class BufferPoolAcquireParams
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.BufferPoolAcquireParams
- All Implemented Interfaces:
Proxy
Parameters passed to the gst_buffer_pool_acquire_buffer() function to control the
allocation of the buffer.
The default implementation ignores the start
and stop
members but other
implementations can use this extra information to decide what buffer to
return.
-
Constructor Summary
ConstructorDescriptionAllocate a new BufferPoolAcquireParams.BufferPoolAcquireParams
(Arena arena) Allocate a new BufferPoolAcquireParams.BufferPoolAcquireParams
(MemorySegment address) Create a BufferPoolAcquireParams proxy instance for the provided memory address.BufferPoolAcquireParams
(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags) Allocate a new BufferPoolAcquireParams with the fields set to the provided values.BufferPoolAcquireParams
(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags, Arena arena) Allocate a new BufferPoolAcquireParams with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldflags
.Read the value of the fieldformat
.long
Read the value of the fieldstart
.long
readStop()
Read the value of the fieldstop
.void
writeFlags
(Set<BufferPoolAcquireFlags> flags) Write a value in the fieldflags
.void
writeFormat
(Format format) Write a value in the fieldformat
.void
writeStart
(long start) Write a value in the fieldstart
.void
writeStop
(long stop) Write a value in the fieldstop
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
BufferPoolAcquireParams
Create a BufferPoolAcquireParams proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
BufferPoolAcquireParams
Allocate a new BufferPoolAcquireParams.- Parameters:
arena
- to control the memory allocation scope
-
BufferPoolAcquireParams
public BufferPoolAcquireParams()Allocate a new BufferPoolAcquireParams. The memory is allocated withArena.ofAuto()
. -
BufferPoolAcquireParams
public BufferPoolAcquireParams(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags, Arena arena) Allocate a new BufferPoolAcquireParams with the fields set to the provided values.- Parameters:
format
- value for the fieldformat
start
- value for the fieldstart
stop
- value for the fieldstop
flags
- value for the fieldflags
arena
- to control the memory allocation scope
-
BufferPoolAcquireParams
public BufferPoolAcquireParams(Format format, long start, long stop, Set<BufferPoolAcquireFlags> flags) Allocate a new BufferPoolAcquireParams with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
format
- value for the fieldformat
start
- value for the fieldstart
stop
- value for the fieldstop
flags
- value for the fieldflags
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readFormat
Read the value of the fieldformat
.- Returns:
- The value of the field
format
-
writeFormat
Write a value in the fieldformat
.- Parameters:
format
- The new value for the fieldformat
-
readStart
public long readStart()Read the value of the fieldstart
.- Returns:
- The value of the field
start
-
writeStart
public void writeStart(long start) Write a value in the fieldstart
.- Parameters:
start
- The new value for the fieldstart
-
readStop
public long readStop()Read the value of the fieldstop
.- Returns:
- The value of the field
stop
-
writeStop
public void writeStop(long stop) Write a value in the fieldstop
.- Parameters:
stop
- The new value for the fieldstop
-
readFlags
Read the value of the fieldflags
.- Returns:
- The value of the field
flags
-
writeFlags
Write a value in the fieldflags
.- Parameters:
flags
- The new value for the fieldflags
-