Class StdVideoVP9ColorConfig
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.video.StdVideoVP9ColorConfig
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
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;
};
-
Nested Class Summary
Nested Classes -
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) CreatesStdVideoVP9ColorConfig
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9ColorConfig
alloc
(SegmentAllocator allocator) Allocates aStdVideoVP9ColorConfig
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and count.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags, byte BitDepth) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y, byte reserved1) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.static StdVideoVP9ColorConfig
allocInit
(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y, byte reserved1, int color_space) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.asBuffer()
Converts this instance to a buffer.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.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.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.of
(MemorySegment segment) CreatesStdVideoVP9ColorConfig
with the given segment.static StdVideoVP9ColorConfig
ofNative
(MemorySegment segment) CreatesStdVideoVP9ColorConfig
with the given segment.ofNative
(MemorySegment segment, long count) CreatesStdVideoVP9ColorConfig
with the given segment.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
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
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.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 segment
-
-
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
-
allocInit
public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth, byte subsampling_x, byte subsampling_y, byte reserved1, int color_space) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-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 aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-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 aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-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 aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-flags
BitDepth
-BitDepth
subsampling_x
-subsampling_x
- Returns:
- the allocated
StdVideoVP9ColorConfig
-
allocInit
public static StdVideoVP9ColorConfig allocInit(SegmentAllocator allocator, MemorySegment flags, byte BitDepth) Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-flags
BitDepth
-BitDepth
- Returns:
- the allocated
StdVideoVP9ColorConfig
-
allocInit
Allocates aStdVideoVP9ColorConfig
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorflags
-flags
- Returns:
- the allocated
StdVideoVP9ColorConfig
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the 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
-