Class StdVideoVP9ColorConfig
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.video.StdVideoVP9ColorConfig
- All Implemented Interfaces:
Addressable
Represents StdVideoVP9ColorConfig.
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 StructLayoutThe struct layout ofStdVideoVP9ColorConfig.static final MemoryLayoutThe memory layout ofBitDepth.static final MemoryLayoutThe memory layout ofcolor_space.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofreserved1.static final MemoryLayoutThe memory layout ofsubsampling_x.static final MemoryLayoutThe memory layout ofsubsampling_y.static final longThe byte offset ofBitDepth.static final longThe byte offset ofcolor_space.static final longThe byte offset offlags.static final longThe byte offset ofreserved1.static final longThe byte offset ofsubsampling_x.static final longThe byte offset ofsubsampling_y.static final VarHandlestatic final VarHandleTheVarHandleofcolor_spaceof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofsubsampling_xof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofsubsampling_yof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoVP9ColorConfig(MemorySegment segment, long elementCount) CreatesStdVideoVP9ColorConfigwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoVP9ColorConfigalloc(SegmentAllocator allocator) Allocates aStdVideoVP9ColorConfigwith the given segment allocator.static StdVideoVP9ColorConfigalloc(SegmentAllocator allocator, long count) Allocates aStdVideoVP9ColorConfigwith 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) VisitsStdVideoVP9ColorConfigbuffer at the given index.byteBitDepth()ReturnsBitDepth.BitDepth(byte value) SetsBitDepthwith the given value.static byteBitDepth(MemorySegment segment, long index) ReturnsBitDepthat the given index.static voidBitDepth(MemorySegment segment, long index, byte value) SetsBitDepthwith the given value at the given index.byteBitDepthAt(long index) ReturnsBitDepthat the given index.BitDepthAt(long index, byte value) SetsBitDepthwith the given value at the given index.intReturnscolor_space.color_space(int value) Setscolor_spacewith the given value.static intcolor_space(MemorySegment segment, long index) Returnscolor_spaceat the given index.static voidcolor_space(MemorySegment segment, long index, int value) Setscolor_spacewith the given value at the given index.intcolor_spaceAt(long index) Returnscolor_spaceat the given index.color_spaceAt(long index, int value) Setscolor_spacewith the given value at the given index.Copies from the given source.flags()Returnsflags.flags(MemorySegment value) Setsflagswith the given value.static MemorySegmentflags(MemorySegment segment, long index) Returnsflagsat the given index.static voidflags(MemorySegment segment, long index, MemorySegment value) Setsflagswith the given value at the given index.Acceptsflagswith the given function.flagsAt(long index) Returnsflagsat the given index.flagsAt(long index, MemorySegment value) Setsflagswith the given value at the given index.flagsAt(long index, Consumer<StdVideoVP9ColorConfigFlags> func) Acceptsflagswith the given function.static StdVideoVP9ColorConfigof(MemorySegment segment) CreatesStdVideoVP9ColorConfigwith the given segment.static StdVideoVP9ColorConfigofNative(MemorySegment segment) CreatesStdVideoVP9ColorConfigwith the given segment.static StdVideoVP9ColorConfigofNative(MemorySegment segment, long count) CreatesStdVideoVP9ColorConfigwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.byteReturnsreserved1.reserved1(byte value) Setsreserved1with the given value.static bytereserved1(MemorySegment segment, long index) Returnsreserved1at the given index.static voidreserved1(MemorySegment segment, long index, byte value) Setsreserved1with the given value at the given index.bytereserved1At(long index) Returnsreserved1at the given index.reserved1At(long index, byte value) Setsreserved1with the given value at the given index.byteReturnssubsampling_x.subsampling_x(byte value) Setssubsampling_xwith the given value.static bytesubsampling_x(MemorySegment segment, long index) Returnssubsampling_xat the given index.static voidsubsampling_x(MemorySegment segment, long index, byte value) Setssubsampling_xwith the given value at the given index.bytesubsampling_xAt(long index) Returnssubsampling_xat the given index.subsampling_xAt(long index, byte value) Setssubsampling_xwith the given value at the given index.byteReturnssubsampling_y.subsampling_y(byte value) Setssubsampling_ywith the given value.static bytesubsampling_y(MemorySegment segment, long index) Returnssubsampling_yat the given index.static voidsubsampling_y(MemorySegment segment, long index, byte value) Setssubsampling_ywith the given value at the given index.bytesubsampling_yAt(long index) Returnssubsampling_yat the given index.subsampling_yAt(long index, byte value) Setssubsampling_ywith the given value at the given index.Methods inherited from class 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
CreatesStdVideoVP9ColorConfigwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesStdVideoVP9ColorConfigwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
StdVideoVP9ColorConfigwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
StdVideoVP9ColorConfigwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aStdVideoVP9ColorConfigwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
StdVideoVP9ColorConfig
-
alloc
Allocates aStdVideoVP9ColorConfigwith 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
Returnsflagsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
flagsat the given index
-
flags
-
flags
Setsflagswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
flags
Setsflagswith the given value.- Parameters:
value- the value- Returns:
this
-
flags
Acceptsflagswith the given function.- Parameters:
func- the function- Returns:
this
-
BitDepth
ReturnsBitDepthat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
BitDepthat the given index
-
BitDepth
public byte BitDepth()ReturnsBitDepth.- Returns:
BitDepth
-
BitDepth
SetsBitDepthwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
BitDepth
SetsBitDepthwith the given value.- Parameters:
value- the value- Returns:
this
-
subsampling_x
Returnssubsampling_xat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
subsampling_xat the given index
-
subsampling_x
public byte subsampling_x()Returnssubsampling_x.- Returns:
subsampling_x
-
subsampling_x
Setssubsampling_xwith 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_xwith the given value.- Parameters:
value- the value- Returns:
this
-
subsampling_y
Returnssubsampling_yat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
subsampling_yat the given index
-
subsampling_y
public byte subsampling_y()Returnssubsampling_y.- Returns:
subsampling_y
-
subsampling_y
Setssubsampling_ywith 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_ywith the given value.- Parameters:
value- the value- Returns:
this
-
reserved1
Returnsreserved1at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
reserved1at the given index
-
reserved1
public byte reserved1()Returnsreserved1.- Returns:
reserved1
-
reserved1
Setsreserved1with the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
reserved1
Setsreserved1with the given value.- Parameters:
value- the value- Returns:
this
-
color_space
Returnscolor_spaceat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
color_spaceat the given index
-
color_space
public int color_space()Returnscolor_space.- Returns:
color_space
-
color_space
Setscolor_spacewith 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_spacewith 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
VisitsStdVideoVP9ColorConfigbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
flagsAt
Returnsflagsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
flagsat the given index
-
flagsAt
Setsflagswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
flagsAt
Acceptsflagswith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
BitDepthAt
public byte BitDepthAt(long index) ReturnsBitDepthat the given index.- Parameters:
index- the index of the struct buffer- Returns:
BitDepthat the given index
-
BitDepthAt
SetsBitDepthwith 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_xat the given index.- Parameters:
index- the index of the struct buffer- Returns:
subsampling_xat the given index
-
subsampling_xAt
Setssubsampling_xwith 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_yat the given index.- Parameters:
index- the index of the struct buffer- Returns:
subsampling_yat the given index
-
subsampling_yAt
Setssubsampling_ywith 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) Returnsreserved1at the given index.- Parameters:
index- the index of the struct buffer- Returns:
reserved1at the given index
-
reserved1At
Setsreserved1with 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_spaceat the given index.- Parameters:
index- the index of the struct buffer- Returns:
color_spaceat the given index
-
color_spaceAt
Setscolor_spacewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-