Package org.lwjgl.util.tinyexr
Class EXRChannelInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct EXRChannelInfo {
char name[256];
int pixel_type;
int x_sampling;
int y_sampling;
unsigned char p_linear;
char[3];
}
-
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 size in bytes.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
ConstructorsConstructorDescriptionEXRChannelInfo
(ByteBuffer container) Creates aEXRChannelInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRChannelInfo
calloc()
Returns a newEXRChannelInfo
instance allocated withmemCalloc
.static EXRChannelInfo.Buffer
calloc
(int capacity) Returns a newEXRChannelInfo.Buffer
instance allocated withmemCalloc
.static EXRChannelInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRChannelInfo
calloc
(MemoryStack stack) Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRChannelInfo
Deprecated.static EXRChannelInfo.Buffer
callocStack
(int capacity) Deprecated.static EXRChannelInfo.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static EXRChannelInfo
callocStack
(MemoryStack stack) Deprecated.static EXRChannelInfo
create()
Returns a newEXRChannelInfo
instance allocated withBufferUtils
.static EXRChannelInfo.Buffer
create
(int capacity) Returns a newEXRChannelInfo.Buffer
instance allocated withBufferUtils
.static EXRChannelInfo
create
(long address) Returns a newEXRChannelInfo
instance for the specified memory address.static EXRChannelInfo.Buffer
create
(long address, int capacity) Create aEXRChannelInfo.Buffer
instance at the specified memory.static @Nullable EXRChannelInfo
createSafe
(long address) static @Nullable EXRChannelInfo.Buffer
createSafe
(long address, int capacity) static EXRChannelInfo
malloc()
Returns a newEXRChannelInfo
instance allocated withmemAlloc
.static EXRChannelInfo.Buffer
malloc
(int capacity) Returns a newEXRChannelInfo.Buffer
instance allocated withmemAlloc
.static EXRChannelInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
.static EXRChannelInfo
malloc
(MemoryStack stack) Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
.static EXRChannelInfo
Deprecated.static EXRChannelInfo.Buffer
mallocStack
(int capacity) Deprecated.static EXRChannelInfo.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static EXRChannelInfo
mallocStack
(MemoryStack stack) Deprecated.name()
name
(ByteBuffer value) Copies the specified encoded string to thename
field.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static byte
np_linear
(long struct) Unsafe version ofp_linear()
.static void
np_linear
(long struct, byte value) Unsafe version ofp_linear
.static int
npixel_type
(long struct) Unsafe version ofpixel_type()
.static void
npixel_type
(long struct, int value) Unsafe version ofpixel_type
.static int
nx_sampling
(long struct) Unsafe version ofx_sampling()
.static void
nx_sampling
(long struct, int value) Unsafe version ofx_sampling
.static int
ny_sampling
(long struct) Unsafe version ofy_sampling()
.static void
ny_sampling
(long struct, int value) Unsafe version ofy_sampling
.byte
p_linear()
p_linear
(byte value) Sets the specified value to thep_linear
field.int
pixel_type
(int value) Sets the specified value to thepixel_type
field.set
(ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear) Initializes this struct with the specified values.set
(EXRChannelInfo src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
x_sampling
(int value) Sets the specified value to thex_sampling
field.int
y_sampling
(int value) Sets the specified value to they_sampling
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. -
NAME
public static final int NAMEThe struct member offsets. -
PIXEL_TYPE
public static final int PIXEL_TYPEThe struct member offsets. -
X_SAMPLING
public static final int X_SAMPLINGThe struct member offsets. -
Y_SAMPLING
public static final int Y_SAMPLINGThe struct member offsets. -
P_LINEAR
public static final int P_LINEARThe struct member offsets.
-
-
Constructor Details
-
EXRChannelInfo
Creates aEXRChannelInfo
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<EXRChannelInfo>
-
name
- Returns:
- a
ByteBuffer
view of thename
field.
-
nameString
- Returns:
- the null-terminated string stored in the
name
field.
-
pixel_type
public int pixel_type()- Returns:
- the value of the
pixel_type
field.
-
x_sampling
public int x_sampling()- Returns:
- the value of the
x_sampling
field.
-
y_sampling
public int y_sampling()- Returns:
- the value of the
y_sampling
field.
-
p_linear
public byte p_linear()- Returns:
- the value of the
p_linear
field.
-
name
Copies the specified encoded string to thename
field. -
pixel_type
Sets the specified value to thepixel_type
field. -
x_sampling
Sets the specified value to thex_sampling
field. -
y_sampling
Sets the specified value to they_sampling
field. -
p_linear
Sets the specified value to thep_linear
field. -
set
public EXRChannelInfo set(ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear) 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 newEXRChannelInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newEXRChannelInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newEXRChannelInfo
instance allocated withBufferUtils
. -
create
Returns a newEXRChannelInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRChannelInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newEXRChannelInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newEXRChannelInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aEXRChannelInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
npixel_type
public static int npixel_type(long struct) Unsafe version ofpixel_type()
. -
nx_sampling
public static int nx_sampling(long struct) Unsafe version ofx_sampling()
. -
ny_sampling
public static int ny_sampling(long struct) Unsafe version ofy_sampling()
. -
np_linear
public static byte np_linear(long struct) Unsafe version ofp_linear()
. -
nname
Unsafe version ofname
. -
npixel_type
public static void npixel_type(long struct, int value) Unsafe version ofpixel_type
. -
nx_sampling
public static void nx_sampling(long struct, int value) Unsafe version ofx_sampling
. -
ny_sampling
public static void ny_sampling(long struct, int value) Unsafe version ofy_sampling
. -
np_linear
public static void np_linear(long struct, byte value) Unsafe version ofp_linear
.
-