Top Description Inners Fields Constructors Methods
org.lwjgl.util.tinyexr

public Class EXRTile

extends Struct<EXRTile>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct EXRTile {
    int offset_x;
    int offset_y;
    int level_x;
    int level_y;
    int width;
    int height;
    unsigned char ** images;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
EXRTile.Buffer

An array of EXRTile structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
HEIGHT

The struct member offsets.

public static final int
IMAGES

The struct member offsets.

public static final int
LEVEL_X

The struct member offsets.

public static final int
LEVEL_Y

The struct member offsets.

public static final int
OFFSET_X

The struct member offsets.

public static final int
OFFSET_Y

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
EXRTile(long address, ByteBuffer container)

public
EXRTile(ByteBuffer container)

Creates a EXRTile instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static EXRTile
calloc()

Returns a new EXRTile instance allocated with memCalloc.

public static EXRTile.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new EXRTile.Buffer instance allocated with memCalloc.

public static EXRTile
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRTile instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static EXRTile.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRTile.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static EXRTile
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected EXRTile
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static EXRTile
create()

Returns a new EXRTile instance allocated with BufferUtils.

public static EXRTile
create(long address)

Returns a new EXRTile instance for the specified memory address.

public static EXRTile.Buffer
create(int
the buffer capacity
capacity
)

Returns a new EXRTile.Buffer instance allocated with BufferUtils.

public static EXRTile.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a EXRTile.Buffer instance at the specified memory.

public static EXRTile
createSafe(long address)

Like create, but returns null if address is NULL.

public static EXRTile.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
height()

actual height in a tile

public EXRTile
height(int value)

Sets the specified value to the height field.

public PointerBuffer

Returns:

image[channels][pixels]
images
(int
the number of elements in the returned buffer
capacity
)

public EXRTile
images(PointerBuffer value)

Sets the address of the specified PointerBuffer to the images field.

public int

Returns:

the value of the level_x field.
level_x
()

public EXRTile
level_x(int value)

Sets the specified value to the level_x field.

public int

Returns:

the value of the level_y field.
level_y
()

public EXRTile
level_y(int value)

Sets the specified value to the level_y field.

public static EXRTile
malloc()

Returns a new EXRTile instance allocated with memAlloc.

public static EXRTile.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new EXRTile.Buffer instance allocated with memAlloc.

public static EXRTile
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRTile instance allocated on the specified MemoryStack.

public static EXRTile.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new EXRTile.Buffer instance allocated on the specified MemoryStack.

public static EXRTile
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static EXRTile.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, int value)

Unsafe version of height.

public static PointerBuffer
nimages(long struct, int capacity)

Unsafe version of images.

public static void
nimages(long struct, PointerBuffer value)

Unsafe version of images.

public static int
nlevel_x(long struct)

Unsafe version of level_x.

public static void
nlevel_x(long struct, int value)

Unsafe version of level_x.

public static int
nlevel_y(long struct)

Unsafe version of level_y.

public static void
nlevel_y(long struct, int value)

Unsafe version of level_y.

public static int
noffset_x(long struct)

Unsafe version of offset_x.

public static void
noffset_x(long struct, int value)

Unsafe version of offset_x.

public static int
noffset_y(long struct)

Unsafe version of offset_y.

public static void
noffset_y(long struct, int value)

Unsafe version of offset_y.

public static int
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, int value)

Unsafe version of width.

public int

Returns:

the value of the offset_x field.
offset_x
()

public EXRTile
offset_x(int value)

Sets the specified value to the offset_x field.

public int

Returns:

the value of the offset_y field.
offset_y
()

public EXRTile
offset_y(int value)

Sets the specified value to the offset_y field.

public EXRTile
set(int offset_x, int offset_y, int level_x, int level_y, int width, int height, PointerBuffer images)

Initializes this struct with the specified values.

public EXRTile

Returns:

