Package org.lwjgl.util.tinyexr
Class EXRVersion
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<EXRVersion>
org.lwjgl.util.tinyexr.EXRVersion
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class EXRVersion
extends org.lwjgl.system.Struct<EXRVersion>
implements org.lwjgl.system.NativeResource
Layout
struct EXRVersion {
int version();
int tiled();
int long_name();
int non_image();
int multipart();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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
ConstructorsConstructorDescriptionEXRVersion(ByteBuffer container) Creates aEXRVersioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRVersioncalloc()Returns a newEXRVersioninstance allocated withmemCalloc.static EXRVersion.Buffercalloc(int capacity) Returns a newEXRVersion.Bufferinstance allocated withmemCalloc.static EXRVersion.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRVersioncalloc(org.lwjgl.system.MemoryStack stack) Returns a newEXRVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRVersionDeprecated.static EXRVersion.BuffercallocStack(int capacity) Deprecated.static EXRVersion.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static EXRVersioncallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static EXRVersioncreate()Returns a newEXRVersioninstance allocated withBufferUtils.static EXRVersion.Buffercreate(int capacity) Returns a newEXRVersion.Bufferinstance allocated withBufferUtils.static EXRVersioncreate(long address) Returns a newEXRVersioninstance for the specified memory address.static EXRVersion.Buffercreate(long address, int capacity) Create aEXRVersion.Bufferinstance at the specified memory.static @Nullable EXRVersioncreateSafe(long address) static @Nullable EXRVersion.BuffercreateSafe(long address, int capacity) booleanlong name attributelong_name(boolean value) Sets the specified value to thelong_name()field.static EXRVersionmalloc()Returns a newEXRVersioninstance allocated withmemAlloc.static EXRVersion.Buffermalloc(int capacity) Returns a newEXRVersion.Bufferinstance allocated withmemAlloc.static EXRVersion.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStack.static EXRVersionmalloc(org.lwjgl.system.MemoryStack stack) Returns a newEXRVersioninstance allocated on the specifiedMemoryStack.static EXRVersionDeprecated.static EXRVersion.BuffermallocStack(int capacity) Deprecated.static EXRVersion.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static EXRVersionmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.booleanmulti-part(EXR 2.0)multipart(boolean value) Sets the specified value to themultipart()field.static intnlong_name(long struct) Unsafe version oflong_name().static voidnlong_name(long struct, int value) Unsafe version oflong_name.static intnmultipart(long struct) Unsafe version ofmultipart().static voidnmultipart(long struct, int value) Unsafe version ofmultipart.static intnnon_image(long struct) Unsafe version ofnon_image().static voidnnon_image(long struct, int value) Unsafe version ofnon_image.booleandeep image(EXR 2.0); for a multi-part file, indicates that at least one part is of typedeep*(according to spec.)non_image(boolean value) Sets the specified value to thenon_image()field.static intntiled(long struct) Unsafe version oftiled().static voidntiled(long struct, int value) Unsafe version oftiled.static intnversion(long struct) Unsafe version ofversion().static voidnversion(long struct, int value) Unsafe version ofversion.set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart) Initializes this struct with the specified values.set(EXRVersion src) Copies the specified struct data to this struct.intsizeof()booleantiled()tile format image; not zero for only a single-part "normal" tiled file (according to spec.)tiled(boolean value) Sets the specified value to thetiled()field.intversion()this must be 2version(int value) Sets the specified value to theversion()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
VERSION
public static final int VERSIONThe struct member offsets. -
TILED
public static final int TILEDThe struct member offsets. -
LONG_NAME
public static final int LONG_NAMEThe struct member offsets. -
NON_IMAGE
public static final int NON_IMAGEThe struct member offsets. -
MULTIPART
public static final int MULTIPARTThe struct member offsets.
-
-
Constructor Details
-
EXRVersion
Creates aEXRVersioninstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<EXRVersion>
-
version
public int version()this must be 2 -
tiled
public boolean tiled()tile format image; not zero for only a single-part "normal" tiled file (according to spec.) -
long_name
public boolean long_name()long name attribute -
non_image
public boolean non_image()deep image(EXR 2.0); for a multi-part file, indicates that at least one part is of typedeep*(according to spec.) -
multipart
public boolean multipart()multi-part(EXR 2.0) -
version
Sets the specified value to theversion()field. -
tiled
Sets the specified value to thetiled()field. -
long_name
Sets the specified value to thelong_name()field. -
non_image
Sets the specified value to thenon_image()field. -
multipart
Sets the specified value to themultipart()field. -
set
public EXRVersion set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart) 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 newEXRVersioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRVersioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRVersioninstance allocated withBufferUtils. -
create
Returns a newEXRVersioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRVersion.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 public static EXRVersion.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 EXRVersion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newEXRVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nversion
public static int nversion(long struct) Unsafe version ofversion(). -
ntiled
public static int ntiled(long struct) Unsafe version oftiled(). -
nlong_name
public static int nlong_name(long struct) Unsafe version oflong_name(). -
nnon_image
public static int nnon_image(long struct) Unsafe version ofnon_image(). -
nmultipart
public static int nmultipart(long struct) Unsafe version ofmultipart(). -
nversion
public static void nversion(long struct, int value) Unsafe version ofversion. -
ntiled
public static void ntiled(long struct, int value) Unsafe version oftiled. -
nlong_name
public static void nlong_name(long struct, int value) Unsafe version oflong_name. -
nnon_image
public static void nnon_image(long struct, int value) Unsafe version ofnon_image. -
nmultipart
public static void nmultipart(long struct, int value) Unsafe version ofmultipart.
-