Package org.lwjgl.util.tinyexr
Class EXRChannelInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.EXRChannelInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class EXRChannelInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct EXRChannelInfo { char name[256]; int pixel_type; int x_sampling; int y_sampling; unsigned char p_linear; char[3]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EXRChannelInfo.Buffer
An array ofEXRChannelInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
NAME
P_LINEAR
PIXEL_TYPEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
X_SAMPLING
Y_SAMPLINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description EXRChannelInfo(java.nio.ByteBuffer container)
Creates aEXRChannelInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EXRChannelInfo
calloc()
Returns a newEXRChannelInfo
instance allocated withmemCalloc
.static EXRChannelInfo.Buffer
calloc(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated withmemCalloc
.static EXRChannelInfo
callocStack()
Returns a newEXRChannelInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EXRChannelInfo.Buffer
callocStack(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EXRChannelInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRChannelInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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 EXRChannelInfo
createSafe(long address)
static 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
mallocStack()
Returns a newEXRChannelInfo
instance allocated on the thread-localMemoryStack
.static EXRChannelInfo.Buffer
mallocStack(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated on the thread-localMemoryStack
.static EXRChannelInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
.static EXRChannelInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
.java.nio.ByteBuffer
name()
Returns aByteBuffer
view of thename
field.EXRChannelInfo
name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename
field.java.lang.String
nameString()
Decodes the null-terminated string stored in thename
field.static java.nio.ByteBuffer
nname(long struct)
Unsafe version ofname()
.static void
nname(long struct, java.nio.ByteBuffer value)
Unsafe version ofname
.static java.lang.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()
Returns the value of thep_linear
field.EXRChannelInfo
p_linear(byte value)
Sets the specified value to thep_linear
field.int
pixel_type()
Returns the value of thepixel_type
field.EXRChannelInfo
pixel_type(int value)
Sets the specified value to thepixel_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 thex_sampling
field.EXRChannelInfo
x_sampling(int value)
Sets the specified value to thex_sampling
field.int
y_sampling()
Returns the value of they_sampling
field.EXRChannelInfo
y_sampling(int value)
Sets the specified value to they_sampling
field.
-
-
-
Constructor Detail
-
EXRChannelInfo
public EXRChannelInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
name
public java.nio.ByteBuffer name()
Returns aByteBuffer
view of thename
field.
-
nameString
public java.lang.String nameString()
Decodes the null-terminated string stored in thename
field.
-
pixel_type
public int pixel_type()
Returns the value of thepixel_type
field.
-
x_sampling
public int x_sampling()
Returns the value of thex_sampling
field.
-
y_sampling
public int y_sampling()
Returns the value of they_sampling
field.
-
p_linear
public byte p_linear()
Returns the value of thep_linear
field.
-
name
public EXRChannelInfo name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename
field.
-
pixel_type
public EXRChannelInfo pixel_type(int value)
Sets the specified value to thepixel_type
field.
-
x_sampling
public EXRChannelInfo x_sampling(int value)
Sets the specified value to thex_sampling
field.
-
y_sampling
public EXRChannelInfo y_sampling(int value)
Sets the specified value to they_sampling
field.
-
p_linear
public EXRChannelInfo p_linear(byte value)
Sets the specified value to thep_linear
field.
-
set
public 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.
-
set
public EXRChannelInfo set(EXRChannelInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static EXRChannelInfo malloc()
Returns a newEXRChannelInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static EXRChannelInfo calloc()
Returns a newEXRChannelInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static EXRChannelInfo create()
Returns a newEXRChannelInfo
instance allocated withBufferUtils
.
-
create
public static EXRChannelInfo create(long address)
Returns a newEXRChannelInfo
instance for the specified memory address.
-
createSafe
@Nullable public static EXRChannelInfo createSafe(long address)
-
malloc
public static EXRChannelInfo.Buffer malloc(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static EXRChannelInfo.Buffer calloc(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static EXRChannelInfo.Buffer create(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static EXRChannelInfo.Buffer create(long address, int capacity)
Create aEXRChannelInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static EXRChannelInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static EXRChannelInfo mallocStack()
Returns a newEXRChannelInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static EXRChannelInfo callocStack()
Returns a newEXRChannelInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static EXRChannelInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static EXRChannelInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static EXRChannelInfo.Buffer mallocStack(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static EXRChannelInfo.Buffer callocStack(int capacity)
Returns a newEXRChannelInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static EXRChannelInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static EXRChannelInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname()
.
-
nnameString
public static java.lang.String nnameString(long struct)
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
public static void nname(long struct, java.nio.ByteBuffer value)
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
.
-
-