Class StdVideoVP9ColorConfig

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.video.StdVideoVP9ColorConfig
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
StdVideoVP9ColorConfig.Buffer

public sealed class StdVideoVP9ColorConfig extends GroupType permits StdVideoVP9ColorConfig.Buffer

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)
      Creates StdVideoVP9ColorConfig with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      public static StdVideoVP9ColorConfig.Buffer 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.Buffer 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.Buffer 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
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y, byte reserved1, int color_space)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      BitDepth - BitDepth
      subsampling_x - subsampling_x
      subsampling_y - subsampling_y
      reserved1 - reserved1
      color_space - color_space
      Returns:
      the allocated StdVideoVP9ColorConfig
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y, byte reserved1)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      BitDepth - BitDepth
      subsampling_x - subsampling_x
      subsampling_y - subsampling_y
      reserved1 - reserved1
      Returns:
      the allocated StdVideoVP9ColorConfig
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      BitDepth - BitDepth
      subsampling_x - subsampling_x
      subsampling_y - subsampling_y
      Returns:
      the allocated StdVideoVP9ColorConfig
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      BitDepth - BitDepth
      subsampling_x - subsampling_x
      Returns:
      the allocated StdVideoVP9ColorConfig
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      BitDepth - BitDepth
      Returns:
      the allocated StdVideoVP9ColorConfig
    • allocInit

      public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags)
      Allocates a StdVideoVP9ColorConfig with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      flags - flags
      Returns:
      the allocated StdVideoVP9ColorConfig
    • copyFrom

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

      public StdVideoVP9ColorConfig.Buffer asBuffer()
      Converts this instance to a buffer.
      Returns:
      the 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