Package org.lwjgl.util.tinyexr
Class EXRImage
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct EXRImage {
{@link EXRTile EXRTile} * tiles;
{@link EXRImage struct _EXRImage} * next_level;
int level_x;
int level_y;
unsigned char ** images;
int width;
int height;
int num_channels;
int num_tiles;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionEXRImage
(ByteBuffer container) Creates aEXRImage
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRImage
calloc()
Returns a newEXRImage
instance allocated withmemCalloc
.static EXRImage.Buffer
calloc
(int capacity) Returns a newEXRImage.Buffer
instance allocated withmemCalloc
.static EXRImage.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newEXRImage.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRImage
calloc
(MemoryStack stack) Returns a newEXRImage
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRImage
Deprecated.static EXRImage.Buffer
callocStack
(int capacity) Deprecated.static EXRImage.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static EXRImage
callocStack
(MemoryStack stack) Deprecated.static EXRImage
create()
Returns a newEXRImage
instance allocated withBufferUtils
.static EXRImage.Buffer
create
(int capacity) Returns a newEXRImage.Buffer
instance allocated withBufferUtils
.static EXRImage
create
(long address) Returns a newEXRImage
instance for the specified memory address.static EXRImage.Buffer
create
(long address, int capacity) Create aEXRImage.Buffer
instance at the specified memory.static @Nullable EXRImage
createSafe
(long address) static @Nullable EXRImage.Buffer
createSafe
(long address, int capacity) int
height()
height
(int value) Sets the specified value to theheight
field.@Nullable PointerBuffer
images()
images
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theimages
field.int
level_x()
level_x
(int value) Sets the specified value to thelevel_x
field.int
level_y()
level_y
(int value) Sets the specified value to thelevel_y
field.static EXRImage
malloc()
Returns a newEXRImage
instance allocated withmemAlloc
.static EXRImage.Buffer
malloc
(int capacity) Returns a newEXRImage.Buffer
instance allocated withmemAlloc
.static EXRImage.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newEXRImage.Buffer
instance allocated on the specifiedMemoryStack
.static EXRImage
malloc
(MemoryStack stack) Returns a newEXRImage
instance allocated on the specifiedMemoryStack
.static EXRImage
Deprecated.static EXRImage.Buffer
mallocStack
(int capacity) Deprecated.static EXRImage.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static EXRImage
mallocStack
(MemoryStack stack) Deprecated.@Nullable EXRImage
next_level
(@Nullable EXRImage value) Sets the address of the specifiedEXRImage
to thenext_level
field.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static @Nullable PointerBuffer
nimages
(long struct) Unsafe version ofimages
.static void
nimages
(long struct, @Nullable PointerBuffer value) Unsafe version ofimages
.static int
nlevel_x
(long struct) Unsafe version oflevel_x()
.static void
nlevel_x
(long struct, int value) Unsafe version oflevel_x
.static int
nlevel_y
(long struct) Unsafe version oflevel_y()
.static void
nlevel_y
(long struct, int value) Unsafe version oflevel_y
.static @Nullable EXRImage
nnext_level
(long struct) Unsafe version ofnext_level()
.static void
nnext_level
(long struct, @Nullable EXRImage value) Unsafe version ofnext_level
.static int
nnum_channels
(long struct) Unsafe version ofnum_channels()
.static void
nnum_channels
(long struct, int value) Sets the specified value to thenum_channels
field of the specifiedstruct
.static int
nnum_tiles
(long struct) Unsafe version ofnum_tiles()
.static void
nnum_tiles
(long struct, int value) Sets the specified value to thenum_tiles
field of the specifiedstruct
.static @Nullable EXRTile.Buffer
ntiles
(long struct) Unsafe version oftiles()
.static void
ntiles
(long struct, @Nullable EXRTile.Buffer value) Unsafe version oftiles
.int
num_channels
(int value) Sets the specified value to thenum_channels
field.int
static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.Copies the specified struct data to this struct.set
(@Nullable EXRTile.Buffer tiles, @Nullable EXRImage next_level, int level_x, int level_y, @Nullable PointerBuffer images, int width, int height, int num_channels) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.@Nullable EXRTile.Buffer
tiles()
tiles
(@Nullable EXRTile.Buffer value) Sets the address of the specifiedEXRTile.Buffer
to thetiles
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
width()
width
(int value) Sets the specified value to thewidth
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
TILES
public static final int TILESThe struct member offsets. -
NEXT_LEVEL
public static final int NEXT_LEVELThe struct member offsets. -
LEVEL_X
public static final int LEVEL_XThe struct member offsets. -
LEVEL_Y
public static final int LEVEL_YThe struct member offsets. -
IMAGES
public static final int IMAGESThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
NUM_CHANNELS
public static final int NUM_CHANNELSThe struct member offsets. -
NUM_TILES
public static final int NUM_TILESThe struct member offsets.
-
-
Constructor Details
-
EXRImage
Creates aEXRImage
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
tiles
- Returns:
- a
EXRTile.Buffer
view of the struct array pointed to by thetiles
field.
-
next_level
- Returns:
- a
EXRImage
view of the struct pointed to by thenext_level
field.
-
level_x
public int level_x()- Returns:
- the value of the
level_x
field.
-
level_y
public int level_y()- Returns:
- the value of the
level_y
field.
-
images
- Returns:
- a
PointerBuffer
view of the data pointed to by theimages
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
num_channels
public int num_channels()- Returns:
- the value of the
num_channels
field.
-
num_tiles
public int num_tiles()- Returns:
- the value of the
num_tiles
field.
-
tiles
Sets the address of the specifiedEXRTile.Buffer
to thetiles
field. -
next_level
Sets the address of the specifiedEXRImage
to thenext_level
field. -
level_x
Sets the specified value to thelevel_x
field. -
level_y
Sets the specified value to thelevel_y
field. -
images
Sets the address of the specifiedPointerBuffer
to theimages
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
num_channels
Sets the specified value to thenum_channels
field. -
set
public EXRImage set(@Nullable EXRTile.Buffer tiles, @Nullable EXRImage next_level, int level_x, int level_y, @Nullable PointerBuffer images, int width, int height, int num_channels) 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 newEXRImage
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newEXRImage
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newEXRImage
instance allocated withBufferUtils
. -
create
Returns a newEXRImage
instance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRImage.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newEXRImage.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newEXRImage.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aEXRImage.Buffer
instance 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 newEXRImage
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newEXRImage
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newEXRImage.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newEXRImage.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntiles
Unsafe version oftiles()
. -
nnext_level
Unsafe version ofnext_level()
. -
nlevel_x
public static int nlevel_x(long struct) Unsafe version oflevel_x()
. -
nlevel_y
public static int nlevel_y(long struct) Unsafe version oflevel_y()
. -
nimages
Unsafe version ofimages
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
nnum_channels
public static int nnum_channels(long struct) Unsafe version ofnum_channels()
. -
nnum_tiles
public static int nnum_tiles(long struct) Unsafe version ofnum_tiles()
. -
ntiles
Unsafe version oftiles
. -
nnext_level
Unsafe version ofnext_level
. -
nlevel_x
public static void nlevel_x(long struct, int value) Unsafe version oflevel_x
. -
nlevel_y
public static void nlevel_y(long struct, int value) Unsafe version oflevel_y
. -
nimages
Unsafe version ofimages
. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight
. -
nnum_channels
public static void nnum_channels(long struct, int value) Sets the specified value to thenum_channels
field of the specifiedstruct
. -
nnum_tiles
public static void nnum_tiles(long struct, int value) Sets the specified value to thenum_tiles
field of the specifiedstruct
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-