Package org.lwjgl.util.spvc
Class SpvcMslSamplerYcbcrConversion
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<SpvcMslSamplerYcbcrConversion>
org.lwjgl.util.spvc.SpvcMslSamplerYcbcrConversion
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SpvcMslSamplerYcbcrConversion
extends Struct<SpvcMslSamplerYcbcrConversion>
implements NativeResource
struct spvc_msl_sampler_ycbcr_conversion {
unsigned int planes;
spvc_msl_format_resolution resolution;
spvc_msl_sampler_filter chroma_filter;
spvc_msl_chroma_location x_chroma_offset;
spvc_msl_chroma_location y_chroma_offset;
spvc_msl_component_swizzle swizzle[4];
spvc_msl_sampler_ycbcr_model_conversion ycbcr_model;
spvc_msl_sampler_ycbcr_range ycbcr_range;
unsigned int bpc;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSpvcMslSamplerYcbcrConversion
(ByteBuffer container) Creates aSpvcMslSamplerYcbcrConversion
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
bpc()
bpc
(int value) Sets the specified value to thebpc
field.calloc()
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
chroma_filter
(int value) Sets the specified value to thechroma_filter
field.create()
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newSpvcMslSamplerYcbcrConversion
instance for the specified memory address.create
(long address, int capacity) Create aSpvcMslSamplerYcbcrConversion.Buffer
instance at the specified memory.static @Nullable SpvcMslSamplerYcbcrConversion
createSafe
(long address) static @Nullable SpvcMslSamplerYcbcrConversion.Buffer
createSafe
(long address, int capacity) malloc()
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion
instance allocated on the specifiedMemoryStack
.static int
nbpc
(long struct) Unsafe version ofbpc()
.static void
nbpc
(long struct, int value) Unsafe version ofbpc
.static int
nchroma_filter
(long struct) Unsafe version ofchroma_filter()
.static void
nchroma_filter
(long struct, int value) Unsafe version ofchroma_filter
.static int
nplanes
(long struct) Unsafe version ofplanes()
.static void
nplanes
(long struct, int value) Unsafe version ofplanes
.static int
nresolution
(long struct) Unsafe version ofresolution()
.static void
nresolution
(long struct, int value) Unsafe version ofresolution
.static IntBuffer
nswizzle
(long struct) Unsafe version ofswizzle()
.static int
nswizzle
(long struct, int index) Unsafe version ofswizzle
.static void
nswizzle
(long struct, int index, int value) Unsafe version ofswizzle
.static void
Unsafe version ofswizzle
.static int
nx_chroma_offset
(long struct) Unsafe version ofx_chroma_offset()
.static void
nx_chroma_offset
(long struct, int value) Unsafe version ofx_chroma_offset
.static int
ny_chroma_offset
(long struct) Unsafe version ofy_chroma_offset()
.static void
ny_chroma_offset
(long struct, int value) Unsafe version ofy_chroma_offset
.static int
nycbcr_model
(long struct) Unsafe version ofycbcr_model()
.static void
nycbcr_model
(long struct, int value) Unsafe version ofycbcr_model
.static int
nycbcr_range
(long struct) Unsafe version ofycbcr_range()
.static void
nycbcr_range
(long struct, int value) Unsafe version ofycbcr_range
.int
planes()
planes
(int value) Sets the specified value to theplanes
field.int
resolution
(int value) Sets the specified value to theresolution
field.set
(int planes, int resolution, int chroma_filter, int x_chroma_offset, int y_chroma_offset, IntBuffer swizzle, int ycbcr_model, int ycbcr_range, int bpc) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.swizzle()
int
swizzle
(int index) swizzle
(int index, int value) Sets the specified value at the specified index of theswizzle
field.Copies the specifiedIntBuffer
to theswizzle
field.int
x_chroma_offset
(int value) Sets the specified value to thex_chroma_offset
field.int
y_chroma_offset
(int value) Sets the specified value to they_chroma_offset
field.int
ycbcr_model
(int value) Sets the specified value to theycbcr_model
field.int
ycbcr_range
(int value) Sets the specified value to theycbcr_range
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PLANES
public static final int PLANESThe struct member offsets. -
RESOLUTION
public static final int RESOLUTIONThe struct member offsets. -
CHROMA_FILTER
public static final int CHROMA_FILTERThe struct member offsets. -
X_CHROMA_OFFSET
public static final int X_CHROMA_OFFSETThe struct member offsets. -
Y_CHROMA_OFFSET
public static final int Y_CHROMA_OFFSETThe struct member offsets. -
SWIZZLE
public static final int SWIZZLEThe struct member offsets. -
YCBCR_MODEL
public static final int YCBCR_MODELThe struct member offsets. -
YCBCR_RANGE
public static final int YCBCR_RANGEThe struct member offsets. -
BPC
public static final int BPCThe struct member offsets.
-
-
Constructor Details
-
SpvcMslSamplerYcbcrConversion
Creates aSpvcMslSamplerYcbcrConversion
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<SpvcMslSamplerYcbcrConversion>
-
planes
public int planes()- Returns:
- the value of the
planes
field.
-
resolution
public int resolution()- Returns:
- the value of the
resolution
field.
-
chroma_filter
public int chroma_filter()- Returns:
- the value of the
chroma_filter
field.
-
x_chroma_offset
public int x_chroma_offset()- Returns:
- the value of the
x_chroma_offset
field.
-
y_chroma_offset
public int y_chroma_offset()- Returns:
- the value of the
y_chroma_offset
field.
-
swizzle
- Returns:
- a
IntBuffer
view of theswizzle
field.
-
swizzle
public int swizzle(int index) - Returns:
- the value at the specified index of the
swizzle
field.
-
ycbcr_model
public int ycbcr_model()- Returns:
- the value of the
ycbcr_model
field.
-
ycbcr_range
public int ycbcr_range()- Returns:
- the value of the
ycbcr_range
field.
-
bpc
public int bpc()- Returns:
- the value of the
bpc
field.
-
planes
Sets the specified value to theplanes
field. -
resolution
Sets the specified value to theresolution
field. -
chroma_filter
Sets the specified value to thechroma_filter
field. -
x_chroma_offset
Sets the specified value to thex_chroma_offset
field. -
y_chroma_offset
Sets the specified value to they_chroma_offset
field. -
swizzle
Copies the specifiedIntBuffer
to theswizzle
field. -
swizzle
Sets the specified value at the specified index of theswizzle
field. -
ycbcr_model
Sets the specified value to theycbcr_model
field. -
ycbcr_range
Sets the specified value to theycbcr_range
field. -
bpc
Sets the specified value to thebpc
field. -
set
public SpvcMslSamplerYcbcrConversion set(int planes, int resolution, int chroma_filter, int x_chroma_offset, int y_chroma_offset, IntBuffer swizzle, int ycbcr_model, int ycbcr_range, int bpc) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslSamplerYcbcrConversion
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslSamplerYcbcrConversion.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslSamplerYcbcrConversion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslSamplerYcbcrConversion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nplanes
public static int nplanes(long struct) Unsafe version ofplanes()
. -
nresolution
public static int nresolution(long struct) Unsafe version ofresolution()
. -
nchroma_filter
public static int nchroma_filter(long struct) Unsafe version ofchroma_filter()
. -
nx_chroma_offset
public static int nx_chroma_offset(long struct) Unsafe version ofx_chroma_offset()
. -
ny_chroma_offset
public static int ny_chroma_offset(long struct) Unsafe version ofy_chroma_offset()
. -
nswizzle
Unsafe version ofswizzle()
. -
nswizzle
public static int nswizzle(long struct, int index) Unsafe version ofswizzle
. -
nycbcr_model
public static int nycbcr_model(long struct) Unsafe version ofycbcr_model()
. -
nycbcr_range
public static int nycbcr_range(long struct) Unsafe version ofycbcr_range()
. -
nbpc
public static int nbpc(long struct) Unsafe version ofbpc()
. -
nplanes
public static void nplanes(long struct, int value) Unsafe version ofplanes
. -
nresolution
public static void nresolution(long struct, int value) Unsafe version ofresolution
. -
nchroma_filter
public static void nchroma_filter(long struct, int value) Unsafe version ofchroma_filter
. -
nx_chroma_offset
public static void nx_chroma_offset(long struct, int value) Unsafe version ofx_chroma_offset
. -
ny_chroma_offset
public static void ny_chroma_offset(long struct, int value) Unsafe version ofy_chroma_offset
. -
nswizzle
Unsafe version ofswizzle
. -
nswizzle
public static void nswizzle(long struct, int index, int value) Unsafe version ofswizzle
. -
nycbcr_model
public static void nycbcr_model(long struct, int value) Unsafe version ofycbcr_model
. -
nycbcr_range
public static void nycbcr_range(long struct, int value) Unsafe version ofycbcr_range
. -
nbpc
public static void nbpc(long struct, int value) Unsafe version ofbpc
.
-