Package org.lwjgl.util.tinyexr
Class DeepImage
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct DeepImage {
char const ** channel_names;
float *** image;
int ** offset_table;
int num_channels;
int width;
int height;
char[4];
}-
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 size in bytes.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
ConstructorsConstructorDescriptionDeepImage(ByteBuffer container) Creates aDeepImageinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeepImagecalloc()Returns a newDeepImageinstance allocated withmemCalloc.static DeepImage.Buffercalloc(int capacity) Returns a newDeepImage.Bufferinstance allocated withmemCalloc.static DeepImage.Buffercalloc(int capacity, MemoryStack stack) Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DeepImagecalloc(MemoryStack stack) Returns a newDeepImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.channel_names(PointerBuffer value) Sets the address of the specifiedPointerBufferto thechannel_namesfield.static DeepImagecreate()Returns a newDeepImageinstance allocated withBufferUtils.static DeepImage.Buffercreate(int capacity) Returns a newDeepImage.Bufferinstance allocated withBufferUtils.static DeepImagecreate(long address) Returns a newDeepImageinstance for the specified memory address.static DeepImage.Buffercreate(long address, int capacity) Create aDeepImage.Bufferinstance at the specified memory.static @Nullable DeepImagecreateSafe(long address) static @Nullable DeepImage.BuffercreateSafe(long address, int capacity) intheight()height(int value) Sets the specified value to theheightfield.image()image(PointerBuffer value) Sets the address of the specifiedPointerBufferto theimagefield.static DeepImagemalloc()Returns a newDeepImageinstance allocated withmemAlloc.static DeepImage.Buffermalloc(int capacity) Returns a newDeepImage.Bufferinstance allocated withmemAlloc.static DeepImage.Buffermalloc(int capacity, MemoryStack stack) Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStack.static DeepImagemalloc(MemoryStack stack) Returns a newDeepImageinstance allocated on the specifiedMemoryStack.static PointerBuffernchannel_names(long struct) Unsafe version ofchannel_names.static voidnchannel_names(long struct, PointerBuffer value) Unsafe version ofchannel_names.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static PointerBuffernimage(long struct) Unsafe version ofimage.static voidnimage(long struct, PointerBuffer value) Unsafe version ofimage.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 PointerBuffernoffset_table(long struct, int capacity) Unsafe version ofoffset_table.static voidnoffset_table(long struct, PointerBuffer value) Unsafe version ofoffset_table.intnum_channels(int value) Sets the specified value to thenum_channelsfield.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.offset_table(int capacity) offset_table(PointerBuffer value) Sets the address of the specifiedPointerBufferto theoffset_tablefield.set(PointerBuffer channel_names, PointerBuffer image, PointerBuffer offset_table, int num_channels, int width, int height) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
CHANNEL_NAMES
public static final int CHANNEL_NAMESThe struct member offsets. -
IMAGE
public static final int IMAGEThe struct member offsets. -
OFFSET_TABLE
public static final int OFFSET_TABLEThe struct member offsets. -
NUM_CHANNELS
public static final int NUM_CHANNELSThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets.
-
-
Constructor Details
-
DeepImage
Creates aDeepImageinstance 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). -
channel_names
- Returns:
- a
PointerBufferview of the data pointed to by thechannel_namesfield.
-
image
- Returns:
- a
PointerBufferview of the data pointed to by theimagefield.
-
offset_table
- Returns:
- a
PointerBufferview of the data pointed to by theoffset_tablefield.
-
num_channels
public int num_channels()- Returns:
- the value of the
num_channelsfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
channel_names
Sets the address of the specifiedPointerBufferto thechannel_namesfield. -
image
Sets the address of the specifiedPointerBufferto theimagefield. -
offset_table
Sets the address of the specifiedPointerBufferto theoffset_tablefield. -
num_channels
Sets the specified value to thenum_channelsfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
set
public DeepImage set(PointerBuffer channel_names, PointerBuffer image, PointerBuffer offset_table, int num_channels, int width, int height) 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 newDeepImageinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newDeepImageinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newDeepImageinstance allocated withBufferUtils. -
create
Returns a newDeepImageinstance for the specified memory address. -
createSafe
-
malloc
Returns a newDeepImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newDeepImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newDeepImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aDeepImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newDeepImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newDeepImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nchannel_names
Unsafe version ofchannel_names. -
nimage
Unsafe version ofimage. -
noffset_table
Unsafe version ofoffset_table. -
nnum_channels
public static int nnum_channels(long struct) Unsafe version ofnum_channels(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
nchannel_names
Unsafe version ofchannel_names. -
nimage
Unsafe version ofimage. -
noffset_table
Unsafe version ofoffset_table. -
nnum_channels
public static void nnum_channels(long struct, int value) Sets the specified value to thenum_channelsfield of the specifiedstruct. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-