Package org.lwjgl.util.tinyexr
Class DeepImage
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<DeepImage>
org.lwjgl.util.tinyexr.DeepImage
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class DeepImage
extends org.lwjgl.system.Struct<DeepImage>
implements org.lwjgl.system.NativeResource
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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, org.lwjgl.system.MemoryStack stack) Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DeepImagecalloc(org.lwjgl.system.MemoryStack stack) Returns a newDeepImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static DeepImageDeprecated.static DeepImage.BuffercallocStack(int capacity) Deprecated.static DeepImage.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DeepImagecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.org.lwjgl.PointerBufferchannel_names(org.lwjgl.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.org.lwjgl.PointerBufferimage()image[channels][scanlines][samples]image(org.lwjgl.PointerBuffer value) Sets the address of the specifiedPointerBufferto theimage()field.static DeepImagemalloc()Returns a newDeepImageinstance allocated withmemAlloc.static DeepImage.Buffermalloc(int capacity) Returns a newDeepImage.Bufferinstance allocated withmemAlloc.static DeepImage.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStack.static DeepImagemalloc(org.lwjgl.system.MemoryStack stack) Returns a newDeepImageinstance allocated on the specifiedMemoryStack.static DeepImageDeprecated.static DeepImage.BuffermallocStack(int capacity) Deprecated.static DeepImage.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static DeepImagemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static org.lwjgl.PointerBuffernchannel_names(long struct) Unsafe version ofchannel_names.static voidnchannel_names(long struct, org.lwjgl.PointerBuffer value) Unsafe version ofchannel_names.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static org.lwjgl.PointerBuffernimage(long struct) Unsafe version ofimage.static voidnimage(long struct, org.lwjgl.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 org.lwjgl.PointerBuffernoffset_table(long struct, int capacity) Unsafe version ofoffset_table.static voidnoffset_table(long struct, org.lwjgl.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.org.lwjgl.PointerBufferoffset_table(int capacity) offset_table(org.lwjgl.PointerBuffer value) Sets the address of the specifiedPointerBufferto theoffset_table(int)field.set(org.lwjgl.PointerBuffer channel_names, org.lwjgl.PointerBuffer image, org.lwjgl.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()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.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<DeepImage>
-
channel_names
public org.lwjgl.PointerBuffer channel_names()- Returns:
- a
PointerBufferview of the data pointed to by thechannel_namesfield.
-
image
public org.lwjgl.PointerBuffer image()image[channels][scanlines][samples] -
offset_table
public org.lwjgl.PointerBuffer offset_table(int capacity) - 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_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 theimage()field. -
offset_table
Sets the address of the specifiedPointerBufferto theoffset_table(int)field. -
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(org.lwjgl.PointerBuffer channel_names, org.lwjgl.PointerBuffer image, org.lwjgl.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
-
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 public static DeepImage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static DeepImage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
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
public static org.lwjgl.PointerBuffer nchannel_names(long struct) Unsafe version ofchannel_names. -
nimage
public static org.lwjgl.PointerBuffer nimage(long struct) Unsafe version ofimage. -
noffset_table
public static org.lwjgl.PointerBuffer noffset_table(long struct, int capacity) 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
public static void nchannel_names(long struct, org.lwjgl.PointerBuffer value) Unsafe version ofchannel_names. -
nimage
public static void nimage(long struct, org.lwjgl.PointerBuffer value) Unsafe version ofimage. -
noffset_table
public static void noffset_table(long struct, org.lwjgl.PointerBuffer value) 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
-