Package org.lwjgl.vulkan.video
Class StdVideoVP9Segmentation
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoVP9Segmentation
extends Struct<StdVideoVP9Segmentation>
implements NativeResource
struct StdVideoVP9Segmentation {
{@link StdVideoVP9SegmentationFlags StdVideoVP9SegmentationFlags} flags;
uint8_t segmentation_tree_probs[STD_VIDEO_VP9_MAX_SEGMENTATION_TREE_PROBS];
uint8_t segmentation_pred_prob[STD_VIDEO_VP9_MAX_SEGMENTATION_PRED_PROB];
uint8_t FeatureEnabled[STD_VIDEO_VP9_MAX_SEGMENTS];
int16_t FeatureData[STD_VIDEO_VP9_SEG_LVL_MAX];
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoVP9Segmentation
(ByteBuffer container) Creates aStdVideoVP9Segmentation
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9Segmentation
calloc()
Returns a newStdVideoVP9Segmentation
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9Segmentation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoVP9Segmentation
calloc
(MemoryStack stack) Returns a newStdVideoVP9Segmentation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoVP9Segmentation
create()
Returns a newStdVideoVP9Segmentation
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withBufferUtils
.static StdVideoVP9Segmentation
create
(long address) Returns a newStdVideoVP9Segmentation
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoVP9Segmentation.Buffer
instance at the specified memory.static @Nullable StdVideoVP9Segmentation
createSafe
(long address) static @Nullable StdVideoVP9Segmentation.Buffer
createSafe
(long address, int capacity) short
FeatureData
(int index) FeatureData
(int index, short value) Sets the specified value at the specified index of theFeatureData
field.FeatureData
(ShortBuffer value) Copies the specifiedShortBuffer
to theFeatureData
field.byte
FeatureEnabled
(int index) FeatureEnabled
(int index, byte value) Sets the specified value at the specified index of theFeatureEnabled
field.FeatureEnabled
(ByteBuffer value) Copies the specifiedByteBuffer
to theFeatureEnabled
field.flags()
flags
(Consumer<StdVideoVP9SegmentationFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoVP9SegmentationFlags
to theflags
field.static StdVideoVP9Segmentation
malloc()
Returns a newStdVideoVP9Segmentation
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9Segmentation.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoVP9Segmentation
malloc
(MemoryStack stack) Returns a newStdVideoVP9Segmentation
instance allocated on the specifiedMemoryStack
.static ShortBuffer
nFeatureData
(long struct) Unsafe version ofFeatureData()
.static short
nFeatureData
(long struct, int index) Unsafe version ofFeatureData
.static void
nFeatureData
(long struct, int index, short value) Unsafe version ofFeatureData
.static void
nFeatureData
(long struct, ShortBuffer value) Unsafe version ofFeatureData
.static ByteBuffer
nFeatureEnabled
(long struct) Unsafe version ofFeatureEnabled()
.static byte
nFeatureEnabled
(long struct, int index) Unsafe version ofFeatureEnabled
.static void
nFeatureEnabled
(long struct, int index, byte value) Unsafe version ofFeatureEnabled
.static void
nFeatureEnabled
(long struct, ByteBuffer value) Unsafe version ofFeatureEnabled
.static StdVideoVP9SegmentationFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoVP9SegmentationFlags value) Unsafe version offlags
.static ByteBuffer
nsegmentation_pred_prob
(long struct) Unsafe version ofsegmentation_pred_prob()
.static byte
nsegmentation_pred_prob
(long struct, int index) Unsafe version ofsegmentation_pred_prob
.static void
nsegmentation_pred_prob
(long struct, int index, byte value) Unsafe version ofsegmentation_pred_prob
.static void
nsegmentation_pred_prob
(long struct, ByteBuffer value) Unsafe version ofsegmentation_pred_prob
.static ByteBuffer
nsegmentation_tree_probs
(long struct) Unsafe version ofsegmentation_tree_probs()
.static byte
nsegmentation_tree_probs
(long struct, int index) Unsafe version ofsegmentation_tree_probs
.static void
nsegmentation_tree_probs
(long struct, int index, byte value) Unsafe version ofsegmentation_tree_probs
.static void
nsegmentation_tree_probs
(long struct, ByteBuffer value) Unsafe version ofsegmentation_tree_probs
.byte
segmentation_pred_prob
(int index) segmentation_pred_prob
(int index, byte value) Sets the specified value at the specified index of thesegmentation_pred_prob
field.segmentation_pred_prob
(ByteBuffer value) Copies the specifiedByteBuffer
to thesegmentation_pred_prob
field.byte
segmentation_tree_probs
(int index) segmentation_tree_probs
(int index, byte value) Sets the specified value at the specified index of thesegmentation_tree_probs
field.Copies the specifiedByteBuffer
to thesegmentation_tree_probs
field.Copies the specified struct data to this struct.set
(StdVideoVP9SegmentationFlags flags, ByteBuffer segmentation_tree_probs, ByteBuffer segmentation_pred_prob, ByteBuffer FeatureEnabled, ShortBuffer FeatureData) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SEGMENTATION_TREE_PROBS
public static final int SEGMENTATION_TREE_PROBSThe struct member offsets. -
SEGMENTATION_PRED_PROB
public static final int SEGMENTATION_PRED_PROBThe struct member offsets. -
FEATUREENABLED
public static final int FEATUREENABLEDThe struct member offsets. -
FEATUREDATA
public static final int FEATUREDATAThe struct member offsets.
-
-
Constructor Details
-
StdVideoVP9Segmentation
Creates aStdVideoVP9Segmentation
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoVP9Segmentation>
-
flags
- Returns:
- a
StdVideoVP9SegmentationFlags
view of theflags
field.
-
segmentation_tree_probs
- Returns:
- a
ByteBuffer
view of thesegmentation_tree_probs
field.
-
segmentation_tree_probs
public byte segmentation_tree_probs(int index) - Returns:
- the value at the specified index of the
segmentation_tree_probs
field.
-
segmentation_pred_prob
- Returns:
- a
ByteBuffer
view of thesegmentation_pred_prob
field.
-
segmentation_pred_prob
public byte segmentation_pred_prob(int index) - Returns:
- the value at the specified index of the
segmentation_pred_prob
field.
-
FeatureEnabled
- Returns:
- a
ByteBuffer
view of theFeatureEnabled
field.
-
FeatureEnabled
public byte FeatureEnabled(int index) - Returns:
- the value at the specified index of the
FeatureEnabled
field.
-
FeatureData
- Returns:
- a
ShortBuffer
view of theFeatureData
field.
-
FeatureData
public short FeatureData(int index) - Returns:
- the value at the specified index of the
FeatureData
field.
-
flags
Copies the specifiedStdVideoVP9SegmentationFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
segmentation_tree_probs
Copies the specifiedByteBuffer
to thesegmentation_tree_probs
field. -
segmentation_tree_probs
Sets the specified value at the specified index of thesegmentation_tree_probs
field. -
segmentation_pred_prob
Copies the specifiedByteBuffer
to thesegmentation_pred_prob
field. -
segmentation_pred_prob
Sets the specified value at the specified index of thesegmentation_pred_prob
field. -
FeatureEnabled
Copies the specifiedByteBuffer
to theFeatureEnabled
field. -
FeatureEnabled
Sets the specified value at the specified index of theFeatureEnabled
field. -
FeatureData
Copies the specifiedShortBuffer
to theFeatureData
field. -
FeatureData
Sets the specified value at the specified index of theFeatureData
field. -
set
public StdVideoVP9Segmentation set(StdVideoVP9SegmentationFlags flags, ByteBuffer segmentation_tree_probs, ByteBuffer segmentation_pred_prob, ByteBuffer FeatureEnabled, ShortBuffer FeatureData) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newStdVideoVP9Segmentation
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9Segmentation
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9Segmentation
instance allocated withBufferUtils
. -
create
Returns a newStdVideoVP9Segmentation
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoVP9Segmentation.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoVP9Segmentation.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9Segmentation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9Segmentation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9Segmentation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9Segmentation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
Unsafe version offlags()
. -
nsegmentation_tree_probs
Unsafe version ofsegmentation_tree_probs()
. -
nsegmentation_tree_probs
public static byte nsegmentation_tree_probs(long struct, int index) Unsafe version ofsegmentation_tree_probs
. -
nsegmentation_pred_prob
Unsafe version ofsegmentation_pred_prob()
. -
nsegmentation_pred_prob
public static byte nsegmentation_pred_prob(long struct, int index) Unsafe version ofsegmentation_pred_prob
. -
nFeatureEnabled
Unsafe version ofFeatureEnabled()
. -
nFeatureEnabled
public static byte nFeatureEnabled(long struct, int index) Unsafe version ofFeatureEnabled
. -
nFeatureData
Unsafe version ofFeatureData()
. -
nFeatureData
public static short nFeatureData(long struct, int index) Unsafe version ofFeatureData
. -
nflags
Unsafe version offlags
. -
nsegmentation_tree_probs
Unsafe version ofsegmentation_tree_probs
. -
nsegmentation_tree_probs
public static void nsegmentation_tree_probs(long struct, int index, byte value) Unsafe version ofsegmentation_tree_probs
. -
nsegmentation_pred_prob
Unsafe version ofsegmentation_pred_prob
. -
nsegmentation_pred_prob
public static void nsegmentation_pred_prob(long struct, int index, byte value) Unsafe version ofsegmentation_pred_prob
. -
nFeatureEnabled
Unsafe version ofFeatureEnabled
. -
nFeatureEnabled
public static void nFeatureEnabled(long struct, int index, byte value) Unsafe version ofFeatureEnabled
. -
nFeatureData
Unsafe version ofFeatureData
. -
nFeatureData
public static void nFeatureData(long struct, int index, short value) Unsafe version ofFeatureData
.
-