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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aEXRChannelInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRChannelInfocalloc()Returns a newEXRChannelInfoinstance allocated withmemCalloc.static EXRChannelInfo.Buffercalloc(int capacity) Returns a newEXRChannelInfo.Bufferinstance allocated withmemCalloc.static EXRChannelInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRChannelInfocalloc(MemoryStack stack) Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRChannelInfoDeprecated.static EXRChannelInfo.BuffercallocStack(int capacity) Deprecated.static EXRChannelInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static EXRChannelInfocallocStack(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 @Nullable EXRChannelInfocreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.static EXRChannelInfomalloc(MemoryStack stack) Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStack.static EXRChannelInfoDeprecated.static EXRChannelInfo.BuffermallocStack(int capacity) Deprecated.static EXRChannelInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static EXRChannelInfomallocStack(MemoryStack stack) Deprecated.name()name(ByteBuffer value) Copies the specified encoded string to thenamefield.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static 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()p_linear(byte value) Sets the specified value to thep_linearfield.intpixel_type(int value) Sets the specified value to thepixel_typefield.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.intsizeof()Returnssizeof(struct).intx_sampling(int value) Sets the specified value to thex_samplingfield.inty_sampling(int value) Sets the specified value to they_samplingfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<EXRChannelInfo>
-
name
- Returns:
- a
ByteBufferview of thenamefield.
-
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
Copies the specified encoded string to thenamefield. -
pixel_type
Sets the specified value to thepixel_typefield. -
x_sampling
Sets the specified value to thex_samplingfield. -
y_sampling
Sets the specified value to they_samplingfield. -
p_linear
Sets the specified value to thep_linearfield. -
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 newEXRChannelInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRChannelInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRChannelInfoinstance allocated withBufferUtils. -
create
Returns a newEXRChannelInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRChannelInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRChannelInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRChannelInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRChannelInfo.Bufferinstance 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 newEXRChannelInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRChannelInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRChannelInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-