Package org.lwjgl.vulkan.video
Class StdVideoVP9Segmentation
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class StdVideoVP9Segmentation
extends Struct<StdVideoVP9Segmentation>
implements NativeResource
struct StdVideoVP9Segmentation {
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aStdVideoVP9Segmentationinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9Segmentationcalloc()Returns a newStdVideoVP9Segmentationinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9Segmentation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoVP9Segmentationcalloc(MemoryStack stack) Returns a newStdVideoVP9Segmentationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoVP9Segmentationcreate()Returns a newStdVideoVP9Segmentationinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withBufferUtils.static StdVideoVP9Segmentationcreate(long address) Returns a newStdVideoVP9Segmentationinstance for the specified memory address.create(long address, int capacity) Create aStdVideoVP9Segmentation.Bufferinstance at the specified memory.static @Nullable StdVideoVP9SegmentationcreateSafe(long address) static @Nullable StdVideoVP9Segmentation.BuffercreateSafe(long address, int capacity) shortFeatureData(int index) FeatureData(int index, short value) Sets the specified value at the specified index of theFeatureDatafield.FeatureData(ShortBuffer value) Copies the specifiedShortBufferto theFeatureDatafield.byteFeatureEnabled(int index) FeatureEnabled(int index, byte value) Sets the specified value at the specified index of theFeatureEnabledfield.FeatureEnabled(ByteBuffer value) Copies the specifiedByteBufferto theFeatureEnabledfield.flags()flags(Consumer<StdVideoVP9SegmentationFlags> consumer) Passes theflagsfield to the specifiedConsumer.Copies the specifiedStdVideoVP9SegmentationFlagsto theflagsfield.static StdVideoVP9Segmentationmalloc()Returns a newStdVideoVP9Segmentationinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9Segmentation.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoVP9Segmentationmalloc(MemoryStack stack) Returns a newStdVideoVP9Segmentationinstance allocated on the specifiedMemoryStack.static ShortBuffernFeatureData(long struct) Unsafe version ofFeatureData().static shortnFeatureData(long struct, int index) Unsafe version ofFeatureData.static voidnFeatureData(long struct, int index, short value) Unsafe version ofFeatureData.static voidnFeatureData(long struct, ShortBuffer value) Unsafe version ofFeatureData.static ByteBuffernFeatureEnabled(long struct) Unsafe version ofFeatureEnabled().static bytenFeatureEnabled(long struct, int index) Unsafe version ofFeatureEnabled.static voidnFeatureEnabled(long struct, int index, byte value) Unsafe version ofFeatureEnabled.static voidnFeatureEnabled(long struct, ByteBuffer value) Unsafe version ofFeatureEnabled.static StdVideoVP9SegmentationFlagsnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoVP9SegmentationFlags value) Unsafe version offlags.static ByteBuffernsegmentation_pred_prob(long struct) Unsafe version ofsegmentation_pred_prob().static bytensegmentation_pred_prob(long struct, int index) Unsafe version ofsegmentation_pred_prob.static voidnsegmentation_pred_prob(long struct, int index, byte value) Unsafe version ofsegmentation_pred_prob.static voidnsegmentation_pred_prob(long struct, ByteBuffer value) Unsafe version ofsegmentation_pred_prob.static ByteBuffernsegmentation_tree_probs(long struct) Unsafe version ofsegmentation_tree_probs().static bytensegmentation_tree_probs(long struct, int index) Unsafe version ofsegmentation_tree_probs.static voidnsegmentation_tree_probs(long struct, int index, byte value) Unsafe version ofsegmentation_tree_probs.static voidnsegmentation_tree_probs(long struct, ByteBuffer value) Unsafe version ofsegmentation_tree_probs.bytesegmentation_pred_prob(int index) segmentation_pred_prob(int index, byte value) Sets the specified value at the specified index of thesegmentation_pred_probfield.segmentation_pred_prob(ByteBuffer value) Copies the specifiedByteBufferto thesegmentation_pred_probfield.bytesegmentation_tree_probs(int index) segmentation_tree_probs(int index, byte value) Sets the specified value at the specified index of thesegmentation_tree_probsfield.Copies the specifiedByteBufferto thesegmentation_tree_probsfield.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.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aStdVideoVP9Segmentationinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StdVideoVP9Segmentation>
-
flags
- Returns:
- a
StdVideoVP9SegmentationFlagsview of theflagsfield.
-
segmentation_tree_probs
- Returns:
- a
ByteBufferview of thesegmentation_tree_probsfield.
-
segmentation_tree_probs
public byte segmentation_tree_probs(int index) - Returns:
- the value at the specified index of the
segmentation_tree_probsfield.
-
segmentation_pred_prob
- Returns:
- a
ByteBufferview of thesegmentation_pred_probfield.
-
segmentation_pred_prob
public byte segmentation_pred_prob(int index) - Returns:
- the value at the specified index of the
segmentation_pred_probfield.
-
FeatureEnabled
- Returns:
- a
ByteBufferview of theFeatureEnabledfield.
-
FeatureEnabled
public byte FeatureEnabled(int index) - Returns:
- the value at the specified index of the
FeatureEnabledfield.
-
FeatureData
- Returns:
- a
ShortBufferview of theFeatureDatafield.
-
FeatureData
public short FeatureData(int index) - Returns:
- the value at the specified index of the
FeatureDatafield.
-
flags
Copies the specifiedStdVideoVP9SegmentationFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
segmentation_tree_probs
Copies the specifiedByteBufferto thesegmentation_tree_probsfield. -
segmentation_tree_probs
Sets the specified value at the specified index of thesegmentation_tree_probsfield. -
segmentation_pred_prob
Copies the specifiedByteBufferto thesegmentation_pred_probfield. -
segmentation_pred_prob
Sets the specified value at the specified index of thesegmentation_pred_probfield. -
FeatureEnabled
Copies the specifiedByteBufferto theFeatureEnabledfield. -
FeatureEnabled
Sets the specified value at the specified index of theFeatureEnabledfield. -
FeatureData
Copies the specifiedShortBufferto theFeatureDatafield. -
FeatureData
Sets the specified value at the specified index of theFeatureDatafield. -
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 newStdVideoVP9Segmentationinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9Segmentationinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9Segmentationinstance allocated withBufferUtils. -
create
Returns a newStdVideoVP9Segmentationinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoVP9Segmentation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoVP9Segmentation.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9Segmentationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9Segmentationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9Segmentation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9Segmentation.Bufferinstance allocated on the specifiedMemoryStackand 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.
-