Package org.lwjgl.vulkan.video
Class StdVideoVP9LoopFilter
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct StdVideoVP9LoopFilter {
{@link StdVideoVP9LoopFilterFlags StdVideoVP9LoopFilterFlags} flags;
uint8_t loop_filter_level;
uint8_t loop_filter_sharpness;
uint8_t update_ref_delta;
int8_t loop_filter_ref_deltas[STD_VIDEO_VP9_MAX_REF_FRAMES];
uint8_t update_mode_delta;
int8_t loop_filter_mode_deltas[STD_VIDEO_VP9_LOOP_FILTER_ADJUSTMENTS];
}
-
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.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoVP9LoopFilter
(ByteBuffer container) Creates aStdVideoVP9LoopFilter
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9LoopFilter
calloc()
Returns a newStdVideoVP9LoopFilter
instance allocated withmemCalloc
.static StdVideoVP9LoopFilter.Buffer
calloc
(int capacity) Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withmemCalloc
.static StdVideoVP9LoopFilter.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoVP9LoopFilter
calloc
(MemoryStack stack) Returns a newStdVideoVP9LoopFilter
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoVP9LoopFilter
create()
Returns a newStdVideoVP9LoopFilter
instance allocated withBufferUtils
.static StdVideoVP9LoopFilter.Buffer
create
(int capacity) Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withBufferUtils
.static StdVideoVP9LoopFilter
create
(long address) Returns a newStdVideoVP9LoopFilter
instance for the specified memory address.static StdVideoVP9LoopFilter.Buffer
create
(long address, int capacity) Create aStdVideoVP9LoopFilter.Buffer
instance at the specified memory.static @Nullable StdVideoVP9LoopFilter
createSafe
(long address) static @Nullable StdVideoVP9LoopFilter.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoVP9LoopFilterFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoVP9LoopFilterFlags value) Copies the specifiedStdVideoVP9LoopFilterFlags
to theflags
field.byte
loop_filter_level
(byte value) Sets the specified value to theloop_filter_level
field.byte
loop_filter_mode_deltas
(int index) loop_filter_mode_deltas
(int index, byte value) Sets the specified value at the specified index of theloop_filter_mode_deltas
field.Copies the specifiedByteBuffer
to theloop_filter_mode_deltas
field.byte
loop_filter_ref_deltas
(int index) loop_filter_ref_deltas
(int index, byte value) Sets the specified value at the specified index of theloop_filter_ref_deltas
field.loop_filter_ref_deltas
(ByteBuffer value) Copies the specifiedByteBuffer
to theloop_filter_ref_deltas
field.byte
loop_filter_sharpness
(byte value) Sets the specified value to theloop_filter_sharpness
field.static StdVideoVP9LoopFilter
malloc()
Returns a newStdVideoVP9LoopFilter
instance allocated withmemAlloc
.static StdVideoVP9LoopFilter.Buffer
malloc
(int capacity) Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withmemAlloc
.static StdVideoVP9LoopFilter.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoVP9LoopFilter
malloc
(MemoryStack stack) Returns a newStdVideoVP9LoopFilter
instance allocated on the specifiedMemoryStack
.static StdVideoVP9LoopFilterFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoVP9LoopFilterFlags value) Unsafe version offlags
.static byte
nloop_filter_level
(long struct) Unsafe version ofloop_filter_level()
.static void
nloop_filter_level
(long struct, byte value) Unsafe version ofloop_filter_level
.static ByteBuffer
nloop_filter_mode_deltas
(long struct) Unsafe version ofloop_filter_mode_deltas()
.static byte
nloop_filter_mode_deltas
(long struct, int index) Unsafe version ofloop_filter_mode_deltas
.static void
nloop_filter_mode_deltas
(long struct, int index, byte value) Unsafe version ofloop_filter_mode_deltas
.static void
nloop_filter_mode_deltas
(long struct, ByteBuffer value) Unsafe version ofloop_filter_mode_deltas
.static ByteBuffer
nloop_filter_ref_deltas
(long struct) Unsafe version ofloop_filter_ref_deltas()
.static byte
nloop_filter_ref_deltas
(long struct, int index) Unsafe version ofloop_filter_ref_deltas
.static void
nloop_filter_ref_deltas
(long struct, int index, byte value) Unsafe version ofloop_filter_ref_deltas
.static void
nloop_filter_ref_deltas
(long struct, ByteBuffer value) Unsafe version ofloop_filter_ref_deltas
.static byte
nloop_filter_sharpness
(long struct) Unsafe version ofloop_filter_sharpness()
.static void
nloop_filter_sharpness
(long struct, byte value) Unsafe version ofloop_filter_sharpness
.static byte
nupdate_mode_delta
(long struct) Unsafe version ofupdate_mode_delta()
.static void
nupdate_mode_delta
(long struct, byte value) Unsafe version ofupdate_mode_delta
.static byte
nupdate_ref_delta
(long struct) Unsafe version ofupdate_ref_delta()
.static void
nupdate_ref_delta
(long struct, byte value) Unsafe version ofupdate_ref_delta
.set
(StdVideoVP9LoopFilter src) Copies the specified struct data to this struct.set
(StdVideoVP9LoopFilterFlags flags, byte loop_filter_level, byte loop_filter_sharpness, byte update_ref_delta, ByteBuffer loop_filter_ref_deltas, byte update_mode_delta, ByteBuffer loop_filter_mode_deltas) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.byte
update_mode_delta
(byte value) Sets the specified value to theupdate_mode_delta
field.byte
update_ref_delta
(byte value) Sets the specified value to theupdate_ref_delta
field.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. -
LOOP_FILTER_LEVEL
public static final int LOOP_FILTER_LEVELThe struct member offsets. -
LOOP_FILTER_SHARPNESS
public static final int LOOP_FILTER_SHARPNESSThe struct member offsets. -
UPDATE_REF_DELTA
public static final int UPDATE_REF_DELTAThe struct member offsets. -
LOOP_FILTER_REF_DELTAS
public static final int LOOP_FILTER_REF_DELTASThe struct member offsets. -
UPDATE_MODE_DELTA
public static final int UPDATE_MODE_DELTAThe struct member offsets. -
LOOP_FILTER_MODE_DELTAS
public static final int LOOP_FILTER_MODE_DELTASThe struct member offsets.
-
-
Constructor Details
-
StdVideoVP9LoopFilter
Creates aStdVideoVP9LoopFilter
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<StdVideoVP9LoopFilter>
-
flags
- Returns:
- a
StdVideoVP9LoopFilterFlags
view of theflags
field.
-
loop_filter_level
public byte loop_filter_level()- Returns:
- the value of the
loop_filter_level
field.
-
loop_filter_sharpness
public byte loop_filter_sharpness()- Returns:
- the value of the
loop_filter_sharpness
field.
-
update_ref_delta
public byte update_ref_delta()- Returns:
- the value of the
update_ref_delta
field.
-
loop_filter_ref_deltas
- Returns:
- a
ByteBuffer
view of theloop_filter_ref_deltas
field.
-
loop_filter_ref_deltas
public byte loop_filter_ref_deltas(int index) - Returns:
- the value at the specified index of the
loop_filter_ref_deltas
field.
-
update_mode_delta
public byte update_mode_delta()- Returns:
- the value of the
update_mode_delta
field.
-
loop_filter_mode_deltas
- Returns:
- a
ByteBuffer
view of theloop_filter_mode_deltas
field.
-
loop_filter_mode_deltas
public byte loop_filter_mode_deltas(int index) - Returns:
- the value at the specified index of the
loop_filter_mode_deltas
field.
-
flags
Copies the specifiedStdVideoVP9LoopFilterFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
loop_filter_level
Sets the specified value to theloop_filter_level
field. -
loop_filter_sharpness
Sets the specified value to theloop_filter_sharpness
field. -
update_ref_delta
Sets the specified value to theupdate_ref_delta
field. -
loop_filter_ref_deltas
Copies the specifiedByteBuffer
to theloop_filter_ref_deltas
field. -
loop_filter_ref_deltas
Sets the specified value at the specified index of theloop_filter_ref_deltas
field. -
update_mode_delta
Sets the specified value to theupdate_mode_delta
field. -
loop_filter_mode_deltas
Copies the specifiedByteBuffer
to theloop_filter_mode_deltas
field. -
loop_filter_mode_deltas
Sets the specified value at the specified index of theloop_filter_mode_deltas
field. -
set
public StdVideoVP9LoopFilter set(StdVideoVP9LoopFilterFlags flags, byte loop_filter_level, byte loop_filter_sharpness, byte update_ref_delta, ByteBuffer loop_filter_ref_deltas, byte update_mode_delta, ByteBuffer loop_filter_mode_deltas) 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 newStdVideoVP9LoopFilter
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9LoopFilter
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9LoopFilter
instance allocated withBufferUtils
. -
create
Returns a newStdVideoVP9LoopFilter
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoVP9LoopFilter.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9LoopFilter
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9LoopFilter
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9LoopFilter.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9LoopFilter.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()
. -
nloop_filter_level
public static byte nloop_filter_level(long struct) Unsafe version ofloop_filter_level()
. -
nloop_filter_sharpness
public static byte nloop_filter_sharpness(long struct) Unsafe version ofloop_filter_sharpness()
. -
nupdate_ref_delta
public static byte nupdate_ref_delta(long struct) Unsafe version ofupdate_ref_delta()
. -
nloop_filter_ref_deltas
Unsafe version ofloop_filter_ref_deltas()
. -
nloop_filter_ref_deltas
public static byte nloop_filter_ref_deltas(long struct, int index) Unsafe version ofloop_filter_ref_deltas
. -
nupdate_mode_delta
public static byte nupdate_mode_delta(long struct) Unsafe version ofupdate_mode_delta()
. -
nloop_filter_mode_deltas
Unsafe version ofloop_filter_mode_deltas()
. -
nloop_filter_mode_deltas
public static byte nloop_filter_mode_deltas(long struct, int index) Unsafe version ofloop_filter_mode_deltas
. -
nflags
Unsafe version offlags
. -
nloop_filter_level
public static void nloop_filter_level(long struct, byte value) Unsafe version ofloop_filter_level
. -
nloop_filter_sharpness
public static void nloop_filter_sharpness(long struct, byte value) Unsafe version ofloop_filter_sharpness
. -
nupdate_ref_delta
public static void nupdate_ref_delta(long struct, byte value) Unsafe version ofupdate_ref_delta
. -
nloop_filter_ref_deltas
Unsafe version ofloop_filter_ref_deltas
. -
nloop_filter_ref_deltas
public static void nloop_filter_ref_deltas(long struct, int index, byte value) Unsafe version ofloop_filter_ref_deltas
. -
nupdate_mode_delta
public static void nupdate_mode_delta(long struct, byte value) Unsafe version ofupdate_mode_delta
. -
nloop_filter_mode_deltas
Unsafe version ofloop_filter_mode_deltas
. -
nloop_filter_mode_deltas
public static void nloop_filter_mode_deltas(long struct, int index, byte value) Unsafe version ofloop_filter_mode_deltas
.
-