Package org.lwjgl.util.tinyexr
Class DeepImage
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct DeepImage {
char const ** channel_names;
float *** image()
;
int ** offset_table(int)
;
int num_channels;
int width;
int height;
char[4];
}
-
Nested Class Summary
Nested 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
Modifier 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 size in bytes.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
ConstructorDescriptionDeepImage
(ByteBuffer container) Creates aDeepImage
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeepImage
calloc()
Returns a newDeepImage
instance allocated withmemCalloc
.static DeepImage.Buffer
calloc
(int capacity) Returns a newDeepImage.Buffer
instance allocated withmemCalloc
.static DeepImage.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newDeepImage.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DeepImage
calloc
(MemoryStack stack) Returns a newDeepImage
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static DeepImage
Deprecated.static DeepImage.Buffer
callocStack
(int capacity) Deprecated.static DeepImage.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static DeepImage
callocStack
(MemoryStack stack) Deprecated.channel_names
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thechannel_names
field.static DeepImage
create()
Returns a newDeepImage
instance allocated withBufferUtils
.static DeepImage.Buffer
create
(int capacity) Returns a newDeepImage.Buffer
instance allocated withBufferUtils
.static DeepImage
create
(long address) Returns a newDeepImage
instance for the specified memory address.static DeepImage.Buffer
create
(long address, int capacity) Create aDeepImage.Buffer
instance at the specified memory.static DeepImage
createSafe
(long address) static DeepImage.Buffer
createSafe
(long address, int capacity) int
height()
height
(int value) Sets the specified value to theheight
field.image()
image[channels][scanlines][samples]image
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theimage()
field.static DeepImage
malloc()
Returns a newDeepImage
instance allocated withmemAlloc
.static DeepImage.Buffer
malloc
(int capacity) Returns a newDeepImage.Buffer
instance allocated withmemAlloc
.static DeepImage.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newDeepImage.Buffer
instance allocated on the specifiedMemoryStack
.static DeepImage
malloc
(MemoryStack stack) Returns a newDeepImage
instance allocated on the specifiedMemoryStack
.static DeepImage
Deprecated.static DeepImage.Buffer
mallocStack
(int capacity) Deprecated.static DeepImage.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static DeepImage
mallocStack
(MemoryStack stack) Deprecated.static PointerBuffer
nchannel_names
(long struct) Unsafe version ofchannel_names
.static void
nchannel_names
(long struct, PointerBuffer value) Unsafe version ofchannel_names
.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static PointerBuffer
nimage
(long struct) Unsafe version ofimage
.static void
nimage
(long struct, PointerBuffer value) Unsafe version ofimage
.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 PointerBuffer
noffset_table
(long struct, int capacity) Unsafe version ofoffset_table
.static void
noffset_table
(long struct, PointerBuffer value) Unsafe version ofoffset_table
.int
num_channels
(int value) Sets the specified value to thenum_channels
field.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.offset_table
(int capacity) offset_table
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to theoffset_table(int)
field.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.int
sizeof()
Returnssizeof(struct)
.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. -
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 aDeepImage
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)
. -
channel_names
- Returns:
- a
PointerBuffer
view of the data pointed to by thechannel_names
field.
-
image
image[channels][scanlines][samples] -
offset_table
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- offset_table[scanline][offsets]
-
num_channels
public int num_channels()- Returns:
- the value of the
num_channels
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
channel_names
Sets the address of the specifiedPointerBuffer
to thechannel_names
field. -
image
Sets the address of the specifiedPointerBuffer
to theimage()
field. -
offset_table
Sets the address of the specifiedPointerBuffer
to theoffset_table(int)
field. -
num_channels
Sets the specified value to thenum_channels
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
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 newDeepImage
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newDeepImage
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newDeepImage
instance allocated withBufferUtils
. -
create
Returns a newDeepImage
instance for the specified memory address. -
createSafe
-
malloc
Returns a newDeepImage.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newDeepImage.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newDeepImage.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aDeepImage.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 newDeepImage
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newDeepImage
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newDeepImage.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newDeepImage.Buffer
instance allocated on the specifiedMemoryStack
and 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_channels
field 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
-