Class StdVideoVP9LoopFilter

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.video.StdVideoVP9LoopFilter
All Implemented Interfaces:
Addressable

public final class StdVideoVP9LoopFilter extends GroupType

Layout

struct StdVideoVP9LoopFilter {
    (struct StdVideoVP9LoopFilterFlags) StdVideoVP9LoopFilterFlags flags;
    uint8_t loop_filter_level;
    uint8_t loop_filter_sharpness;
    uint8_t update_ref_delta;
    int8_t loop_filter_ref_deltas[4];
    uint8_t update_mode_delta;
    int8_t loop_filter_mode_deltas[2];
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of StdVideoVP9LoopFilter.
    • OFFSET_flags

      public static final long OFFSET_flags
      The byte offset of flags.
    • LAYOUT_flags

      public static final MemoryLayout LAYOUT_flags
      The memory layout of flags.
    • OFFSET_loop_filter_level

      public static final long OFFSET_loop_filter_level
      The byte offset of loop_filter_level.
    • LAYOUT_loop_filter_level

      public static final MemoryLayout LAYOUT_loop_filter_level
      The memory layout of loop_filter_level.
    • VH_loop_filter_level

      public static final VarHandle VH_loop_filter_level
      The VarHandle of loop_filter_level of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_loop_filter_sharpness

      public static final long OFFSET_loop_filter_sharpness
      The byte offset of loop_filter_sharpness.
    • LAYOUT_loop_filter_sharpness

      public static final MemoryLayout LAYOUT_loop_filter_sharpness
      The memory layout of loop_filter_sharpness.
    • VH_loop_filter_sharpness

      public static final VarHandle VH_loop_filter_sharpness
      The VarHandle of loop_filter_sharpness of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_update_ref_delta

      public static final long OFFSET_update_ref_delta
      The byte offset of update_ref_delta.
    • LAYOUT_update_ref_delta

      public static final MemoryLayout LAYOUT_update_ref_delta
      The memory layout of update_ref_delta.
    • VH_update_ref_delta

      public static final VarHandle VH_update_ref_delta
      The VarHandle of update_ref_delta of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_loop_filter_ref_deltas

      public static final long OFFSET_loop_filter_ref_deltas
      The byte offset of loop_filter_ref_deltas.
    • LAYOUT_loop_filter_ref_deltas

      public static final MemoryLayout LAYOUT_loop_filter_ref_deltas
      The memory layout of loop_filter_ref_deltas.
    • VH_loop_filter_ref_deltas

      public static final VarHandle VH_loop_filter_ref_deltas
      The VarHandle of loop_filter_ref_deltas of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
    • OFFSET_update_mode_delta

      public static final long OFFSET_update_mode_delta
      The byte offset of update_mode_delta.
    • LAYOUT_update_mode_delta

      public static final MemoryLayout LAYOUT_update_mode_delta
      The memory layout of update_mode_delta.
    • VH_update_mode_delta

      public static final VarHandle VH_update_mode_delta
      The VarHandle of update_mode_delta of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_loop_filter_mode_deltas

      public static final long OFFSET_loop_filter_mode_deltas
      The byte offset of loop_filter_mode_deltas.
    • LAYOUT_loop_filter_mode_deltas

      public static final MemoryLayout LAYOUT_loop_filter_mode_deltas
      The memory layout of loop_filter_mode_deltas.
    • VH_loop_filter_mode_deltas

      public static final VarHandle VH_loop_filter_mode_deltas
      The VarHandle of loop_filter_mode_deltas of type (MemorySegment base, long baseOffset, long index, long index0)MemorySegment.
  • Constructor Details

    • StdVideoVP9LoopFilter

      public StdVideoVP9LoopFilter(MemorySegment segment, long elementCount)
      Creates StdVideoVP9LoopFilter with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

      public static StdVideoVP9LoopFilter of(MemorySegment segment)
      Creates StdVideoVP9LoopFilter with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static StdVideoVP9LoopFilter ofNative(MemorySegment segment)

      Creates StdVideoVP9LoopFilter with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static StdVideoVP9LoopFilter ofNative(MemorySegment segment, long count)

      Creates StdVideoVP9LoopFilter with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static StdVideoVP9LoopFilter alloc(SegmentAllocator allocator)
      Allocates a StdVideoVP9LoopFilter with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated StdVideoVP9LoopFilter
    • alloc

      public static StdVideoVP9LoopFilter alloc(SegmentAllocator allocator, long count)
      Allocates a StdVideoVP9LoopFilter with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated StdVideoVP9LoopFilter
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • reinterpret

      public StdVideoVP9LoopFilter reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • flags

      public static MemorySegment flags(MemorySegment segment, long index)
      Returns flags at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      flags at the given index
    • flags

