Package org.lwjgl.util.tinyexr
Class EXRImage
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct EXRImage {
EXRTile * tiles;
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.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 member offsets.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
ConstructorsConstructorDescriptionEXRImage(ByteBuffer container) Creates aEXRImageinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXRImagecalloc()Returns a newEXRImageinstance allocated withmemCalloc.static EXRImage.Buffercalloc(int capacity) Returns a newEXRImage.Bufferinstance allocated withmemCalloc.static EXRImage.Buffercalloc(int capacity, MemoryStack stack) Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRImagecalloc(MemoryStack stack) Returns a newEXRImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static EXRImagecreate()Returns a newEXRImageinstance allocated withBufferUtils.static EXRImage.Buffercreate(int capacity) Returns a newEXRImage.Bufferinstance allocated withBufferUtils.static EXRImagecreate(long address) Returns a newEXRImageinstance for the specified memory address.static EXRImage.Buffercreate(long address, int capacity) Create aEXRImage.Bufferinstance at the specified memory.static @Nullable EXRImagecreateSafe(long address) static @Nullable EXRImage.BuffercreateSafe(long address, int capacity) intheight()height(int value) Sets the specified value to theheightfield.@Nullable PointerBufferimages()images(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theimagesfield.intlevel_x()level_x(int value) Sets the specified value to thelevel_xfield.intlevel_y()level_y(int value) Sets the specified value to thelevel_yfield.static EXRImagemalloc()Returns a newEXRImageinstance allocated withmemAlloc.static EXRImage.Buffermalloc(int capacity) Returns a newEXRImage.Bufferinstance allocated withmemAlloc.static EXRImage.Buffermalloc(int capacity, MemoryStack stack) Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStack.static EXRImagemalloc(MemoryStack stack) Returns a newEXRImageinstance allocated on the specifiedMemoryStack.@Nullable EXRImagenext_level(@Nullable EXRImage value) Sets the address of the specifiedEXRImageto thenext_levelfield.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static @Nullable PointerBuffernimages(long struct) Unsafe version ofimages.static voidnimages(long struct, @Nullable PointerBuffer value) Unsafe version ofimages.static intnlevel_x(long struct) Unsafe version oflevel_x().static voidnlevel_x(long struct, int value) Unsafe version oflevel_x.static intnlevel_y(long struct) Unsafe version oflevel_y().static voidnlevel_y(long struct, int value) Unsafe version oflevel_y.static @Nullable EXRImagennext_level(long struct) Unsafe version ofnext_level().static voidnnext_level(long struct, @Nullable EXRImage value) Unsafe version ofnext_level.static intnnum_channels(long struct) Unsafe version ofnum_channels().static voidnnum_channels(long struct, int value) Sets the specified value to thenum_channelsfield of the specifiedstruct.static intnnum_tiles(long struct) Unsafe version ofnum_tiles().static voidnnum_tiles(long struct, int value) Sets the specified value to thenum_tilesfield of the specifiedstruct.static @Nullable EXRTile.Bufferntiles(long struct) Unsafe version oftiles().static voidntiles(long struct, @Nullable EXRTile.Buffer value) Unsafe version oftiles.intnum_channels(int value) Sets the specified value to thenum_channelsfield.intstatic intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(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.intsizeof()Returnssizeof(struct).@Nullable EXRTile.Buffertiles()tiles(@Nullable EXRTile.Buffer value) Sets the address of the specifiedEXRTile.Bufferto thetilesfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intwidth()width(int value) Sets the specified value to thewidthfield.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. -
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 aEXRImageinstance 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). -
tiles
- Returns:
- a
EXRTile.Bufferview of the struct array pointed to by thetilesfield.
-
next_level
- Returns:
- a
EXRImageview of the struct pointed to by thenext_levelfield.
-
level_x
public int level_x()- Returns:
- the value of the
level_xfield.
-
level_y
public int level_y()- Returns:
- the value of the
level_yfield.
-
images
- Returns:
- a
PointerBufferview of the data pointed to by theimagesfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
num_channels
public int num_channels()- Returns:
- the value of the
num_channelsfield.
-
num_tiles
public int num_tiles()- Returns:
- the value of the
num_tilesfield.
-
tiles
Sets the address of the specifiedEXRTile.Bufferto thetilesfield. -
next_level
Sets the address of the specifiedEXRImageto thenext_levelfield. -
level_x
Sets the specified value to thelevel_xfield. -
level_y
Sets the specified value to thelevel_yfield. -
images
Sets the address of the specifiedPointerBufferto theimagesfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
num_channels
Sets the specified value to thenum_channelsfield. -
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 newEXRImageinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newEXRImageinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newEXRImageinstance allocated withBufferUtils. -
create
Returns a newEXRImageinstance for the specified memory address. -
createSafe
-
malloc
Returns a newEXRImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newEXRImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newEXRImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aEXRImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newEXRImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newEXRImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newEXRImage.Bufferinstance allocated on the specifiedMemoryStackand 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_channelsfield of the specifiedstruct. -
nnum_tiles
public static void nnum_tiles(long struct, int value) Sets the specified value to thenum_tilesfield of the specifiedstruct. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-