Class StdVideoVP9ColorConfig
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.video.StdVideoVP9ColorConfig
- All Implemented Interfaces:
Addressable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofStdVideoVP9ColorConfig
.static final MemoryLayout
The memory layout ofBitDepth
.static final MemoryLayout
The memory layout ofcolor_space
.static final MemoryLayout
The memory layout offlags
.static final MemoryLayout
The memory layout ofreserved1
.static final MemoryLayout
The memory layout ofsubsampling_x
.static final MemoryLayout
The memory layout ofsubsampling_y
.static final long
The byte offset ofBitDepth
.static final long
The byte offset ofcolor_space
.static final long
The byte offset offlags
.static final long
The byte offset ofreserved1
.static final long
The byte offset ofsubsampling_x
.static final long
The byte offset ofsubsampling_y
.static final VarHandle
static final VarHandle
TheVarHandle
ofcolor_space
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofsubsampling_x
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofsubsampling_y
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoVP9ColorConfig
(MemorySegment segment, long elementCount) CreatesStdVideoVP9ColorConfig
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9ColorConfig
alloc
(SegmentAllocator allocator) Allocates aStdVideoVP9ColorConfig
with the given segment allocator.static StdVideoVP9ColorConfig
alloc
(SegmentAllocator allocator, long count) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and count.asSlice
(long index) Creates a slice ofStdVideoVP9ColorConfig
.asSlice
(long index, long count) Creates a slice ofStdVideoVP9ColorConfig
.at
(long index, Consumer<StdVideoVP9ColorConfig> func) VisitsStdVideoVP9ColorConfig
buffer at the given index.byte
BitDepth()
ReturnsBitDepth
.BitDepth
(byte value) SetsBitDepth
with the given value.static byte
BitDepth
(MemorySegment segment, long index) ReturnsBitDepth
at the given index.static void
BitDepth
(MemorySegment segment, long index, byte value) SetsBitDepth
with the given value at the given index.byte
BitDepthAt
(long index) ReturnsBitDepth
at the given index.BitDepthAt
(long index, byte value) SetsBitDepth
with the given value at the given index.int
Returnscolor_space
.color_space
(int value) Setscolor_space
with the given value.static int
color_space
(MemorySegment segment, long index) Returnscolor_space
at the given index.static void
color_space
(MemorySegment segment, long index, int value) Setscolor_space
with the given value at the given index.int
color_spaceAt
(long index) Returnscolor_space
at the given index.color_spaceAt
(long index, int value) Setscolor_space
with the given value at the given index.Copies from the given source.flags()
Returnsflags
.flags
(MemorySegment value) Setsflags
with the given value.static MemorySegment
flags
(MemorySegment segment, long index) Returnsflags
at the given index.static void
flags
(MemorySegment segment, long index, MemorySegment value) Setsflags
with the given value at the given index.Acceptsflags
with the given function.flagsAt
(long index) Returnsflags
at the given index.flagsAt
(long index, MemorySegment value) Setsflags
with the given value at the given index.flagsAt
(long index, Consumer<StdVideoVP9ColorConfigFlags> func) Acceptsflags
with the given function.static StdVideoVP9ColorConfig
of
(MemorySegment segment) CreatesStdVideoVP9ColorConfig
with the given segment.static StdVideoVP9ColorConfig
ofNative
(MemorySegment segment) CreatesStdVideoVP9ColorConfig
with the given segment.static StdVideoVP9ColorConfig
ofNative
(MemorySegment segment, long count) CreatesStdVideoVP9ColorConfig
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.byte
Returnsreserved1
.reserved1
(byte value) Setsreserved1
with the given value.static byte
reserved1
(MemorySegment segment, long index) Returnsreserved1
at the given index.static void
reserved1
(MemorySegment segment, long index, byte value) Setsreserved1
with the given value at the given index.byte
reserved1At
(long index) Returnsreserved1
at the given index.reserved1At
(long index, byte value) Setsreserved1
with the given value at the given index.byte
Returnssubsampling_x
.subsampling_x
(byte value) Setssubsampling_x
with the given value.static byte
subsampling_x
(MemorySegment segment, long index) Returnssubsampling_x
at the given index.static void
subsampling_x
(MemorySegment segment, long index, byte value) Setssubsampling_x
with the given value at the given index.byte
subsampling_xAt
(long index) Returnssubsampling_x
at the given index.subsampling_xAt
(long index, byte value) Setssubsampling_x
with the given value at the given index.byte
Returnssubsampling_y
.subsampling_y
(byte value) Setssubsampling_y
with the given value.static byte
subsampling_y
(MemorySegment segment, long index) Returnssubsampling_y
at the given index.static void
subsampling_y
(MemorySegment segment, long index, byte value) Setssubsampling_y
with the given value at the given index.byte
subsampling_yAt
(long index) Returnssubsampling_y
at the given index.subsampling_yAt
(long index, byte value) Setssubsampling_y
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofStdVideoVP9ColorConfig
. -
OFFSET_flags
public static final long OFFSET_flagsThe byte offset offlags
. -
LAYOUT_flags
The memory layout offlags
. -
OFFSET_BitDepth
public static final long OFFSET_BitDepthThe byte offset ofBitDepth
. -
LAYOUT_BitDepth
The memory layout ofBitDepth
. -
VH_BitDepth
-
OFFSET_subsampling_x
public static final long OFFSET_subsampling_xThe byte offset ofsubsampling_x
. -
LAYOUT_subsampling_x
The memory layout ofsubsampling_x
. -
VH_subsampling_x
-
OFFSET_subsampling_y
public static final long OFFSET_subsampling_yThe byte offset ofsubsampling_y
. -
LAYOUT_subsampling_y
The memory layout ofsubsampling_y
. -
VH_subsampling_y
-
OFFSET_reserved1
public static final long OFFSET_reserved1The byte offset ofreserved1
. -
LAYOUT_reserved1
The memory layout ofreserved1
. -
VH_reserved1
-
OFFSET_color_space
public static final long OFFSET_color_spaceThe byte offset ofcolor_space
. -
LAYOUT_color_space
The memory layout ofcolor_space
. -
VH_color_space
-
-
Constructor Details
-
StdVideoVP9ColorConfig
CreatesStdVideoVP9ColorConfig
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesStdVideoVP9ColorConfig
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
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 isNULL
-
ofNative
Creates
StdVideoVP9ColorConfig
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aStdVideoVP9ColorConfig
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
StdVideoVP9ColorConfig
-
alloc
Allocates aStdVideoVP9ColorConfig
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
StdVideoVP9ColorConfig
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted buffer
-
flags
Returnsflags
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
flags
at the given index
-
flags
-
flags
Setsflags
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
flags
Setsflags
with the given value.- Parameters:
value
- the value- Returns:
this
-
flags
Acceptsflags
with the given function.- Parameters:
func
- the function- Returns:
this
-
BitDepth
ReturnsBitDepth
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
BitDepth
at the given index
-
BitDepth
public byte BitDepth()ReturnsBitDepth
.- Returns:
BitDepth
-
BitDepth
SetsBitDepth
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
BitDepth
SetsBitDepth
with the given value.- Parameters:
value
- the value- Returns:
this
-
subsampling_x
Returnssubsampling_x
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subsampling_x
at the given index
-
subsampling_x
public byte subsampling_x()Returnssubsampling_x
.- Returns:
subsampling_x
-
subsampling_x
Setssubsampling_x
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subsampling_x
Setssubsampling_x
with the given value.- Parameters:
value
- the value- Returns:
this
-
subsampling_y
Returnssubsampling_y
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subsampling_y
at the given index
-
subsampling_y
public byte subsampling_y()Returnssubsampling_y
.- Returns:
subsampling_y
-
subsampling_y
Setssubsampling_y
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subsampling_y
Setssubsampling_y
with the given value.- Parameters:
value
- the value- Returns:
this
-
reserved1
Returnsreserved1
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
reserved1
at the given index
-
reserved1
public byte reserved1()Returnsreserved1
.- Returns:
reserved1
-
reserved1
Setsreserved1
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
reserved1
Setsreserved1
with the given value.- Parameters:
value
- the value- Returns:
this
-
color_space
Returnscolor_space
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
color_space
at the given index
-
color_space
public int color_space()Returnscolor_space
.- Returns:
color_space
-
color_space
Setscolor_space
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
color_space
Setscolor_space
with the given value.- Parameters:
value
- the value- Returns:
this
-
asSlice
Creates a slice ofStdVideoVP9ColorConfig
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
StdVideoVP9ColorConfig
-
asSlice
Creates a slice ofStdVideoVP9ColorConfig
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
StdVideoVP9ColorConfig
-
at
VisitsStdVideoVP9ColorConfig
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
flagsAt
Returnsflags
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
flags
at the given index
-
flagsAt
Setsflags
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
flagsAt
Acceptsflags
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-
BitDepthAt
public byte BitDepthAt(long index) ReturnsBitDepth
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
BitDepth
at the given index
-
BitDepthAt
SetsBitDepth
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
subsampling_xAt
public byte subsampling_xAt(long index) Returnssubsampling_x
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
subsampling_x
at the given index
-
subsampling_xAt
Setssubsampling_x
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
subsampling_yAt
public byte subsampling_yAt(long index) Returnssubsampling_y
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
subsampling_y
at the given index
-
subsampling_yAt
Setssubsampling_y
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
reserved1At
public byte reserved1At(long index) Returnsreserved1
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
reserved1
at the given index
-
reserved1At
Setsreserved1
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
color_spaceAt
public int color_spaceAt(long index) Returnscolor_space
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
color_space
at the given index
-
color_spaceAt
Setscolor_space
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-