      public MemorySegment flags()
      Returns flags.
      Returns:
      flags
    • flags

      public static void flags(MemorySegment segment, long index, MemorySegment value)
      Sets flags with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • flags

      public StdVideoVP9LoopFilter flags(MemorySegment value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • flags

      Accepts flags with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • loop_filter_level

      public static byte loop_filter_level(MemorySegment segment, long index)
      Returns loop_filter_level at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      loop_filter_level at the given index
    • loop_filter_level

      public byte loop_filter_level()
      Returns loop_filter_level.
      Returns:
      loop_filter_level
    • loop_filter_level

      public static void loop_filter_level(MemorySegment segment, long index, byte value)
      Sets loop_filter_level with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • loop_filter_level

      public StdVideoVP9LoopFilter loop_filter_level(byte value)
      Sets loop_filter_level with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • loop_filter_sharpness

      public static byte loop_filter_sharpness(MemorySegment segment, long index)
      Returns loop_filter_sharpness at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      loop_filter_sharpness at the given index
    • loop_filter_sharpness

      public byte loop_filter_sharpness()
      Returns loop_filter_sharpness.
      Returns:
      loop_filter_sharpness
    • loop_filter_sharpness

      public static void loop_filter_sharpness(MemorySegment segment, long index, byte value)
      Sets loop_filter_sharpness with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • loop_filter_sharpness

      public StdVideoVP9LoopFilter loop_filter_sharpness(byte value)
      Sets loop_filter_sharpness with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • update_ref_delta

      public static byte update_ref_delta(MemorySegment segment, long index)
      Returns update_ref_delta at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      update_ref_delta at the given index
    • update_ref_delta

      public byte update_ref_delta()
      Returns update_ref_delta.
      Returns:
      update_ref_delta
    • update_ref_delta

      public static void update_ref_delta(MemorySegment segment, long index, byte value)
      Sets update_ref_delta with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • update_ref_delta

      public StdVideoVP9LoopFilter update_ref_delta(byte value)
      Sets update_ref_delta with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • loop_filter_ref_deltas

      public static MemorySegment loop_filter_ref_deltas(MemorySegment segment, long index)
      Returns loop_filter_ref_deltas at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      loop_filter_ref_deltas at the given index
    • loop_filter_ref_deltas

      public static byte loop_filter_ref_deltas(MemorySegment segment, long index, long index0)
      Returns loop_filter_ref_deltas at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      loop_filter_ref_deltas at the given index
    • loop_filter_ref_deltas

      public MemorySegment loop_filter_ref_deltas()
      Returns loop_filter_ref_deltas.
      Returns:
      loop_filter_ref_deltas
    • loop_filter_ref_deltas

      public byte loop_filter_ref_deltas(long index0)
      Returns loop_filter_ref_deltas.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      loop_filter_ref_deltas
    • loop_filter_ref_deltas

      public static void loop_filter_ref_deltas(MemorySegment segment, long index, MemorySegment value)
      Sets loop_filter_ref_deltas with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • loop_filter_ref_deltas

      public static void loop_filter_ref_deltas(MemorySegment segment, long index, long index0, byte value)
      Sets loop_filter_ref_deltas with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
    • loop_filter_ref_deltas

      public StdVideoVP9LoopFilter loop_filter_ref_deltas(MemorySegment value)
      Sets loop_filter_ref_deltas with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • loop_filter_ref_deltas

      public StdVideoVP9LoopFilter loop_filter_ref_deltas(long index0, byte value)
      Sets loop_filter_ref_deltas with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • update_mode_delta

      public static byte update_mode_delta(MemorySegment segment, long index)
      Returns update_mode_delta at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      update_mode_delta at the given index
    • update_mode_delta

      public byte update_mode_delta()
      Returns update_mode_delta.
      Returns:
      update_mode_delta
    • update_mode_delta

      public static void update_mode_delta(MemorySegment segment, long index, byte value)
      Sets update_mode_delta with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • update_mode_delta

      public StdVideoVP9LoopFilter update_mode_delta(byte value)
      Sets update_mode_delta with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • loop_filter_mode_deltas

      public static MemorySegment loop_filter_mode_deltas(MemorySegment segment, long index)
      Returns loop_filter_mode_deltas at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      loop_filter_mode_deltas at the given index
    • loop_filter_mode_deltas

      public static byte loop_filter_mode_deltas(MemorySegment segment, long index, long index0)
      Returns loop_filter_mode_deltas at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      loop_filter_mode_deltas at the given index
    • loop_filter_mode_deltas

      public MemorySegment loop_filter_mode_deltas()
      Returns loop_filter_mode_deltas.
      Returns:
      loop_filter_mode_deltas
    • loop_filter_mode_deltas

      public byte loop_filter_mode_deltas(long index0)
      Returns loop_filter_mode_deltas.
      Parameters:
      index0 - the Index 0 of the array
      Returns:
      loop_filter_mode_deltas
    • loop_filter_mode_deltas

      public static void loop_filter_mode_deltas(MemorySegment segment, long index, MemorySegment value)
      Sets loop_filter_mode_deltas with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • loop_filter_mode_deltas

      public static void loop_filter_mode_deltas(MemorySegment segment, long index, long index0, byte value)
      Sets loop_filter_mode_deltas with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
    • loop_filter_mode_deltas

      public StdVideoVP9LoopFilter loop_filter_mode_deltas(MemorySegment value)
      Sets loop_filter_mode_deltas with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • loop_filter_mode_deltas

      public StdVideoVP9LoopFilter loop_filter_mode_deltas(long index0, byte value)
      Sets loop_filter_mode_deltas with the given value.
      Parameters:
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • asSlice

      public StdVideoVP9LoopFilter asSlice(long index)
      Creates a slice of StdVideoVP9LoopFilter.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of StdVideoVP9LoopFilter
    • asSlice

      public StdVideoVP9LoopFilter asSlice(long index, long count)
      Creates a slice of StdVideoVP9LoopFilter.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of StdVideoVP9LoopFilter
    • at

      public StdVideoVP9LoopFilter at(long index, Consumer<StdVideoVP9LoopFilter> func)
      Visits StdVideoVP9LoopFilter buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • flagsAt

      public MemorySegment flagsAt(long index)
      Returns flags at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      flags at the given index
    • flagsAt

      public StdVideoVP9LoopFilter flagsAt(long index, MemorySegment value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • flagsAt

      public StdVideoVP9LoopFilter flagsAt(long index, Consumer<StdVideoVP9LoopFilterFlags> func)
      Accepts flags with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this
    • loop_filter_levelAt

      public byte loop_filter_levelAt(long index)
      Returns loop_filter_level at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      loop_filter_level at the given index
    • loop_filter_levelAt

      public StdVideoVP9LoopFilter loop_filter_levelAt(long index, byte value)
      Sets loop_filter_level with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • loop_filter_sharpnessAt

      public byte loop_filter_sharpnessAt(long index)
      Returns loop_filter_sharpness at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      loop_filter_sharpness at the given index
    • loop_filter_sharpnessAt

      public StdVideoVP9LoopFilter loop_filter_sharpnessAt(long index, byte value)
      Sets loop_filter_sharpness with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • update_ref_deltaAt

      public byte update_ref_deltaAt(long index)
      Returns update_ref_delta at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      update_ref_delta at the given index
    • update_ref_deltaAt

      public StdVideoVP9LoopFilter update_ref_deltaAt(long index, byte value)
      Sets update_ref_delta with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • loop_filter_ref_deltasAt

      public MemorySegment loop_filter_ref_deltasAt(long index)
      Returns loop_filter_ref_deltas at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      loop_filter_ref_deltas at the given index
    • loop_filter_ref_deltasAt

      public byte loop_filter_ref_deltasAt(long index, long index0)
      Returns loop_filter_ref_deltas at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      loop_filter_ref_deltas at the given index
    • loop_filter_ref_deltasAt

      public StdVideoVP9LoopFilter loop_filter_ref_deltasAt(long index, MemorySegment value)
      Sets loop_filter_ref_deltas with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • loop_filter_ref_deltasAt

      public StdVideoVP9LoopFilter loop_filter_ref_deltasAt(long index, long index0, byte value)
      Sets loop_filter_ref_deltas with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this
    • update_mode_deltaAt

      public byte update_mode_deltaAt(long index)
      Returns update_mode_delta at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      update_mode_delta at the given index
    • update_mode_deltaAt

      public StdVideoVP9LoopFilter update_mode_deltaAt(long index, byte value)
      Sets update_mode_delta with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • loop_filter_mode_deltasAt

      public MemorySegment loop_filter_mode_deltasAt(long index)
      Returns loop_filter_mode_deltas at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      loop_filter_mode_deltas at the given index
    • loop_filter_mode_deltasAt

      public byte loop_filter_mode_deltasAt(long index, long index0)
      Returns loop_filter_mode_deltas at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      Returns:
      loop_filter_mode_deltas at the given index
    • loop_filter_mode_deltasAt

      public StdVideoVP9LoopFilter loop_filter_mode_deltasAt(long index, MemorySegment value)
      Sets loop_filter_mode_deltas with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • loop_filter_mode_deltasAt

      public StdVideoVP9LoopFilter loop_filter_mode_deltasAt(long index, long index0, byte value)
      Sets loop_filter_mode_deltas with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      index0 - the Index 0 of the array
      value - the value
      Returns:
      this