Package org.lwjgl.util.spvc
Class SpvcMslSamplerYcbcrConversion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcMslSamplerYcbcrConversion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcMslSamplerYcbcrConversion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMaps to the sampler Y'CbCr conversion-related portions ofMSLConstexprSampler.Layout
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 Classes Modifier and Type Class Description static classSpvcMslSamplerYcbcrConversion.BufferAn array ofSpvcMslSamplerYcbcrConversionstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBPC
CHROMA_FILTER
PLANES
RESOLUTIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSWIZZLE
X_CHROMA_OFFSET
Y_CHROMA_OFFSET
YCBCR_MODEL
YCBCR_RANGEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description SpvcMslSamplerYcbcrConversion(java.nio.ByteBuffer container)Creates aSpvcMslSamplerYcbcrConversioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbpc()SpvcMslSamplerYcbcrConversionbpc(int value)Sets the specified value to thebpcfield.static SpvcMslSamplerYcbcrConversioncalloc()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemCalloc.static SpvcMslSamplerYcbcrConversion.Buffercalloc(int capacity)Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemCalloc.static SpvcMslSamplerYcbcrConversion.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslSamplerYcbcrConversioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchroma_filter()SpvcMslSamplerYcbcrConversionchroma_filter(int value)Sets the specified value to thechroma_filterfield.static SpvcMslSamplerYcbcrConversioncreate()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withBufferUtils.static SpvcMslSamplerYcbcrConversion.Buffercreate(int capacity)Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withBufferUtils.static SpvcMslSamplerYcbcrConversioncreate(long address)Returns a newSpvcMslSamplerYcbcrConversioninstance for the specified memory address.static SpvcMslSamplerYcbcrConversion.Buffercreate(long address, int capacity)Create aSpvcMslSamplerYcbcrConversion.Bufferinstance at the specified memory.static SpvcMslSamplerYcbcrConversioncreateSafe(long address)static SpvcMslSamplerYcbcrConversion.BuffercreateSafe(long address, int capacity)static SpvcMslSamplerYcbcrConversionmalloc()Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemAlloc.static SpvcMslSamplerYcbcrConversion.Buffermalloc(int capacity)Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemAlloc.static SpvcMslSamplerYcbcrConversion.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslSamplerYcbcrConversionmalloc(org.lwjgl.system.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 java.nio.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 voidnswizzle(long struct, java.nio.IntBuffer value)Unsafe 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()SpvcMslSamplerYcbcrConversionplanes(int value)Sets the specified value to theplanesfield.intresolution()SpvcMslSamplerYcbcrConversionresolution(int value)Sets the specified value to theresolutionfield.SpvcMslSamplerYcbcrConversionset(int planes, int resolution, int chroma_filter, int x_chroma_offset, int y_chroma_offset, java.nio.IntBuffer swizzle, int ycbcr_model, int ycbcr_range, int bpc)Initializes this struct with the specified values.SpvcMslSamplerYcbcrConversionset(SpvcMslSamplerYcbcrConversion src)Copies the specified struct data to this struct.intsizeof()java.nio.IntBufferswizzle()intswizzle(int index)SpvcMslSamplerYcbcrConversionswizzle(int index, int value)Sets the specified value at the specified index of theswizzlefield.SpvcMslSamplerYcbcrConversionswizzle(java.nio.IntBuffer value)Copies the specifiedIntBufferto theswizzlefield.intx_chroma_offset()SpvcMslSamplerYcbcrConversionx_chroma_offset(int value)Sets the specified value to thex_chroma_offsetfield.inty_chroma_offset()SpvcMslSamplerYcbcrConversiony_chroma_offset(int value)Sets the specified value to they_chroma_offsetfield.intycbcr_model()SpvcMslSamplerYcbcrConversionycbcr_model(int value)Sets the specified value to theycbcr_modelfield.intycbcr_range()SpvcMslSamplerYcbcrConversionycbcr_range(int value)Sets the specified value to theycbcr_rangefield.
-
-
-
Constructor Detail
-
SpvcMslSamplerYcbcrConversion
public SpvcMslSamplerYcbcrConversion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public java.nio.IntBuffer 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
public SpvcMslSamplerYcbcrConversion planes(int value)
Sets the specified value to theplanesfield.
-
resolution
public SpvcMslSamplerYcbcrConversion resolution(int value)
Sets the specified value to theresolutionfield.
-
chroma_filter
public SpvcMslSamplerYcbcrConversion chroma_filter(int value)
Sets the specified value to thechroma_filterfield.
-
x_chroma_offset
public SpvcMslSamplerYcbcrConversion x_chroma_offset(int value)
Sets the specified value to thex_chroma_offsetfield.
-
y_chroma_offset
public SpvcMslSamplerYcbcrConversion y_chroma_offset(int value)
Sets the specified value to they_chroma_offsetfield.
-
swizzle
public SpvcMslSamplerYcbcrConversion swizzle(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theswizzlefield.
-
swizzle
public SpvcMslSamplerYcbcrConversion swizzle(int index, int value)
Sets the specified value at the specified index of theswizzlefield.
-
ycbcr_model
public SpvcMslSamplerYcbcrConversion ycbcr_model(int value)
Sets the specified value to theycbcr_modelfield.
-
ycbcr_range
public SpvcMslSamplerYcbcrConversion ycbcr_range(int value)
Sets the specified value to theycbcr_rangefield.
-
bpc
public SpvcMslSamplerYcbcrConversion bpc(int value)
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, java.nio.IntBuffer swizzle, int ycbcr_model, int ycbcr_range, int bpc)
Initializes this struct with the specified values.
-
set
public SpvcMslSamplerYcbcrConversion set(SpvcMslSamplerYcbcrConversion src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcMslSamplerYcbcrConversion malloc()
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcMslSamplerYcbcrConversion calloc()
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcMslSamplerYcbcrConversion create()
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated withBufferUtils.
-
create
public static SpvcMslSamplerYcbcrConversion create(long address)
Returns a newSpvcMslSamplerYcbcrConversioninstance for the specified memory address.
-
createSafe
@Nullable public static SpvcMslSamplerYcbcrConversion createSafe(long address)
-
malloc
public static SpvcMslSamplerYcbcrConversion.Buffer malloc(int capacity)
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcMslSamplerYcbcrConversion.Buffer calloc(int capacity)
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslSamplerYcbcrConversion.Buffer create(int capacity)
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslSamplerYcbcrConversion.Buffer create(long address, int capacity)
Create aSpvcMslSamplerYcbcrConversion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcMslSamplerYcbcrConversion.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcMslSamplerYcbcrConversion malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcMslSamplerYcbcrConversion calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslSamplerYcbcrConversioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcMslSamplerYcbcrConversion.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcMslSamplerYcbcrConversion.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslSamplerYcbcrConversion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
public static java.nio.IntBuffer nswizzle(long struct)
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
public static void nswizzle(long struct, java.nio.IntBuffer value)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.
-
-