public class SpvcMslSamplerYcbcrConversion
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct SpvcMslSamplerYcbcrConversion {
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcMslSamplerYcbcrConversion.Buffer
An array of
SpvcMslSamplerYcbcrConversion structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BPC
The struct member offsets.
|
static int |
CHROMA_FILTER
The struct member offsets.
|
static int |
PLANES
The struct member offsets.
|
static int |
RESOLUTION
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SWIZZLE
The struct member offsets.
|
static int |
X_CHROMA_OFFSET
The struct member offsets.
|
static int |
Y_CHROMA_OFFSET
The struct member offsets.
|
static int |
YCBCR_MODEL
The struct member offsets.
|
static int |
YCBCR_RANGE
The struct member offsets.
|
| Constructor and Description |
|---|
SpvcMslSamplerYcbcrConversion(java.nio.ByteBuffer container)
Creates a
SpvcMslSamplerYcbcrConversion instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bpc()
Returns the value of the
bpc field. |
SpvcMslSamplerYcbcrConversion |
bpc(int value)
Sets the specified value to the
bpc field. |
static SpvcMslSamplerYcbcrConversion |
calloc()
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated with memCalloc. |
static SpvcMslSamplerYcbcrConversion.Buffer |
calloc(int capacity)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with memCalloc. |
static SpvcMslSamplerYcbcrConversion |
callocStack()
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcMslSamplerYcbcrConversion.Buffer |
callocStack(int capacity)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcMslSamplerYcbcrConversion.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcMslSamplerYcbcrConversion |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
chroma_filter()
Returns the value of the
chroma_filter field. |
SpvcMslSamplerYcbcrConversion |
chroma_filter(int value)
Sets the specified value to the
chroma_filter field. |
static SpvcMslSamplerYcbcrConversion |
create()
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated with BufferUtils. |
static SpvcMslSamplerYcbcrConversion.Buffer |
create(int capacity)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with BufferUtils. |
static SpvcMslSamplerYcbcrConversion |
create(long address)
Returns a new
SpvcMslSamplerYcbcrConversion instance for the specified memory address. |
static SpvcMslSamplerYcbcrConversion.Buffer |
create(long address,
int capacity)
Create a
SpvcMslSamplerYcbcrConversion.Buffer instance at the specified memory. |
static SpvcMslSamplerYcbcrConversion |
createSafe(long address)
|
static SpvcMslSamplerYcbcrConversion.Buffer |
createSafe(long address,
int capacity)
|
static SpvcMslSamplerYcbcrConversion |
malloc()
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated with memAlloc. |
static SpvcMslSamplerYcbcrConversion.Buffer |
malloc(int capacity)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with memAlloc. |
static SpvcMslSamplerYcbcrConversion |
mallocStack()
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated on the thread-local MemoryStack. |
static SpvcMslSamplerYcbcrConversion.Buffer |
mallocStack(int capacity)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcMslSamplerYcbcrConversion.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the specified MemoryStack. |
static SpvcMslSamplerYcbcrConversion |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack. |
static int |
nbpc(long struct)
Unsafe version of
bpc(). |
static void |
nbpc(long struct,
int value)
Unsafe version of
bpc. |
static int |
nchroma_filter(long struct)
Unsafe version of
chroma_filter(). |
static void |
nchroma_filter(long struct,
int value)
Unsafe version of
chroma_filter. |
static int |
nplanes(long struct)
Unsafe version of
planes(). |
static void |
nplanes(long struct,
int value)
Unsafe version of
planes. |
static int |
nresolution(long struct)
Unsafe version of
resolution(). |
static void |
nresolution(long struct,
int value)
Unsafe version of
resolution. |
static java.nio.IntBuffer |
nswizzle(long struct)
Unsafe version of
swizzle(). |
static int |
nswizzle(long struct,
int index)
Unsafe version of
swizzle. |
static void |
nswizzle(long struct,
java.nio.IntBuffer value)
Unsafe version of
swizzle. |
static void |
nswizzle(long struct,
int index,
int value)
Unsafe version of
swizzle. |
static int |
nx_chroma_offset(long struct)
Unsafe version of
x_chroma_offset(). |
static void |
nx_chroma_offset(long struct,
int value)
Unsafe version of
x_chroma_offset. |
static int |
ny_chroma_offset(long struct)
Unsafe version of
y_chroma_offset(). |
static void |
ny_chroma_offset(long struct,
int value)
Unsafe version of
y_chroma_offset. |
static int |
nycbcr_model(long struct)
Unsafe version of
ycbcr_model(). |
static void |
nycbcr_model(long struct,
int value)
Unsafe version of
ycbcr_model. |
static int |
nycbcr_range(long struct)
Unsafe version of
ycbcr_range(). |
static void |
nycbcr_range(long struct,
int value)
Unsafe version of
ycbcr_range. |
int |
planes()
Returns the value of the
planes field. |
SpvcMslSamplerYcbcrConversion |
planes(int value)
Sets the specified value to the
planes field. |
int |
resolution()
Returns the value of the
resolution field. |
SpvcMslSamplerYcbcrConversion |
resolution(int value)
Sets the specified value to the
resolution field. |
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.
|
SpvcMslSamplerYcbcrConversion |
set(SpvcMslSamplerYcbcrConversion src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
java.nio.IntBuffer |
swizzle()
Returns a
IntBuffer view of the swizzle field. |
int |
swizzle(int index)
Returns the value at the specified index of the
swizzle field. |
SpvcMslSamplerYcbcrConversion |
swizzle(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the swizzle field. |
SpvcMslSamplerYcbcrConversion |
swizzle(int index,
int value)
Sets the specified value at the specified index of the
swizzle field. |
int |
x_chroma_offset()
Returns the value of the
x_chroma_offset field. |
SpvcMslSamplerYcbcrConversion |
x_chroma_offset(int value)
Sets the specified value to the
x_chroma_offset field. |
int |
y_chroma_offset()
Returns the value of the
y_chroma_offset field. |
SpvcMslSamplerYcbcrConversion |
y_chroma_offset(int value)
Sets the specified value to the
y_chroma_offset field. |
int |
ycbcr_model()
Returns the value of the
ycbcr_model field. |
SpvcMslSamplerYcbcrConversion |
ycbcr_model(int value)
Sets the specified value to the
ycbcr_model field. |
int |
ycbcr_range()
Returns the value of the
ycbcr_range field. |
SpvcMslSamplerYcbcrConversion |
ycbcr_range(int value)
Sets the specified value to the
ycbcr_range field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PLANES
public static final int RESOLUTION
public static final int CHROMA_FILTER
public static final int X_CHROMA_OFFSET
public static final int Y_CHROMA_OFFSET
public static final int SWIZZLE
public static final int YCBCR_MODEL
public static final int YCBCR_RANGE
public static final int BPC
public SpvcMslSamplerYcbcrConversion(java.nio.ByteBuffer container)
SpvcMslSamplerYcbcrConversion instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int planes()
planes field.public int resolution()
resolution field.public int chroma_filter()
chroma_filter field.public int x_chroma_offset()
x_chroma_offset field.public int y_chroma_offset()
y_chroma_offset field.public java.nio.IntBuffer swizzle()
IntBuffer view of the swizzle field.public int swizzle(int index)
swizzle field.public int ycbcr_model()
ycbcr_model field.public int ycbcr_range()
ycbcr_range field.public int bpc()
bpc field.public SpvcMslSamplerYcbcrConversion planes(int value)
planes field.public SpvcMslSamplerYcbcrConversion resolution(int value)
resolution field.public SpvcMslSamplerYcbcrConversion chroma_filter(int value)
chroma_filter field.public SpvcMslSamplerYcbcrConversion x_chroma_offset(int value)
x_chroma_offset field.public SpvcMslSamplerYcbcrConversion y_chroma_offset(int value)
y_chroma_offset field.public SpvcMslSamplerYcbcrConversion swizzle(java.nio.IntBuffer value)
IntBuffer to the swizzle field.public SpvcMslSamplerYcbcrConversion swizzle(int index, int value)
swizzle field.public SpvcMslSamplerYcbcrConversion ycbcr_model(int value)
ycbcr_model field.public SpvcMslSamplerYcbcrConversion ycbcr_range(int value)
ycbcr_range field.public SpvcMslSamplerYcbcrConversion bpc(int value)
bpc field.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)
public SpvcMslSamplerYcbcrConversion set(SpvcMslSamplerYcbcrConversion src)
src - the source structpublic static SpvcMslSamplerYcbcrConversion malloc()
SpvcMslSamplerYcbcrConversion instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcMslSamplerYcbcrConversion calloc()
SpvcMslSamplerYcbcrConversion instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcMslSamplerYcbcrConversion create()
SpvcMslSamplerYcbcrConversion instance allocated with BufferUtils.public static SpvcMslSamplerYcbcrConversion create(long address)
SpvcMslSamplerYcbcrConversion instance for the specified memory address.@Nullable public static SpvcMslSamplerYcbcrConversion createSafe(long address)
public static SpvcMslSamplerYcbcrConversion.Buffer malloc(int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer calloc(int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer create(int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer create(long address, int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcMslSamplerYcbcrConversion.Buffer createSafe(long address, int capacity)
public static SpvcMslSamplerYcbcrConversion mallocStack()
SpvcMslSamplerYcbcrConversion instance allocated on the thread-local MemoryStack.public static SpvcMslSamplerYcbcrConversion callocStack()
SpvcMslSamplerYcbcrConversion instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcMslSamplerYcbcrConversion mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcMslSamplerYcbcrConversion callocStack(org.lwjgl.system.MemoryStack stack)
SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcMslSamplerYcbcrConversion.Buffer mallocStack(int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer callocStack(int capacity)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcMslSamplerYcbcrConversion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcMslSamplerYcbcrConversion.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nplanes(long struct)
planes().public static int nresolution(long struct)
resolution().public static int nchroma_filter(long struct)
chroma_filter().public static int nx_chroma_offset(long struct)
x_chroma_offset().public static int ny_chroma_offset(long struct)
y_chroma_offset().public static java.nio.IntBuffer nswizzle(long struct)
swizzle().public static int nswizzle(long struct,
int index)
swizzle.public static int nycbcr_model(long struct)
ycbcr_model().public static int nycbcr_range(long struct)
ycbcr_range().public static int nbpc(long struct)
bpc().public static void nplanes(long struct,
int value)
planes.public static void nresolution(long struct,
int value)
resolution.public static void nchroma_filter(long struct,
int value)
chroma_filter.public static void nx_chroma_offset(long struct,
int value)
x_chroma_offset.public static void ny_chroma_offset(long struct,
int value)
y_chroma_offset.public static void nswizzle(long struct,
java.nio.IntBuffer value)
swizzle.public static void nswizzle(long struct,
int index,
int value)
swizzle.public static void nycbcr_model(long struct,
int value)
ycbcr_model.public static void nycbcr_range(long struct,
int value)
ycbcr_range.public static void nbpc(long struct,
int value)
bpc.Copyright LWJGL. All Rights Reserved. License terms.