Package org.lwjgl.vulkan.video
Class StdVideoVP9LoopFilter
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct StdVideoVP9LoopFilter {
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.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.static final intThe struct member offsets.static final intThe 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 aStdVideoVP9LoopFilterinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9LoopFiltercalloc()Returns a newStdVideoVP9LoopFilterinstance allocated withmemCalloc.static StdVideoVP9LoopFilter.Buffercalloc(int capacity) Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withmemCalloc.static StdVideoVP9LoopFilter.Buffercalloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoVP9LoopFiltercalloc(MemoryStack stack) Returns a newStdVideoVP9LoopFilterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoVP9LoopFiltercreate()Returns a newStdVideoVP9LoopFilterinstance allocated withBufferUtils.static StdVideoVP9LoopFilter.Buffercreate(int capacity) Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withBufferUtils.static StdVideoVP9LoopFiltercreate(long address) Returns a newStdVideoVP9LoopFilterinstance for the specified memory address.static StdVideoVP9LoopFilter.Buffercreate(long address, int capacity) Create aStdVideoVP9LoopFilter.Bufferinstance at the specified memory.static @Nullable StdVideoVP9LoopFiltercreateSafe(long address) static @Nullable StdVideoVP9LoopFilter.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoVP9LoopFilterFlags> consumer) Passes theflagsfield to the specifiedConsumer.flags(StdVideoVP9LoopFilterFlags value) Copies the specifiedStdVideoVP9LoopFilterFlagsto theflagsfield.byteloop_filter_level(byte value) Sets the specified value to theloop_filter_levelfield.byteloop_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_deltasfield.Copies the specifiedByteBufferto theloop_filter_mode_deltasfield.byteloop_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_deltasfield.loop_filter_ref_deltas(ByteBuffer value) Copies the specifiedByteBufferto theloop_filter_ref_deltasfield.byteloop_filter_sharpness(byte value) Sets the specified value to theloop_filter_sharpnessfield.static StdVideoVP9LoopFiltermalloc()Returns a newStdVideoVP9LoopFilterinstance allocated withmemAlloc.static StdVideoVP9LoopFilter.Buffermalloc(int capacity) Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withmemAlloc.static StdVideoVP9LoopFilter.Buffermalloc(int capacity, MemoryStack stack) Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoVP9LoopFiltermalloc(MemoryStack stack) Returns a newStdVideoVP9LoopFilterinstance allocated on the specifiedMemoryStack.static StdVideoVP9LoopFilterFlagsnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoVP9LoopFilterFlags value) Unsafe version offlags.static bytenloop_filter_level(long struct) Unsafe version ofloop_filter_level().static voidnloop_filter_level(long struct, byte value) Unsafe version ofloop_filter_level.static ByteBuffernloop_filter_mode_deltas(long struct) Unsafe version ofloop_filter_mode_deltas().static bytenloop_filter_mode_deltas(long struct, int index) Unsafe version ofloop_filter_mode_deltas.static voidnloop_filter_mode_deltas(long struct, int index, byte value) Unsafe version ofloop_filter_mode_deltas.static voidnloop_filter_mode_deltas(long struct, ByteBuffer value) Unsafe version ofloop_filter_mode_deltas.static ByteBuffernloop_filter_ref_deltas(long struct) Unsafe version ofloop_filter_ref_deltas().static bytenloop_filter_ref_deltas(long struct, int index) Unsafe version ofloop_filter_ref_deltas.static voidnloop_filter_ref_deltas(long struct, int index, byte value) Unsafe version ofloop_filter_ref_deltas.static voidnloop_filter_ref_deltas(long struct, ByteBuffer value) Unsafe version ofloop_filter_ref_deltas.static bytenloop_filter_sharpness(long struct) Unsafe version ofloop_filter_sharpness().static voidnloop_filter_sharpness(long struct, byte value) Unsafe version ofloop_filter_sharpness.static bytenupdate_mode_delta(long struct) Unsafe version ofupdate_mode_delta().static voidnupdate_mode_delta(long struct, byte value) Unsafe version ofupdate_mode_delta.static bytenupdate_ref_delta(long struct) Unsafe version ofupdate_ref_delta().static voidnupdate_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.intsizeof()Returnssizeof(struct).byteupdate_mode_delta(byte value) Sets the specified value to theupdate_mode_deltafield.byteupdate_ref_delta(byte value) Sets the specified value to theupdate_ref_deltafield.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. -
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 aStdVideoVP9LoopFilterinstance 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<StdVideoVP9LoopFilter>
-
flags
- Returns:
- a
StdVideoVP9LoopFilterFlagsview of theflagsfield.
-
loop_filter_level
public byte loop_filter_level()- Returns:
- the value of the
loop_filter_levelfield.
-
loop_filter_sharpness
public byte loop_filter_sharpness()- Returns:
- the value of the
loop_filter_sharpnessfield.
-
update_ref_delta
public byte update_ref_delta()- Returns:
- the value of the
update_ref_deltafield.
-
loop_filter_ref_deltas
- Returns:
- a
ByteBufferview of theloop_filter_ref_deltasfield.
-
loop_filter_ref_deltas
public byte loop_filter_ref_deltas(int index) - Returns:
- the value at the specified index of the
loop_filter_ref_deltasfield.
-
update_mode_delta
public byte update_mode_delta()- Returns:
- the value of the
update_mode_deltafield.
-
loop_filter_mode_deltas
- Returns:
- a
ByteBufferview of theloop_filter_mode_deltasfield.
-
loop_filter_mode_deltas
public byte loop_filter_mode_deltas(int index) - Returns:
- the value at the specified index of the
loop_filter_mode_deltasfield.
-
flags
Copies the specifiedStdVideoVP9LoopFilterFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
loop_filter_level
Sets the specified value to theloop_filter_levelfield. -
loop_filter_sharpness
Sets the specified value to theloop_filter_sharpnessfield. -
update_ref_delta
Sets the specified value to theupdate_ref_deltafield. -
loop_filter_ref_deltas
Copies the specifiedByteBufferto theloop_filter_ref_deltasfield. -
loop_filter_ref_deltas
Sets the specified value at the specified index of theloop_filter_ref_deltasfield. -
update_mode_delta
Sets the specified value to theupdate_mode_deltafield. -
loop_filter_mode_deltas
Copies the specifiedByteBufferto theloop_filter_mode_deltasfield. -
loop_filter_mode_deltas
Sets the specified value at the specified index of theloop_filter_mode_deltasfield. -
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 newStdVideoVP9LoopFilterinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoVP9LoopFilterinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoVP9LoopFilterinstance allocated withBufferUtils. -
create
Returns a newStdVideoVP9LoopFilterinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoVP9LoopFilter.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoVP9LoopFilterinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9LoopFilterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoVP9LoopFilter.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoVP9LoopFilter.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(). -
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.
-