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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aSpvcMslSamplerYcbcrConversioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbpc()bpc(int value) Sets the specified value to thebpcfield.calloc()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchroma_filter(int value) Sets the specified value to thechroma_filterfield.create()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withBufferUtils.create(long address) Returns a newSpvcMslSamplerYcbcrConversioninstance for the specified memory address.create(long address, int capacity) Create aSpvcMslSamplerYcbcrConversion.Bufferinstance at the specified memory.static @Nullable SpvcMslSamplerYcbcrConversioncreateSafe(long address) static @Nullable SpvcMslSamplerYcbcrConversion.BuffercreateSafe(long address, int capacity) malloc()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStack.static intnbpc(long struct) Unsafe version ofbpc().static voidnbpc(long struct, int value) Unsafe version ofbpc.static intnchroma_filter(long struct) Unsafe version ofchroma_filter().static voidnchroma_filter(long struct, int value) Unsafe version ofchroma_filter.static intnplanes(long struct) Unsafe version ofplanes().static voidnplanes(long struct, int value) Unsafe version ofplanes.static intnresolution(long struct) Unsafe version ofresolution().static voidnresolution(long struct, int value) Unsafe version ofresolution.static IntBuffernswizzle(long struct) Unsafe version ofswizzle().static intnswizzle(long struct, int index) Unsafe version ofswizzle.static voidnswizzle(long struct, int index, int value) Unsafe version ofswizzle.static voidUnsafe version ofswizzle.static intnx_chroma_offset(long struct) Unsafe version ofx_chroma_offset().static voidnx_chroma_offset(long struct, int value) Unsafe version ofx_chroma_offset.static intny_chroma_offset(long struct) Unsafe version ofy_chroma_offset().static voidny_chroma_offset(long struct, int value) Unsafe version ofy_chroma_offset.static intnycbcr_model(long struct) Unsafe version ofycbcr_model().static voidnycbcr_model(long struct, int value) Unsafe version ofycbcr_model.static intnycbcr_range(long struct) Unsafe version ofycbcr_range().static voidnycbcr_range(long struct, int value) Unsafe version ofycbcr_range.intplanes()planes(int value) Sets the specified value to theplanesfield.intresolution(int value) Sets the specified value to theresolutionfield.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.intsizeof()Returnssizeof(struct).swizzle()intswizzle(int index) swizzle(int index, int value) Sets the specified value at the specified index of theswizzlefield.Copies the specifiedIntBufferto theswizzlefield.intx_chroma_offset(int value) Sets the specified value to thex_chroma_offsetfield.inty_chroma_offset(int value) Sets the specified value to they_chroma_offsetfield.intycbcr_model(int value) Sets the specified value to theycbcr_modelfield.intycbcr_range(int value) Sets the specified value to theycbcr_rangefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aSpvcMslSamplerYcbcrConversioninstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcMslSamplerYcbcrConversion>
-
planes
public int planes()- Returns:
- the value of the
planesfield.
-
resolution
public int resolution()- Returns:
- the value of the
resolutionfield.
-
chroma_filter
public int chroma_filter()- Returns:
- the value of the
chroma_filterfield.
-
x_chroma_offset
public int x_chroma_offset()- Returns:
- the value of the
x_chroma_offsetfield.
-
y_chroma_offset
public int y_chroma_offset()- Returns:
- the value of the
y_chroma_offsetfield.
-
swizzle
- Returns:
- a
IntBufferview of theswizzlefield.
-
swizzle
public int swizzle(int index) - Returns:
- the value at the specified index of the
swizzlefield.
-
ycbcr_model
public int ycbcr_model()- Returns:
- the value of the
ycbcr_modelfield.
-
ycbcr_range
public int ycbcr_range()- Returns:
- the value of the
ycbcr_rangefield.
-
bpc
public int bpc()- Returns:
- the value of the
bpcfield.
-
planes
Sets the specified value to theplanesfield. -
resolution
Sets the specified value to theresolutionfield. -
chroma_filter
Sets the specified value to thechroma_filterfield. -
x_chroma_offset
Sets the specified value to thex_chroma_offsetfield. -
y_chroma_offset
Sets the specified value to they_chroma_offsetfield. -
swizzle
Copies the specifiedIntBufferto theswizzlefield. -
swizzle
Sets the specified value at the specified index of theswizzlefield. -
ycbcr_model
Sets the specified value to theycbcr_modelfield. -
ycbcr_range
Sets the specified value to theycbcr_rangefield. -
bpc
Sets the specified value to thebpcfield. -
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 newSpvcMslSamplerYcbcrConversioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withBufferUtils. -
create
Returns a newSpvcMslSamplerYcbcrConversioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslSamplerYcbcrConversion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStackand 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.
-