Class StdVideoVP9ColorConfig

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

public final class StdVideoVP9ColorConfig extends GroupType

Layout

struct StdVideoVP9ColorConfig {
    (struct StdVideoVP9ColorConfigFlags) StdVideoVP9ColorConfigFlags flags;
    uint8_t BitDepth;
    uint8_t subsampling_x;
    uint8_t subsampling_y;
    uint8_t reserved1;
    (int) StdVideoVP9ColorSpace color_space;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of StdVideoVP9ColorConfig.
    • 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_BitDepth

      public static final long OFFSET_BitDepth
      The byte offset of BitDepth.
    • LAYOUT_BitDepth

      public static final MemoryLayout LAYOUT_BitDepth
      The memory layout of BitDepth.
    • VH_BitDepth

      public static final VarHandle VH_BitDepth
      The VarHandle of BitDepth of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_subsampling_x

      public static final long OFFSET_subsampling_x
      The byte offset of subsampling_x.
    • LAYOUT_subsampling_x

      public static final MemoryLayout LAYOUT_subsampling_x
      The memory layout of subsampling_x.
    • VH_subsampling_x

      public static final VarHandle VH_subsampling_x
      The VarHandle of subsampling_x of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_subsampling_y

      public static final long OFFSET_subsampling_y
      The byte offset of subsampling_y.
    • LAYOUT_subsampling_y

      public static final MemoryLayout LAYOUT_subsampling_y
      The memory layout of subsampling_y.
    • VH_subsampling_y

      public static final VarHandle VH_subsampling_y
      The VarHandle of subsampling_y of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_reserved1

      public static final long OFFSET_reserved1
      The byte offset of reserved1.
    • LAYOUT_reserved1

      public static final MemoryLayout LAYOUT_reserved1
      The memory layout of reserved1.
    • VH_reserved1

      public static final VarHandle VH_reserved1
      The VarHandle of reserved1 of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_color_space

      public static final long OFFSET_color_space
      The byte offset of color_space.
    • LAYOUT_color_space

      public static final MemoryLayout LAYOUT_color_space
      The memory layout of color_space.
    • VH_color_space

      public static final VarHandle VH_color_space
      The VarHandle of color_space of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • StdVideoVP9ColorConfig

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

    • of

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

      public static StdVideoVP9ColorConfig ofNative(MemorySegment segment)

      Creates StdVideoVP9ColorConfig 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 StdVideoVP9ColorConfig ofNative(MemorySegment segment, long count)

      Creates StdVideoVP9ColorConfig 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 StdVideoVP9ColorConfig alloc(SegmentAllocator allocator)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated StdVideoVP9ColorConfig
    • alloc

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

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

      public StdVideoVP9ColorConfig 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 StdVideoVP9ColorConfig 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
    • BitDepth

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

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

      public static void BitDepth(MemorySegment segment, long index, byte value)
      Sets BitDepth 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
    • BitDepth

      public StdVideoVP9ColorConfig BitDepth(byte value)
      Sets BitDepth with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subsampling_x

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

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

      public static void subsampling_x(MemorySegment segment, long index, byte value)
      Sets subsampling_x 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
    • subsampling_x

      public StdVideoVP9ColorConfig subsampling_x(byte value)
      Sets subsampling_x with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subsampling_y

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

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

      public static void subsampling_y(MemorySegment segment, long index, byte value)
      Sets subsampling_y 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
    • subsampling_y

      public StdVideoVP9ColorConfig subsampling_y(byte value)
      Sets subsampling_y with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • reserved1

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

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

      public static void reserved1(MemorySegment segment, long index, byte value)
      Sets reserved1 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
    • reserved1

      public StdVideoVP9ColorConfig reserved1(byte value)
      Sets reserved1 with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • color_space

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

      public int color_space()
      Returns color_space.
      Returns:
      color_space
    • color_space

      public static void color_space(MemorySegment segment, long index, int value)
      Sets color_space 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
    • color_space

      public StdVideoVP9ColorConfig color_space(int value)
      Sets color_space with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      public StdVideoVP9ColorConfig at(long index, Consumer<StdVideoVP9ColorConfig> func)
      Visits StdVideoVP9ColorConfig 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 StdVideoVP9ColorConfig 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 StdVideoVP9ColorConfig flagsAt(long index, Consumer<StdVideoVP9ColorConfigFlags> func)
      Accepts flags with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this
    • BitDepthAt

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

      public StdVideoVP9ColorConfig BitDepthAt(long index, byte value)
      Sets BitDepth with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subsampling_xAt

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

      public StdVideoVP9ColorConfig subsampling_xAt(long index, byte value)
      Sets subsampling_x with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subsampling_yAt

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

      public StdVideoVP9ColorConfig subsampling_yAt(long index, byte value)
      Sets subsampling_y with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • reserved1At

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

      public StdVideoVP9ColorConfig reserved1At(long index, byte value)
      Sets reserved1 with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • color_spaceAt

      public int color_spaceAt(long index)
      Returns color_space at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      color_space at the given index
    • color_spaceAt

      public StdVideoVP9ColorConfig color_spaceAt(long index, int value)
      Sets color_space with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this