Package org.lwjgl.util.tinyexr
Class DeepImage
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.DeepImage
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class DeepImage extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
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 Modifier and Type Class Description static classDeepImage.BufferAn array ofDeepImagestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCHANNEL_NAMES
HEIGHT
IMAGE
NUM_CHANNELS
OFFSET_TABLEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description DeepImage(java.nio.ByteBuffer container)Creates aDeepImageinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 DeepImagecallocStack()Deprecated.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()DeepImagechannel_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 DeepImagecreateSafe(long address)static DeepImage.BuffercreateSafe(long address, int capacity)intheight()DeepImageheight(int value)Sets the specified value to theheightfield.org.lwjgl.PointerBufferimage()image[channels][scanlines][samples]DeepImageimage(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 DeepImagemallocStack()Deprecated.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()DeepImagenum_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)DeepImageoffset_table(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theoffset_table(int)field.DeepImageset(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.DeepImageset(DeepImage src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.intwidth()DeepImagewidth(int value)Sets the specified value to thewidthfield.
-
-
-
Constructor Detail
-
DeepImage
public DeepImage(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public DeepImage channel_names(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto thechannel_namesfield.
-
image
public DeepImage image(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theimage()field.
-
offset_table
public DeepImage offset_table(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theoffset_table(int)field.
-
num_channels
public DeepImage num_channels(int value)
Sets the specified value to thenum_channelsfield.
-
width
public DeepImage width(int value)
Sets the specified value to thewidthfield.
-
height
public DeepImage height(int value)
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
public DeepImage set(DeepImage src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static DeepImage malloc()
Returns a newDeepImageinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static DeepImage calloc()
Returns a newDeepImageinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static DeepImage create()
Returns a newDeepImageinstance allocated withBufferUtils.
-
create
public static DeepImage create(long address)
Returns a newDeepImageinstance for the specified memory address.
-
createSafe
@Nullable public static DeepImage createSafe(long address)
-
malloc
public static DeepImage.Buffer malloc(int capacity)
Returns a newDeepImage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static DeepImage.Buffer calloc(int capacity)
Returns a newDeepImage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static DeepImage.Buffer create(int capacity)
Returns a newDeepImage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static DeepImage.Buffer create(long address, int capacity)
Create aDeepImage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static DeepImage.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static DeepImage mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DeepImage callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DeepImage mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static DeepImage callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static DeepImage.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static DeepImage.Buffer callocStack(int capacity)
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
public static DeepImage malloc(org.lwjgl.system.MemoryStack stack)
Returns a newDeepImageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static DeepImage calloc(org.lwjgl.system.MemoryStack stack)
Returns a newDeepImageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static DeepImage.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static DeepImage.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newDeepImage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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
-
-