public class EXRChannelInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct EXRChannelInfo {
char name[256];
int pixel_type;
int x_sampling;
int y_sampling;
unsigned char p_linear;
char[3];
}| Modifier and Type | Class and Description |
|---|---|
static class |
EXRChannelInfo.Buffer
An array of
EXRChannelInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
P_LINEAR
The struct member offsets.
|
static int |
PIXEL_TYPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X_SAMPLING
The struct member offsets.
|
static int |
Y_SAMPLING
The struct member offsets.
|
| Constructor and Description |
|---|
EXRChannelInfo(java.nio.ByteBuffer container)
Creates a
EXRChannelInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static EXRChannelInfo |
calloc()
Returns a new
EXRChannelInfo instance allocated with memCalloc. |
static EXRChannelInfo.Buffer |
calloc(int capacity)
Returns a new
EXRChannelInfo.Buffer instance allocated with memCalloc. |
static EXRChannelInfo |
callocStack()
Returns a new
EXRChannelInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRChannelInfo.Buffer |
callocStack(int capacity)
Returns a new
EXRChannelInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static EXRChannelInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRChannelInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRChannelInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRChannelInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static EXRChannelInfo |
create()
Returns a new
EXRChannelInfo instance allocated with BufferUtils. |
static EXRChannelInfo.Buffer |
create(int capacity)
Returns a new
EXRChannelInfo.Buffer instance allocated with BufferUtils. |
static EXRChannelInfo |
create(long address)
Returns a new
EXRChannelInfo instance for the specified memory address. |
static EXRChannelInfo.Buffer |
create(long address,
int capacity)
Create a
EXRChannelInfo.Buffer instance at the specified memory. |
static EXRChannelInfo |
createSafe(long address)
|
static EXRChannelInfo.Buffer |
createSafe(long address,
int capacity)
|
static EXRChannelInfo |
malloc()
Returns a new
EXRChannelInfo instance allocated with memAlloc. |
static EXRChannelInfo.Buffer |
malloc(int capacity)
Returns a new
EXRChannelInfo.Buffer instance allocated with memAlloc. |
static EXRChannelInfo |
mallocStack()
Returns a new
EXRChannelInfo instance allocated on the thread-local MemoryStack. |
static EXRChannelInfo.Buffer |
mallocStack(int capacity)
Returns a new
EXRChannelInfo.Buffer instance allocated on the thread-local MemoryStack. |
static EXRChannelInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
EXRChannelInfo.Buffer instance allocated on the specified MemoryStack. |
static EXRChannelInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
EXRChannelInfo instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the name field. |
EXRChannelInfo |
name(java.nio.ByteBuffer value)
Copies the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string stored in the
name field. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static byte |
np_linear(long struct)
Unsafe version of
p_linear(). |
static void |
np_linear(long struct,
byte value)
Unsafe version of
p_linear. |
static int |
npixel_type(long struct)
Unsafe version of
pixel_type(). |
static void |
npixel_type(long struct,
int value)
Unsafe version of
pixel_type. |
static int |
nx_sampling(long struct)
Unsafe version of
x_sampling(). |
static void |
nx_sampling(long struct,
int value)
Unsafe version of
x_sampling. |
static int |
ny_sampling(long struct)
Unsafe version of
y_sampling(). |
static void |
ny_sampling(long struct,
int value)
Unsafe version of
y_sampling. |
byte |
p_linear()
Returns the value of the
p_linear field. |
EXRChannelInfo |
p_linear(byte value)
Sets the specified value to the
p_linear field. |
int |
pixel_type()
Returns the value of the
pixel_type field. |
EXRChannelInfo |
pixel_type(int value)
Sets the specified value to the
pixel_type field. |
EXRChannelInfo |
set(java.nio.ByteBuffer name,
int pixel_type,
int x_sampling,
int y_sampling,
byte p_linear)
Initializes this struct with the specified values.
|
EXRChannelInfo |
set(EXRChannelInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
x_sampling()
Returns the value of the
x_sampling field. |
EXRChannelInfo |
x_sampling(int value)
Sets the specified value to the
x_sampling field. |
int |
y_sampling()
Returns the value of the
y_sampling field. |
EXRChannelInfo |
y_sampling(int value)
Sets the specified value to the
y_sampling field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NAME
public static final int PIXEL_TYPE
public static final int X_SAMPLING
public static final int Y_SAMPLING
public static final int P_LINEAR
public EXRChannelInfo(java.nio.ByteBuffer container)
EXRChannelInfo 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 java.nio.ByteBuffer name()
ByteBuffer view of the name field.public java.lang.String nameString()
name field.public int pixel_type()
pixel_type field.public int x_sampling()
x_sampling field.public int y_sampling()
y_sampling field.public byte p_linear()
p_linear field.public EXRChannelInfo name(java.nio.ByteBuffer value)
name field.public EXRChannelInfo pixel_type(int value)
pixel_type field.public EXRChannelInfo x_sampling(int value)
x_sampling field.public EXRChannelInfo y_sampling(int value)
y_sampling field.public EXRChannelInfo p_linear(byte value)
p_linear field.public EXRChannelInfo set(java.nio.ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear)
public EXRChannelInfo set(EXRChannelInfo src)
src - the source structpublic static EXRChannelInfo malloc()
EXRChannelInfo instance allocated with memAlloc. The instance must be explicitly freed.public static EXRChannelInfo calloc()
EXRChannelInfo instance allocated with memCalloc. The instance must be explicitly freed.public static EXRChannelInfo create()
EXRChannelInfo instance allocated with BufferUtils.public static EXRChannelInfo create(long address)
EXRChannelInfo instance for the specified memory address.@Nullable public static EXRChannelInfo createSafe(long address)
public static EXRChannelInfo.Buffer malloc(int capacity)
EXRChannelInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRChannelInfo.Buffer calloc(int capacity)
EXRChannelInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static EXRChannelInfo.Buffer create(int capacity)
EXRChannelInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static EXRChannelInfo.Buffer create(long address, int capacity)
EXRChannelInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static EXRChannelInfo.Buffer createSafe(long address, int capacity)
public static EXRChannelInfo mallocStack()
EXRChannelInfo instance allocated on the thread-local MemoryStack.public static EXRChannelInfo callocStack()
EXRChannelInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static EXRChannelInfo mallocStack(org.lwjgl.system.MemoryStack stack)
EXRChannelInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static EXRChannelInfo callocStack(org.lwjgl.system.MemoryStack stack)
EXRChannelInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static EXRChannelInfo.Buffer mallocStack(int capacity)
EXRChannelInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static EXRChannelInfo.Buffer callocStack(int capacity)
EXRChannelInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static EXRChannelInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRChannelInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static EXRChannelInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
EXRChannelInfo.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 java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static int npixel_type(long struct)
pixel_type().public static int nx_sampling(long struct)
x_sampling().public static int ny_sampling(long struct)
y_sampling().public static byte np_linear(long struct)
p_linear().public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void npixel_type(long struct,
int value)
pixel_type.public static void nx_sampling(long struct,
int value)
x_sampling.public static void ny_sampling(long struct,
int value)
y_sampling.public static void np_linear(long struct,
byte value)
p_linear.Copyright LWJGL. All Rights Reserved. License terms.