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.NativeResourceLayout
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 classEXRChannelInfo.BufferAn array ofEXRChannelInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNAME
P_LINEAR
PIXEL_TYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intX_SAMPLING
Y_SAMPLINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description EXRChannelInfo(java.nio.ByteBuffer container)Creates aEXRChannelInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EXRChannelInfocalloc()Returns a newEXRChannelInfoinstance allocated withmemCalloc.static EXRChannelInfo.Buffercalloc(int capacity)Returns a newEXRChannelInfo.Bufferinstance allocated withmemCalloc.static EXRChannelInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRChannelInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRChannelInfocallocStack()Deprecated.static EXRChannelInfo.BuffercallocStack(int capacity)Deprecated.static EXRChannelInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRChannelInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static EXRChannelInfocreate()Returns a newEXRChannelInfoinstance allocated withBufferUtils.static EXRChannelInfo.Buffercreate(int capacity)Returns a newEXRChannelInfo.Bufferinstance allocated withBufferUtils.static EXRChannelInfocreate(long address)Returns a newEXRChannelInfoinstance for the specified memory address.static EXRChannelInfo.Buffercreate(long address, int capacity)Create aEXRChannelInfo.Bufferinstance at the specified memory.static EXRChannelInfocreateSafe(long address)static EXRChannelInfo.BuffercreateSafe(long address, int capacity)static EXRChannelInfomalloc()Returns a newEXRChannelInfoinstance allocated withmemAlloc.static EXRChannelInfo.Buffermalloc(int capacity)Returns a newEXRChannelInfo.Bufferinstance allocated withmemAlloc.static EXRChannelInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.static EXRChannelInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStack.static EXRChannelInfomallocStack()Deprecated.static EXRChannelInfo.BuffermallocStack(int capacity)Deprecated.static EXRChannelInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static EXRChannelInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffername()EXRChannelInfoname(java.nio.ByteBuffer value)Copies the specified encoded string to thenamefield.java.lang.StringnameString()static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static bytenp_linear(long struct)Unsafe version ofp_linear().static voidnp_linear(long struct, byte value)Unsafe version ofp_linear.static intnpixel_type(long struct)Unsafe version ofpixel_type().static voidnpixel_type(long struct, int value)Unsafe version ofpixel_type.static intnx_sampling(long struct)Unsafe version ofx_sampling().static voidnx_sampling(long struct, int value)Unsafe version ofx_sampling.static intny_sampling(long struct)Unsafe version ofy_sampling().static voidny_sampling(long struct, int value)Unsafe version ofy_sampling.bytep_linear()EXRChannelInfop_linear(byte value)Sets the specified value to thep_linearfield.intpixel_type()EXRChannelInfopixel_type(int value)Sets the specified value to thepixel_typefield.EXRChannelInfoset(java.nio.ByteBuffer name, int pixel_type, int x_sampling, int y_sampling, byte p_linear)Initializes this struct with the specified values.EXRChannelInfoset(EXRChannelInfo src)Copies the specified struct data to this struct.intsizeof()intx_sampling()EXRChannelInfox_sampling(int value)Sets the specified value to thex_samplingfield.inty_sampling()EXRChannelInfoy_sampling(int value)Sets the specified value to they_samplingfield.
-
-
-
Constructor Detail
-
EXRChannelInfo
public EXRChannelInfo(java.nio.ByteBuffer container)
Creates aEXRChannelInfoinstance 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
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of thenamefield.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string stored in the
namefield.
-
pixel_type
public int pixel_type()
- Returns:
- the value of the
pixel_typefield.
-
x_sampling
public int x_sampling()
- Returns:
- the value of the
x_samplingfield.
-
y_sampling
public int y_sampling()
- Returns:
- the value of the
y_samplingfield.
-
p_linear
public byte p_linear()
- Returns:
- the value of the
p_linearfield.
-
name
public EXRChannelInfo name(java.nio.ByteBuffer value)
Copies the specified encoded string to thenamefield.
-
pixel_type
public EXRChannelInfo pixel_type(int value)
Sets the specified value to thepixel_typefield.
-
x_sampling
public EXRChannelInfo x_sampling(int value)
Sets the specified value to thex_samplingfield.
-
y_sampling
public EXRChannelInfo y_sampling(int value)
Sets the specified value to they_samplingfield.
-
p_linear
public EXRChannelInfo p_linear(byte value)
Sets the specified value to thep_linearfield.
-
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 newEXRChannelInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EXRChannelInfo calloc()
Returns a newEXRChannelInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EXRChannelInfo create()
Returns a newEXRChannelInfoinstance allocated withBufferUtils.
-
create
public static EXRChannelInfo create(long address)
Returns a newEXRChannelInfoinstance for the specified memory address.
-
createSafe
@Nullable public static EXRChannelInfo createSafe(long address)
-
malloc
public static EXRChannelInfo.Buffer malloc(int capacity)
Returns a newEXRChannelInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EXRChannelInfo.Buffer calloc(int capacity)
Returns a newEXRChannelInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EXRChannelInfo.Buffer create(int capacity)
Returns a newEXRChannelInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EXRChannelInfo.Buffer create(long address, int capacity)
Create aEXRChannelInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static EXRChannelInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static EXRChannelInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRChannelInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRChannelInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRChannelInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRChannelInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRChannelInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRChannelInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRChannelInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static EXRChannelInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EXRChannelInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static EXRChannelInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static EXRChannelInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-