this struct
set
(EXRTile
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public int
width()

actual width in a tile

public EXRTile
width(int value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

HEIGHTback to summary
public static final int HEIGHT

The struct member offsets.

IMAGESback to summary
public static final int IMAGES

The struct member offsets.

LEVEL_Xback to summary
public static final int LEVEL_X

The struct member offsets.

LEVEL_Yback to summary
public static final int LEVEL_Y

The struct member offsets.

OFFSET_Xback to summary
public static final int OFFSET_X

The struct member offsets.

OFFSET_Yback to summary
public static final int OFFSET_Y

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

WIDTHback to summary
public static final int WIDTH

The struct member offsets.

Constructor Detail

EXRTileback to summary
protected EXRTile(long address, ByteBuffer container)
EXRTileback to summary
public EXRTile(ByteBuffer container)

Creates a EXRTile instance at the current position of the specified ByteBuffer 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

callocback to summary
public static EXRTile calloc()

Returns a new EXRTile instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static EXRTile.Buffer calloc(int capacity)

Returns a new EXRTile.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static EXRTile calloc(MemoryStack stack)

Returns a new EXRTile instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static EXRTile.Buffer calloc(int capacity, MemoryStack stack)

Returns a new EXRTile.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static EXRTile callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static EXRTile callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static EXRTile.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static EXRTile.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected EXRTile create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static EXRTile create()

Returns a new EXRTile instance allocated with BufferUtils.

createback to summary
public static EXRTile create(long address)

Returns a new EXRTile instance for the specified memory address.

createback to summary
public static EXRTile.Buffer create(int capacity)

Returns a new EXRTile.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static EXRTile.Buffer create(long address, int capacity)

Create a EXRTile.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static EXRTile createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static EXRTile.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
heightback to summary
public int height()

actual height in a tile

heightback to summary
public EXRTile height(int value)

Sets the specified value to the height field.

imagesback to summary
public PointerBuffer images(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:PointerBuffer

image[channels][pixels]

Annotations
@NativeType:unsigned char **
imagesback to summary
public EXRTile images(PointerBuffer value)

Sets the address of the specified PointerBuffer to the images field.

level_xback to summary
public int level_x()
Returns:int

the value of the level_x field.

level_xback to summary
public EXRTile level_x(int value)

Sets the specified value to the level_x field.

level_yback to summary
public int level_y()
Returns:int

the value of the level_y field.

level_yback to summary
public EXRTile level_y(int value)

Sets the specified value to the level_y field.

mallocback to summary
public static EXRTile malloc()

Returns a new EXRTile instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static EXRTile.Buffer malloc(int capacity)

Returns a new EXRTile.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static EXRTile malloc(MemoryStack stack)

Returns a new EXRTile instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static EXRTile.Buffer malloc(int capacity, MemoryStack stack)

Returns a new EXRTile.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static EXRTile mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static EXRTile mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static EXRTile.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static EXRTile.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nheightback to summary
public static int nheight(long struct)

Unsafe version of height.

nheightback to summary
public static void nheight(long struct, int value)

Unsafe version of height.

nimagesback to summary
public static PointerBuffer nimages(long struct, int capacity)

Unsafe version of images.

nimagesback to summary
public static void nimages(long struct, PointerBuffer value)

Unsafe version of images.

nlevel_xback to summary
public static int nlevel_x(long struct)

Unsafe version of level_x.

nlevel_xback to summary
public static void nlevel_x(long struct, int value)

Unsafe version of level_x.

nlevel_yback to summary
public static int nlevel_y(long struct)

Unsafe version of level_y.

nlevel_yback to summary
public static void nlevel_y(long struct, int value)

Unsafe version of level_y.

noffset_xback to summary
public static int noffset_x(long struct)

Unsafe version of offset_x.

noffset_xback to summary
public static void noffset_x(long struct, int value)

Unsafe version of offset_x.

noffset_yback to summary
public static int noffset_y(long struct)

Unsafe version of offset_y.

noffset_yback to summary
public static void noffset_y(long struct, int value)

Unsafe version of offset_y.

nwidthback to summary
public static int nwidth(long struct)

Unsafe version of width.

nwidthback to summary
public static void nwidth(long struct, int value)

Unsafe version of width.

offset_xback to summary
public int offset_x()
Returns:int

the value of the offset_x field.

offset_xback to summary
public EXRTile offset_x(int value)

Sets the specified value to the offset_x field.

offset_yback to summary
public int offset_y()
Returns:int

the value of the offset_y field.

offset_yback to summary
public EXRTile offset_y(int value)

Sets the specified value to the offset_y field.

setback to summary
public EXRTile set(int offset_x, int offset_y, int level_x, int level_y, int width, int height, PointerBuffer images)

Initializes this struct with the specified values.

setback to summary
public EXRTile set(EXRTile src)

Copies the specified struct data to this struct.

Parameters
src:EXRTile

the source struct

Returns:EXRTile

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
validateback to summary
public static void validate(long struct)

Validates pointer members that should not be NULL.

Parameters
struct:long

the struct to validate

widthback to summary
public int width()

actual width in a tile

widthback to summary
public EXRTile width(int value)

Sets the specified value to the width field.

org.lwjgl.util.tinyexr back to summary

public Class EXRTile.Buffer

extends StructBuffer<EXRTile, EXRTile.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of EXRTile structs.

Field Summary

Modifier and TypeField and Description
private static final EXRTile

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new EXRTile.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected EXRTile
public int

Returns:

the value of the EXRTile#height field.
height
()

public EXRTile.Buffer
height(int value)

Sets the specified value to the EXRTile#height field.

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the EXRTile#images field.
images
(int
the number of elements in the returned buffer
capacity
)

public EXRTile.Buffer
images(PointerBuffer value)

Sets the address of the specified PointerBuffer to the EXRTile#images field.

public int

Returns:

the value of the level_x field.
level_x
()

public EXRTile.Buffer
level_x(int value)

Sets the specified value to the level_x field.

public int

Returns:

the value of the level_y field.
level_y
()

public EXRTile.Buffer
level_y(int value)

Sets the specified value to the level_y field.

public int

Returns:

the value of the offset_x field.
offset_x
()

public EXRTile.Buffer
offset_x(int value)

Sets the specified value to the offset_x field.

public int

Returns:

the value of the offset_y field.
offset_y
()

public EXRTile.Buffer
offset_y(int value)

Sets the specified value to the offset_y field.

protected EXRTile.Buffer
public int

Returns:

the value of the EXRTile#width field.
width
()

public EXRTile.Buffer
width(int value)

Sets the specified value to the EXRTile#width field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final EXRTile ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new EXRTile.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by EXRTile#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected EXRTile getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
heightback to summary
public int height()
Returns:int

the value of the EXRTile#height field.

heightback to summary
public EXRTile.Buffer height(int value)

Sets the specified value to the EXRTile#height field.

imagesback to summary
public PointerBuffer images(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:PointerBuffer

a PointerBuffer view of the data pointed to by the EXRTile#images field.

Annotations
@NativeType:unsigned char **
imagesback to summary
public EXRTile.Buffer images(PointerBuffer value)

Sets the address of the specified PointerBuffer to the EXRTile#images field.

level_xback to summary
public int level_x()
Returns:int

the value of the level_x field.

level_xback to summary
public EXRTile.Buffer level_x(int value)

Sets the specified value to the level_x field.

level_yback to summary
public int level_y()
Returns:int

the value of the level_y field.

level_yback to summary
public EXRTile.Buffer level_y(int value)

Sets the specified value to the level_y field.

offset_xback to summary
public int offset_x()
Returns:int

the value of the offset_x field.

offset_xback to summary
public EXRTile.Buffer offset_x(int value)

Sets the specified value to the offset_x field.

offset_yback to summary
public int offset_y()
Returns:int

the value of the offset_y field.

offset_yback to summary
public EXRTile.Buffer offset_y(int value)

Sets the specified value to the offset_y field.

selfback to summary
protected EXRTile.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
widthback to summary
public int width()
Returns:int

the value of the EXRTile#width field.

widthback to summary
public EXRTile.Buffer width(int value)

Sets the specified value to the EXRTile#width field.