Package org.lwjgl.util.tinyexr
Class EXRVersion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.EXRVersion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class EXRVersion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct EXRVersion { intversion(); inttiled(); intlong_name(); intnon_image(); intmultipart(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEXRVersion.BufferAn array ofEXRVersionstructs.
-
Constructor Summary
Constructors Constructor Description EXRVersion(java.nio.ByteBuffer container)Creates aEXRVersioninstance 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 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 EXRVersioncallocStack()Deprecated.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 EXRVersioncreateSafe(long address)static EXRVersion.BuffercreateSafe(long address, int capacity)booleanlong_name()long name attributeEXRVersionlong_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 EXRVersionmallocStack()Deprecated.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.booleanmultipart()multi-part(EXR 2.0)EXRVersionmultipart(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.booleannon_image()deep image(EXR 2.0); for a multi-part file, indicates that at least one part is of typedeep*(according to spec.)EXRVersionnon_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.EXRVersionset(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart)Initializes this struct with the specified values.EXRVersionset(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.)EXRVersiontiled(boolean value)Sets the specified value to thetiled()field.intversion()this must be 2EXRVersionversion(int value)Sets the specified value to theversion()field.
-
-
-
Constructor Detail
-
EXRVersion
public EXRVersion(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public EXRVersion version(int value)
Sets the specified value to theversion()field.
-
tiled
public EXRVersion tiled(boolean value)
Sets the specified value to thetiled()field.
-
long_name
public EXRVersion long_name(boolean value)
Sets the specified value to thelong_name()field.
-
non_image
public EXRVersion non_image(boolean value)
Sets the specified value to thenon_image()field.
-
multipart
public EXRVersion multipart(boolean value)
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
public EXRVersion set(EXRVersion src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static EXRVersion malloc()
Returns a newEXRVersioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static EXRVersion calloc()
Returns a newEXRVersioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static EXRVersion create()
Returns a newEXRVersioninstance allocated withBufferUtils.
-
create
public static EXRVersion create(long address)
Returns a newEXRVersioninstance for the specified memory address.
-
createSafe
@Nullable public static EXRVersion createSafe(long address)
-
malloc
public static EXRVersion.Buffer malloc(int capacity)
Returns a newEXRVersion.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static EXRVersion.Buffer calloc(int capacity)
Returns a newEXRVersion.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static EXRVersion.Buffer create(int capacity)
Returns a newEXRVersion.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static EXRVersion.Buffer create(long address, int capacity)
Create aEXRVersion.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static EXRVersion.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static EXRVersion mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRVersion callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRVersion mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static EXRVersion callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static EXRVersion.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static EXRVersion.Buffer callocStack(int capacity)
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
public static EXRVersion malloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static EXRVersion calloc(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static EXRVersion.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static EXRVersion.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-